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.
SDK Methods
The following methods were updated:
In every method there are transactions created to support each method. These transactions are found in the
createTransactions
folder. Each transaction is then sent calling functions from thesendTransactions
folder.For the method - Join Data Pool - an transaction is needed signed by the enclave to approve the pending contributor. To test this in a demonstration format, a dummy enclave account and transactions is created in the testing files. Without this we would not be able to test when a user is approved as a contributor and can claim the ownership of their contributor token.
Testing files were created using Jest to test these methods, one for the testnetwork and one for a local sandbox.
To Test
There are two ways to test this. You can test on the testnetwork or you can test using a local spun up algorand sandbox. I would advise using the local sandbox as it takes 4 seconds to get through all the transactions compared to the testnetwork which takes 150 seconds to get through all the transactions ( confirming at a rate of 4seconds per transaction).
For testnetwork run:
npm run test-sdk sdk.test.ts
For sandbox run:
npm run test-sdk sdk.sandbox.test.ts