Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dapp-feat: finished integrating API methods for TokenQueryContract #370

Conversation

quiet-node
Copy link
Member

Description: finished integrating API methods for TokenQueryContract

Related issue(s): #314

Fixes partial #318

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@quiet-node quiet-node added enhancement New feature or request P2 Tooling tooling labels Sep 2, 2023
@quiet-node quiet-node added this to the 0.5.0 milestone Sep 2, 2023
@quiet-node quiet-node self-assigned this Sep 2, 2023
@quiet-node quiet-node requested a review from a team as a code owner September 2, 2023 19:15
@github-actions
Copy link

github-actions bot commented Sep 2, 2023

Test Results

197 tests  ±0   191 ✔️ ±0   6m 40s ⏱️ +10s
  62 suites ±0       6 💤 ±0 
  13 files   ±0       0 ±0 

Results for commit ce17476. ± Comparison against base commit 9fbee51.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

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

Looking good.
A few comments

TOKEN_KEYS: 'TokenKey',
CUSTOM_FEES: 'TokenCustomFees',
TOKEN_EXPIRY: 'TokenExpiryInfo',
KYC_STATUS: 'TokenDefaultKycStatus',
Copy link
Collaborator

Choose a reason for hiding this comment

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

For the kyc and freeze cases i don't believe you've getting the current status. Rather you're getting the default

Suggested change
KYC_STATUS: 'TokenDefaultKycStatus',
DEFAULT_KYC_STATUS: 'TokenDefaultKycStatus',

CUSTOM_FEES: 'TokenCustomFees',
TOKEN_EXPIRY: 'TokenExpiryInfo',
KYC_STATUS: 'TokenDefaultKycStatus',
FREEZE_STATUS: 'TokenDefaultFreezeStatus',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
FREEZE_STATUS: 'TokenDefaultFreezeStatus',
DEFAULT_FREEZE_STATUS: 'TokenDefaultFreezeStatus',

try {
let transactionResult;
switch (API) {
case 'FREEZE_STATUS':
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
case 'FREEZE_STATUS':
case 'DEFAULT_FREEZE_STATUS':

);
break;

case 'KYC_STATUS':
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
case 'KYC_STATUS':
case 'DEFAULT_KYC_STATUS':

@quiet-node quiet-node merged commit 583001b into main Sep 4, 2023
16 checks passed
@quiet-node quiet-node deleted the 318-(APIs)-Add-contract-interacting-features-to-TokenQuery-contract branch September 4, 2023 17:15
mshakeg pushed a commit to mshakeg/hedera-smart-contracts that referenced this pull request Oct 14, 2023
…ashgraph#370)

* dapp-feat: finished integrating API methods for TokenQueryContract

Signed-off-by: Logan Nguyen <[email protected]>

* dapp-feat: added handleContractResponseWithDynamicEventNames to optimize code reusability

Signed-off-by: Logan Nguyen <[email protected]>

* dapp-update: updated API methods

Signed-off-by: Logan Nguyen <[email protected]>

---------

Signed-off-by: Logan Nguyen <[email protected]>
Signed-off-by: Mo Shaikjee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 Tooling tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants