Cardano Example Dapp
Governance - Workspace
A workspace dedicated for Governance, made of 3 DRep keys, 3 CCCold keys and 3 CCHot keys. Welcome to the Conway Era.
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):
{
"type": "script",
"title": "Governance - Workspace",
"require": {
"not": {
"walletTypeIn": [
"extension"
]
}
},
"description": "A workspace dedicated for Governance, made of 3 DRep keys, 3 CCCold keys and 3 CCHot keys",
"exportAs": "data",
"run": {
"usingWorkspaces": {
"type": "loadConfig",
"updateId": "demo",
"layers": [
{
"type": "Workspace",
"items": [
{
"namePattern": "conway",
"titlePattern": "Conway Keys",
"descriptionPattern": "My Governance Keys"
}
]
},
{
"type": "Key",
"workspaceIds": [
"conway"
],
"namePattern": "DRep_{index}",
"items": [
{
"pathPattern": "m/1852h/1815h/0h/3/{index}"
},
{
"pathPattern": "m/1852h/1815h/0h/3/{index}"
},
{
"pathPattern": "m/1852h/1815h/0h/3/{index}"
}
]
},
{
"type": "Key",
"workspaceIds": [
"conway"
],
"namePattern": "CCCold_{index}",
"items": [
{
"pathPattern": "m/1852h/1815h/0h/4/{index}"
},
{
"pathPattern": "m/1852h/1815h/0h/4/{index}"
},
{
"pathPattern": "m/1852h/1815h/0h/4/{index}"
}
]
},
{
"type": "Key",
"workspaceIds": [
"conway"
],
"namePattern": "CCHot_{index}",
"items": [
{
"pathPattern": "m/1852h/1815h/0h/5/{index}"
},
{
"pathPattern": "m/1852h/1815h/0h/5/{index}"
},
{
"pathPattern": "m/1852h/1815h/0h/5/{index}"
}
]
}
]
},
"setWorkspace": {
"type": "setCurrentWorkspace",
"workspaceId": "conway"
},
"keysInWorkspace": {
"type": "script",
"run": {
"allKeys": {
"type": "getPublicKeys"
}
}
}
}
}
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
