Cardano Example Dapp
Macro Edge Cases
This demo will test some edge cases around macro solver and syntax
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": "Macro Edge Cases",
"description": "This demo will test some edge cases around macro solver and syntax",
"type": "script",
"exportAs": "MacroEdgeTestsDemo",
"returnURLPattern": "http://localhost:3000/demo/api/dapp",
"run": {
"test": {
"type": "macro",
"run": [
null,
{
"foo": {},
"bar": [],
"baz": 1234567891234568000,
"undefined": "{get('cache.unexistantProperty')}",
"syntaxError": "{unknownFunction('cache.test')}",
"circularHell": "{get('cache.test')}"
}
]
}
}
}
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
