Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Update Token module endpoints - Closes #7579 #7660 #7705

Merged
merged 11 commits into from
Oct 29, 2022

Conversation

bobanm
Copy link
Contributor

@bobanm bobanm commented Oct 27, 2022

What was the problem?

This PR resolves #7579 #7660

How was it solved?

  • Fixed TokenModule.init() to get config from a ModuleConfig object
  • Implemented isSupported endpoint
  • Implemented getInitializationFees endpoint
  • Partially implemented getSupportedTokens endpoint

How was it tested?

Added unit tests. Skipped the one that should return false when checking if a not-supported token is supported.

@bobanm bobanm requested a review from shuse2 October 27, 2022 08:09
@bobanm bobanm self-assigned this Oct 27, 2022
@bobanm bobanm marked this pull request as draft October 27, 2022 22:33
@bobanm bobanm changed the title WIP: Update Token module endpoints - Closes #7579 WIP: Update Token module endpoints - Closes #7579 #7660 Oct 27, 2022
Base automatically changed from 7694-remove-redundant-module-config-interface to feature/7211-update_token_module October 27, 2022 23:22
@shuse2 shuse2 requested a review from mosmartin October 28, 2022 07:40
@bobanm bobanm requested review from mosmartin and removed request for mosmartin October 28, 2022 11:11
Copy link
Collaborator

@shuse2 shuse2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the existing implementation

framework/src/modules/token/module.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@mosmartin mosmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@bobanm bobanm changed the title WIP: Update Token module endpoints - Closes #7579 #7660 Update Token module endpoints - Closes #7579 #7660 Oct 29, 2022
@bobanm bobanm marked this pull request as ready for review October 29, 2022 16:57
@bobanm bobanm requested a review from shuse2 October 29, 2022 16:58
@shuse2 shuse2 enabled auto-merge (squash) October 29, 2022 19:58
@shuse2 shuse2 merged commit c473cb7 into feature/7211-update_token_module Oct 29, 2022
@shuse2 shuse2 deleted the 7579-token-endpoints branch October 29, 2022 20:06
ishantiw pushed a commit that referenced this pull request Nov 15, 2022
### What was the problem?

This PR resolves #7579 #7660

### How was it solved?

* Fixed `TokenModule.init()` to get config from a `ModuleConfig` object
* Implemented `isSupported` endpoint
* Implemented `getInitializationFees` endpoint
* Partially implemented `getSupportedTokens` endpoint

### How was it tested?

Added unit tests. Skipped the one that should return false when checking
if a not-supported token is supported.

Co-authored-by: shuse2 <[email protected]>
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.

3 participants