As mentioned in the challenge, a user can generate an Action Token which any other user can use to receive the tokens attached to it within the expiry time.
Added two routes for generating action tokens and transferring tokens attached to the action token.
This commit includes integration tests for generating, transferring, and handling the edge case of expired tokens. Unit tests are still pending for the ActionTokenService.
Issue(s) addressed
Resolves #457
What kind of change(s) does this PR introduce?
[x] Enhancement
[ ] Bug fix
[ ] Refactor
Please check if the PR fulfils these requirements
[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
Description
As mentioned in the challenge, a user can generate an Action Token which any other user can use to receive the tokens attached to it within the expiry time.
Added two routes for generating action tokens and transferring tokens attached to the action token.
This commit includes integration tests for generating, transferring, and handling the edge case of expired tokens. Unit tests are still pending for the ActionTokenService.
Issue(s) addressed
What kind of change(s) does this PR introduce?
Please check if the PR fulfils these requirements
Breaking change
Does this PR introduce a breaking change? No
Other useful information