Skip to content

Instantly share code, notes, and snippets.

@bthaile
Created November 7, 2023 20:43
Show Gist options
  • Save bthaile/a42de7cdf0ea6ea26e2cc49d2a503f94 to your computer and use it in GitHub Desktop.
Save bthaile/a42de7cdf0ea6ea26e2cc49d2a503f94 to your computer and use it in GitHub Desktop.
ReadGreeting.template.json
{
"f_type": "InteractionTemplate",
"f_version": "1.0.0",
"id": "ba1fdd454259db9920a8d067e3c22135155365f507ed8b2c4fcf6cbdc4fddbd5",
"data": {
"type": "script",
"interface": "",
"messages": {
"title": {
"i18n": {
"en-US": "Read Greeting"
}
},
"description": {
"i18n": {
"en-US": "Read the greeting from the HelloWorld class"
}
}
},
"cadence": "import HelloWorld from 0xHelloWorld\n/*\n@f_version 1.0.0\n@lang en-US\n@message title: Read Greeting\n@message description: Read the greeting from the HelloWorld class\n\n@return String\n */\npub fun main(): String {\n return HelloWorld.greeting\n}\n",
"dependencies": {
"0xHelloWorld": {
"HelloWorld": {
"testnet": {
"address": "0xa58395c2f736c46e",
"fq_address": "A.a58395c2f736c46e.HelloWorld",
"contract": "HelloWorld",
"pin": "8d028ad2732d7874b35e2cf23d982219b15d59b2b73d3364a752fbf903f16b21",
"pin_block_height": 130795206
}
}
}
},
"arguments": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment