-
Notifications
You must be signed in to change notification settings - Fork 205
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
Feat/esdt prefix #6137
base: rc/v1.7.next1
Are you sure you want to change the base?
Feat/esdt prefix #6137
Conversation
checkTickerAndNonceExtraction(t, "pref-ALC-1q2w3e", "pref-ALC-1q2w3e", 0) | ||
checkTickerAndNonceExtraction(t, "pf1-ALC-1q2w3e", "pf1-ALC-1q2w3e", 0) | ||
|
||
checkTickerAndNonceExtraction(t, "sv1-TKN-1q2w3e4", "sv1-TKN-1q2w3e", 52) |
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.
We also need tests with min/max characters for prefix and min/max characters for ticker, and combination of these.
📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
Esdt safe callback test on fail case
…7-nov # Conflicts: # errors/errors.go
…prefix-7-nov Merge rc 1 7 next into esdt prefix 7 nov
📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
…n-go into relayedv3 # Conflicts: # go.mod # go.sum
…executing scheduled miniblocks.
…actor Refactor register functions to be usable in sovereign chain simulator
📊 MultiversX Automated Test Report: View Report 🔄 Build Details:
🚀 Environment Variables:
|
fixed the computed fee for outport for relayed v3
fix chain simulator
count all refunds if more than one scr exists
…multiple-scrs-with-refund
…ientBalanceForFee_WithRelayedV3.
…eZeroBalance_WithRelayedV3.
Multiple smart contract results with refund
…ultiversx/mx-chain-go into MX-16207-mempool-chain-simulator
…ator Mempool: bit of refactoring, chain simulator tests
updated deps
Feat/relayedv3
…dexer Fix indexer
…erge-spica-relayed-into-esdt-prefix-31-ian # Conflicts: # go.mod # go.sum
…t-prefix-31-ian Merge spica relayed into esdt prefix 31 ian
Reasoning behind the pull request
This branch includes several cross chain features needed for main chain(mainnet/devnet/testnet/local-testnet) -> sovereign chain communication:
More specifically, let's consider a mainnet scenario, where this deposit safe contract is deployed (therefore, all issued esdts will have no prefix). Now, if we want to mint extra esdts/nfts/sfts, this won't be possible, only through our whitelisted address. Our use case is that a user will call an endpoint
deposit
from this sc, which will contain several information including tokenID and amount to deposit to a specific address. This contract shall be allowed to mint required token amount(with the same tokenID and prefix) and send them to destination.Same scenario should work for a sovereign chain(where the config specifies that the chain will issue tokens with a specific
ESDTPrefix
) and where we will deposit unprefixed tokens.Another interesting use case is for cross chain sfts/nfts(basically a token with meta data and nonce). For those specific bridged in(from sov->main) tokens, a different type of input for builtInFunc from
esdtNFTCreate
will be created and executed. More specifically, for cross chain operations, last two arguments should be(these are added from inside the whitelisted address, if not, tx should fail):Also, use cases with "proxy" contracts (e.g.: user calls -> contract A -> calls ESDTSafe(whitelisted) contract) should work only for whitelisted addresses and meta data should be correctly filled.
The same bridged in meta data (from sov->main) should be found in the contract emitted log when bridged out (main->sov) .
This is the list with all whitelisted cross actions that should be tested:
Proposed changes
-
separator)cmd/node/config/systemSmartContractsConfig.toml
:Whitelisted addresses can be found in
cmd/node/config/config.toml
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?