-
Notifications
You must be signed in to change notification settings - Fork 141
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
Article: How to manage your contract gas #20
Comments
Can it be merged with Issue#9? |
I saw it, it seemed like a different target audience: "Make sure person with little or no blockchain literacy understands how fees work on TON." This blog post is aimed at hard core FunC developers and will show a lot of code |
Can we reflect the target audience explicitly in the issue then? |
No problem, clarified the target audience in multiple places in the issue |
Why do we need this post? I reviewed my team's contracts and I see that they leave 0.01 TON for storage fees. I then ask why 0.01 TON? Why not more or less? The answer is usually that this is what we saw in the Jetton contract. The purpose of this blog post is to explain these things in detail and explain how these "magic" values came to be and what's the logic behind them. |
I suggest to add some Toncoin reward to this Footstep. Let's say $300 or $500, based on the rewards for other articles in previous Footsteps. |
$400 would be optimal for this article. We are calling on experienced developers to cover this issue. |
I agree with you. I've just set the reward to $400. |
Hi |
@delovoyhomie Thank you. |
@mbaneshi, thank you for following the bounty guideline! |
@SwiftAdviser, @reveloper, could you please advise where in the documentation this article would best fit? |
Dear @talkol,I have sent you a direct message on Telegram. Could you please take a moment to review it at your earliest convenience? Thank you for your attention. |
@mbaneshi, could I ask you to write me in DM on Telegram? |
Hi, soon I will have an update here. Important one. |
Hi all First, this is my first formal community contribution, In response to given community's trust in me as a newbie, I put my all in to bring valuable content. of course, it suffers from :
But my point is not this, I call for changing the issue title, and adjusting the content as follows : Proposed title : What does it mean? General ideaMaybe we could indicate this article as the essence of TON development in general. Gas is a quantities unit, well-designed, well defined and we can sense its footsteps all around the TON development concepts and process. The problem :Gas in TON is not just calculating its fee or a consideration precaution to avoid pitfalls, such as the issue is meant to be addressed, in fact, It is an engineering indicator for writing code and utilizing the network optimally. I wrote this article many times, and when I came back and read it, I noticed that it was not complete. It neglects many important facts, avoiding redundancy and integrity with the previously presented content was a small challenge, finding a complementary text from, many hard-to-find resources was a medium challenge and the main concern was the fact :
Let’s bring some examples. Example 1 :The Tonkeeper wallet developer team recently optimized the storage fee to 95 percent. You can find more information here. Example 2 :In an article that deals with TVM instruction for reducing gas computation fees, we have an interesting example There, it writes a new assembly word to avoid unnecessary use of intermediary data store leading to 500 units of gas savings.
Now, consider the fact that everywhere the Doc has been addressing Fift, it indicates, this is low-level staff, for Braves. More importantly, the fact that some traditional approaches to developing apps,(Monolithic, Microservice) here are a waste of time, money, and energy and even worse unused and impossible. This refers to the nature of TON, I mean we are faced with a novel system, that deserves a change in our mindset due to the design principle of the system. |
In short: What I am looking for :
Meanwhile, you can check the index of accumulated data and sense of ongoing tasks, Checking this issue may be also useful. |
Please check this post in the China TON dev group, to figure out how developers face problems. |
@delovoyhomie and @reveloper please let me know your point of view regarding this issue, specifically the latest update. Thank you. |
@delovoyhomie, It seems @talkol is busy, could you reach him? I sent him a message too, but no answer yet. |
Hi , sorry for long delay ,it will publish soon. |
Hi there, Below is the effort I made. |
Summary
Teach FunC smart contract developers how to manage gas in the contracts they're writing.
Context
TON contract gas model is very unique and quite different from the EVM model. Contract developers must design a gas strategy. If they won't do this well, the contract can run out of TON balance for rent and be removed. Messages that the contract sends might not have enough gas and be rejected. This is an advanced topic, not an introductory one.
Goals
Deliverables
A markdown article in a form of a GitHub gist or GitHub repository
Definition of Done
Reward
The text was updated successfully, but these errors were encountered: