-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support ConfigParam* described in block.tlb #194
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this commit adds support of two tlb features: 1. "_ X = Y": for example, "_ CryptoSignatureSimple = CryptoSignature", tongo embeds CryptoSignatureSimple into CryptoSignature. 2. constructor with number: "X <number": For example, " _ ConfigVotingSetup = ConfigParam 11".
The implemented support is quite limited now, tlb parser works with files which contain conditions but it totally ignores them producing no code
This commit adds support of the following constuction: _ (Hashmap 32 StoragePrices) = ConfigParam 18 It becomes: type ConfigParam18 struct { tlb.Hashmap[tlb.Uint32, StoragePrices] }
To generate config.go from config.tlb: cd tlb && go run generator-config.go As of now, config.go requires some manual changes.
aleksej-paschenko
force-pushed
the
tlb
branch
from
October 25, 2023 07:35
c7ed3a3
to
5557fa1
Compare
aleksej-paschenko
force-pushed
the
tlb
branch
from
October 25, 2023 11:23
fe6b972
to
6f5f3ef
Compare
aleksej-paschenko
force-pushed
the
tlb
branch
from
October 25, 2023 11:40
6f5f3ef
to
d07d6e0
Compare
aleksej-paschenko
force-pushed
the
tlb
branch
from
October 25, 2023 13:33
ba90a02
to
a9599dd
Compare
aleksej-paschenko
force-pushed
the
tlb
branch
from
October 25, 2023 13:53
a9599dd
to
3589fcf
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.