Cardano Example Dapp
Arguments and ISL
Script that will test and explore subroutines, argument passing and ISL execution
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": "Arguments and ISL",
"description": "Script that will test and explore subroutines, argument passing and ISL execution",
"type": "script",
"returnURLPattern": "http://localhost:3000/demo/api/dapp",
"exportAs": "argsAndISL",
"run": {
"runSeveralTimes": {
"type": "importAsScript",
"args": {
"foo": "{'this should be computed into a string'}",
"bar": "{uuid()}",
"baz": "{'uuid()'}"
},
"argsByKey": {
"0": "{'uuid()'}",
"2": {
"{uuid()}": "{uuid()}"
}
},
"from": [
"0x7b0a20202274797065223a2022736372697074222c0a2020227469746c65223a2022737562726f7574696e65222c0a2020226465736372697074696f6e223a202272756e6e696e6720737562726f7574696e65222c0a2020226578706f72744173223a202264617461222c0a20202261726773223a20227b67657428276172677327297d222c0a20202272756e223a207b0a20202020226d6163726f223a207b0a2020202020202274797065223a20226d6163726f222c0a2020202020202272756e223a20227b636f6e736f6c652827696e666f272c6765742827617267732729293b72657475726e286765742827617267732729297d220a202020207d0a20207d0a7d",
"0x7b0a20202274797065223a2022736372697074222c0a2020227469746c65223a2022737562726f7574696e65222c0a2020226465736372697074696f6e223a202272756e6e696e6720737562726f7574696e65222c0a2020226578706f72744173223a202264617461222c0a20202261726773223a20227b67657428276172677327297d222c0a20202272756e223a207b0a20202020226d6163726f223a207b0a2020202020202274797065223a20226d6163726f222c0a2020202020202272756e223a20227b636f6e736f6c652827696e666f272c6765742827617267732729293b72657475726e286765742827617267732729297d220a202020207d0a20207d0a7d",
"0x7b0a20202274797065223a2022736372697074222c0a2020227469746c65223a2022737562726f7574696e65222c0a2020226465736372697074696f6e223a202272756e6e696e6720737562726f7574696e65222c0a2020226578706f72744173223a202264617461222c0a20202261726773223a20227b67657428276172677327297d222c0a20202272756e223a207b0a20202020226d6163726f223a207b0a2020202020202274797065223a20226d6163726f222c0a2020202020202272756e223a20227b636f6e736f6c652827696e666f272c6765742827617267732729293b72657475726e286765742827617267732729297d220a202020207d0a20207d0a7d"
]
}
}
}
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
