Skip to content

Instantly share code, notes, and snippets.

@bthaile
Created November 7, 2023 20:57
Show Gist options
  • Save bthaile/76d47fd5667eab02eeac7578b08f345f to your computer and use it in GitHub Desktop.
Save bthaile/76d47fd5667eab02eeac7578b08f345f to your computer and use it in GitHub Desktop.
UpdateHelloWorld.template.json
{
"f_type": "InteractionTemplate",
"f_version": "1.0.0",
"id": "bfbd8abc17b30b582427b39097b33e9fc34f425871eb065e6c1cfcccfafe4470",
"data": {
"type": "transaction",
"interface": "",
"messages": {
"title": {
"i18n": {
"en-US": "Update Greeting"
}
},
"description": {
"i18n": {
"en-US": "Update the greeting message"
}
}
},
"cadence": "import HelloWorld from 0xHelloWorld\n/*\n@f_version 1.0.0\n@lang en-US\n\n@message title: Update Greeting\n@message description: Update the greeting message\n\n@parameter title greeting: Greeting Message\n@parameter description greeting: The new greeting message\n\n\n */\ntransaction(greeting: String) {\n\n prepare(acct: AuthAccount) {\n log(acct.address)\n }\n\n execute {\n HelloWorld.changeGreeting(newGreeting: greeting)\n }\n}\n",
"dependencies": {
"0xHelloWorld": {
"HelloWorld": {
"testnet": {
"address": "0xa58395c2f736c46e",
"fq_address": "A.a58395c2f736c46e.HelloWorld",
"contract": "HelloWorld",
"pin": "8d028ad2732d7874b35e2cf23d982219b15d59b2b73d3364a752fbf903f16b21",
"pin_block_height": 130300851
}
}
}
},
"arguments": {
"greeting": {
"index": 0,
"type": "String",
"messages": {
"title": {
"i18n": {
"en-US": "Greeting Message"
}
},
"description": {
"i18n": {
"en-US": "The new greeting message"
}
}
},
"balance": ""
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment