Cardano Example Dapp
Metadatum Label Edge Cases
Script that will allow checking the full circuit, from building a tx with edge metadatum label cases, to query it then with the APIs on UI to check if there are any encoding issues, overflows or manipulations
Try it online:
- Visit HTML+JS Dapp
- Visit HTML+React Dapp
- Visit Native HTML dapp
- Run Run in Wallet…Open in IDE…
Source code:
- dapp connection code: GCScript DSL
- frontend (using @gamechanger-finance/gc): HTML+JS dapp
- frontend (using @gamechanger-finance/gc): HTML+React dapp
- frontend (without official library): Native HTML dapp
Dapp code was autogenerated by Playground IDE in GameChanger Wallet
GCScript code (dapp connection):
{
"title": "Metadatum Label Edge Cases",
"description": "Script that will allow checking the full circuit, from building a tx with edge metadatum label cases, to query it then with the APIs on UI to check if there are any encoding issues, overflows or manipulations",
"type": "script",
"returnURLPattern": "http://localhost:3000/demo/api/dapp",
"run": {
"buildTransaction": {
"type": "buildTx",
"name": "MetadatumTest",
"tx": {
"auxiliaryData": {
"1": "",
"999999999999999": "len15",
"9999999999999999": "len16",
"99999999999999999": "len17",
"999999999999999999": "len18",
"000000000000000": "len15 0",
"0000000000000000": "len16 0"
}
}
},
"signTransaction": {
"type": "signTxs",
"detailedPermissions": false,
"txs": [
"{get('cache.buildTransaction.txHex')}"
]
},
"submitTransaction": {
"type": "submitTxs",
"txs": "{get('cache.signTransaction')}"
},
"finally": {
"type": "script",
"exportAs": "MetadatumTest",
"run": {
"txHash": {
"type": "macro",
"run": "{get('cache.submitTransaction.txHash')}"
}
}
}
}
}
Run standalone QR dapp connection:
You can use Playground IDE in GameChanger Wallet in QR URL Transport mode to capture results
Resources
- How to connect?
- Docs and examples on Github
- GCScript documentation
- Playground IDE in GameChanger Wallet
- Tutorials on Youtube
- Support on Discord
- News on Twitter
- Website
License
MIT
