-
Notifications
You must be signed in to change notification settings - Fork 54
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
dapp-feat: finished integrating API methods for TokenQueryContract #370
Conversation
Signed-off-by: Logan Nguyen <[email protected]>
…ize code reusability Signed-off-by: Logan Nguyen <[email protected]>
There was a problem hiding this 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
system-contract-dapp-playground/src/api/hedera/tokenQuery-interactions/index.ts
Show resolved
Hide resolved
TOKEN_KEYS: 'TokenKey', | ||
CUSTOM_FEES: 'TokenCustomFees', | ||
TOKEN_EXPIRY: 'TokenExpiryInfo', | ||
KYC_STATUS: 'TokenDefaultKycStatus', |
There was a problem hiding this comment.
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
KYC_STATUS: 'TokenDefaultKycStatus', | |
DEFAULT_KYC_STATUS: 'TokenDefaultKycStatus', |
CUSTOM_FEES: 'TokenCustomFees', | ||
TOKEN_EXPIRY: 'TokenExpiryInfo', | ||
KYC_STATUS: 'TokenDefaultKycStatus', | ||
FREEZE_STATUS: 'TokenDefaultFreezeStatus', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FREEZE_STATUS: 'TokenDefaultFreezeStatus', | |
DEFAULT_FREEZE_STATUS: 'TokenDefaultFreezeStatus', |
try { | ||
let transactionResult; | ||
switch (API) { | ||
case 'FREEZE_STATUS': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case 'FREEZE_STATUS': | |
case 'DEFAULT_FREEZE_STATUS': |
); | ||
break; | ||
|
||
case 'KYC_STATUS': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case 'KYC_STATUS': | |
case 'DEFAULT_KYC_STATUS': |
system-contract-dapp-playground/src/api/hedera/tokenQuery-interactions/index.ts
Show resolved
Hide resolved
Signed-off-by: Logan Nguyen <[email protected]>
…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]>
Description: finished integrating API methods for TokenQueryContract
Related issue(s): #314
Fixes partial #318
Checklist