feat(express): add typed routes for TRX delegation APIs#8344
Open
bhavidhingra wants to merge 1 commit intomasterfrom
Open
feat(express): add typed routes for TRX delegation APIs#8344bhavidhingra wants to merge 1 commit intomasterfrom
bhavidhingra wants to merge 1 commit intomasterfrom
Conversation
388cf0a to
1dce693
Compare
Add dedicated Express routes for accountresources and activedelegations endpoints with io-ts validation. TICKET: CHALO-346
1dce693 to
335e26d
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
GET /api/v2/{coin}/wallet/{id}/accountresources— query BANDWIDTH/ENERGY resources for wallet addressesGET /api/v2/{coin}/wallet/{id}/activedelegations— query active outgoing/incoming resource delegationsDetails
accountresourcesaccepts addresses as query params (single or repeated?addresses=addr1&addresses=addr2)activedelegationssupports optional filters:type(owner/receiver),resourceType(ENERGY/BANDWIDTH),limitsendManyrouteTest plan
npx lerna run build --scope @bitgo/express)GET /accountresourcesvia Express on stagingGET /activedelegationsvia Express on stagingPOST /sendmanyon stagingTICKET: CHALO-346