-
Notifications
You must be signed in to change notification settings - Fork 143
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
Smart Contracts hbar Allowance and Approval #906
Conversation
Signed-off-by: lukelee-sl <[email protected]>
✅ Deploy Preview for hedera-hips ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Assign number to hip Signed-off-by: Michael Garber <[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, left some feedback
Signed-off-by: lukelee-sl <[email protected]>
We believe that the functionality introduced in this HIP is valuable. However, it does not address the specific issue we outlined in detail here. We require the capability for a contract to spend users' HBAR if it has received explicit spending approval. |
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Hey team! This particular issue would provide a lot of value to our launchpad. The current bug introduced by the allowance mechanisms prevents us from being able to send any NFT that includes a fallback fee. This is a significant blocker for smart contracts. |
… a section discussing notification of update events Signed-off-by: lukelee-sl <[email protected]>
HIP/hip-906.md
Outdated
} | ||
``` | ||
|
||
Once the above functionality has been implemented in services, an EOA or contract with hbars will be able to call the `hbarAllownace` and `hbarApprove` functions as follows: |
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.
hbarAllownace -> hbarAllowance
HIP/hip-906.md
Outdated
|
||
## Key Benefits and Possible Use Cases | ||
Key benefits include: | ||
1. Better developer experience. Develops will not have to use the SDK to perform tasks that will be available via this HIP. |
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.
Develops -> Developers ?
HIP/hip-906.md
Outdated
## Updates via HAPI | ||
|
||
It is possible that the approved allowances for a spender can be spent or increased by submitting a separate approval transaction via | ||
HAPI. In this case, the smart contract would not be aware of these changes in state could possibly hold stale state. While it would be possible |
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.
This sentence is not fully clear. Probably you meant:
would not be aware of these changes in state and it could possibly hold stale state
?
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: Michael Garber <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]>
Signed-off-by: lukelee-sl <[email protected]> Signed-off-by: Michael Garber <[email protected]> Co-authored-by: Michael Garber <[email protected]> Signed-off-by: Kim Rader <[email protected]>
Description:
This HIP describes a proposal to enable hbar allowance and approvals from smart contracts. This will allow developers to grant allowances from an EOA or a contract from within smart contracts code rather than having to resort to using HAPI for this functionality
Checklist