-
Notifications
You must be signed in to change notification settings - Fork 78
Update language to use compute units instead of gas for Cadence txs #1571
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
Update language to use compute units instead of gas for Cadence txs #1571
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
...opment-tutorials/cadence/cadence-advantages/native-data-availibility-with-cadence-scripts.md
Outdated
Show resolved
Hide resolved
docs/blockchain-development-tutorials/cadence/getting-started/production-deployment.md
Outdated
Show resolved
Hide resolved
docs/blockchain-development-tutorials/cross-vm-apps/introduction.md
Outdated
Show resolved
Hide resolved
| ### Payer | ||
|
|
||
| A payer is the account that pays the fees for the transaction. A transaction must specify exactly one payer. The payer is only responsible for paying the network and gas fees; the transaction is not authorized to access resources or code stored in the payer account. | ||
| A payer is the account that pays the fees for the transaction. A transaction must specify exactly one payer. The payer is only responsible for paying the network and compute unit fees; the transaction is not authorized to access resources or code stored in the payer account. |
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 is the network fees?
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.
It would really be a synonym of compute unit fees or gas fees. Sort of a catch all for anything else - inclusion fees, etc.
We can delete it for precision, or keep it since it's an introductory article and devs from other ecosystems will interpret it as "whatever you have to pay to make the transaction happen"
| A transaction is only valid if its declared sequence number matches the current on-chain sequence number for that key. The sequence number increments by one after the transaction is executed. | ||
|
|
||
| **Payer** is the account that pays the fees for the transaction. A transaction must specify exactly one payer. The payer is only responsible for paying the network and gas fees; the transaction is not authorized to access resources or code stored in the payer account. | ||
| **Payer** is the account that pays the fees for the transaction. A transaction must specify exactly one payer. The payer is only responsible for paying the network and compute unit (gas) fees; the transaction is not authorized to access resources or code stored in the payer account. |
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.
do we want the (gas) here? It can confuse the user with EVM Gas.
Also, what is the network fees?
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.
I left (or sometimes added) the gas in parens for articles that I thought an EVM developer converting to Cadence might see as the first, or an early exposure to compute units.
| A transaction expires after `600` blocks are committed on top of the reference block, which takes about 10 minutes at average Mainnet block rates. | ||
| Keep in mind that Flow is **very** efficient, so transaction fees are generally low. A limit resulting in max charges of `.001` Flow is sufficient to cover even complex transactions. | ||
|
|
||
| - Flow token transfer: 19 CU. |
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.
ty for updating these to the latest numbers!
…production-deployment.md Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
…es/native-data-availibility-with-cadence-scripts.md Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
…on.md Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
Co-authored-by: Vishal <1117327+vishalchangrani@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.