-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: Creates design doc for enabling access to hts token evm address #3258
base: main
Are you sure you want to change the base?
feat: Creates design doc for enabling access to hts token evm address #3258
Conversation
…ress Signed-off-by: Konstantina Blazhukova <[email protected]>
Test Results 19 files + 18 254 suites +247 30m 38s ⏱️ + 30m 8s For more details on these failures, see this check. Results for commit 06ba64b. ± Comparison against base commit ce43b76. This pull request removes 1 and adds 605 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Signed-off-by: Konstantina Blazhukova <[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.
Nice start,
More details need to be highlighted in the design doc to give a clear idea of approach.
See docs under https://github.com/hashgraph/hedera-json-rpc-relay/tree/main/docs/design for inspiration
|
||
N.B Currently, HTS supports both v1 and v2 security model function selectors | ||
|
||
1. Extract the token address from the call_result field in the transaction response. |
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.
What approach are you intending to utilize to extract?
Is it just brute force string manipulation or are you using additional logic to parse the bytes into an expected format and pull the address from that?
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.
Brute force manipulation I would say, Improved the description
Signed-off-by: Konstantina Blazhukova <[email protected]>
Signed-off-by: Konstantina Blazhukova <[email protected]>
Signed-off-by: Konstantina Blazhukova <[email protected]>
Signed-off-by: Konstantina Blazhukova <[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.
Nice improvements.
Signing off so as to not block but please adopt some form of my suggestions
Co-authored-by: Nana Essilfie-Conduah <[email protected]> Signed-off-by: konstantinabl <[email protected]>
Co-authored-by: Nana Essilfie-Conduah <[email protected]> Signed-off-by: konstantinabl <[email protected]>
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3258 +/- ##
==========================================
+ Coverage 77.84% 77.88% +0.03%
==========================================
Files 66 66
Lines 4460 4468 +8
Branches 1000 1003 +3
==========================================
+ Hits 3472 3480 +8
Misses 613 613
Partials 375 375
Flags with carried forward coverage won't be shown. Click here to find out more. |
This design handles the direct precompile call flow well. There might be a case where we create an HTS token within the contract's constructor. What will we return in that case? Is the newly created contract's address or the HTS token address? In terms of the Ethereum equivalence, we always must return the contract's address. Maybe we should add a section in the readme with something like "In case of HTS token creation within the constructor, the user should manually emit an event and handle the token address exposure on the contract's side"? @Nana-EC actually, are we thinking of handling an HTS token creation within a contract and populating the |
Hmmm, I don't think we need to handle in contract calls as there it is the responsibility of the developer to handle the functions response. And yeah if they want they can emit an event to externalize the token address. |
Description:
Creates a design doc for new change to trasnaction receipt format, related to hts token address
Reference: hashgraph/hedera-smart-contracts#901
Related issue(s):
Fixes #3257