This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Updated examples and add integration tests#103
Open
jaseemuddinn wants to merge 2 commits intoakash-network:mainfrom
Open
Updated examples and add integration tests#103jaseemuddinn wants to merge 2 commits intoakash-network:mainfrom
jaseemuddinn wants to merge 2 commits intoakash-network:mainfrom
Conversation
* **examples/get_lease_status.ts** - Updated `getRpc` function to use a valid RPC endpoint - Updated `QueryLeaseRequest` object with valid parameters - Added error handling for `client.Lease` call * **examples/get_deployments.ts** - Updated `getRpc` function to use a valid RPC endpoint - Updated `QueryDeploymentsRequest` object with valid parameters - Added error handling for `client.Deployments` call * **tests/test_examples.ts** - Imported necessary modules and functions - Wrote test cases for each example in the `examples` directory - Used `exec` to run each example and verify the output * **examples/README.md** - Added instructions on running the integration tests - Updated the examples to reflect the changes made * **.github/workflows/test.yml** - Added a new job to run the integration tests - Used `npm test` to run the tests
Contributor
|
I tried running the tests locally and they fail to execute because the |
baktun14
suggested changes
Dec 20, 2024
Contributor
baktun14
left a comment
There was a problem hiding this comment.
There are significant changes coming to the library following the upgrade to Cosmos SDK 47. We need to:
- Wait for the new changes on akash-api for the latest protobuf types
- Adapt the examples/tests to make them work with the latest changes
- Make the examples/tests run on sandbox
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
examples/get_lease_status.ts
getRpcfunction to use a valid RPC endpointQueryLeaseRequestobject with valid parametersclient.Leasecallexamples/get_deployments.ts
getRpcfunction to use a valid RPC endpointQueryDeploymentsRequestobject with valid parametersclient.Deploymentscalltests/test_examples.ts
examplesdirectoryexecto run each example and verify the outputexamples/README.md
.github/workflows/test.yml
npm testto run the tests