Cardano Example Dapp
Code Validation Tests
Script that will fail to test local and imported code validation
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": "Code Validation Tests",
"description": "Script that will fail to test local and imported code validation",
"type": "script",
"returnURLPattern": "http://localhost:3000/demo/api/dapp",
"run": {
"importedCodeWithErrors": {
"type": "importAsScript",
"description": "Block of code that contains the imported code",
"from": {
"LEVEL_1": "0x7b227469746c65223a22536563757265204e6573746564205363726970742031222c2274797065223a22736372697074222c2272756e223a7b22736372697074223a7b2274797065223a22696d706f72744173536372697074222c226465736372697074696f6e223a22426c6f636b206f6620636f6465207468617420636f6e7461696e732074686520696d706f7274656420636f6465222c2266726f6d223a7b224c4556454c5f32223a22307837623232373436393734366336353232336132323533363536333735373236353230346536353733373436353634323035333633373236393730373432303332323232633232373437393730363532323361323237333633373236393730373432323263323237323735366532323361376232323733363337323639373037343232336137623232373437393730363532323361323236393664373036663732373434313733353336333732363937303734323232633232363436353733363337323639373037343639366636653232336132323432366336663633366232303666363632303633366636343635323037343638363137343230363336663665373436313639366537333230373436383635323036393664373036663732373436353634323036333666363436353232326332323636373236663664323233613762323234633435353634353463356633333232336132323330373833373632333233323337333433363339333733343336363333363335333233323333363133323332333533333336333533363333333733353337333233363335333233303334363533363335333733333337333433363335333633343332333033353333333633333337333233363339333733303337333433323330333333333332333233323633333233323337333433373339333733303336333533323332333336313332333233373333333633333337333233363339333733303337333433323332333236333332333233373332333733353336363533323332333336313337363233323332333633343336333133373334333633313332333233333631333736323332333233373334333733393337333033363335333233323333363133323332333633343336333133373334333633313337333333323332333236333332333233373336333633313336363333373335333633353332333233333631333233323334333833363335333636333336363333363636333233303337333733363636333733323336363333363334333233313332333233373634333236333332333233373333333633333336363633373330333633353334333433363335333633323337333533363337333233323333363133373632333233323337333433373339333733303336333533323332333336313332333233363634333633313336333333373332333636363332333233323633333233323337333233373335333636353332333233333631333233323337363233363333333636363336363533373333333636363336363333363335333233383332333733363633333636363336333733323337333236333336333733363335333733343332333833323337333633333336333133363333333633383336333533323337333233393332363333363337333633353337333433323338333233373336333133373332333633373337333333323337333233393332333933373634333233323337363433373634333736343232376437643263323237333633366637303635343436353632373536373232336137623232373437393730363532323361323236643631363337323666323232633232373237353665323233613232376236333666366537333666366336353238323736633666363732373263363736353734323832373633363136333638363532373239326336373635373432383237363137323637373332373239323937643232376437643764227d7d2c2273636f70654465627567223a7b2274797065223a226d6163726f222c2272756e223a227b636f6e736f6c6528276c6f67272c6765742827636163686527292c6765742827617267732729297d227d7d7d"
}
},
"scopeDebug": {
"type": "macro",
"run": "{console('log',get('cache'),get('args'))}"
}
}
}
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
