├── .cargo └── config ├── .editorconfig ├── .gitignore ├── CONTRIBUTING.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── examples ├── create_account.py ├── generate_key.py └── get_account.py ├── rust-toolchain ├── rustfmt.toml └── src ├── account_info.rs ├── claim.rs ├── client.rs ├── contract_function_result.rs ├── contract_info.rs ├── contract_log_info.rs ├── crypto.rs ├── duration.rs ├── either.rs ├── errors.rs ├── file_info.rs ├── id.rs ├── lib.rs ├── macros.rs ├── query_contract_get_bytecode.rs ├── query_contract_get_info.rs ├── query_contract_get_records.rs ├── query_crypto_get_account_balance.rs ├── query_crypto_get_account_records.rs ├── query_crypto_get_claim.rs ├── query_crypto_get_info.rs ├── query_file_get_contents.rs ├── query_file_get_info.rs ├── query_get_by_key.rs ├── query_transaction_get_receipt.rs ├── query_transaction_get_record.rs ├── timestamp.rs ├── transaction_admin_contract_delete.rs ├── transaction_admin_contract_recover.rs ├── transaction_admin_file_delete.rs ├── transaction_admin_file_recover.rs ├── transaction_contract_call.rs ├── transaction_contract_create.rs ├── transaction_contract_update.rs ├── transaction_crypto_add_claim.rs ├── transaction_crypto_create.rs ├── transaction_crypto_delete.rs ├── transaction_crypto_delete_claim.rs ├── transaction_crypto_transfer.rs ├── transaction_crypto_update.rs ├── transaction_file_append.rs ├── transaction_file_create.rs ├── transaction_file_delete.rs ├── transaction_file_update.rs ├── transaction_id.rs ├── transaction_receipt.rs └── transaction_record.rs /.cargo/config: -------------------------------------------------------------------------------- 1 | [target.x86_64-apple-darwin] 2 | rustflags = [ 3 | "-C", "link-arg=-undefined", 4 | "-C", "link-arg=dynamic_lookup" 5 | ] 6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | charset = utf-8 7 | indent_style = space 8 | indent_size = 4 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Editor project files 2 | .idea/ 3 | .vscode/ 4 | 5 | # Rust artifacts 6 | target/ 7 | 8 | # Python virtualenv 9 | .env/ 10 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to the Hedera SDK for Python 2 | 3 | Thank you for your interest in contributing the Hedera SDK for Python! 4 | 5 | We appreciate your interest in helping us and the rest of our community. We welcome bug reports, feature requests, and code contributions. 6 | 7 | __Jump To:__ 8 | 9 | * [Bug Reports](#bug-reports) 10 | * [Feature Requests](#feature-requests) 11 | * [Code Contributions](#code-contributions) 12 | 13 | ## Bug Reports 14 | 15 | Bug reports are accepted through the [Issues][issues] page. 16 | 17 | The [bug][label-bug] label is used to track bugs. 18 | 19 | ### Before Submitting a Bug Report 20 | 21 | Before submitting a bug report, please do the following: 22 | 23 | 1. Do a search through the existing issues to make sure it has not already been reported. If you find that the bug has already been raised, please give it a +1 to help us to decide which issues we prioritise. 24 | 25 | 2. If possible, upgrade to the latest release of the SDK. It's possible the bug has already been fixed in the latest version. We will do our utmost to maintain backwards compatibility between patch version releases, so that you can be confident that your application will continue to work as expected with the newer version. 26 | 27 | If you have completed these steps and you need to submit a bug report, please read the guidelines below. 28 | 29 | ### Submitting a Bug Report 30 | 31 | Please ensure that your bug report contains the following: 32 | 33 | * A short, descriptive title. Other community members should be able to understand the nature of the issue by reading this title. 34 | * A succinct, detailed description of the problem you're experiencing. This should include: 35 | * Expected behaviour of the SDK and the actual behaviour exhibited. 36 | * Any details of your application development environment that may be relevant. 37 | * If applicable, the exception stack-trace. 38 | * If you are able to create one, include a [Minimal Working Example][mwe] that reproduces the issue. 39 | * [Markdown][markdown] formatting as appropriate to make the report easier to read; for example use code blocks when pasting a code snippet or exception stack-trace. 40 | 41 | ## Feature Requests 42 | 43 | Feature requests are also submitted through the [Issues][issues] page. 44 | 45 | As with Bug Reports, please do a search of the open requests first before submitting a new one to avoid duplicates. If you do find a a feature request that represents your suggestion, please give it a +1. 46 | 47 | __NOTE:__ If you intend to implement this feature, please submit the feature request *before* working on any code changes. This will allow members on the SDK team to assess the idea, discuss the design with you and ensure that it makes sense to include such a feature in the SDK. 48 | 49 | Feature requests are labeled as [enhancements][label-enhancement]. 50 | 51 | ### Submitting a Feature Request 52 | 53 | Open an [issue][issues] with the following: 54 | 55 | * A short, descriptive title. Other community members should be able to understand the nature of the issue by reading this title. 56 | * A detailed description of the the proposed feature. Explain why you believe it should be added to the SDK. Illustrative example code may also be provided to help explain how the feature should work. 57 | * [Markdown][markdown] formatting as appropriate to make the request easier to read. 58 | * If you plan to implement this feature yourself, please let us know that you'd like to the issue to be assigned to you. 59 | 60 | ## Code Contributions 61 | 62 | Code contributions to the SDK are handled using [Pull Requests][pull-requests]. Please keep the following in mind when considering a code contribution: 63 | 64 | * The SDK is released under the [Apache 2.0 License][license]. 65 | 66 | Any code you submit will be released under this license. 67 | 68 | * For anything other than small or quick changes, you should always start by reviewing the [Issues][issues] page to ensure that the nobody else is already working on the same issue. 69 | 70 | If you're working on a bug fix, check to see whether the bug has already been reported. If it has but no one is assigned to it, ask one of the maintainers to assign it to you before beginning work. If you're confident the bug hasn't been reported yet, create a new [Bug Report](#bug-reports) and ask us to assign it to you. 71 | 72 | If you are thinking about adding entirely new functionality, open a [Feature Request](#feature-requests) or get in touch with us on [Discord](discord) to ask for feedback first before beginning work; this is to ensure that nobody else is already working on the feature (or another similar feature) and to confirm that it makes sense for such functionality to be included in the SDK. 73 | * All code contributions must be accompanied with new or modified tests that verify that the code works as expected; i.e. that the issue has been fixed or that the functionality works as intended. 74 | 75 | ### Pull Request Readiness 76 | 77 | Before submitting your pull request, refer to the pull request readiness checklist below: 78 | 79 | * [ ] Includes tests to exercise the new behaviour 80 | * [ ] Code is documented, especially public and user-facing constructs 81 | * [ ] Local run of `cargo test` succeeds 82 | * [ ] Git commit message is detailed and includes context behind the change 83 | * [ ] If the change is related to an existing Bug Report or Feature Request, please include its issue number 84 | 85 | To contribute, please fork the GitHub repository and submit a pull request to the `master` branch. 86 | 87 | ### Getting Your Pull Request Merged 88 | 89 | All Pull Requests must be approved by at least one member of the SDK team before it can be merged in. The members only have limited bandwidth to review Pull Requests so it's not unusual for a Pull Request to go unreviewed for a few days, especially if it's a large or complex one. After a couple of weeks, if you haven't received any feedback regarding your Pull Request from the SDK team, feel free to contact us on [Discord](discord) to ask for a review. 90 | 91 | ## Getting in Contact 92 | 93 | * Join us in our [Discord][discord] channel; there you can engage with the Hedera team and other developers and enthusiasts. 94 | 95 | [license]: https://github.com/hashgraph/hedera-sdk-python/blob/master/LICENSE 96 | [mwe]: https://en.wikipedia.org/wiki/Minimal_Working_Example 97 | [markdown]: https://guides.github.com/features/mastering-markdown/ 98 | [issues]: https://github.com/hashgraph/hedera-sdk-python/issues 99 | [pull-requests]: https://github.com/hashgraph/hedera-sdk-python/pulls 100 | [label-bug]: https://github.com/hashgraph/hedera-sdk-python/labels/bug 101 | [label-enhancement]: https://github.com/hashgraph/hedera-sdk-python/labels/enhancement 102 | [discord]: https://hedera.com/discord 103 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | [[package]] 4 | name = "aho-corasick" 5 | version = "0.6.9" 6 | source = "registry+https://github.com/rust-lang/crates.io-index" 7 | dependencies = [ 8 | "memchr 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 9 | ] 10 | 11 | [[package]] 12 | name = "arrayvec" 13 | version = "0.4.10" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | dependencies = [ 16 | "nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", 17 | ] 18 | 19 | [[package]] 20 | name = "autocfg" 21 | version = "0.1.2" 22 | source = "registry+https://github.com/rust-lang/crates.io-index" 23 | 24 | [[package]] 25 | name = "backtrace" 26 | version = "0.3.13" 27 | source = "registry+https://github.com/rust-lang/crates.io-index" 28 | dependencies = [ 29 | "autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 30 | "backtrace-sys 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)", 31 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 32 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 33 | "rustc-demangle 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", 34 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 35 | ] 36 | 37 | [[package]] 38 | name = "backtrace-sys" 39 | version = "0.1.28" 40 | source = "registry+https://github.com/rust-lang/crates.io-index" 41 | dependencies = [ 42 | "cc 1.0.28 (registry+https://github.com/rust-lang/crates.io-index)", 43 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 44 | ] 45 | 46 | [[package]] 47 | name = "base64" 48 | version = "0.9.3" 49 | source = "registry+https://github.com/rust-lang/crates.io-index" 50 | dependencies = [ 51 | "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 52 | "safemem 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 53 | ] 54 | 55 | [[package]] 56 | name = "bip39" 57 | version = "0.6.0-beta.1" 58 | source = "registry+https://github.com/rust-lang/crates.io-index" 59 | dependencies = [ 60 | "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 61 | "hashbrown 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 62 | "hmac 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 63 | "once_cell 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 64 | "pbkdf2 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 65 | "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 66 | "sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 67 | ] 68 | 69 | [[package]] 70 | name = "bitflags" 71 | version = "1.0.4" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | 74 | [[package]] 75 | name = "block-buffer" 76 | version = "0.7.2" 77 | source = "registry+https://github.com/rust-lang/crates.io-index" 78 | dependencies = [ 79 | "block-padding 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 80 | "byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 81 | "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 82 | "generic-array 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", 83 | ] 84 | 85 | [[package]] 86 | name = "block-padding" 87 | version = "0.1.3" 88 | source = "registry+https://github.com/rust-lang/crates.io-index" 89 | dependencies = [ 90 | "byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 91 | ] 92 | 93 | [[package]] 94 | name = "byte-tools" 95 | version = "0.3.1" 96 | source = "registry+https://github.com/rust-lang/crates.io-index" 97 | 98 | [[package]] 99 | name = "byteorder" 100 | version = "1.3.1" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | 103 | [[package]] 104 | name = "bytes" 105 | version = "0.4.11" 106 | source = "registry+https://github.com/rust-lang/crates.io-index" 107 | dependencies = [ 108 | "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 109 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 110 | ] 111 | 112 | [[package]] 113 | name = "cc" 114 | version = "1.0.28" 115 | source = "registry+https://github.com/rust-lang/crates.io-index" 116 | 117 | [[package]] 118 | name = "cfg-if" 119 | version = "0.1.6" 120 | source = "registry+https://github.com/rust-lang/crates.io-index" 121 | 122 | [[package]] 123 | name = "chrono" 124 | version = "0.4.6" 125 | source = "registry+https://github.com/rust-lang/crates.io-index" 126 | dependencies = [ 127 | "num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 128 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 129 | "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", 130 | ] 131 | 132 | [[package]] 133 | name = "clear_on_drop" 134 | version = "0.2.3" 135 | source = "registry+https://github.com/rust-lang/crates.io-index" 136 | dependencies = [ 137 | "cc 1.0.28 (registry+https://github.com/rust-lang/crates.io-index)", 138 | ] 139 | 140 | [[package]] 141 | name = "cloudabi" 142 | version = "0.0.3" 143 | source = "registry+https://github.com/rust-lang/crates.io-index" 144 | dependencies = [ 145 | "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 146 | ] 147 | 148 | [[package]] 149 | name = "crossbeam" 150 | version = "0.6.0" 151 | source = "registry+https://github.com/rust-lang/crates.io-index" 152 | dependencies = [ 153 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 154 | "crossbeam-channel 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 155 | "crossbeam-deque 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)", 156 | "crossbeam-epoch 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", 157 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 158 | "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 159 | "num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 160 | "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", 161 | ] 162 | 163 | [[package]] 164 | name = "crossbeam-channel" 165 | version = "0.3.8" 166 | source = "registry+https://github.com/rust-lang/crates.io-index" 167 | dependencies = [ 168 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 169 | "smallvec 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)", 170 | ] 171 | 172 | [[package]] 173 | name = "crossbeam-deque" 174 | version = "0.2.0" 175 | source = "registry+https://github.com/rust-lang/crates.io-index" 176 | dependencies = [ 177 | "crossbeam-epoch 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 178 | "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 179 | ] 180 | 181 | [[package]] 182 | name = "crossbeam-deque" 183 | version = "0.6.3" 184 | source = "registry+https://github.com/rust-lang/crates.io-index" 185 | dependencies = [ 186 | "crossbeam-epoch 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", 187 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 188 | ] 189 | 190 | [[package]] 191 | name = "crossbeam-epoch" 192 | version = "0.3.1" 193 | source = "registry+https://github.com/rust-lang/crates.io-index" 194 | dependencies = [ 195 | "arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)", 196 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 197 | "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 198 | "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 199 | "memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 200 | "nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", 201 | "scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 202 | ] 203 | 204 | [[package]] 205 | name = "crossbeam-epoch" 206 | version = "0.7.1" 207 | source = "registry+https://github.com/rust-lang/crates.io-index" 208 | dependencies = [ 209 | "arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)", 210 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 211 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 212 | "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 213 | "memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 214 | "scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 215 | ] 216 | 217 | [[package]] 218 | name = "crossbeam-utils" 219 | version = "0.2.2" 220 | source = "registry+https://github.com/rust-lang/crates.io-index" 221 | dependencies = [ 222 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 223 | ] 224 | 225 | [[package]] 226 | name = "crossbeam-utils" 227 | version = "0.6.5" 228 | source = "registry+https://github.com/rust-lang/crates.io-index" 229 | dependencies = [ 230 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 231 | "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 232 | ] 233 | 234 | [[package]] 235 | name = "crypto-mac" 236 | version = "0.7.0" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | dependencies = [ 239 | "generic-array 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", 240 | "subtle 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 241 | ] 242 | 243 | [[package]] 244 | name = "curve25519-dalek" 245 | version = "1.0.3" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | dependencies = [ 248 | "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 249 | "clear_on_drop 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 250 | "digest 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 251 | "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 252 | "subtle 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 253 | ] 254 | 255 | [[package]] 256 | name = "derive_more" 257 | version = "0.13.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | dependencies = [ 260 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 261 | "quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", 262 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 263 | "syn 0.15.26 (registry+https://github.com/rust-lang/crates.io-index)", 264 | ] 265 | 266 | [[package]] 267 | name = "digest" 268 | version = "0.8.0" 269 | source = "registry+https://github.com/rust-lang/crates.io-index" 270 | dependencies = [ 271 | "generic-array 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", 272 | ] 273 | 274 | [[package]] 275 | name = "ed25519-dalek" 276 | version = "1.0.0-pre.1" 277 | source = "registry+https://github.com/rust-lang/crates.io-index" 278 | dependencies = [ 279 | "clear_on_drop 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 280 | "curve25519-dalek 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 281 | "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 282 | "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 283 | "sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 284 | ] 285 | 286 | [[package]] 287 | name = "either" 288 | version = "1.5.0" 289 | source = "registry+https://github.com/rust-lang/crates.io-index" 290 | 291 | [[package]] 292 | name = "failure" 293 | version = "0.1.5" 294 | source = "registry+https://github.com/rust-lang/crates.io-index" 295 | dependencies = [ 296 | "backtrace 0.3.13 (registry+https://github.com/rust-lang/crates.io-index)", 297 | "failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 298 | ] 299 | 300 | [[package]] 301 | name = "failure_derive" 302 | version = "0.1.5" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | dependencies = [ 305 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 306 | "quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", 307 | "syn 0.15.26 (registry+https://github.com/rust-lang/crates.io-index)", 308 | "synstructure 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", 309 | ] 310 | 311 | [[package]] 312 | name = "fake-simd" 313 | version = "0.1.2" 314 | source = "registry+https://github.com/rust-lang/crates.io-index" 315 | 316 | [[package]] 317 | name = "fuchsia-cprng" 318 | version = "0.1.0" 319 | source = "registry+https://github.com/rust-lang/crates.io-index" 320 | 321 | [[package]] 322 | name = "fuchsia-zircon" 323 | version = "0.3.3" 324 | source = "registry+https://github.com/rust-lang/crates.io-index" 325 | dependencies = [ 326 | "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 327 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 328 | ] 329 | 330 | [[package]] 331 | name = "fuchsia-zircon-sys" 332 | version = "0.3.3" 333 | source = "registry+https://github.com/rust-lang/crates.io-index" 334 | 335 | [[package]] 336 | name = "futures" 337 | version = "0.1.25" 338 | source = "registry+https://github.com/rust-lang/crates.io-index" 339 | 340 | [[package]] 341 | name = "futures-channel-preview" 342 | version = "0.3.0-alpha.12" 343 | source = "registry+https://github.com/rust-lang/crates.io-index" 344 | dependencies = [ 345 | "futures-core-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 346 | ] 347 | 348 | [[package]] 349 | name = "futures-core-preview" 350 | version = "0.3.0-alpha.12" 351 | source = "registry+https://github.com/rust-lang/crates.io-index" 352 | dependencies = [ 353 | "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 354 | ] 355 | 356 | [[package]] 357 | name = "futures-cpupool" 358 | version = "0.1.8" 359 | source = "registry+https://github.com/rust-lang/crates.io-index" 360 | dependencies = [ 361 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 362 | "num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 363 | ] 364 | 365 | [[package]] 366 | name = "futures-executor-preview" 367 | version = "0.3.0-alpha.12" 368 | source = "registry+https://github.com/rust-lang/crates.io-index" 369 | dependencies = [ 370 | "futures-channel-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 371 | "futures-core-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 372 | "futures-util-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 373 | "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 374 | "num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 375 | "pin-utils 0.1.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", 376 | ] 377 | 378 | [[package]] 379 | name = "futures-io-preview" 380 | version = "0.3.0-alpha.12" 381 | source = "registry+https://github.com/rust-lang/crates.io-index" 382 | dependencies = [ 383 | "futures-core-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 384 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 385 | ] 386 | 387 | [[package]] 388 | name = "futures-preview" 389 | version = "0.3.0-alpha.12" 390 | source = "registry+https://github.com/rust-lang/crates.io-index" 391 | dependencies = [ 392 | "futures-channel-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 393 | "futures-core-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 394 | "futures-executor-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 395 | "futures-io-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 396 | "futures-sink-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 397 | "futures-util-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 398 | ] 399 | 400 | [[package]] 401 | name = "futures-select-macro-preview" 402 | version = "0.3.0-alpha.12" 403 | source = "registry+https://github.com/rust-lang/crates.io-index" 404 | dependencies = [ 405 | "proc-macro-hack 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", 406 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 407 | "quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", 408 | "syn 0.15.26 (registry+https://github.com/rust-lang/crates.io-index)", 409 | ] 410 | 411 | [[package]] 412 | name = "futures-sink-preview" 413 | version = "0.3.0-alpha.12" 414 | source = "registry+https://github.com/rust-lang/crates.io-index" 415 | dependencies = [ 416 | "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 417 | "futures-channel-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 418 | "futures-core-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 419 | ] 420 | 421 | [[package]] 422 | name = "futures-util-preview" 423 | version = "0.3.0-alpha.12" 424 | source = "registry+https://github.com/rust-lang/crates.io-index" 425 | dependencies = [ 426 | "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 427 | "futures-channel-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 428 | "futures-core-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 429 | "futures-io-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 430 | "futures-select-macro-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 431 | "futures-sink-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 432 | "pin-utils 0.1.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", 433 | "proc-macro-hack 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", 434 | "proc-macro-nested 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 435 | "rand 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", 436 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 437 | ] 438 | 439 | [[package]] 440 | name = "generic-array" 441 | version = "0.12.0" 442 | source = "registry+https://github.com/rust-lang/crates.io-index" 443 | dependencies = [ 444 | "typenum 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)", 445 | ] 446 | 447 | [[package]] 448 | name = "glob" 449 | version = "0.2.11" 450 | source = "registry+https://github.com/rust-lang/crates.io-index" 451 | 452 | [[package]] 453 | name = "grpc" 454 | version = "0.6.1" 455 | source = "registry+https://github.com/rust-lang/crates.io-index" 456 | dependencies = [ 457 | "base64 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)", 458 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 459 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 460 | "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 461 | "httpbis 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 462 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 463 | "protobuf 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 464 | "tls-api 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 465 | "tls-api-stub 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 466 | "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 467 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 468 | "tokio-tls-api 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 469 | ] 470 | 471 | [[package]] 472 | name = "grpc-compiler" 473 | version = "0.6.1" 474 | source = "registry+https://github.com/rust-lang/crates.io-index" 475 | dependencies = [ 476 | "protobuf 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 477 | "protobuf-codegen 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 478 | ] 479 | 480 | [[package]] 481 | name = "hashbrown" 482 | version = "0.1.8" 483 | source = "registry+https://github.com/rust-lang/crates.io-index" 484 | dependencies = [ 485 | "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 486 | "scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 487 | ] 488 | 489 | [[package]] 490 | name = "hedera" 491 | version = "0.0.0" 492 | dependencies = [ 493 | "chrono 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 494 | "derive_more 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", 495 | "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 496 | "hedera 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 497 | "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 498 | "mashup 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 499 | "pyo3 0.6.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)", 500 | "try_from 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 501 | ] 502 | 503 | [[package]] 504 | name = "hedera" 505 | version = "0.4.1" 506 | source = "registry+https://github.com/rust-lang/crates.io-index" 507 | dependencies = [ 508 | "bip39 0.6.0-beta.1 (registry+https://github.com/rust-lang/crates.io-index)", 509 | "chrono 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 510 | "ed25519-dalek 1.0.0-pre.1 (registry+https://github.com/rust-lang/crates.io-index)", 511 | "failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 512 | "failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 513 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 514 | "futures-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)", 515 | "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 516 | "grpc 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", 517 | "hex 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 518 | "httpbis 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 519 | "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 520 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 521 | "num 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 522 | "once_cell 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 523 | "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", 524 | "protobuf 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 525 | "protoc-rust-grpc 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", 526 | "query_interface 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 527 | "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 528 | "rand_chacha 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 529 | "sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 530 | "simple_asn1 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 531 | "tokio 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", 532 | "tokio-async-await 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 533 | "try_from 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 534 | ] 535 | 536 | [[package]] 537 | name = "hex" 538 | version = "0.3.2" 539 | source = "registry+https://github.com/rust-lang/crates.io-index" 540 | 541 | [[package]] 542 | name = "hmac" 543 | version = "0.7.0" 544 | source = "registry+https://github.com/rust-lang/crates.io-index" 545 | dependencies = [ 546 | "crypto-mac 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 547 | "digest 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 548 | ] 549 | 550 | [[package]] 551 | name = "httpbis" 552 | version = "0.7.0" 553 | source = "registry+https://github.com/rust-lang/crates.io-index" 554 | dependencies = [ 555 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 556 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 557 | "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 558 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 559 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 560 | "tls-api 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 561 | "tls-api-stub 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 562 | "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 563 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 564 | "tokio-timer 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 565 | "tokio-tls-api 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 566 | "tokio-uds 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 567 | "unix_socket 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 568 | "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 569 | ] 570 | 571 | [[package]] 572 | name = "iovec" 573 | version = "0.1.2" 574 | source = "registry+https://github.com/rust-lang/crates.io-index" 575 | dependencies = [ 576 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 577 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 578 | ] 579 | 580 | [[package]] 581 | name = "itertools" 582 | version = "0.8.0" 583 | source = "registry+https://github.com/rust-lang/crates.io-index" 584 | dependencies = [ 585 | "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 586 | ] 587 | 588 | [[package]] 589 | name = "kernel32-sys" 590 | version = "0.2.2" 591 | source = "registry+https://github.com/rust-lang/crates.io-index" 592 | dependencies = [ 593 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 594 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 595 | ] 596 | 597 | [[package]] 598 | name = "lazy_static" 599 | version = "1.2.0" 600 | source = "registry+https://github.com/rust-lang/crates.io-index" 601 | 602 | [[package]] 603 | name = "lazycell" 604 | version = "1.2.1" 605 | source = "registry+https://github.com/rust-lang/crates.io-index" 606 | 607 | [[package]] 608 | name = "libc" 609 | version = "0.2.48" 610 | source = "registry+https://github.com/rust-lang/crates.io-index" 611 | 612 | [[package]] 613 | name = "lock_api" 614 | version = "0.1.5" 615 | source = "registry+https://github.com/rust-lang/crates.io-index" 616 | dependencies = [ 617 | "owning_ref 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 618 | "scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 619 | ] 620 | 621 | [[package]] 622 | name = "log" 623 | version = "0.3.9" 624 | source = "registry+https://github.com/rust-lang/crates.io-index" 625 | dependencies = [ 626 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 627 | ] 628 | 629 | [[package]] 630 | name = "log" 631 | version = "0.4.6" 632 | source = "registry+https://github.com/rust-lang/crates.io-index" 633 | dependencies = [ 634 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 635 | ] 636 | 637 | [[package]] 638 | name = "mashup" 639 | version = "0.1.9" 640 | source = "registry+https://github.com/rust-lang/crates.io-index" 641 | dependencies = [ 642 | "mashup-impl 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 643 | "proc-macro-hack 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 644 | ] 645 | 646 | [[package]] 647 | name = "mashup-impl" 648 | version = "0.1.9" 649 | source = "registry+https://github.com/rust-lang/crates.io-index" 650 | dependencies = [ 651 | "proc-macro-hack 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 652 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 653 | ] 654 | 655 | [[package]] 656 | name = "memchr" 657 | version = "2.1.3" 658 | source = "registry+https://github.com/rust-lang/crates.io-index" 659 | dependencies = [ 660 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 661 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 662 | ] 663 | 664 | [[package]] 665 | name = "memoffset" 666 | version = "0.2.1" 667 | source = "registry+https://github.com/rust-lang/crates.io-index" 668 | 669 | [[package]] 670 | name = "mio" 671 | version = "0.6.16" 672 | source = "registry+https://github.com/rust-lang/crates.io-index" 673 | dependencies = [ 674 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 675 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 676 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 677 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 678 | "lazycell 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 679 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 680 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 681 | "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 682 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 683 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 684 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 685 | ] 686 | 687 | [[package]] 688 | name = "mio-uds" 689 | version = "0.6.7" 690 | source = "registry+https://github.com/rust-lang/crates.io-index" 691 | dependencies = [ 692 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 693 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 694 | "mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)", 695 | ] 696 | 697 | [[package]] 698 | name = "miow" 699 | version = "0.2.1" 700 | source = "registry+https://github.com/rust-lang/crates.io-index" 701 | dependencies = [ 702 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 703 | "net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", 704 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 705 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 706 | ] 707 | 708 | [[package]] 709 | name = "net2" 710 | version = "0.2.33" 711 | source = "registry+https://github.com/rust-lang/crates.io-index" 712 | dependencies = [ 713 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 714 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 715 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 716 | ] 717 | 718 | [[package]] 719 | name = "nodrop" 720 | version = "0.1.13" 721 | source = "registry+https://github.com/rust-lang/crates.io-index" 722 | 723 | [[package]] 724 | name = "num" 725 | version = "0.2.0" 726 | source = "registry+https://github.com/rust-lang/crates.io-index" 727 | dependencies = [ 728 | "num-bigint 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 729 | "num-complex 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 730 | "num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 731 | "num-iter 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", 732 | "num-rational 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 733 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 734 | ] 735 | 736 | [[package]] 737 | name = "num-bigint" 738 | version = "0.2.2" 739 | source = "registry+https://github.com/rust-lang/crates.io-index" 740 | dependencies = [ 741 | "num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 742 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 743 | ] 744 | 745 | [[package]] 746 | name = "num-complex" 747 | version = "0.2.1" 748 | source = "registry+https://github.com/rust-lang/crates.io-index" 749 | dependencies = [ 750 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 751 | ] 752 | 753 | [[package]] 754 | name = "num-integer" 755 | version = "0.1.39" 756 | source = "registry+https://github.com/rust-lang/crates.io-index" 757 | dependencies = [ 758 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 759 | ] 760 | 761 | [[package]] 762 | name = "num-iter" 763 | version = "0.1.37" 764 | source = "registry+https://github.com/rust-lang/crates.io-index" 765 | dependencies = [ 766 | "num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 767 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 768 | ] 769 | 770 | [[package]] 771 | name = "num-rational" 772 | version = "0.2.1" 773 | source = "registry+https://github.com/rust-lang/crates.io-index" 774 | dependencies = [ 775 | "num-bigint 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 776 | "num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 777 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 778 | ] 779 | 780 | [[package]] 781 | name = "num-traits" 782 | version = "0.2.6" 783 | source = "registry+https://github.com/rust-lang/crates.io-index" 784 | 785 | [[package]] 786 | name = "num_cpus" 787 | version = "1.9.0" 788 | source = "registry+https://github.com/rust-lang/crates.io-index" 789 | dependencies = [ 790 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 791 | ] 792 | 793 | [[package]] 794 | name = "once_cell" 795 | version = "0.1.7" 796 | source = "registry+https://github.com/rust-lang/crates.io-index" 797 | dependencies = [ 798 | "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", 799 | ] 800 | 801 | [[package]] 802 | name = "opaque-debug" 803 | version = "0.2.2" 804 | source = "registry+https://github.com/rust-lang/crates.io-index" 805 | 806 | [[package]] 807 | name = "owning_ref" 808 | version = "0.4.0" 809 | source = "registry+https://github.com/rust-lang/crates.io-index" 810 | dependencies = [ 811 | "stable_deref_trait 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 812 | ] 813 | 814 | [[package]] 815 | name = "packed_simd" 816 | version = "0.3.1" 817 | source = "registry+https://github.com/rust-lang/crates.io-index" 818 | dependencies = [ 819 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 820 | ] 821 | 822 | [[package]] 823 | name = "parking_lot" 824 | version = "0.7.1" 825 | source = "registry+https://github.com/rust-lang/crates.io-index" 826 | dependencies = [ 827 | "lock_api 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 828 | "parking_lot_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 829 | ] 830 | 831 | [[package]] 832 | name = "parking_lot_core" 833 | version = "0.4.0" 834 | source = "registry+https://github.com/rust-lang/crates.io-index" 835 | dependencies = [ 836 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 837 | "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 838 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 839 | "smallvec 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)", 840 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 841 | ] 842 | 843 | [[package]] 844 | name = "pbkdf2" 845 | version = "0.3.0" 846 | source = "registry+https://github.com/rust-lang/crates.io-index" 847 | dependencies = [ 848 | "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 849 | "crypto-mac 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 850 | "rayon 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 851 | ] 852 | 853 | [[package]] 854 | name = "pin-utils" 855 | version = "0.1.0-alpha.4" 856 | source = "registry+https://github.com/rust-lang/crates.io-index" 857 | 858 | [[package]] 859 | name = "proc-macro-hack" 860 | version = "0.4.1" 861 | source = "registry+https://github.com/rust-lang/crates.io-index" 862 | dependencies = [ 863 | "proc-macro-hack-impl 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 864 | ] 865 | 866 | [[package]] 867 | name = "proc-macro-hack" 868 | version = "0.5.4" 869 | source = "registry+https://github.com/rust-lang/crates.io-index" 870 | dependencies = [ 871 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 872 | "quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", 873 | "syn 0.15.26 (registry+https://github.com/rust-lang/crates.io-index)", 874 | ] 875 | 876 | [[package]] 877 | name = "proc-macro-hack-impl" 878 | version = "0.4.1" 879 | source = "registry+https://github.com/rust-lang/crates.io-index" 880 | 881 | [[package]] 882 | name = "proc-macro-nested" 883 | version = "0.1.2" 884 | source = "registry+https://github.com/rust-lang/crates.io-index" 885 | 886 | [[package]] 887 | name = "proc-macro2" 888 | version = "0.4.26" 889 | source = "registry+https://github.com/rust-lang/crates.io-index" 890 | dependencies = [ 891 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 892 | ] 893 | 894 | [[package]] 895 | name = "protobuf" 896 | version = "2.3.0" 897 | source = "registry+https://github.com/rust-lang/crates.io-index" 898 | dependencies = [ 899 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 900 | ] 901 | 902 | [[package]] 903 | name = "protobuf-codegen" 904 | version = "2.3.0" 905 | source = "registry+https://github.com/rust-lang/crates.io-index" 906 | dependencies = [ 907 | "protobuf 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 908 | ] 909 | 910 | [[package]] 911 | name = "protoc" 912 | version = "2.3.0" 913 | source = "registry+https://github.com/rust-lang/crates.io-index" 914 | dependencies = [ 915 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 916 | ] 917 | 918 | [[package]] 919 | name = "protoc-rust" 920 | version = "2.3.0" 921 | source = "registry+https://github.com/rust-lang/crates.io-index" 922 | dependencies = [ 923 | "protobuf 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 924 | "protobuf-codegen 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 925 | "protoc 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 926 | "tempfile 3.0.5 (registry+https://github.com/rust-lang/crates.io-index)", 927 | ] 928 | 929 | [[package]] 930 | name = "protoc-rust-grpc" 931 | version = "0.6.1" 932 | source = "registry+https://github.com/rust-lang/crates.io-index" 933 | dependencies = [ 934 | "grpc-compiler 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", 935 | "protobuf 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 936 | "protoc 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 937 | "protoc-rust 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 938 | "tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", 939 | ] 940 | 941 | [[package]] 942 | name = "pyo3" 943 | version = "0.6.0-alpha.1" 944 | source = "registry+https://github.com/rust-lang/crates.io-index" 945 | dependencies = [ 946 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 947 | "mashup 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 948 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 949 | "pyo3cls 0.6.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)", 950 | "regex 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 951 | "spin 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)", 952 | "version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 953 | ] 954 | 955 | [[package]] 956 | name = "pyo3-derive-backend" 957 | version = "0.6.0-alpha.1" 958 | source = "registry+https://github.com/rust-lang/crates.io-index" 959 | dependencies = [ 960 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 961 | "quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", 962 | "syn 0.15.26 (registry+https://github.com/rust-lang/crates.io-index)", 963 | ] 964 | 965 | [[package]] 966 | name = "pyo3cls" 967 | version = "0.6.0-alpha.1" 968 | source = "registry+https://github.com/rust-lang/crates.io-index" 969 | dependencies = [ 970 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 971 | "pyo3-derive-backend 0.6.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)", 972 | "quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", 973 | "syn 0.15.26 (registry+https://github.com/rust-lang/crates.io-index)", 974 | ] 975 | 976 | [[package]] 977 | name = "query_interface" 978 | version = "0.3.5" 979 | source = "registry+https://github.com/rust-lang/crates.io-index" 980 | 981 | [[package]] 982 | name = "quote" 983 | version = "0.6.11" 984 | source = "registry+https://github.com/rust-lang/crates.io-index" 985 | dependencies = [ 986 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 987 | ] 988 | 989 | [[package]] 990 | name = "rand" 991 | version = "0.4.6" 992 | source = "registry+https://github.com/rust-lang/crates.io-index" 993 | dependencies = [ 994 | "fuchsia-cprng 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 995 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 996 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 997 | "rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 998 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 999 | ] 1000 | 1001 | [[package]] 1002 | name = "rand" 1003 | version = "0.5.6" 1004 | source = "registry+https://github.com/rust-lang/crates.io-index" 1005 | dependencies = [ 1006 | "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 1007 | "fuchsia-cprng 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 1008 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1009 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 1010 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 1011 | ] 1012 | 1013 | [[package]] 1014 | name = "rand" 1015 | version = "0.6.5" 1016 | source = "registry+https://github.com/rust-lang/crates.io-index" 1017 | dependencies = [ 1018 | "autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 1019 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1020 | "packed_simd 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 1021 | "rand_chacha 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1022 | "rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1023 | "rand_hc 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 1024 | "rand_isaac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1025 | "rand_jitter 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1026 | "rand_os 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 1027 | "rand_pcg 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1028 | "rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1029 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 1030 | ] 1031 | 1032 | [[package]] 1033 | name = "rand_chacha" 1034 | version = "0.1.1" 1035 | source = "registry+https://github.com/rust-lang/crates.io-index" 1036 | dependencies = [ 1037 | "autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 1038 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 1039 | ] 1040 | 1041 | [[package]] 1042 | name = "rand_core" 1043 | version = "0.3.1" 1044 | source = "registry+https://github.com/rust-lang/crates.io-index" 1045 | dependencies = [ 1046 | "rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1047 | ] 1048 | 1049 | [[package]] 1050 | name = "rand_core" 1051 | version = "0.4.0" 1052 | source = "registry+https://github.com/rust-lang/crates.io-index" 1053 | 1054 | [[package]] 1055 | name = "rand_hc" 1056 | version = "0.1.0" 1057 | source = "registry+https://github.com/rust-lang/crates.io-index" 1058 | dependencies = [ 1059 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 1060 | ] 1061 | 1062 | [[package]] 1063 | name = "rand_isaac" 1064 | version = "0.1.1" 1065 | source = "registry+https://github.com/rust-lang/crates.io-index" 1066 | dependencies = [ 1067 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 1068 | ] 1069 | 1070 | [[package]] 1071 | name = "rand_jitter" 1072 | version = "0.1.1" 1073 | source = "registry+https://github.com/rust-lang/crates.io-index" 1074 | dependencies = [ 1075 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1076 | "rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1077 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 1078 | ] 1079 | 1080 | [[package]] 1081 | name = "rand_os" 1082 | version = "0.1.2" 1083 | source = "registry+https://github.com/rust-lang/crates.io-index" 1084 | dependencies = [ 1085 | "cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 1086 | "fuchsia-cprng 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 1087 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1088 | "rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1089 | "rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1090 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 1091 | ] 1092 | 1093 | [[package]] 1094 | name = "rand_pcg" 1095 | version = "0.1.1" 1096 | source = "registry+https://github.com/rust-lang/crates.io-index" 1097 | dependencies = [ 1098 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 1099 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 1100 | ] 1101 | 1102 | [[package]] 1103 | name = "rand_xorshift" 1104 | version = "0.1.1" 1105 | source = "registry+https://github.com/rust-lang/crates.io-index" 1106 | dependencies = [ 1107 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 1108 | ] 1109 | 1110 | [[package]] 1111 | name = "rayon" 1112 | version = "1.0.3" 1113 | source = "registry+https://github.com/rust-lang/crates.io-index" 1114 | dependencies = [ 1115 | "crossbeam-deque 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 1116 | "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 1117 | "rayon-core 1.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 1118 | ] 1119 | 1120 | [[package]] 1121 | name = "rayon-core" 1122 | version = "1.4.1" 1123 | source = "registry+https://github.com/rust-lang/crates.io-index" 1124 | dependencies = [ 1125 | "crossbeam-deque 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 1126 | "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 1127 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1128 | "num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 1129 | ] 1130 | 1131 | [[package]] 1132 | name = "rdrand" 1133 | version = "0.4.0" 1134 | source = "registry+https://github.com/rust-lang/crates.io-index" 1135 | dependencies = [ 1136 | "rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 1137 | ] 1138 | 1139 | [[package]] 1140 | name = "redox_syscall" 1141 | version = "0.1.51" 1142 | source = "registry+https://github.com/rust-lang/crates.io-index" 1143 | 1144 | [[package]] 1145 | name = "regex" 1146 | version = "1.1.0" 1147 | source = "registry+https://github.com/rust-lang/crates.io-index" 1148 | dependencies = [ 1149 | "aho-corasick 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)", 1150 | "memchr 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 1151 | "regex-syntax 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 1152 | "thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 1153 | "utf8-ranges 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 1154 | ] 1155 | 1156 | [[package]] 1157 | name = "regex-syntax" 1158 | version = "0.6.5" 1159 | source = "registry+https://github.com/rust-lang/crates.io-index" 1160 | dependencies = [ 1161 | "ucd-util 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 1162 | ] 1163 | 1164 | [[package]] 1165 | name = "remove_dir_all" 1166 | version = "0.5.1" 1167 | source = "registry+https://github.com/rust-lang/crates.io-index" 1168 | dependencies = [ 1169 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 1170 | ] 1171 | 1172 | [[package]] 1173 | name = "rustc-demangle" 1174 | version = "0.1.13" 1175 | source = "registry+https://github.com/rust-lang/crates.io-index" 1176 | 1177 | [[package]] 1178 | name = "rustc_version" 1179 | version = "0.2.3" 1180 | source = "registry+https://github.com/rust-lang/crates.io-index" 1181 | dependencies = [ 1182 | "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 1183 | ] 1184 | 1185 | [[package]] 1186 | name = "safemem" 1187 | version = "0.3.0" 1188 | source = "registry+https://github.com/rust-lang/crates.io-index" 1189 | 1190 | [[package]] 1191 | name = "scoped-tls" 1192 | version = "0.1.2" 1193 | source = "registry+https://github.com/rust-lang/crates.io-index" 1194 | 1195 | [[package]] 1196 | name = "scopeguard" 1197 | version = "0.3.3" 1198 | source = "registry+https://github.com/rust-lang/crates.io-index" 1199 | 1200 | [[package]] 1201 | name = "semver" 1202 | version = "0.9.0" 1203 | source = "registry+https://github.com/rust-lang/crates.io-index" 1204 | dependencies = [ 1205 | "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 1206 | ] 1207 | 1208 | [[package]] 1209 | name = "semver-parser" 1210 | version = "0.7.0" 1211 | source = "registry+https://github.com/rust-lang/crates.io-index" 1212 | 1213 | [[package]] 1214 | name = "sha2" 1215 | version = "0.8.0" 1216 | source = "registry+https://github.com/rust-lang/crates.io-index" 1217 | dependencies = [ 1218 | "block-buffer 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 1219 | "digest 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 1220 | "fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 1221 | "opaque-debug 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 1222 | ] 1223 | 1224 | [[package]] 1225 | name = "simple_asn1" 1226 | version = "0.3.0" 1227 | source = "registry+https://github.com/rust-lang/crates.io-index" 1228 | dependencies = [ 1229 | "chrono 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 1230 | "num-bigint 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 1231 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 1232 | ] 1233 | 1234 | [[package]] 1235 | name = "slab" 1236 | version = "0.3.0" 1237 | source = "registry+https://github.com/rust-lang/crates.io-index" 1238 | 1239 | [[package]] 1240 | name = "slab" 1241 | version = "0.4.2" 1242 | source = "registry+https://github.com/rust-lang/crates.io-index" 1243 | 1244 | [[package]] 1245 | name = "smallvec" 1246 | version = "0.6.8" 1247 | source = "registry+https://github.com/rust-lang/crates.io-index" 1248 | dependencies = [ 1249 | "unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 1250 | ] 1251 | 1252 | [[package]] 1253 | name = "spin" 1254 | version = "0.4.10" 1255 | source = "registry+https://github.com/rust-lang/crates.io-index" 1256 | 1257 | [[package]] 1258 | name = "stable_deref_trait" 1259 | version = "1.1.1" 1260 | source = "registry+https://github.com/rust-lang/crates.io-index" 1261 | 1262 | [[package]] 1263 | name = "subtle" 1264 | version = "1.0.0" 1265 | source = "registry+https://github.com/rust-lang/crates.io-index" 1266 | 1267 | [[package]] 1268 | name = "subtle" 1269 | version = "2.0.0" 1270 | source = "registry+https://github.com/rust-lang/crates.io-index" 1271 | 1272 | [[package]] 1273 | name = "syn" 1274 | version = "0.15.26" 1275 | source = "registry+https://github.com/rust-lang/crates.io-index" 1276 | dependencies = [ 1277 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 1278 | "quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", 1279 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 1280 | ] 1281 | 1282 | [[package]] 1283 | name = "synstructure" 1284 | version = "0.10.1" 1285 | source = "registry+https://github.com/rust-lang/crates.io-index" 1286 | dependencies = [ 1287 | "proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)", 1288 | "quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", 1289 | "syn 0.15.26 (registry+https://github.com/rust-lang/crates.io-index)", 1290 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 1291 | ] 1292 | 1293 | [[package]] 1294 | name = "tempdir" 1295 | version = "0.3.7" 1296 | source = "registry+https://github.com/rust-lang/crates.io-index" 1297 | dependencies = [ 1298 | "rand 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 1299 | "remove_dir_all 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 1300 | ] 1301 | 1302 | [[package]] 1303 | name = "tempfile" 1304 | version = "3.0.5" 1305 | source = "registry+https://github.com/rust-lang/crates.io-index" 1306 | dependencies = [ 1307 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 1308 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1309 | "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 1310 | "redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)", 1311 | "remove_dir_all 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 1312 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 1313 | ] 1314 | 1315 | [[package]] 1316 | name = "thread_local" 1317 | version = "0.3.6" 1318 | source = "registry+https://github.com/rust-lang/crates.io-index" 1319 | dependencies = [ 1320 | "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 1321 | ] 1322 | 1323 | [[package]] 1324 | name = "time" 1325 | version = "0.1.42" 1326 | source = "registry+https://github.com/rust-lang/crates.io-index" 1327 | dependencies = [ 1328 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1329 | "redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)", 1330 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 1331 | ] 1332 | 1333 | [[package]] 1334 | name = "tls-api" 1335 | version = "0.1.20" 1336 | source = "registry+https://github.com/rust-lang/crates.io-index" 1337 | dependencies = [ 1338 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 1339 | ] 1340 | 1341 | [[package]] 1342 | name = "tls-api-stub" 1343 | version = "0.1.20" 1344 | source = "registry+https://github.com/rust-lang/crates.io-index" 1345 | dependencies = [ 1346 | "tls-api 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 1347 | "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 1348 | ] 1349 | 1350 | [[package]] 1351 | name = "tokio" 1352 | version = "0.1.15" 1353 | source = "registry+https://github.com/rust-lang/crates.io-index" 1354 | dependencies = [ 1355 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 1356 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1357 | "mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)", 1358 | "num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 1359 | "tokio-async-await 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 1360 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1361 | "tokio-current-thread 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 1362 | "tokio-executor 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 1363 | "tokio-fs 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 1364 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1365 | "tokio-reactor 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 1366 | "tokio-sync 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 1367 | "tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 1368 | "tokio-threadpool 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1369 | "tokio-timer 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", 1370 | "tokio-udp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 1371 | "tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 1372 | ] 1373 | 1374 | [[package]] 1375 | name = "tokio-async-await" 1376 | version = "0.1.5" 1377 | source = "registry+https://github.com/rust-lang/crates.io-index" 1378 | dependencies = [ 1379 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1380 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1381 | ] 1382 | 1383 | [[package]] 1384 | name = "tokio-codec" 1385 | version = "0.1.1" 1386 | source = "registry+https://github.com/rust-lang/crates.io-index" 1387 | dependencies = [ 1388 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 1389 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1390 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1391 | ] 1392 | 1393 | [[package]] 1394 | name = "tokio-core" 1395 | version = "0.1.17" 1396 | source = "registry+https://github.com/rust-lang/crates.io-index" 1397 | dependencies = [ 1398 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 1399 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1400 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 1401 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 1402 | "mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)", 1403 | "scoped-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 1404 | "tokio 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", 1405 | "tokio-executor 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 1406 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1407 | "tokio-reactor 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 1408 | "tokio-timer 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", 1409 | ] 1410 | 1411 | [[package]] 1412 | name = "tokio-current-thread" 1413 | version = "0.1.4" 1414 | source = "registry+https://github.com/rust-lang/crates.io-index" 1415 | dependencies = [ 1416 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1417 | "tokio-executor 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 1418 | ] 1419 | 1420 | [[package]] 1421 | name = "tokio-executor" 1422 | version = "0.1.6" 1423 | source = "registry+https://github.com/rust-lang/crates.io-index" 1424 | dependencies = [ 1425 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 1426 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1427 | ] 1428 | 1429 | [[package]] 1430 | name = "tokio-fs" 1431 | version = "0.1.5" 1432 | source = "registry+https://github.com/rust-lang/crates.io-index" 1433 | dependencies = [ 1434 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1435 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1436 | "tokio-threadpool 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1437 | ] 1438 | 1439 | [[package]] 1440 | name = "tokio-io" 1441 | version = "0.1.11" 1442 | source = "registry+https://github.com/rust-lang/crates.io-index" 1443 | dependencies = [ 1444 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 1445 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1446 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 1447 | ] 1448 | 1449 | [[package]] 1450 | name = "tokio-reactor" 1451 | version = "0.1.8" 1452 | source = "registry+https://github.com/rust-lang/crates.io-index" 1453 | dependencies = [ 1454 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 1455 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1456 | "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 1457 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 1458 | "mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)", 1459 | "num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 1460 | "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", 1461 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 1462 | "tokio-executor 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 1463 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1464 | ] 1465 | 1466 | [[package]] 1467 | name = "tokio-sync" 1468 | version = "0.1.0" 1469 | source = "registry+https://github.com/rust-lang/crates.io-index" 1470 | dependencies = [ 1471 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1472 | ] 1473 | 1474 | [[package]] 1475 | name = "tokio-tcp" 1476 | version = "0.1.3" 1477 | source = "registry+https://github.com/rust-lang/crates.io-index" 1478 | dependencies = [ 1479 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 1480 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1481 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 1482 | "mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)", 1483 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1484 | "tokio-reactor 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 1485 | ] 1486 | 1487 | [[package]] 1488 | name = "tokio-threadpool" 1489 | version = "0.1.11" 1490 | source = "registry+https://github.com/rust-lang/crates.io-index" 1491 | dependencies = [ 1492 | "crossbeam 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 1493 | "crossbeam-channel 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 1494 | "crossbeam-deque 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)", 1495 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 1496 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1497 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 1498 | "num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 1499 | "rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 1500 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 1501 | "tokio-executor 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 1502 | ] 1503 | 1504 | [[package]] 1505 | name = "tokio-timer" 1506 | version = "0.1.2" 1507 | source = "registry+https://github.com/rust-lang/crates.io-index" 1508 | dependencies = [ 1509 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1510 | "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 1511 | ] 1512 | 1513 | [[package]] 1514 | name = "tokio-timer" 1515 | version = "0.2.9" 1516 | source = "registry+https://github.com/rust-lang/crates.io-index" 1517 | dependencies = [ 1518 | "crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 1519 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1520 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 1521 | "tokio-executor 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 1522 | ] 1523 | 1524 | [[package]] 1525 | name = "tokio-tls-api" 1526 | version = "0.1.20" 1527 | source = "registry+https://github.com/rust-lang/crates.io-index" 1528 | dependencies = [ 1529 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1530 | "tls-api 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 1531 | "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 1532 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1533 | ] 1534 | 1535 | [[package]] 1536 | name = "tokio-udp" 1537 | version = "0.1.3" 1538 | source = "registry+https://github.com/rust-lang/crates.io-index" 1539 | dependencies = [ 1540 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 1541 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1542 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 1543 | "mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)", 1544 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1545 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1546 | "tokio-reactor 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 1547 | ] 1548 | 1549 | [[package]] 1550 | name = "tokio-uds" 1551 | version = "0.1.7" 1552 | source = "registry+https://github.com/rust-lang/crates.io-index" 1553 | dependencies = [ 1554 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 1555 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1556 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 1557 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1558 | "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 1559 | "mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)", 1560 | "mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)", 1561 | "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 1562 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1563 | ] 1564 | 1565 | [[package]] 1566 | name = "tokio-uds" 1567 | version = "0.2.5" 1568 | source = "registry+https://github.com/rust-lang/crates.io-index" 1569 | dependencies = [ 1570 | "bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)", 1571 | "futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 1572 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 1573 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1574 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 1575 | "mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)", 1576 | "mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)", 1577 | "tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1578 | "tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 1579 | "tokio-reactor 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 1580 | ] 1581 | 1582 | [[package]] 1583 | name = "try_from" 1584 | version = "0.3.2" 1585 | source = "registry+https://github.com/rust-lang/crates.io-index" 1586 | dependencies = [ 1587 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 1588 | ] 1589 | 1590 | [[package]] 1591 | name = "typenum" 1592 | version = "1.10.0" 1593 | source = "registry+https://github.com/rust-lang/crates.io-index" 1594 | 1595 | [[package]] 1596 | name = "ucd-util" 1597 | version = "0.1.3" 1598 | source = "registry+https://github.com/rust-lang/crates.io-index" 1599 | 1600 | [[package]] 1601 | name = "unicode-xid" 1602 | version = "0.1.0" 1603 | source = "registry+https://github.com/rust-lang/crates.io-index" 1604 | 1605 | [[package]] 1606 | name = "unix_socket" 1607 | version = "0.5.0" 1608 | source = "registry+https://github.com/rust-lang/crates.io-index" 1609 | dependencies = [ 1610 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 1611 | "libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)", 1612 | ] 1613 | 1614 | [[package]] 1615 | name = "unreachable" 1616 | version = "1.0.0" 1617 | source = "registry+https://github.com/rust-lang/crates.io-index" 1618 | dependencies = [ 1619 | "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 1620 | ] 1621 | 1622 | [[package]] 1623 | name = "utf8-ranges" 1624 | version = "1.0.2" 1625 | source = "registry+https://github.com/rust-lang/crates.io-index" 1626 | 1627 | [[package]] 1628 | name = "version_check" 1629 | version = "0.1.5" 1630 | source = "registry+https://github.com/rust-lang/crates.io-index" 1631 | 1632 | [[package]] 1633 | name = "void" 1634 | version = "1.0.2" 1635 | source = "registry+https://github.com/rust-lang/crates.io-index" 1636 | 1637 | [[package]] 1638 | name = "winapi" 1639 | version = "0.2.8" 1640 | source = "registry+https://github.com/rust-lang/crates.io-index" 1641 | 1642 | [[package]] 1643 | name = "winapi" 1644 | version = "0.3.6" 1645 | source = "registry+https://github.com/rust-lang/crates.io-index" 1646 | dependencies = [ 1647 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1648 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1649 | ] 1650 | 1651 | [[package]] 1652 | name = "winapi-build" 1653 | version = "0.1.1" 1654 | source = "registry+https://github.com/rust-lang/crates.io-index" 1655 | 1656 | [[package]] 1657 | name = "winapi-i686-pc-windows-gnu" 1658 | version = "0.4.0" 1659 | source = "registry+https://github.com/rust-lang/crates.io-index" 1660 | 1661 | [[package]] 1662 | name = "winapi-x86_64-pc-windows-gnu" 1663 | version = "0.4.0" 1664 | source = "registry+https://github.com/rust-lang/crates.io-index" 1665 | 1666 | [[package]] 1667 | name = "ws2_32-sys" 1668 | version = "0.2.1" 1669 | source = "registry+https://github.com/rust-lang/crates.io-index" 1670 | dependencies = [ 1671 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 1672 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1673 | ] 1674 | 1675 | [metadata] 1676 | "checksum aho-corasick 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)" = "1e9a933f4e58658d7b12defcf96dc5c720f20832deebe3e0a19efd3b6aaeeb9e" 1677 | "checksum arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = "92c7fb76bc8826a8b33b4ee5bb07a247a81e76764ab4d55e8f73e3a4d8808c71" 1678 | "checksum autocfg 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a6d640bee2da49f60a4068a7fae53acde8982514ab7bae8b8cea9e88cbcfd799" 1679 | "checksum backtrace 0.3.13 (registry+https://github.com/rust-lang/crates.io-index)" = "b5b493b66e03090ebc4343eb02f94ff944e0cbc9ac6571491d170ba026741eb5" 1680 | "checksum backtrace-sys 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)" = "797c830ac25ccc92a7f8a7b9862bde440715531514594a6154e3d4a54dd769b6" 1681 | "checksum base64 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)" = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" 1682 | "checksum bip39 0.6.0-beta.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7059804e226b3ac116519a252d7f5fb985a5ccc0e93255e036a5f7e7283323f4" 1683 | "checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12" 1684 | "checksum block-buffer 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "509de513cca6d92b6aacf9c61acfe7eaa160837323a81068d690cc1f8e5740da" 1685 | "checksum block-padding 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d75255892aeb580d3c566f213a2b6fdc1c66667839f45719ee1d30ebf2aea591" 1686 | "checksum byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" 1687 | "checksum byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a019b10a2a7cdeb292db131fc8113e57ea2a908f6e7894b0c3c671893b65dbeb" 1688 | "checksum bytes 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)" = "40ade3d27603c2cb345eb0912aec461a6dec7e06a4ae48589904e808335c7afa" 1689 | "checksum cc 1.0.28 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4a8b715cb4597106ea87c7c84b2f1d452c7492033765df7f32651e66fcf749" 1690 | "checksum cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "082bb9b28e00d3c9d39cc03e64ce4cea0f1bb9b3fde493f0cbc008472d22bdf4" 1691 | "checksum chrono 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "45912881121cb26fad7c38c17ba7daa18764771836b34fab7d3fbd93ed633878" 1692 | "checksum clear_on_drop 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "97276801e127ffb46b66ce23f35cc96bd454fa311294bced4bbace7baa8b1d17" 1693 | "checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" 1694 | "checksum crossbeam 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ad4c7ea749d9fb09e23c5cb17e3b70650860553a0e2744e38446b1803bf7db94" 1695 | "checksum crossbeam-channel 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "0f0ed1a4de2235cabda8558ff5840bffb97fcb64c97827f354a451307df5f72b" 1696 | "checksum crossbeam-deque 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f739f8c5363aca78cfb059edf753d8f0d36908c348f3d8d1503f03d8b75d9cf3" 1697 | "checksum crossbeam-deque 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)" = "05e44b8cf3e1a625844d1750e1f7820da46044ff6d28f4d43e455ba3e5bb2c13" 1698 | "checksum crossbeam-epoch 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "927121f5407de9956180ff5e936fe3cf4324279280001cd56b669d28ee7e9150" 1699 | "checksum crossbeam-epoch 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "04c9e3102cc2d69cd681412141b390abd55a362afc1540965dad0ad4d34280b4" 1700 | "checksum crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2760899e32a1d58d5abb31129f8fae5de75220bc2176e77ff7c627ae45c918d9" 1701 | "checksum crossbeam-utils 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f8306fcef4a7b563b76b7dd949ca48f52bc1141aa067d2ea09565f3e2652aa5c" 1702 | "checksum crypto-mac 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4434400df11d95d556bac068ddfedd482915eb18fe8bea89bc80b6e4b1c179e5" 1703 | "checksum curve25519-dalek 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "dae47cc3529cdab597dbc8b606e565707209b506e55848f3c15679214a56c956" 1704 | "checksum derive_more 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3f57d78cf3bd45270dad4e70c21ec77a960b36c7a841ff9db76aaa775a8fb871" 1705 | "checksum digest 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "05f47366984d3ad862010e22c7ce81a7dbcaebbdfb37241a620f8b6596ee135c" 1706 | "checksum ed25519-dalek 1.0.0-pre.1 (registry+https://github.com/rust-lang/crates.io-index)" = "81956bcf7ef761fb4e1d88de3fa181358a0d26cbcb9755b587a08f9119824b86" 1707 | "checksum either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3be565ca5c557d7f59e7cfcf1844f9e3033650c929c6566f511e8005f205c1d0" 1708 | "checksum failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "795bd83d3abeb9220f257e597aa0080a508b27533824adf336529648f6abf7e2" 1709 | "checksum failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ea1063915fd7ef4309e222a5a07cf9c319fb9c7836b1f89b85458672dbb127e1" 1710 | "checksum fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" 1711 | "checksum fuchsia-cprng 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "81f7f8eb465745ea9b02e2704612a9946a59fa40572086c6fd49d6ddcf30bf31" 1712 | "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 1713 | "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 1714 | "checksum futures 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)" = "49e7653e374fe0d0c12de4250f0bdb60680b8c80eed558c5c7538eec9c89e21b" 1715 | "checksum futures-channel-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)" = "19a90ba09f9743470dac8daf6b9b1dd918edac032e3d384e0da56525c7c50ff1" 1716 | "checksum futures-core-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)" = "20c083b896a44aa7acfc911133cdb98dd31b7febc692b9a51c5f4e9e70feed36" 1717 | "checksum futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" 1718 | "checksum futures-executor-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)" = "5bf8777754faecb43584ea1927a0776c94d5d88a8fc68fc5c0f351f750c58922" 1719 | "checksum futures-io-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)" = "9b70e79314b3d448c142f13719ad4dba60b445f894b1656aa877dbcb28815795" 1720 | "checksum futures-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)" = "f75490e3af40ae04948a939b044c7f6bc0ca2599cc83e4db5de68e43cf9451f3" 1721 | "checksum futures-select-macro-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)" = "b5e90a1190c77bd279401cd247f1849ce9f4c74b37998088c11b1b038c5e4e3f" 1722 | "checksum futures-sink-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)" = "955b7c0666e2fb468443007f2c0a1779e398f23a6bf8b0398033904cf6a1bc3f" 1723 | "checksum futures-util-preview 0.3.0-alpha.12 (registry+https://github.com/rust-lang/crates.io-index)" = "d7d3d7a6f5a58d2aa9a26f76fdd581f73505f573bc63269e478daef28a0b23f8" 1724 | "checksum generic-array 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3c0f28c2f5bfb5960175af447a2da7c18900693738343dc896ffbcabd9839592" 1725 | "checksum glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb" 1726 | "checksum grpc 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8e530ef7894a104a1c8525ce68787b3491efa2098ce5e5454e8324ea78893548" 1727 | "checksum grpc-compiler 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b07f140d998d8940880e464f3fd291052618199432e91e59ae5c5075c0c8a40c" 1728 | "checksum hashbrown 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "3bae29b6653b3412c2e71e9d486db9f9df5d701941d86683005efb9f2d28e3da" 1729 | "checksum hedera 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4645bcf4a1f883e209b2868eb75e662716d4b8071d55980d0247315767fda883" 1730 | "checksum hex 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "805026a5d0141ffc30abb3be3173848ad46a1b1664fe632428479619a3644d77" 1731 | "checksum hmac 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f127a908633569f208325f86f71255d3363c79721d7f9fe31cd5569908819771" 1732 | "checksum httpbis 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7689cfa896b2a71da4f16206af167542b75d242b6906313e53857972a92d5614" 1733 | "checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08" 1734 | "checksum itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5b8467d9c1cebe26feb08c640139247fac215782d35371ade9a2136ed6085358" 1735 | "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 1736 | "checksum lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a374c89b9db55895453a74c1e38861d9deec0b01b405a82516e9d5de4820dea1" 1737 | "checksum lazycell 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b294d6fa9ee409a054354afc4352b0b9ef7ca222c69b8812cbea9e7d2bf3783f" 1738 | "checksum libc 0.2.48 (registry+https://github.com/rust-lang/crates.io-index)" = "e962c7641008ac010fa60a7dfdc1712449f29c44ef2d4702394aea943ee75047" 1739 | "checksum lock_api 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "62ebf1391f6acad60e5c8b43706dde4582df75c06698ab44511d15016bc2442c" 1740 | "checksum log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" 1741 | "checksum log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c84ec4b527950aa83a329754b01dbe3f58361d1c5efacd1f6d68c494d08a17c6" 1742 | "checksum mashup 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "f2d82b34c7fb11bb41719465c060589e291d505ca4735ea30016a91f6fc79c3b" 1743 | "checksum mashup-impl 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "aa607bfb674b4efb310512527d64266b065de3f894fc52f84efcbf7eaa5965fb" 1744 | "checksum memchr 2.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "e1dd4eaac298c32ce07eb6ed9242eda7d82955b9170b7d6db59b2e02cc63fcb8" 1745 | "checksum memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0f9dc261e2b62d7a622bf416ea3c5245cdd5d9a7fcc428c0d06804dfce1775b3" 1746 | "checksum mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)" = "71646331f2619b1026cc302f87a2b8b648d5c6dd6937846a16cc8ce0f347f432" 1747 | "checksum mio-uds 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)" = "966257a94e196b11bb43aca423754d87429960a768de9414f3691d6957abf125" 1748 | "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 1749 | "checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" 1750 | "checksum nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "2f9667ddcc6cc8a43afc9b7917599d7216aa09c463919ea32c59ed6cac8bc945" 1751 | "checksum num 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cf4825417e1e1406b3782a8ce92f4d53f26ec055e3622e1881ca8e9f5f9e08db" 1752 | "checksum num-bigint 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "57450397855d951f1a41305e54851b1a7b8f5d2e349543a02a2effe25459f718" 1753 | "checksum num-complex 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "107b9be86cd2481930688277b675b0114578227f034674726605b8a482d8baf8" 1754 | "checksum num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "e83d528d2677f0518c570baf2b7abdcf0cd2d248860b68507bdcb3e91d4c0cea" 1755 | "checksum num-iter 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "af3fdbbc3291a5464dc57b03860ec37ca6bf915ed6ee385e7c6c052c422b2124" 1756 | "checksum num-rational 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4e96f040177bb3da242b5b1ecf3f54b5d5af3efbbfb18608977a5d2767b22f10" 1757 | "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1" 1758 | "checksum num_cpus 1.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5a69d464bdc213aaaff628444e99578ede64e9c854025aa43b9796530afa9238" 1759 | "checksum once_cell 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "53075ac5dbd2798cfbcf9f710f2737de031d8076c192d8fe66fb23f639ccbdf4" 1760 | "checksum opaque-debug 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "93f5bb2e8e8dec81642920ccff6b61f1eb94fa3020c5a325c9851ff604152409" 1761 | "checksum owning_ref 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "49a4b8ea2179e6a2e27411d3bca09ca6dd630821cf6894c6c7c8467a8ee7ef13" 1762 | "checksum packed_simd 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "25d36de864f7218ec5633572a800109bbe5a1cc8d9d95a967f3daf93ea7e6ddc" 1763 | "checksum parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ab41b4aed082705d1056416ae4468b6ea99d52599ecf3169b00088d43113e337" 1764 | "checksum parking_lot_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "94c8c7923936b28d546dfd14d4472eaf34c99b14e1c973a32b3e6d4eb04298c9" 1765 | "checksum pbkdf2 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "006c038a43a45995a9670da19e67600114740e8511d4333bf97a56e66a7542d9" 1766 | "checksum pin-utils 0.1.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)" = "5894c618ce612a3fa23881b152b608bafb8c56cfc22f434a3ba3120b40f7b587" 1767 | "checksum proc-macro-hack 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2c725b36c99df7af7bf9324e9c999b9e37d92c8f8caf106d82e1d7953218d2d8" 1768 | "checksum proc-macro-hack 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)" = "3e90aa19cd73dedc2d0e1e8407473f073d735fef0ab521438de6da8ee449ab66" 1769 | "checksum proc-macro-hack-impl 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2b753ad9ed99dd8efeaa7d2fb8453c8f6bc3e54b97966d35f1bc77ca6865254a" 1770 | "checksum proc-macro-nested 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e9968e025d6368d1273a93bc23051e30dbf5482475e716d7385d8ec8fbd5b5b6" 1771 | "checksum proc-macro2 0.4.26 (registry+https://github.com/rust-lang/crates.io-index)" = "38fddd23d98b2144d197c0eca5705632d4fe2667d14a6be5df8934f8d74f1978" 1772 | "checksum protobuf 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d82d117bc7565ce6be0150159251c9b1eeec7b129f5a2aa86e10acb5970de1cb" 1773 | "checksum protobuf-codegen 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5f25bf531a031dd128d4e7285401caed1038d4f732b56bb1d99f02bdad4ad125" 1774 | "checksum protoc 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6762f5a05f41eb6252606fc6553262a025e72c51a0227717990998fd9c2ac81" 1775 | "checksum protoc-rust 2.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dad6667dc189ae21a1f650ba07ce512dda5f6ba78e494decf40455c9644c170f" 1776 | "checksum protoc-rust-grpc 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "89b0b611e3a7fda302581288521d0b1f4662b4fdf285c5ef5f8deb38f99f96ff" 1777 | "checksum pyo3 0.6.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e4d85e8a8805971cc68a0c0b570c7fe636611fd0383d10a497fd7e9569abfa93" 1778 | "checksum pyo3-derive-backend 0.6.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)" = "89df76a9f4763fec4f3fadce4f098037bfccb4fa78bf1a39f0c9fb445a56dd1f" 1779 | "checksum pyo3cls 0.6.0-alpha.1 (registry+https://github.com/rust-lang/crates.io-index)" = "190e36065e84bea3ffd993932d5e2abd094a8521f5f4543ae8f145a21097c3b7" 1780 | "checksum query_interface 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "78c0f0046284eebb86b68f93f9677d499034f88e15ca01021ceea32c4d3c3693" 1781 | "checksum quote 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "cdd8e04bd9c52e0342b406469d494fcb033be4bdbe5c606016defbb1681411e1" 1782 | "checksum rand 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293" 1783 | "checksum rand 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c618c47cd3ebd209790115ab837de41425723956ad3ce2e6a7f09890947cacb9" 1784 | "checksum rand 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)" = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca" 1785 | "checksum rand_chacha 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef" 1786 | "checksum rand_core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" 1787 | "checksum rand_core 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d0e7a549d590831370895ab7ba4ea0c1b6b011d106b5ff2da6eee112615e6dc0" 1788 | "checksum rand_hc 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4" 1789 | "checksum rand_isaac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08" 1790 | "checksum rand_jitter 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "29fe7b8bc348249f3b1bbb9ab8baa6fa3419196ecfbf213408bca1b2494710de" 1791 | "checksum rand_os 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b7c690732391ae0abafced5015ffb53656abfaec61b342290e5eb56b286a679d" 1792 | "checksum rand_pcg 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "086bd09a33c7044e56bb44d5bdde5a60e7f119a9e95b0775f545de759a32fe05" 1793 | "checksum rand_xorshift 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c" 1794 | "checksum rayon 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "373814f27745b2686b350dd261bfd24576a6fb0e2c5919b3a2b6005f820b0473" 1795 | "checksum rayon-core 1.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b055d1e92aba6877574d8fe604a63c8b5df60f60e5982bf7ccbb1338ea527356" 1796 | "checksum rdrand 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" 1797 | "checksum redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)" = "423e376fffca3dfa06c9e9790a9ccd282fafb3cc6e6397d01dbf64f9bacc6b85" 1798 | "checksum regex 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "37e7cbbd370869ce2e8dff25c7018702d10b21a20ef7135316f8daecd6c25b7f" 1799 | "checksum regex-syntax 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)" = "8c2f35eedad5295fdf00a63d7d4b238135723f92b434ec06774dad15c7ab0861" 1800 | "checksum remove_dir_all 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3488ba1b9a2084d38645c4c08276a1752dcbf2c7130d74f1569681ad5d2799c5" 1801 | "checksum rustc-demangle 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "adacaae16d02b6ec37fdc7acfcddf365978de76d1983d3ee22afc260e1ca9619" 1802 | "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" 1803 | "checksum safemem 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8dca453248a96cb0749e36ccdfe2b0b4e54a61bfef89fb97ec621eb8e0a93dd9" 1804 | "checksum scoped-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "332ffa32bf586782a3efaeb58f127980944bbc8c4d6913a86107ac2a5ab24b28" 1805 | "checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27" 1806 | "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" 1807 | "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" 1808 | "checksum sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7b4d8bfd0e469f417657573d8451fb33d16cfe0989359b93baf3a1ffc639543d" 1809 | "checksum simple_asn1 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f60217f160fe63c26378d77474a4fdaa6f6cd22fb596e1fd94ba6a17c3973956" 1810 | "checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" 1811 | "checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 1812 | "checksum smallvec 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)" = "88aea073965ab29f6edb5493faf96ad662fb18aa9eeb186a3b7057951605ed15" 1813 | "checksum spin 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)" = "ceac490aa12c567115b40b7b7fceca03a6c9d53d5defea066123debc83c5dc1f" 1814 | "checksum stable_deref_trait 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "dba1a27d3efae4351c8051072d619e3ade2820635c3958d826bfea39d59b54c8" 1815 | "checksum subtle 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" 1816 | "checksum subtle 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "702662512f3ddeb74a64ce2fbbf3707ee1b6bb663d28bb054e0779bbc720d926" 1817 | "checksum syn 0.15.26 (registry+https://github.com/rust-lang/crates.io-index)" = "f92e629aa1d9c827b2bb8297046c1ccffc57c99b947a680d3ccff1f136a3bee9" 1818 | "checksum synstructure 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "73687139bf99285483c96ac0add482c3776528beac1d97d444f6e91f203a2015" 1819 | "checksum tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8" 1820 | "checksum tempfile 3.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "7e91405c14320e5c79b3d148e1c86f40749a36e490642202a31689cb1a3452b2" 1821 | "checksum thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b" 1822 | "checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f" 1823 | "checksum tls-api 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)" = "e452fe2fdf40a10715adb3a5f244c7411cdf2ecc887b07160310939785db9182" 1824 | "checksum tls-api-stub 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)" = "25a2dcddd0fd52bdbedf9b4f0fd1cb884abfa0984e6a54121d4cefdf3d234e4c" 1825 | "checksum tokio 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)" = "e0500b88064f08bebddd0c0bed39e19f5c567a5f30975bee52b0c0d3e2eeb38c" 1826 | "checksum tokio-async-await 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "417f9fe772648c6c49a579040d0ed0008e557ef4803f6f4eb12920c093ddd88f" 1827 | "checksum tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5c501eceaf96f0e1793cf26beb63da3d11c738c4a943fdf3746d81d64684c39f" 1828 | "checksum tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = "aeeffbbb94209023feaef3c196a41cbcdafa06b4a6f893f68779bb5e53796f71" 1829 | "checksum tokio-current-thread 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "331c8acc267855ec06eb0c94618dcbbfea45bed2d20b77252940095273fb58f6" 1830 | "checksum tokio-executor 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "30c6dbf2d1ad1de300b393910e8a3aa272b724a400b6531da03eed99e329fbf0" 1831 | "checksum tokio-fs 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "0e9cbbc8a3698b7ab652340f46633364f9eaa928ddaaee79d8b8f356dd79a09d" 1832 | "checksum tokio-io 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "b53aeb9d3f5ccf2ebb29e19788f96987fa1355f8fe45ea193928eaaaf3ae820f" 1833 | "checksum tokio-reactor 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "afbcdb0f0d2a1e4c440af82d7bbf0bf91a8a8c0575bcd20c05d15be7e9d3a02f" 1834 | "checksum tokio-sync 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "0d65a58e2215c13179e6eeb2cf00511e0aee455cad40a9bfaef15a2fd8aab1c7" 1835 | "checksum tokio-tcp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1d14b10654be682ac43efee27401d792507e30fd8d26389e1da3b185de2e4119" 1836 | "checksum tokio-threadpool 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "c3fd86cb15547d02daa2b21aadaf4e37dee3368df38a526178a5afa3c034d2fb" 1837 | "checksum tokio-timer 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6131e780037787ff1b3f8aad9da83bca02438b72277850dd6ad0d455e0e20efc" 1838 | "checksum tokio-timer 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)" = "21c04a314a1f69f73c0227beba6250e06cdc1e9a62e7eff912bf54a59b6d1b94" 1839 | "checksum tokio-tls-api 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)" = "c7ac6ebb2f40e7e068cb43e1f3b09b40d7869bcc7e49e7f50610d4e0e75a18d7" 1840 | "checksum tokio-udp 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "66268575b80f4a4a710ef83d087fdfeeabdce9b74c797535fbac18a2cb906e92" 1841 | "checksum tokio-uds 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "65ae5d255ce739e8537221ed2942e0445f4b3b813daebac1c0050ddaaa3587f9" 1842 | "checksum tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "037ffc3ba0e12a0ab4aca92e5234e0dedeb48fddf6ccd260f1f150a36a9f2445" 1843 | "checksum try_from 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "283d3b89e1368717881a9d51dad843cc435380d8109c9e47d38780a324698d8b" 1844 | "checksum typenum 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "612d636f949607bdf9b123b4a6f6d966dedf3ff669f7f045890d3a4a73948169" 1845 | "checksum ucd-util 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "535c204ee4d8434478593480b8f86ab45ec9aae0e83c568ca81abf0fd0e88f86" 1846 | "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" 1847 | "checksum unix_socket 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6aa2700417c405c38f5e6902d699345241c28c0b7ade4abaad71e35a87eb1564" 1848 | "checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" 1849 | "checksum utf8-ranges 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "796f7e48bef87609f7ade7e06495a87d5cd06c7866e6a5cbfceffc558a243737" 1850 | "checksum version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" 1851 | "checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" 1852 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 1853 | "checksum winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "92c1eb33641e276cfa214a0522acad57be5c56b10cb348b3c5117db75f3ac4b0" 1854 | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 1855 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1856 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1857 | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 1858 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "hedera" 3 | publish = false 4 | version = "0.0.0" 5 | edition = "2018" 6 | authors = [ 7 | "LaunchBadge " 8 | ] 9 | 10 | [lib] 11 | crate-type = ["cdylib"] 12 | 13 | [dependencies] 14 | hedera = "0.4.1" 15 | pyo3 = { version = "0.6.0-alpha.1", features = [ "extension-module" ] } 16 | chrono = "0.4.6" 17 | itertools = "0.8.0" 18 | derive_more = "0.13.0" 19 | mashup = "0.1.9" 20 | try_from = "0.3.2" 21 | failure = "0.1.5" 22 | 23 | [profile.release] 24 | lto = true 25 | codegen-units = 1 26 | panic = 'abort' 27 | incremental = false 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2018 Hedera Hashgraph, LLC 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hedera Python SDK 2 | > Hedera SDK for Python 3 | 4 | ## License 5 | 6 | Licensed under Apache License, 7 | Version 2.0 ([LICENSE](LICENSE) or http://www.apache.org/licenses/LICENSE-2.0). 8 | 9 | ## Contribution 10 | 11 | Unless you explicitly state otherwise, any contribution intentionally submitted 12 | for inclusion in the work by you, as defined in the Apache-2.0 license, shall be 13 | licensed as above, without any additional terms or conditions. 14 | -------------------------------------------------------------------------------- /examples/create_account.py: -------------------------------------------------------------------------------- 1 | import hedera 2 | import os 3 | import time 4 | 5 | # Generate a new key pair for the new account 6 | 7 | secret, _ = hedera.SecretKey.generate("") 8 | public = secret.public 9 | 10 | print(f"secret = {secret}") 11 | print(f"public = {public}") 12 | 13 | # Operator is the account that sends the transaction to the network 14 | # This account is charged for the transaction fee 15 | 16 | operator = os.environ["OPERATOR"] 17 | operator_secret = hedera.SecretKey(os.environ["OPERATOR_SECRET"]) 18 | 19 | # Connect to a specific testnet node 20 | 21 | client = hedera.Client("testnet.hedera.com:50001") 22 | 23 | # Create our account 24 | 25 | tx = client.create_account() 26 | tx.operator = operator 27 | tx.key = public 28 | tx.initial_balance = 45 29 | tx.sign(operator_secret) 30 | 31 | tx_id = tx.execute() 32 | print(f"created account; transaction = {tx_id}") 33 | 34 | # If we got here we know we passed pre-check 35 | # Depending on your requirements that may be enough for some kinds of transactions 36 | 37 | # Wait 2 seconds to be sure the account is created .. 38 | time.sleep(2) 39 | 40 | # Get the receipt and check the status to prove it was successful 41 | receipt = client.transaction(tx_id).receipt().get() 42 | if receipt.status != 1: 43 | raise Exception(f"transaction has a non-successful status: {receipt.status}") 44 | 45 | # Account can be `None` if we were not creating an account 46 | print(f"account = {receipt.account_id}") 47 | -------------------------------------------------------------------------------- /examples/generate_key.py: -------------------------------------------------------------------------------- 1 | import hedera 2 | 3 | secret, mnemonic = hedera.SecretKey.generate("") 4 | public = secret.public 5 | 6 | print(f"secret = {secret}") 7 | print(f"mnemonic = {mnemonic}") 8 | print(f"public = {public}") 9 | -------------------------------------------------------------------------------- /examples/get_account.py: -------------------------------------------------------------------------------- 1 | import hedera 2 | import os 3 | 4 | operator = os.environ["OPERATOR"] 5 | 6 | client = hedera.Client("testnet.hedera.com:50001") 7 | 8 | balance = client.account(operator).balance().get() 9 | 10 | print(f"balance = {balance} tinybars") 11 | print(f"balance = {balance / 100000000.0} hbars") 12 | 13 | # todo: info = client.account(hedera.AccountId("0:0:2")).info().get() 14 | -------------------------------------------------------------------------------- /rust-toolchain: -------------------------------------------------------------------------------- 1 | nightly-2019-01-29 2 | -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2018" 2 | unstable_features = true 3 | version = "Two" 4 | merge_imports = true 5 | -------------------------------------------------------------------------------- /src/account_info.rs: -------------------------------------------------------------------------------- 1 | use crate::{PyAccountId, PyClaim, PyDateTime, PyDuration, PyPublicKey}; 2 | use derive_more::From; 3 | use hedera::AccountInfo; 4 | use itertools::Itertools; 5 | use pyo3::prelude::*; 6 | use try_from::TryInto; 7 | 8 | #[pyclass(name = AccountInfo)] 9 | #[derive(From)] 10 | pub struct PyAccountInfo { 11 | pub(crate) inner: AccountInfo, 12 | } 13 | 14 | #[pymethods] 15 | impl PyAccountInfo { 16 | #[getter] 17 | pub fn account_id(&self) -> PyResult { 18 | Ok(self.inner.account_id.to_string()) 19 | } 20 | 21 | #[getter] 22 | pub fn contract_account_id(&self) -> PyResult { 23 | Ok(self.inner.contract_account_id.to_string()) 24 | } 25 | 26 | #[getter] 27 | pub fn deleted(&self) -> PyResult { 28 | Ok(self.inner.deleted as bool) 29 | } 30 | 31 | #[getter] 32 | pub fn proxy_account_id(&self) -> PyResult> { 33 | Ok(self.inner.proxy_account_id.map(Into::into)) 34 | } 35 | 36 | #[getter] 37 | pub fn proxy_fraction(&self) -> PyResult { 38 | Ok(self.inner.proxy_fraction as i32) 39 | } 40 | 41 | #[getter] 42 | pub fn proxy_received(&self) -> PyResult { 43 | Ok(self.inner.proxy_received as i64) 44 | } 45 | 46 | #[getter] 47 | pub fn key(&self) -> PyResult { 48 | Ok(self.inner.key.clone().into()) 49 | } 50 | 51 | #[getter] 52 | pub fn balance(&self) -> PyResult { 53 | Ok(self.inner.balance as u64) 54 | } 55 | 56 | #[getter] 57 | pub fn generate_send_record_threshold(&self) -> PyResult { 58 | Ok(self.inner.generate_send_record_threshold as u64) 59 | } 60 | 61 | #[getter] 62 | pub fn generate_receive_record_threshold(&self) -> PyResult { 63 | Ok(self.inner.generate_receive_record_threshold as u64) 64 | } 65 | 66 | #[getter] 67 | pub fn receiver_signature_required(&self) -> PyResult { 68 | Ok(self.inner.receiver_signature_required as bool) 69 | } 70 | 71 | #[getter] 72 | pub fn expiration_time(&self) -> PyResult { 73 | self.inner.expiration_time.try_into() 74 | } 75 | 76 | #[getter] 77 | pub fn auto_renew_period(&self) -> PyResult { 78 | self.inner.auto_renew_period.try_into() 79 | } 80 | 81 | #[getter] 82 | pub fn claims(&self) -> PyResult> { 83 | let claims = self.inner.claims.clone().into_iter().map_into().collect(); 84 | 85 | Ok(claims) 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /src/claim.rs: -------------------------------------------------------------------------------- 1 | use crate::{crypto::PyPublicKey, id::PyAccountId}; 2 | use derive_more::{From, Into}; 3 | use hedera::Claim; 4 | use itertools::Itertools; 5 | use pyo3::prelude::*; 6 | 7 | #[pyclass(name = Claim)] 8 | #[derive(From, Into, Clone)] 9 | pub struct PyClaim { 10 | inner: Claim, 11 | } 12 | 13 | #[pymethods] 14 | impl PyClaim { 15 | #[getter] 16 | pub fn account(&self) -> PyResult { 17 | Ok(self.inner.account.into()) 18 | } 19 | 20 | #[getter] 21 | pub fn hash(&self) -> PyResult> { 22 | Ok(self.inner.hash.clone()) 23 | } 24 | 25 | #[getter] 26 | pub fn keys(&self) -> PyResult> { 27 | let keys = self.inner.keys.clone().into_iter().map_into().collect(); 28 | 29 | Ok(keys) 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/client.rs: -------------------------------------------------------------------------------- 1 | use super::{ 2 | errors::PyValueError, query_crypto_get_account_balance::*, query_crypto_get_info::*, 3 | query_file_get_contents::*, query_transaction_get_receipt::*, 4 | }; 5 | use crate::{ 6 | either::Either, 7 | id::{PyAccountId, PyContractId, PyFileId}, 8 | transaction_id::PyTransactionId, 9 | PyQueryCryptoGetClaim, PyQueryFileGetInfo, PyQueryTransactionGetRecord, 10 | PyTransactionContractCall, PyTransactionContractCreate, PyTransactionContractUpdate, 11 | PyTransactionCryptoCreate, PyTransactionCryptoDelete, PyTransactionCryptoDeleteClaim, 12 | PyTransactionCryptoTransfer, PyTransactionCryptoUpdate, PyTransactionFileAppend, 13 | PyTransactionFileCreate, PyTransactionFileDelete, 14 | }; 15 | use hedera::{AccountId, Client, ContractId, FileId, TransactionId}; 16 | use pyo3::{prelude::*, types::PyObjectRef}; 17 | use std::rc::Rc; 18 | use try_from::TryInto; 19 | 20 | #[pyclass(name = Client)] 21 | pub struct PyClient { 22 | inner: Rc, 23 | } 24 | 25 | #[pymethods] 26 | impl PyClient { 27 | #[new] 28 | pub fn __new__(obj: &PyRawObject, address: &str) -> PyResult<()> { 29 | let client = Client::new(address).map_err(PyValueError)?; 30 | obj.init(move || Self { 31 | inner: Rc::new(client), 32 | }) 33 | } 34 | 35 | /// transfer_crypto(self) TransactionCryptoTransfer 36 | /// -- 37 | /// 38 | /// Transfer hbar between accounts. 39 | /// 40 | /// If a transfer fails for any accounts in the transaction, the whole transaction fails. 41 | pub fn transfer_crypto(&self) -> PyResult { 42 | Ok(PyTransactionCryptoTransfer::new(&self.inner)) 43 | } 44 | 45 | /// create_account(self) -> TransactionCryptoCreate 46 | /// -- 47 | /// 48 | /// Create a crypto-currency account. 49 | pub fn create_account(&self) -> PyResult { 50 | Ok(PyTransactionCryptoCreate::new(&self.inner)) 51 | } 52 | 53 | /// account(self, id: Union[str, AccountId]) -> PartialAccountMessage 54 | /// -- 55 | /// 56 | /// Access available operations on a single crypto-currency account. 57 | pub fn account(&self, id: &PyObjectRef) -> PyResult { 58 | Ok(PyPartialAccountMessage { 59 | client: Rc::clone(&self.inner), 60 | account: (FromPyObject::extract(id)?: Either<&str, &PyAccountId>).try_into()?, 61 | }) 62 | } 63 | 64 | /// create_contract(self) -> TransactionContractCreate 65 | /// -- 66 | /// 67 | /// Create a smart contract instance. 68 | /// 69 | /// The instance will run the bytecode stored in the given file. 70 | pub fn create_contract(&self) -> PyResult { 71 | Ok(PyTransactionContractCreate::new(&self.inner)) 72 | } 73 | 74 | /// contract(self, id: Union[str, ContractId]) -> PartialContractMessage 75 | /// -- 76 | /// 77 | /// Access available operations on a single smart contract. 78 | pub fn contract(&self, id: &PyObjectRef) -> PyResult { 79 | Ok(PyPartialContractMessage { 80 | client: Rc::clone(&self.inner), 81 | contract: (FromPyObject::extract(id)?: Either<&str, &PyContractId>).try_into()?, 82 | }) 83 | } 84 | 85 | /// create_file(self) -> TransactionFileCreate 86 | /// -- 87 | /// 88 | /// Create a file. 89 | /// 90 | /// The contents of the file to be created may too large, so this may be used in conjunction 91 | /// with :py:method:`hedera.PartialFileMessage.append` to create such files. 92 | pub fn create_file(&self) -> PyResult { 93 | Ok(PyTransactionFileCreate::new(&self.inner)) 94 | } 95 | 96 | /// file(self, id: Union[str, FileId]) -> PartialFileMessage 97 | /// -- 98 | /// 99 | /// Access available operations on a single file. 100 | pub fn file(&self, id: &PyObjectRef) -> PyResult { 101 | Ok(PyPartialFileMessage { 102 | client: Rc::clone(&self.inner), 103 | file: (FromPyObject::extract(id)?: Either<&str, &PyFileId>).try_into()?, 104 | }) 105 | } 106 | 107 | /// transaction(self, id: Union[str, TransactionId]) -> PartialTransactionMessage 108 | /// -- 109 | /// 110 | /// Access available operations on a single transaction. 111 | pub fn transaction(&self, id: &PyObjectRef) -> PyResult { 112 | Ok(PyPartialTransactionMessage { 113 | client: Rc::clone(&self.inner), 114 | transaction: (FromPyObject::extract(id)?: Either<&str, &PyTransactionId>).try_into()?, 115 | }) 116 | } 117 | } 118 | 119 | #[pyclass(name = PartialAccountMessage)] 120 | pub struct PyPartialAccountMessage { 121 | client: Rc, 122 | account: AccountId, 123 | } 124 | 125 | #[pymethods] 126 | impl PyPartialAccountMessage { 127 | /// balance(self) -> QueryCryptoGetAccountBalance 128 | /// -- 129 | /// 130 | /// Get the balance of a crypto-currency account. 131 | /// 132 | /// This returns only the balance, so it is a smaller and faster reply than 133 | /// :py:method:`hedera.PartialAccountMessage.info`. 134 | pub fn balance(&self) -> PyResult { 135 | Ok(PyQueryCryptoGetAccountBalance::new( 136 | &self.client, 137 | self.account, 138 | )) 139 | } 140 | 141 | /// info(self) -> QueryCryptoGetInfo 142 | /// -- 143 | /// 144 | /// Get information about an account. 145 | /// 146 | /// Information returned includes the balance, but not account records. If only the balance is 147 | /// needed, :py:method:`hedera.PartialAccountMessage.balance` is a smaller and faster reply. 148 | pub fn info(&self) -> PyResult { 149 | Ok(PyQueryCryptoGetInfo::new(&self.client, self.account)) 150 | } 151 | 152 | /// update(self) -> TransactionCryptoUpdate 153 | /// -- 154 | /// 155 | /// Modify an account. 156 | /// 157 | /// To change the key, both the old and new key must be used to sign the transaction. 158 | pub fn update(&self) -> PyResult { 159 | Ok(PyTransactionCryptoUpdate::new(&self.client, self.account)) 160 | } 161 | 162 | /// delete(self) -> TransactionCryptoDelete 163 | /// -- 164 | /// 165 | /// Mark an account as deleted, transferring current balance to another account. 166 | /// 167 | /// Transfers into a deleted account will fail, but its expiration date can be extended as 168 | /// normal. 169 | pub fn delete(&self) -> PyResult { 170 | Ok(PyTransactionCryptoDelete::new(&self.client, self.account)) 171 | } 172 | 173 | /// claim(self, hash: bytes) -> PartialAccountClaimMessage 174 | /// -- 175 | /// 176 | /// Access available operations on the claims of an account. 177 | pub fn claim(&self, hash: Vec) -> PyResult { 178 | Ok(PyPartialAccountClaimMessage { 179 | client: Rc::clone(&self.client), 180 | account: self.account, 181 | hash, 182 | }) 183 | } 184 | } 185 | 186 | #[pyclass(name = PartialAccountClaimMessage)] 187 | pub struct PyPartialAccountClaimMessage { 188 | client: Rc, 189 | account: AccountId, 190 | hash: Vec, 191 | } 192 | 193 | #[pymethods] 194 | impl PyPartialAccountClaimMessage { 195 | /// delete(self) -> TransactionCryptoDeleteClaim 196 | /// -- 197 | /// 198 | /// Delete a claim attached to an account. 199 | /// 200 | /// This transaction is valid if signed by all the keys that are used for transfers out of the 201 | /// account, or if signed by any of the keys used to attach the claim in the first place. 202 | pub fn delete(&self) -> PyResult { 203 | Ok(PyTransactionCryptoDeleteClaim::new( 204 | &self.client, 205 | self.account, 206 | self.hash.clone(), 207 | )) 208 | } 209 | 210 | /// get(self) -> QueryCryptoGetClaim 211 | /// -- 212 | /// 213 | /// Get a single claim attached to an account, if it exists. 214 | pub fn get(&self) -> PyResult { 215 | Ok(PyQueryCryptoGetClaim::new( 216 | &self.client, 217 | self.account, 218 | self.hash.clone(), 219 | )) 220 | } 221 | } 222 | 223 | #[pyclass(name = PartialFileMessage)] 224 | pub struct PyPartialFileMessage { 225 | client: Rc, 226 | file: FileId, 227 | } 228 | 229 | #[pymethods] 230 | impl PyPartialFileMessage { 231 | /// append(self, contents) -> TransactionFileAppend 232 | /// -- 233 | /// 234 | /// Append the contents to the end of the file. 235 | /// 236 | /// If a file was too large to create in a single transaction, it can be created with the first 237 | /// part of its contents and adding the rest by appending to it as needed with this transaction. 238 | pub fn append(&self, contents: Vec) -> PyResult { 239 | Ok(PyTransactionFileAppend::new( 240 | &self.client, 241 | self.file, 242 | contents, 243 | )) 244 | } 245 | 246 | /// delete(self) -> TransactionFileDelete 247 | /// -- 248 | /// 249 | /// Delete a file. 250 | /// 251 | /// The file will be marked as deleted, having no contents, until the expiration date. 252 | /// Then it will disappear. 253 | pub fn delete(&self) -> PyResult { 254 | Ok(PyTransactionFileDelete::new(&self.client, self.file)) 255 | } 256 | 257 | /// info(self) -> QueryFileGetInfo 258 | /// -- 259 | /// 260 | /// Get information about a file (excludes contents). 261 | /// 262 | /// If a file has expired, there will not be any information. 263 | pub fn info(&self) -> PyResult { 264 | Ok(PyQueryFileGetInfo::new(&self.client, self.file)) 265 | } 266 | 267 | /// contents(self) -> QueryFileGetContents 268 | /// -- 269 | /// 270 | /// Get the contents of a file. 271 | pub fn contents(&self) -> PyResult { 272 | Ok(PyQueryFileGetContents::new(&self.client, self.file)) 273 | } 274 | } 275 | 276 | #[pyclass(name = PartialContractMessage)] 277 | pub struct PyPartialContractMessage { 278 | client: Rc, 279 | contract: ContractId, 280 | } 281 | 282 | #[pymethods] 283 | impl PyPartialContractMessage { 284 | /// call(self) -> TransactionContractCall 285 | /// -- 286 | /// 287 | /// Call a function of the given smart contract instance. 288 | /// 289 | /// It can use the given amount of gas, and any unspent gas will be refunded to the paying 290 | /// account. 291 | pub fn call(&self) -> PyResult { 292 | Ok(PyTransactionContractCall::new(&self.client, self.contract)) 293 | } 294 | 295 | /// update(self) -> TransactionContractUpdate 296 | /// -- 297 | /// 298 | /// Modify a smart contract instance. 299 | /// 300 | /// If the contract had no adminKey from the start only the expiration time can be updated. 301 | pub fn update(&self) -> PyResult { 302 | Ok(PyTransactionContractUpdate::new( 303 | &self.client, 304 | self.contract, 305 | )) 306 | } 307 | } 308 | 309 | #[pyclass(name = PartialTransactionMessage)] 310 | pub struct PyPartialTransactionMessage { 311 | client: Rc, 312 | transaction: TransactionId, 313 | } 314 | 315 | #[pymethods] 316 | impl PyPartialTransactionMessage { 317 | /// receipt(self) -> QueryTransactionGetReceipt 318 | /// -- 319 | /// 320 | /// Get the receipt of the transaction. 321 | /// 322 | /// Once a transaction reaches consensus, then information about whether it succeeded or 323 | /// failed will be available until the end of the receipt period (180 seconds). 324 | pub fn receipt(&self) -> PyResult { 325 | Ok(PyQueryTransactionGetReceipt::new( 326 | &self.client, 327 | self.transaction.clone(), 328 | )) 329 | } 330 | 331 | /// record(self) -> QueryTransactionGetRecord 332 | /// -- 333 | /// 334 | /// Get the record of the transaction. 335 | /// 336 | /// If a transaction requested a record, then it will be available for one hour, and a state 337 | /// proof is available for it. 338 | pub fn record(&self) -> PyResult { 339 | Ok(PyQueryTransactionGetRecord::new( 340 | &self.client, 341 | self.transaction.clone(), 342 | )) 343 | } 344 | } 345 | -------------------------------------------------------------------------------- /src/contract_function_result.rs: -------------------------------------------------------------------------------- 1 | use derive_more::From; 2 | // fixme: use hedera::ContractFunctionResult; 3 | use crate::{PyContractId, PyContractLogInfo}; 4 | use hedera::query::ContractFunctionResult; 5 | use itertools::Itertools; 6 | use pyo3::prelude::*; 7 | 8 | #[pyclass(name = ContractFunctionResult)] 9 | #[derive(From)] 10 | pub struct PyContractFunctionResult { 11 | pub(crate) inner: ContractFunctionResult, 12 | } 13 | 14 | #[pymethods] 15 | impl PyContractFunctionResult { 16 | #[getter] 17 | pub fn contract_id(&self) -> PyResult { 18 | Ok(self.inner.contract_id.into()) 19 | } 20 | 21 | #[getter] 22 | pub fn contract_call_result(&self) -> PyResult> { 23 | Ok(self.inner.contract_call_result.clone()) 24 | } 25 | 26 | #[getter] 27 | pub fn error_message(&self) -> PyResult { 28 | Ok(self.inner.error_message.clone()) 29 | } 30 | 31 | #[getter] 32 | pub fn bloom(&self) -> PyResult> { 33 | Ok(self.inner.bloom.clone()) 34 | } 35 | 36 | #[getter] 37 | pub fn gas_used(&self) -> PyResult { 38 | Ok(self.inner.gas_used) 39 | } 40 | 41 | #[getter] 42 | pub fn log_info(&self) -> PyResult> { 43 | Ok(self.inner.log_info.clone().into_iter().map_into().collect()) 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/contract_info.rs: -------------------------------------------------------------------------------- 1 | use crate::{PyAccountId, PyDateTime, PyDuration, PyPublicKey}; 2 | use derive_more::From; 3 | use hedera::ContractInfo; 4 | use pyo3::prelude::*; 5 | use try_from::TryInto; 6 | 7 | #[pyclass(name = ContractInfo)] 8 | #[derive(From)] 9 | pub struct PyContractInfo { 10 | pub(crate) inner: ContractInfo, 11 | } 12 | 13 | #[pymethods] 14 | impl PyContractInfo { 15 | #[getter] 16 | pub fn account_id(&self) -> PyResult { 17 | Ok(PyAccountId { 18 | inner: self.inner.account_id, 19 | }) 20 | } 21 | 22 | #[getter] 23 | pub fn contract_account_id(&self) -> PyResult { 24 | Ok(self.inner.contract_account_id.clone()) 25 | } 26 | 27 | #[getter] 28 | pub fn admin_key(&self) -> PyResult> { 29 | Ok(self 30 | .inner 31 | .admin_key 32 | .clone() 33 | .map(|key| PyPublicKey { inner: key })) 34 | } 35 | 36 | #[getter] 37 | fn get_expiration_time(&self) -> PyResult { 38 | self.inner.expiration_time.try_into() 39 | } 40 | 41 | #[getter] 42 | fn get_auto_renew_period(&self) -> PyResult { 43 | self.inner.auto_renew_period.try_into() 44 | } 45 | 46 | #[getter] 47 | pub fn storage(&self) -> PyResult { 48 | Ok(self.inner.storage) 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/contract_log_info.rs: -------------------------------------------------------------------------------- 1 | use derive_more::From; 2 | // fixme: use hedera::ContractLogInfo; 3 | use hedera::query::ContractLogInfo; 4 | use pyo3::prelude::*; 5 | 6 | #[pyclass(name = ContractLogInfo)] 7 | #[derive(From)] 8 | pub struct PyContractLogInfo { 9 | pub(crate) inner: ContractLogInfo, 10 | } 11 | 12 | #[pymethods] 13 | impl PyContractLogInfo { 14 | #[getter] 15 | pub fn bloom(&self) -> PyResult> { 16 | Ok(self.inner.bloom.clone()) 17 | } 18 | 19 | #[getter] 20 | pub fn topic(&self) -> PyResult>> { 21 | Ok(self.inner.topic.clone()) 22 | } 23 | 24 | #[getter] 25 | pub fn data(&self) -> PyResult> { 26 | Ok(self.inner.data.clone()) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/crypto.rs: -------------------------------------------------------------------------------- 1 | use super::errors::PyValueError; 2 | use derive_more::{From, Into}; 3 | use hedera::{PublicKey, SecretKey, Signature}; 4 | use pyo3::prelude::*; 5 | 6 | #[pyclass(name = PublicKey)] 7 | #[derive(From, Into, Clone)] 8 | pub struct PyPublicKey { 9 | pub(crate) inner: PublicKey, 10 | } 11 | 12 | #[pymethods] 13 | impl PyPublicKey { 14 | #[new] 15 | pub fn __new__(obj: &PyRawObject, s: &str) -> PyResult<()> { 16 | let key = s.parse().map_err(PyValueError)?; 17 | obj.init(|| Self { inner: key }) 18 | } 19 | } 20 | 21 | def_str!(PyPublicKey); 22 | 23 | #[pyclass(name = SecretKey)] 24 | #[derive(From, Clone)] 25 | pub struct PySecretKey { 26 | pub(crate) inner: SecretKey, 27 | } 28 | 29 | #[pymethods] 30 | impl PySecretKey { 31 | #[new] 32 | pub fn __new__(obj: &PyRawObject, s: &str) -> PyResult<()> { 33 | let key = s.parse().map_err(PyValueError)?; 34 | obj.init(|| Self { inner: key }) 35 | } 36 | 37 | #[staticmethod] 38 | pub fn generate(password: &str) -> PyResult<(PySecretKey, String)> { 39 | let (secret, mnemonic) = SecretKey::generate(password); 40 | 41 | Ok((secret.into(), mnemonic)) 42 | } 43 | 44 | #[getter] 45 | pub fn public(&self) -> PyResult { 46 | Ok(self.inner.public().into()) 47 | } 48 | } 49 | 50 | def_str!(PySecretKey); 51 | 52 | #[pyclass(name = Signature)] 53 | #[derive(From)] 54 | pub struct PySignature { 55 | pub(crate) inner: Signature, 56 | } 57 | 58 | #[pymethods] 59 | impl PySignature { 60 | #[new] 61 | pub fn __new__(obj: &PyRawObject, s: &str) -> PyResult<()> { 62 | let key = s.parse().map_err(PyValueError)?; 63 | obj.init(|| Self { inner: key }) 64 | } 65 | } 66 | 67 | def_str!(PySignature); 68 | -------------------------------------------------------------------------------- /src/duration.rs: -------------------------------------------------------------------------------- 1 | use pyo3::{prelude::*, types::PyDelta}; 2 | use std::time::Duration; 3 | use try_from::TryFrom; 4 | 5 | pub struct PyDuration(Py); 6 | 7 | impl IntoPyObject for PyDuration { 8 | fn into_object(self, py: Python) -> PyObject { 9 | self.0.into_object(py) 10 | } 11 | } 12 | 13 | impl TryFrom for PyDuration { 14 | type Err = PyErr; 15 | 16 | fn try_from(duration: Duration) -> PyResult { 17 | // note: GIL should be acquired by this point and we don't know a safer way to get a py 18 | // instance from inside a `#[getter]` 19 | let py = unsafe { Python::assume_gil_acquired() }; 20 | 21 | let seconds = duration.as_secs() as i32; 22 | let microseconds = duration.subsec_micros() as i32; 23 | 24 | Ok(PyDuration(PyDelta::new( 25 | py, 26 | 0, 27 | seconds, 28 | microseconds, 29 | false, 30 | )?)) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/either.rs: -------------------------------------------------------------------------------- 1 | use crate::{ 2 | id::{PyAccountId, PyContractId, PyFileId}, 3 | transaction_id::PyTransactionId, 4 | }; 5 | use hedera::{AccountId, ContractId, FileId, TransactionId}; 6 | use pyo3::{types::PyObjectRef, FromPyObject, PyResult}; 7 | 8 | #[derive(Debug)] 9 | pub enum Either { 10 | Left(A), 11 | Right(B), 12 | } 13 | 14 | impl<'a, A, B> FromPyObject<'a> for Either 15 | where 16 | A: FromPyObject<'a>, 17 | B: FromPyObject<'a>, 18 | { 19 | fn extract(ob: &'a PyObjectRef) -> PyResult { 20 | A::extract(ob) 21 | .map(Either::Left) 22 | .or_else(|_| B::extract(ob).map(Either::Right)) 23 | } 24 | } 25 | 26 | try_from_either!(PyAccountId, AccountId); 27 | try_from_either!(PyFileId, FileId); 28 | try_from_either!(PyContractId, ContractId); 29 | try_from_either!(PyTransactionId, TransactionId); 30 | -------------------------------------------------------------------------------- /src/errors.rs: -------------------------------------------------------------------------------- 1 | #![allow(non_snake_case)] 2 | 3 | use pyo3::{types::exceptions, PyErr}; 4 | use std::fmt::Display; 5 | 6 | pub(crate) fn PyException(err: impl Display) -> PyErr { 7 | exceptions::Exception::py_err(err.to_string()) 8 | } 9 | 10 | pub(crate) fn PyValueError(err: impl Display) -> PyErr { 11 | exceptions::ValueError::py_err(err.to_string()) 12 | } 13 | -------------------------------------------------------------------------------- /src/file_info.rs: -------------------------------------------------------------------------------- 1 | use crate::PyDateTime; 2 | use derive_more::From; 3 | use hedera::FileInfo; 4 | use pyo3::prelude::*; 5 | use try_from::TryInto; 6 | 7 | #[pyclass(name = FileInfo)] 8 | #[derive(From)] 9 | pub struct PyFileInfo { 10 | inner: FileInfo, 11 | } 12 | 13 | #[pymethods] 14 | impl PyFileInfo { 15 | #[getter] 16 | pub fn file_id(&mut self) -> PyResult { 17 | Ok(self.inner.file_id.to_string()) 18 | } 19 | 20 | #[getter] 21 | pub fn size(&mut self) -> PyResult { 22 | Ok(self.inner.size) 23 | } 24 | 25 | #[getter] 26 | pub fn deleted(&mut self) -> PyResult { 27 | Ok(self.inner.deleted) 28 | } 29 | 30 | #[getter] 31 | pub fn keys(&mut self) -> PyResult> { 32 | Ok(self.inner.keys.iter().map(|key| key.to_string()).collect()) 33 | } 34 | 35 | #[getter] 36 | pub fn expiration_time(&self) -> PyResult { 37 | self.inner.expiration_time.try_into() 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/id.rs: -------------------------------------------------------------------------------- 1 | use super::errors::PyValueError; 2 | use derive_more::{From, Into}; 3 | use hedera::{AccountId, ContractId, FileId}; 4 | use pyo3::prelude::*; 5 | use std::str::FromStr; 6 | 7 | macro_rules! impl_id { 8 | ($pyname:ident, $rname:ident) => { 9 | #[pymethods] 10 | impl $pyname { 11 | #[new] 12 | fn __new__(obj: &PyRawObject, s: &str) -> PyResult<()> { 13 | let id = $rname::from_str(s).map_err(PyValueError)?; 14 | obj.init(|| Self { inner: id }) 15 | } 16 | } 17 | 18 | def_str!($pyname); 19 | }; 20 | } 21 | 22 | #[pyclass(name = AccountId)] 23 | #[derive(Clone, From, Into)] 24 | pub struct PyAccountId { 25 | pub(crate) inner: AccountId, 26 | } 27 | 28 | impl_id!(PyAccountId, AccountId); 29 | 30 | #[pyclass(name = FileId)] 31 | #[derive(Clone, From, Into)] 32 | pub struct PyFileId { 33 | pub(crate) inner: FileId, 34 | } 35 | 36 | impl_id!(PyFileId, FileId); 37 | 38 | #[pyclass(name = ContractId)] 39 | #[derive(Clone, From, Into)] 40 | pub struct PyContractId { 41 | pub(crate) inner: ContractId, 42 | } 43 | 44 | impl_id!(PyContractId, ContractId); 45 | -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- 1 | #![feature(specialization, type_ascription)] 2 | #![recursion_limit = "1024"] 3 | #![warn(clippy::pedantic)] 4 | #![allow(clippy::stutter)] 5 | // todo: file an issue in pyo3 about this 6 | #![allow(clippy::cast_ptr_alignment)] 7 | 8 | #[macro_use] 9 | extern crate mashup; 10 | 11 | #[macro_use] 12 | mod macros; 13 | 14 | mod account_info; 15 | mod claim; 16 | mod client; 17 | mod contract_function_result; 18 | mod contract_info; 19 | mod contract_log_info; 20 | mod crypto; 21 | mod duration; 22 | mod either; 23 | mod errors; 24 | mod file_info; 25 | mod id; 26 | mod query_contract_get_bytecode; 27 | mod query_contract_get_info; 28 | mod query_contract_get_records; 29 | mod query_crypto_get_account_balance; 30 | mod query_crypto_get_account_records; 31 | mod query_crypto_get_claim; 32 | mod query_crypto_get_info; 33 | mod query_file_get_contents; 34 | mod query_file_get_info; 35 | mod query_get_by_key; 36 | mod query_transaction_get_receipt; 37 | mod query_transaction_get_record; 38 | mod timestamp; 39 | mod transaction_admin_contract_delete; 40 | mod transaction_admin_contract_recover; 41 | mod transaction_admin_file_delete; 42 | mod transaction_admin_file_recover; 43 | mod transaction_contract_call; 44 | mod transaction_contract_create; 45 | mod transaction_contract_update; 46 | mod transaction_crypto_add_claim; 47 | mod transaction_crypto_create; 48 | mod transaction_crypto_delete; 49 | mod transaction_crypto_delete_claim; 50 | mod transaction_crypto_transfer; 51 | mod transaction_crypto_update; 52 | mod transaction_file_append; 53 | mod transaction_file_create; 54 | mod transaction_file_delete; 55 | mod transaction_file_update; 56 | mod transaction_id; 57 | mod transaction_receipt; 58 | mod transaction_record; 59 | 60 | use self::{ 61 | account_info::PyAccountInfo, 62 | claim::PyClaim, 63 | client::*, 64 | contract_function_result::PyContractFunctionResult, 65 | contract_info::PyContractInfo, 66 | contract_log_info::PyContractLogInfo, 67 | crypto::{PyPublicKey, PySecretKey, PySignature}, 68 | duration::PyDuration, 69 | file_info::PyFileInfo, 70 | id::{PyAccountId, PyContractId, PyFileId}, 71 | query_contract_get_bytecode::PyQueryContractGetBytecode, 72 | query_contract_get_info::PyQueryContractGetInfo, 73 | query_contract_get_records::PyQueryContractGetRecords, 74 | query_crypto_get_account_balance::PyQueryCryptoGetAccountBalance, 75 | query_crypto_get_account_records::PyQueryCryptoGetAccountRecords, 76 | query_crypto_get_claim::PyQueryCryptoGetClaim, 77 | query_crypto_get_info::PyQueryCryptoGetInfo, 78 | query_file_get_contents::PyQueryFileGetContents, 79 | query_file_get_info::PyQueryFileGetInfo, 80 | query_get_by_key::PyQueryGetByKey, 81 | query_transaction_get_receipt::PyQueryTransactionGetReceipt, 82 | query_transaction_get_record::PyQueryTransactionGetRecord, 83 | timestamp::PyDateTime, 84 | transaction_admin_contract_delete::PyTransactionAdminContractDelete, 85 | transaction_admin_contract_recover::PyTransactionAdminContractRecover, 86 | transaction_admin_file_delete::PyTransactionAdminFileDelete, 87 | transaction_admin_file_recover::PyTransactionAdminFileRecover, 88 | transaction_contract_call::PyTransactionContractCall, 89 | transaction_contract_create::PyTransactionContractCreate, 90 | transaction_contract_update::PyTransactionContractUpdate, 91 | transaction_crypto_add_claim::PyTransactionCryptoAddClaim, 92 | transaction_crypto_create::PyTransactionCryptoCreate, 93 | transaction_crypto_delete::PyTransactionCryptoDelete, 94 | transaction_crypto_delete_claim::PyTransactionCryptoDeleteClaim, 95 | transaction_crypto_transfer::PyTransactionCryptoTransfer, 96 | transaction_crypto_update::PyTransactionCryptoUpdate, 97 | transaction_file_append::PyTransactionFileAppend, 98 | transaction_file_create::PyTransactionFileCreate, 99 | transaction_file_delete::PyTransactionFileDelete, 100 | transaction_file_update::PyTransactionFileUpdate, 101 | transaction_id::PyTransactionId, 102 | transaction_receipt::PyTransactionReceipt, 103 | transaction_record::PyTransactionRecord, 104 | }; 105 | 106 | use pyo3::prelude::*; 107 | 108 | #[pymodule] 109 | fn hedera(_py: Python, m: &PyModule) -> PyResult<()> { 110 | // Client-related types 111 | m.add_class::()?; 112 | m.add_class::()?; 113 | m.add_class::()?; 114 | m.add_class::()?; 115 | m.add_class::()?; 116 | m.add_class::()?; 117 | 118 | // Common types 119 | m.add_class::()?; 120 | m.add_class::()?; 121 | m.add_class::()?; 122 | m.add_class::()?; 123 | m.add_class::()?; 124 | m.add_class::()?; 125 | m.add_class::()?; 126 | m.add_class::()?; 127 | m.add_class::()?; 128 | m.add_class::()?; 129 | m.add_class::()?; 130 | 131 | // Query types 132 | m.add_class::()?; 133 | m.add_class::()?; 134 | m.add_class::()?; 135 | m.add_class::()?; 136 | m.add_class::()?; 137 | m.add_class::()?; 138 | m.add_class::()?; 139 | m.add_class::()?; 140 | m.add_class::()?; 141 | m.add_class::()?; 142 | m.add_class::()?; 143 | m.add_class::()?; 144 | 145 | // Transaction types 146 | m.add_class::()?; 147 | m.add_class::()?; 148 | m.add_class::()?; 149 | m.add_class::()?; 150 | m.add_class::()?; 151 | m.add_class::()?; 152 | m.add_class::()?; 153 | m.add_class::()?; 154 | m.add_class::()?; 155 | m.add_class::()?; 156 | m.add_class::()?; 157 | m.add_class::()?; 158 | m.add_class::()?; 159 | m.add_class::()?; 160 | m.add_class::()?; 161 | m.add_class::()?; 162 | m.add_class::()?; 163 | 164 | Ok(()) 165 | } 166 | -------------------------------------------------------------------------------- /src/macros.rs: -------------------------------------------------------------------------------- 1 | // If a struct X has a single field called `inner` that impls ToString, 2 | // this macro can be used on that struct (`def_str!(X);`) to allow it 3 | // to be str()'d on the Python side. 4 | macro_rules! def_str { 5 | ($name:ident) => { 6 | impl<'p> pyo3::basic::PyObjectStrProtocol<'p> for $name { 7 | type Result = PyResult; 8 | type Success = String; 9 | } 10 | 11 | impl<'p> pyo3::class::basic::PyObjectProtocol<'p> for $name { 12 | fn __str__(&'p self) -> <$name as pyo3::basic::PyObjectStrProtocol>::Result { 13 | Ok(self.inner.to_string()) 14 | } 15 | } 16 | }; 17 | } 18 | 19 | macro_rules! def_query { 20 | (@ty $ty:ty) => { 21 | $ty 22 | }; 23 | 24 | (@ty $ty:ty => $($tt:tt)*) => { 25 | $ty 26 | }; 27 | 28 | // Vec can be returned to Python directly 29 | (@into Vec) => { 30 | Into::into 31 | }; 32 | 33 | // We pretend there is probably an Into conversion available 34 | // And map the Vec over it 35 | (@into Vec<$ty:ty>) => { 36 | |values| values.clone().into_iter().map(Into::into).collect() 37 | }; 38 | 39 | // We need something super special 40 | (@into $ty:ty => $($tt:tt)*) => { 41 | $($tt)* 42 | }; 43 | 44 | (@into $ty:ty) => { 45 | Into::into 46 | }; 47 | 48 | // Declare a 1-parameter query 49 | (@new $query:tt($param:ty)) => { 50 | pub fn new(client: &hedera::Client, _1: $param) -> Self { 51 | Self { 52 | inner: $query::new(client, _1), 53 | } 54 | } 55 | }; 56 | 57 | // Declare a 2-parameter query 58 | (@new $query:tt($param1:ty, $param2:ty)) => { 59 | pub fn new(client: &hedera::Client, _1: $param1, _2: $param2) -> Self { 60 | Self { 61 | inner: $query::new(client, _1, _2), 62 | } 63 | } 64 | }; 65 | 66 | ($query:tt ( $($param:tt)* ) -> $($ty:tt)+) => { 67 | mashup! { 68 | m["py"] = Py $query; 69 | } 70 | 71 | m! { 72 | #[pyo3::prelude::pyclass(name = $query)] 73 | pub struct "py" { 74 | inner: hedera::query::Query<$query>, 75 | } 76 | 77 | impl "py" { 78 | def_query!(@new $query($($param)*)); 79 | } 80 | 81 | #[pyo3::prelude::pymethods] 82 | impl "py" { 83 | pub fn get(&mut self) -> pyo3::PyResult { 84 | self.inner 85 | .get() 86 | .map(def_query!(@into $($ty)+)) 87 | .map_err(crate::errors::PyException) 88 | } 89 | } 90 | } 91 | }; 92 | } 93 | 94 | macro_rules! def_transaction { 95 | // Declare a 1-parameter tx 96 | (@new $tx:tt()) => { 97 | pub fn new(client: &hedera::Client) -> Self { 98 | Self { 99 | inner: $tx::new(client), 100 | } 101 | } 102 | }; 103 | 104 | // Declare a 1-parameter tx 105 | (@new $tx:tt($param:ty)) => { 106 | pub fn new(client: &hedera::Client, _1: $param) -> Self { 107 | Self { 108 | inner: $tx::new(client, _1), 109 | } 110 | } 111 | }; 112 | 113 | // Declare a 2-parameter tx 114 | (@new $tx:tt($param1:ty, $param2:ty)) => { 115 | pub fn new(client: &hedera::Client, _1: $param1, _2: $param2) -> Self { 116 | Self { 117 | inner: $tx::new(client, _1, _2), 118 | } 119 | } 120 | }; 121 | 122 | ($tx:tt ( $($param:tt)* ) { $( fn $builder_name:ident($builder_param:ty); )* } $({ $($extra:tt)* })?) => { 123 | mashup! { 124 | m["py"] = Py $tx; 125 | } 126 | 127 | m! { 128 | #[pyo3::prelude::pyclass(name = $tx)] 129 | pub struct "py" { 130 | inner: hedera::transaction::Transaction<$tx>, 131 | } 132 | 133 | impl "py" { 134 | def_transaction!(@new $tx($($param)*)); 135 | } 136 | 137 | #[pyo3::prelude::pymethods] 138 | impl "py" { 139 | pub fn execute(&mut self) -> pyo3::PyResult { 140 | self.inner 141 | .execute() 142 | .map(Into::into) 143 | .map_err(crate::errors::PyException) 144 | } 145 | 146 | #[setter] 147 | pub fn operator(&mut self, id: &pyo3::types::PyObjectRef) -> pyo3::PyResult<()> { 148 | self.inner.operator(match pyo3::FromPyObject::extract(id)?: crate::either::Either<&str, &crate::PyAccountId> { 149 | crate::either::Either::Left(s) => s.parse().map_err(crate::errors::PyValueError)?, 150 | crate::either::Either::Right(id) => id.inner, 151 | }); 152 | 153 | Ok(()) 154 | } 155 | 156 | #[setter] 157 | pub fn node(&mut self, id: &pyo3::types::PyObjectRef) -> pyo3::PyResult<()> { 158 | self.inner.node(match pyo3::FromPyObject::extract(id)?: crate::either::Either<&str, &crate::PyAccountId> { 159 | crate::either::Either::Left(s) => s.parse().map_err(crate::errors::PyValueError)?, 160 | crate::either::Either::Right(id) => id.inner, 161 | }); 162 | 163 | Ok(()) 164 | } 165 | 166 | #[setter] 167 | pub fn memo(&mut self, memo: &str) -> pyo3::PyResult<()> { 168 | self.inner.memo(memo); 169 | Ok(()) 170 | } 171 | 172 | #[setter] 173 | pub fn transaction_fee(&mut self, fee: u64) -> pyo3::PyResult<()> { 174 | self.inner.fee(fee); 175 | Ok(()) 176 | } 177 | 178 | #[setter] 179 | pub fn generate_record(&mut self, generate: bool) -> pyo3::PyResult<()> { 180 | self.inner.generate_record(generate); 181 | Ok(()) 182 | } 183 | 184 | pub fn sign(&mut self, secret: &crate::PySecretKey) -> pyo3::PyResult<()> { 185 | self.inner.sign(&secret.inner); 186 | Ok(()) 187 | } 188 | 189 | $( 190 | #[setter] 191 | fn $builder_name(&mut self, _1: $builder_param) -> pyo3::PyResult<()> { 192 | self.inner.$builder_name(_1.clone().into()); 193 | // fixme: RETURN SELF 194 | Ok(()) 195 | } 196 | )* 197 | 198 | $($($extra)*)? 199 | } 200 | } 201 | }; 202 | } 203 | 204 | // implements `TryFrom` from `Either<&str, A> to B, where A is the python wrapper for B. 205 | // Of course, B must implement `FromStr` and `Clone` (`Copy` implies `Clone`). 206 | macro_rules! try_from_either { 207 | ($py:ty, $id:ty) => { 208 | impl try_from::TryFrom> for $id { 209 | type Err = pyo3::PyErr; 210 | 211 | fn try_from( 212 | either: crate::either::Either<&str, &$py>, 213 | ) -> std::result::Result { 214 | match either { 215 | crate::either::Either::Left(s) => { 216 | s.parse().map_err(crate::errors::PyValueError) 217 | } 218 | crate::either::Either::Right(id) => Ok(id.inner.clone()), 219 | } 220 | } 221 | } 222 | }; 223 | } 224 | -------------------------------------------------------------------------------- /src/query_contract_get_bytecode.rs: -------------------------------------------------------------------------------- 1 | use hedera::{query::QueryContractGetBytecode, ContractId}; 2 | 3 | def_query!(QueryContractGetBytecode(ContractId) -> Vec); 4 | -------------------------------------------------------------------------------- /src/query_contract_get_info.rs: -------------------------------------------------------------------------------- 1 | use crate::PyContractInfo; 2 | use hedera::{query::QueryContractGetInfo, ContractId}; 3 | 4 | def_query!(QueryContractGetInfo(ContractId) -> PyContractInfo); 5 | -------------------------------------------------------------------------------- /src/query_contract_get_records.rs: -------------------------------------------------------------------------------- 1 | use crate::PyTransactionRecord; 2 | use hedera::{query::QueryContractGetRecords, ContractId}; 3 | 4 | def_query!(QueryContractGetRecords(ContractId) -> Vec); 5 | -------------------------------------------------------------------------------- /src/query_crypto_get_account_balance.rs: -------------------------------------------------------------------------------- 1 | use hedera::{query::QueryCryptoGetAccountBalance, AccountId}; 2 | 3 | def_query!(QueryCryptoGetAccountBalance(AccountId) -> u64); 4 | -------------------------------------------------------------------------------- /src/query_crypto_get_account_records.rs: -------------------------------------------------------------------------------- 1 | use crate::PyTransactionRecord; 2 | use hedera::{query::QueryCryptoGetAccountRecords, AccountId}; 3 | 4 | def_query!(QueryCryptoGetAccountRecords(AccountId) -> Vec); 5 | -------------------------------------------------------------------------------- /src/query_crypto_get_claim.rs: -------------------------------------------------------------------------------- 1 | use crate::PyClaim; 2 | use hedera::{query::QueryCryptoGetClaim, AccountId}; 3 | 4 | def_query!(QueryCryptoGetClaim(AccountId, Vec) -> PyClaim); 5 | -------------------------------------------------------------------------------- /src/query_crypto_get_info.rs: -------------------------------------------------------------------------------- 1 | use crate::PyAccountInfo; 2 | use hedera::{query::QueryCryptoGetInfo, AccountId}; 3 | 4 | def_query!(QueryCryptoGetInfo(AccountId) -> PyAccountInfo); 5 | -------------------------------------------------------------------------------- /src/query_file_get_contents.rs: -------------------------------------------------------------------------------- 1 | use hedera::{query::QueryFileGetContents, FileId}; 2 | 3 | def_query!(QueryFileGetContents(FileId) -> Vec); 4 | -------------------------------------------------------------------------------- /src/query_file_get_info.rs: -------------------------------------------------------------------------------- 1 | use crate::PyFileInfo; 2 | use hedera::{query::QueryFileGetInfo, FileId}; 3 | 4 | def_query!(QueryFileGetInfo(FileId) -> PyFileInfo); 5 | -------------------------------------------------------------------------------- /src/query_get_by_key.rs: -------------------------------------------------------------------------------- 1 | use crate::{PyAccountId, PyClaim, PyContractId, PyFileId}; 2 | use hedera::{query::QueryGetByKey, Entity, PublicKey}; 3 | use pyo3::{IntoPyObject, PyObject, Python}; 4 | 5 | def_query!(QueryGetByKey(PublicKey) -> Vec => { 6 | |entities| { 7 | let py = unsafe { Python::assume_gil_acquired() }; 8 | 9 | entities.iter().map(|entity| match entity { 10 | Entity::Account(id) => PyAccountId::from(*id).into_object(py), 11 | Entity::Contract(id) => PyContractId::from(*id).into_object(py), 12 | Entity::File(id) => PyFileId::from(*id).into_object(py), 13 | Entity::Claim(claim) => PyClaim::from(claim.clone()).into_object(py), 14 | }).collect() 15 | } 16 | }); 17 | -------------------------------------------------------------------------------- /src/query_transaction_get_receipt.rs: -------------------------------------------------------------------------------- 1 | use crate::PyTransactionReceipt; 2 | use hedera::{query::QueryTransactionGetReceipt, TransactionId}; 3 | 4 | def_query!(QueryTransactionGetReceipt(TransactionId) -> PyTransactionReceipt); 5 | -------------------------------------------------------------------------------- /src/query_transaction_get_record.rs: -------------------------------------------------------------------------------- 1 | use crate::PyTransactionRecord; 2 | use hedera::{query::QueryTransactionGetRecord, TransactionId}; 3 | 4 | def_query!(QueryTransactionGetRecord(TransactionId) -> PyTransactionRecord); 5 | -------------------------------------------------------------------------------- /src/timestamp.rs: -------------------------------------------------------------------------------- 1 | use chrono::{prelude::*, DateTime, Utc}; 2 | use derive_more::From; 3 | use pyo3::{prelude::*, types}; 4 | use try_from::TryFrom; 5 | 6 | #[derive(From)] 7 | pub struct PyDateTime(Py); 8 | 9 | impl IntoPyObject for PyDateTime { 10 | fn into_object(self, py: Python) -> PyObject { 11 | self.0.into_object(py) 12 | } 13 | } 14 | 15 | impl TryFrom> for PyDateTime { 16 | type Err = PyErr; 17 | 18 | fn try_from(dt: DateTime) -> PyResult { 19 | // note: GIL should be acquired by this point and we don't know a safer way to get a py 20 | // instance from inside a `#[getter]` 21 | let py = unsafe { Python::assume_gil_acquired() }; 22 | 23 | let year = dt.year(); 24 | let month = dt.month() as u8; // 1..=12 25 | let day = dt.day() as u8; // 1..=31 26 | let hour = dt.hour() as u8; // 0..=23 27 | let minute = dt.minute() as u8; // 0..=59 28 | let second = dt.second() as u8; // 0..=59 29 | let microsecond = (dt.nanosecond() % 1_000_000_000) / 1_000; 30 | 31 | Ok(PyDateTime(types::PyDateTime::new( 32 | py, 33 | year, 34 | month, 35 | day, 36 | hour, 37 | minute, 38 | second, 39 | microsecond, 40 | None, 41 | )?)) 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/transaction_admin_contract_delete.rs: -------------------------------------------------------------------------------- 1 | use hedera::{transaction::TransactionAdminContractDelete, ContractId}; 2 | 3 | def_transaction!(TransactionAdminContractDelete(ContractId) {}); 4 | -------------------------------------------------------------------------------- /src/transaction_admin_contract_recover.rs: -------------------------------------------------------------------------------- 1 | use hedera::{transaction::TransactionAdminContractRecover, ContractId}; 2 | 3 | def_transaction!(TransactionAdminContractRecover(ContractId) {}); 4 | -------------------------------------------------------------------------------- /src/transaction_admin_file_delete.rs: -------------------------------------------------------------------------------- 1 | use hedera::{transaction::TransactionAdminFileDelete, FileId}; 2 | 3 | def_transaction!(TransactionAdminFileDelete(FileId) {}); 4 | -------------------------------------------------------------------------------- /src/transaction_admin_file_recover.rs: -------------------------------------------------------------------------------- 1 | use hedera::{transaction::TransactionAdminFileRecover, FileId}; 2 | 3 | def_transaction!(TransactionAdminFileRecover(FileId) {}); 4 | -------------------------------------------------------------------------------- /src/transaction_contract_call.rs: -------------------------------------------------------------------------------- 1 | use hedera::{transaction::TransactionContractCall, ContractId}; 2 | 3 | def_transaction!(TransactionContractCall(ContractId) { 4 | fn gas(i64); 5 | fn amount(i64); 6 | fn function_parameters(Vec); 7 | }); 8 | -------------------------------------------------------------------------------- /src/transaction_contract_create.rs: -------------------------------------------------------------------------------- 1 | use crate::{PyAccountId, PyFileId, PyPublicKey}; 2 | use hedera::transaction::TransactionContractCreate; 3 | 4 | def_transaction!(TransactionContractCreate() { 5 | fn file(&PyFileId); 6 | 7 | fn gas(i64); 8 | 9 | fn admin_key(&PyPublicKey); 10 | 11 | fn initial_balance(i64); 12 | 13 | fn proxy_account(&PyAccountId); 14 | 15 | fn proxy_fraction(i32); 16 | 17 | // TODO: fn auto_renew_period(&PyDuration); 18 | 19 | fn constructor_parameters(Vec); 20 | }); 21 | -------------------------------------------------------------------------------- /src/transaction_contract_update.rs: -------------------------------------------------------------------------------- 1 | use crate::{PyAccountId, PyFileId, PyPublicKey}; 2 | use hedera::{transaction::TransactionContractUpdate, ContractId}; 3 | 4 | def_transaction!(TransactionContractUpdate(ContractId){ 5 | // TODO: fn expiration_time(DateTime); 6 | fn admin_key(&PyPublicKey); 7 | fn proxy_account(&PyAccountId); 8 | // TODO: fn auto_renew_period(Duration); 9 | fn file(&PyFileId); 10 | }); 11 | -------------------------------------------------------------------------------- /src/transaction_crypto_add_claim.rs: -------------------------------------------------------------------------------- 1 | use hedera::{transaction::{TransactionCryptoAddClaim}, AccountId}; 2 | use pyo3::PyResult; 3 | use crate::PyPublicKey; 4 | 5 | def_transaction!(TransactionCryptoAddClaim(AccountId, Vec){}{ 6 | fn add_key(&mut self, key: &PyPublicKey) -> PyResult<()> { 7 | self.inner.key(key.clone().into()); 8 | Ok(()) 9 | } 10 | }); 11 | -------------------------------------------------------------------------------- /src/transaction_crypto_create.rs: -------------------------------------------------------------------------------- 1 | use crate::{PyAccountId, PyPublicKey}; 2 | use hedera::transaction::TransactionCryptoCreate; 3 | 4 | def_transaction!(TransactionCryptoCreate() { 5 | fn key(&PyPublicKey); 6 | fn initial_balance(u64); 7 | fn proxy_account(&PyAccountId); 8 | fn proxy_fraction(i32); 9 | fn max_receive_proxy_fraction(i32); 10 | // TODO: fn auto_renew_period(Duration); 11 | fn send_record_threshold(i64); 12 | fn receive_record_threshold(i64); 13 | fn receiver_signature_required(bool); 14 | }); 15 | -------------------------------------------------------------------------------- /src/transaction_crypto_delete.rs: -------------------------------------------------------------------------------- 1 | use crate::PyAccountId; 2 | use hedera::{transaction::TransactionCryptoDelete, AccountId}; 3 | 4 | def_transaction!(TransactionCryptoDelete(AccountId) { 5 | fn transfer_to(&PyAccountId); 6 | }); 7 | -------------------------------------------------------------------------------- /src/transaction_crypto_delete_claim.rs: -------------------------------------------------------------------------------- 1 | use hedera::{transaction::TransactionCryptoDeleteClaim, AccountId}; 2 | 3 | def_transaction!(TransactionCryptoDeleteClaim(AccountId, Vec){}); 4 | -------------------------------------------------------------------------------- /src/transaction_crypto_transfer.rs: -------------------------------------------------------------------------------- 1 | use crate::PyAccountId; 2 | use hedera::transaction::TransactionCryptoTransfer; 3 | use pyo3::PyResult; 4 | 5 | def_transaction!(TransactionCryptoTransfer() {} { 6 | fn add_transfer(&mut self, id: &PyAccountId, amount: i64) -> PyResult<()> { 7 | self.inner.transfer(id.clone().into(), amount); 8 | Ok(()) 9 | } 10 | }); 11 | -------------------------------------------------------------------------------- /src/transaction_crypto_update.rs: -------------------------------------------------------------------------------- 1 | use crate::{PyAccountId, PyPublicKey}; 2 | use hedera::{transaction::TransactionCryptoUpdate, AccountId}; 3 | 4 | def_transaction!(TransactionCryptoUpdate(AccountId) { 5 | fn key(&PyPublicKey); 6 | fn proxy_account(&PyAccountId); 7 | fn proxy_fraction(i32); 8 | fn send_record_threshold(u64); 9 | fn receive_record_threshold(u64); 10 | // fn auto_renew_period(&PyDuration); 11 | // fn expiration_time(&PyDateTime); 12 | }); 13 | -------------------------------------------------------------------------------- /src/transaction_file_append.rs: -------------------------------------------------------------------------------- 1 | use hedera::{transaction::TransactionFileAppend, FileId}; 2 | 3 | def_transaction!(TransactionFileAppend(FileId, Vec) {}); 4 | -------------------------------------------------------------------------------- /src/transaction_file_create.rs: -------------------------------------------------------------------------------- 1 | use crate::PyPublicKey; 2 | use hedera::transaction::TransactionFileCreate; 3 | 4 | // TODO: once DateTime shenanigans are working 5 | // `fn expires_at(&PyDateTime);` 6 | def_transaction!(TransactionFileCreate() { 7 | fn key(&PyPublicKey); 8 | fn contents(Vec); 9 | }); 10 | -------------------------------------------------------------------------------- /src/transaction_file_delete.rs: -------------------------------------------------------------------------------- 1 | use hedera::{transaction::TransactionFileDelete, FileId}; 2 | 3 | def_transaction!(TransactionFileDelete(FileId) {}); 4 | -------------------------------------------------------------------------------- /src/transaction_file_update.rs: -------------------------------------------------------------------------------- 1 | use crate::PyPublicKey; 2 | use hedera::{transaction::TransactionFileUpdate, FileId}; 3 | 4 | def_transaction!(TransactionFileUpdate(FileId) { 5 | // fn expires_at(PyDateTime); 6 | fn key(&PyPublicKey); 7 | fn contents(Vec); 8 | }); 9 | -------------------------------------------------------------------------------- /src/transaction_id.rs: -------------------------------------------------------------------------------- 1 | use crate::{errors::PyValueError, PyAccountId, PyDateTime}; 2 | use derive_more::From; 3 | use hedera::TransactionId; 4 | use pyo3::prelude::*; 5 | use std::str::FromStr; 6 | use try_from::TryInto; 7 | 8 | #[pyclass(name = TransactionId)] 9 | #[derive(From)] 10 | pub struct PyTransactionId { 11 | pub(crate) inner: TransactionId, 12 | } 13 | 14 | #[pymethods] 15 | impl PyTransactionId { 16 | #[new] 17 | pub fn __new__(obj: &PyRawObject, s: &str) -> PyResult<()> { 18 | let id = TransactionId::from_str(s).map_err(PyValueError)?; 19 | obj.init(|| Self { inner: id }) 20 | } 21 | 22 | #[getter] 23 | pub fn account_id(&self) -> PyResult { 24 | Ok(self.inner.account_id.into()) 25 | } 26 | 27 | #[getter] 28 | pub fn transaction_valid_start(&self) -> PyResult { 29 | self.inner.transaction_valid_start.try_into() 30 | } 31 | } 32 | 33 | def_str!(PyTransactionId); 34 | -------------------------------------------------------------------------------- /src/transaction_receipt.rs: -------------------------------------------------------------------------------- 1 | use derive_more::From; 2 | use hedera::TransactionReceipt; 3 | use pyo3::prelude::*; 4 | 5 | #[pyclass(name = TransactionReceipt)] 6 | #[derive(From)] 7 | pub struct PyTransactionReceipt { 8 | pub(crate) inner: TransactionReceipt, 9 | } 10 | 11 | #[pymethods] 12 | impl PyTransactionReceipt { 13 | #[getter] 14 | pub fn status(&self) -> PyResult { 15 | Ok(self.inner.status as u8) 16 | } 17 | 18 | #[getter] 19 | pub fn account_id(&self) -> PyResult> { 20 | Ok(self.inner.account_id.as_ref().map(|id| id.to_string())) 21 | } 22 | 23 | #[getter] 24 | pub fn contract_id(&self) -> PyResult> { 25 | Ok(self.inner.contract_id.as_ref().map(|id| id.to_string())) 26 | } 27 | 28 | #[getter] 29 | pub fn file_id(&self) -> PyResult> { 30 | Ok(self.inner.file_id.as_ref().map(|id| id.to_string())) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/transaction_record.rs: -------------------------------------------------------------------------------- 1 | use crate::{id::PyAccountId, PyContractFunctionResult, PyDateTime, PyTransactionReceipt}; 2 | use derive_more::From; 3 | use hedera::{TransactionRecord, TransactionRecordBody}; 4 | use pyo3::prelude::*; 5 | use try_from::TryInto; 6 | 7 | // todo: add a .kind field to indicate what kind the body type is: ContractCall, ContractCreate, or Transfer 8 | 9 | #[pyclass(name = TransactionRecord)] 10 | #[derive(From)] 11 | pub struct PyTransactionRecord { 12 | pub(crate) inner: TransactionRecord, 13 | } 14 | 15 | #[pymethods] 16 | impl PyTransactionRecord { 17 | #[getter] 18 | pub fn receipt(&self) -> PyResult { 19 | Ok(self.inner.receipt.clone().into()) 20 | } 21 | 22 | #[getter] 23 | pub fn transaction_hash(&self) -> PyResult> { 24 | Ok(self.inner.transaction_hash.clone()) 25 | } 26 | 27 | #[getter] 28 | pub fn consensus_timestamp(&self) -> PyResult> { 29 | self.inner 30 | .consensus_timestamp 31 | .map(|ts| ts.try_into()) 32 | .transpose() 33 | } 34 | 35 | #[getter] 36 | pub fn memo(&self) -> PyResult { 37 | Ok(self.inner.memo.clone()) 38 | } 39 | 40 | #[getter] 41 | pub fn transaction_fee(&self) -> PyResult { 42 | Ok(self.inner.transaction_fee) 43 | } 44 | 45 | #[getter] 46 | pub fn contract_function_result(&self) -> PyResult> { 47 | match &self.inner.body { 48 | TransactionRecordBody::ContractCall(result) => Ok(Some(result.clone().into())), 49 | TransactionRecordBody::ContractCreate(result) => Ok(Some(result.clone().into())), 50 | 51 | _ => Ok(None), 52 | } 53 | } 54 | 55 | #[getter] 56 | pub fn transfers(&self) -> PyResult> { 57 | match &self.inner.body { 58 | TransactionRecordBody::Transfer(transfers) => Ok(transfers 59 | .clone() 60 | .into_iter() 61 | .map(|(id, amount)| (id.into(), amount)) 62 | .collect()), 63 | 64 | _ => Ok(vec![]), 65 | } 66 | } 67 | } 68 | --------------------------------------------------------------------------------