-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autogenerated algod client (#213)
* Add autogenerated algod client * Fix test.env * Migrate health_check to new client * Migrate get_status to new client * Add error logging * Remove logging and add a message to the error * Use u64 for integers in algonaut_algod * Use byteslices in place of PathBuf * Integrate algod autogenerated client * Make it compile * Make the examples compile * Fix genesis hash ser-de * Fix example app_create * Fix part of the examples - app_call - app_clear_state - app_optin - app_update * Fix some examples * make tests compile * Remove algod models from algonaut_model * Fix de-ser-ialization of binary data * Minor fixes * Re-export ServiceError in the root of the crate * Rename ServiceError to Error * Add Block type alias * Rename algod_exp to openapi_algod * Refactor workspace * Re-export new crates * Format code * Clippy * Fix tests * Rename Algod methods * Fix tests
- Loading branch information
1 parent
a428f2a
commit c58d109
Showing
147 changed files
with
9,444 additions
and
3,523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/target/ | ||
**/*.rs.bk | ||
Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# OpenAPI Generator Ignore | ||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator | ||
|
||
# Use this file to prevent files from being overwritten by the generator. | ||
# The patterns follow closely to .gitignore or .dockerignore. | ||
|
||
# As an example, the C# client generator defines ApiClient.cs. | ||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: | ||
#ApiClient.cs | ||
|
||
# You can match any string of characters against a directory, file or extension with a single asterisk (*): | ||
#foo/*/qux | ||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | ||
|
||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**): | ||
#foo/**/qux | ||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | ||
|
||
# You can also negate patterns with an exclamation (!). | ||
# For example, you can ignore all files in a docs folder with the file extension .md: | ||
#docs/*.md | ||
# Then explicitly reverse the ignore rule for a single file: | ||
#!docs/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
.gitignore | ||
.openapi-generator-ignore | ||
.travis.yml | ||
Cargo.toml | ||
README.md | ||
docs/AbortCatchup200Response.md | ||
docs/Account.md | ||
docs/AccountApplicationInformation200Response.md | ||
docs/AccountAssetInformation200Response.md | ||
docs/AccountParticipation.md | ||
docs/AccountStateDelta.md | ||
docs/AddParticipationKey200Response.md | ||
docs/Application.md | ||
docs/ApplicationLocalState.md | ||
docs/ApplicationParams.md | ||
docs/ApplicationStateSchema.md | ||
docs/Asset.md | ||
docs/AssetHolding.md | ||
docs/AssetParams.md | ||
docs/Box.md | ||
docs/BoxDescriptor.md | ||
docs/BuildVersion.md | ||
docs/CommonApi.md | ||
docs/DataApi.md | ||
docs/DryrunRequest.md | ||
docs/DryrunSource.md | ||
docs/DryrunState.md | ||
docs/DryrunTxnResult.md | ||
docs/ErrorResponse.md | ||
docs/EvalDelta.md | ||
docs/EvalDeltaKeyValue.md | ||
docs/ExperimentalApi.md | ||
docs/GetApplicationBoxes200Response.md | ||
docs/GetBlock200Response.md | ||
docs/GetBlockHash200Response.md | ||
docs/GetPendingTransactionsByAddress200Response.md | ||
docs/GetStatus200Response.md | ||
docs/GetSupply200Response.md | ||
docs/GetSyncRound200Response.md | ||
docs/GetTransactionProof200Response.md | ||
docs/KvDelta.md | ||
docs/LightBlockHeaderProof.md | ||
docs/NonparticipatingApi.md | ||
docs/ParticipatingApi.md | ||
docs/ParticipationKey.md | ||
docs/PendingTransactionResponse.md | ||
docs/PrivateApi.md | ||
docs/PublicApi.md | ||
docs/RawTransaction200Response.md | ||
docs/SimulateRequest.md | ||
docs/SimulateRequestTransactionGroup.md | ||
docs/SimulateTransaction200Response.md | ||
docs/SimulateTransactionGroupResult.md | ||
docs/SimulateTransactionResult.md | ||
docs/StartCatchup200Response.md | ||
docs/StateProof.md | ||
docs/StateProofMessage.md | ||
docs/TealCompile200Response.md | ||
docs/TealDisassemble200Response.md | ||
docs/TealDryrun200Response.md | ||
docs/TealKeyValue.md | ||
docs/TealValue.md | ||
docs/TransactionParams200Response.md | ||
docs/Version.md | ||
git_push.sh | ||
src/apis/common_api.rs | ||
src/apis/configuration.rs | ||
src/apis/data_api.rs | ||
src/apis/experimental_api.rs | ||
src/apis/mod.rs | ||
src/apis/nonparticipating_api.rs | ||
src/apis/participating_api.rs | ||
src/apis/private_api.rs | ||
src/apis/public_api.rs | ||
src/lib.rs | ||
src/models/abort_catchup_200_response.rs | ||
src/models/account.rs | ||
src/models/account_application_information_200_response.rs | ||
src/models/account_asset_information_200_response.rs | ||
src/models/account_participation.rs | ||
src/models/account_state_delta.rs | ||
src/models/add_participation_key_200_response.rs | ||
src/models/application.rs | ||
src/models/application_local_state.rs | ||
src/models/application_params.rs | ||
src/models/application_state_schema.rs | ||
src/models/asset.rs | ||
src/models/asset_holding.rs | ||
src/models/asset_params.rs | ||
src/models/box_descriptor.rs | ||
src/models/build_version.rs | ||
src/models/dryrun_request.rs | ||
src/models/dryrun_source.rs | ||
src/models/dryrun_state.rs | ||
src/models/dryrun_txn_result.rs | ||
src/models/error_response.rs | ||
src/models/eval_delta.rs | ||
src/models/eval_delta_key_value.rs | ||
src/models/get_application_boxes_200_response.rs | ||
src/models/get_block_200_response.rs | ||
src/models/get_block_hash_200_response.rs | ||
src/models/get_pending_transactions_by_address_200_response.rs | ||
src/models/get_status_200_response.rs | ||
src/models/get_supply_200_response.rs | ||
src/models/get_sync_round_200_response.rs | ||
src/models/get_transaction_proof_200_response.rs | ||
src/models/kv_delta.rs | ||
src/models/light_block_header_proof.rs | ||
src/models/mod.rs | ||
src/models/model_box.rs | ||
src/models/participation_key.rs | ||
src/models/pending_transaction_response.rs | ||
src/models/raw_transaction_200_response.rs | ||
src/models/simulate_request.rs | ||
src/models/simulate_request_transaction_group.rs | ||
src/models/simulate_transaction_200_response.rs | ||
src/models/simulate_transaction_group_result.rs | ||
src/models/simulate_transaction_result.rs | ||
src/models/start_catchup_200_response.rs | ||
src/models/state_proof.rs | ||
src/models/state_proof_message.rs | ||
src/models/teal_compile_200_response.rs | ||
src/models/teal_disassemble_200_response.rs | ||
src/models/teal_dryrun_200_response.rs | ||
src/models/teal_key_value.rs | ||
src/models/teal_value.rs | ||
src/models/transaction_params_200_response.rs | ||
src/models/version.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6.6.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
language: rust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "algonaut_algod" | ||
version = "0.4.2" | ||
authors = ["[email protected]"] | ||
description = "API endpoint for algod operations." | ||
# Override this license by providing a License Object in the OpenAPI. | ||
license = "MIT" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
algonaut_crypto = { path = "../algonaut_crypto", version = "0.4.2" } | ||
algonaut_encoding = { path = "../algonaut_encoding", version = "0.4.2" } | ||
algonaut_model = { path = "../algonaut_model", version = "0.4.2" } | ||
serde = "^1.0" | ||
serde_derive = "^1.0" | ||
serde_json = "^1.0" | ||
url = "^2.2" | ||
uuid = { version = "^1.0", features = ["serde"] } | ||
[dependencies.reqwest] | ||
version = "^0.11" | ||
features = ["json", "multipart"] |
Oops, something went wrong.