Skip to main content

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:​

Source code:​

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

This GCScript/URL is too large! make it shorter uploading parts to GCFS. Unable to generate QR code

Resources​

License​

MIT