generated from multiversx/mx-template-sc
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Wegld fee #65
Merged
Merged
Wegld fee #65
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
4378754
Added new test file
andreiblt1304 d1f743c
Deploy test
andreiblt1304 1710be6
Modified setup + execute operation test
andreiblt1304 3fd293f
Added header verifier address method
andreiblt1304 defe670
Modified has_prefix function and test
andreiblt1304 fb815db
Fixed has_prefix error
andreiblt1304 9968276
Modified tests setup
andreiblt1304 ec7ce34
Fixed failing test
andreiblt1304 14e326f
Added mapper and inline function
andreiblt1304 36e870e
Modified mint to logic for wegld fee
andreiblt1304 d0aaea1
Added register_tokens endpoint
andreiblt1304 3f5de49
Modified wegld minting logic
andreiblt1304 6358d2e
Merge branch 'enshrine-esdt' into wegld-fee
andreiblt1304 752673e
Added wegld require for register tokens endpoint
andreiblt1304 2977ef2
Merge branch 'wegld-fee' of github.com:multiversx/mx-sovereign-sc int…
andreiblt1304 43e896c
Added wegld fee functions + reverted mint_tokens
andreiblt1304 a05a829
Modified execute endpoint for wegld fee implementation
andreiblt1304 1a77a32
Regenerated proxy
andreiblt1304 139528f
Removed from() in refund_wegld function
andreiblt1304 4a9db9f
Added wegld_ticker storage mapper
andreiblt1304 fd7ece4
Modified wegld mapper to save TokenIdentifier
andreiblt1304 04431bf
Renamed wegld mapper
andreiblt1304 a9bdc9f
Removed any use of wegld identifier constant
andreiblt1304 d8124c2
Regenerated enshrine proxy
andreiblt1304 79add8f
Renamed wegld method and modified logic
andreiblt1304 12d9950
Fixed comments
andreiblt1304 51f855f
Modified check for wegld fee function
andreiblt1304 d691d06
Modified execute_operation logic to throw event
andreiblt1304 b82ac41
Function rename
andreiblt1304 201397b
Modified inline function
andreiblt1304 6d65426
Added refund logic to verify function
andreiblt1304 12e326c
Modified init and fixed build error
andreiblt1304 59c2665
Modified called event and wegld function
andreiblt1304 6693b9a
Regenerated proxy
andreiblt1304 33a7aab
Renamed init arg
andreiblt1304 1f5bff4
Regenerated proxy
andreiblt1304 098b067
Added burn for sovereign tokens
andreiblt1304 83139b9
Modified wegld fee function
andreiblt1304 e1c516b
Added bool return value to fee function
andreiblt1304 a1b2738
Added register token call
andreiblt1304 1bff454
Removed clone call
andreiblt1304 4cfc7c6
Modified wegld fee calculation
andreiblt1304 87cafe7
Reverted condition in execute_operations
andreiblt1304 32fb9ac
Added else scenario for wegld fee
andreiblt1304 07d92fc
Added require check + changed return value
andreiblt1304 e426908
Modified wegld fee and inline function logic
andreiblt1304 74c97f7
Switched returned types
andreiblt1304 015c2d4
Added default function for OperationEsdtPayment
andreiblt1304 5352b44
Added get_wegld_payment function
andreiblt1304 8ed2d0a
Modified get_wegld_payment to return index
andreiblt1304 a26458a
Added new endpoint for WEGLD deposit
andreiblt1304 ae5d975
Modified prefix function and added sov prefix to init
andreiblt1304 86f397e
Added inline prefix check function
andreiblt1304 b6a8743
Modified inline function and used new has_sov_prefix function
andreiblt1304 3dcf59c
Switched from OptionalValue to Option
andreiblt1304 9eee6b9
Modified get_wegld logic to return BigUint and isize index
andreiblt1304 9b4a669
Regenerated proxy
andreiblt1304 f49be51
Modified function to check sovereign prefix
andreiblt1304 0a6a31f
Renamed sovereign token mapper
andreiblt1304 62aa434
Modified wegld fee and mint & burn logic
andreiblt1304 7f058e6
Separated lib.rs match statement
andreiblt1304 906fb92
Reverted create_tx file
andreiblt1304 aaf36e7
Modified mapper identifier and removed require
andreiblt1304 28736eb
Called has_sov_prefix instead of has_prefix
andreiblt1304 5d3b2f4
Modified token verification logic
andreiblt1304 ff22b99
Regenerated proxy
andreiblt1304 13e4765
Renamed endpoint
andreiblt1304 13bac6a
Removed require statement
andreiblt1304 5db58c6
Added panic in execute operations
andreiblt1304 98e86fd
Modified init argument
andreiblt1304 65d1e45
Merge branch 'enshrine-esdt' of github.com:multiversx/mx-sovereign-sc…
andreiblt1304 db647b9
Removed sc_panic and added return
andreiblt1304 a8ddcc8
Modified tokens wegld registration and removed function
andreiblt1304 5882849
Modified get_sovereign_prefix call
andreiblt1304 6aef775
Removed require and added if
andreiblt1304 f660493
Added constants for prefix checks
andreiblt1304 9ad4b0e
Modified init endpoint if condition
andreiblt1304 6785627
Renamed optional parameters in init
andreiblt1304 4b92c04
Regenerated proxy
andreiblt1304 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 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 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 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 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 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 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 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 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
If this makes token issue, it won't work. You can only make one legacy async call per call, which is what the token issue framework uses.
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.
register_token
just saves theTokenIdentifier
to thepaid_issued_tokens
mapper