Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Use async/await patterns in blockapps-rest SDK#98

Open
0x2me wants to merge 4 commits intoblockapps:mainfrom
0x2me:feature/blockapps-rest-async-improvements
Open

Use async/await patterns in blockapps-rest SDK#98
0x2me wants to merge 4 commits intoblockapps:mainfrom
0x2me:feature/blockapps-rest-async-improvements

Conversation

@0x2me
Copy link
Copy Markdown

@0x2me 0x2me commented Aug 7, 2025

Summary

Update blockapps-rest SDK to use consistent async/await patterns throughout the codebase.

Changes

  • Remove .then() chains from OAuth utility
  • Remove unnecessary Promise constructors from importer
  • Add error handling helper to reduce code duplication
  • Refactor repetitive try/catch blocks

Testing

  • TypeScript compilation passes
  • Build completes successfully
  • No breaking changes to existing functionality

0x2me added 4 commits August 7, 2025 17:39
Remove promise chains in OAuth utility to improve code readability
and maintainability. Convert discoveryClient and jwksClient responses
to use direct await patterns instead of .then() chaining.
…configuration

- Implemented validation for required environment variables in docker-run.sh.
- Added blockchain gas limit and price configuration in app.config.js.
- Updated axios-wrapper.js to use blockchain gas settings from the configuration.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant