{ "preamble": { "title": "aiken-lang/gift_card", "description": "Create a gift card that can be used to redeem locked assets", "version": "0.0.0", "plutusVersion": "v2", "compiler": { "name": "Aiken", "version": "v1.0.26-alpha+b669db8" }, "license": "Apache-2.0" }, "validators": [ { "title": "multi.redeem", "datum": { "title": "datum", "schema": { "$ref": "#/definitions/ByteArray" } }, "redeemer": { "title": "_r", "schema": { "$ref": "#/definitions/RedeemerWrapper$Data" } }, "parameters": [ { "title": "creator", "schema": { "$ref": "#/definitions/ByteArray" } } ], "compiledCode": "5904fc01000032323232323232232225323232333008300330093754008264a666012646464a666018600e601a6ea80044c8c8c8c8c8c8c8c94ccc050c03cc054dd50088991919299980b99800802919b8f016001132323300100100622533301d00114a2264646464a66603c66010012466e3c00400c54ccc078c8cc00400403c894ccc08c00452809929998109919299981199baf3028302930290023374a9002198139ba90074bd70099baf300f302537540020182940c09c004c08cdd518130010a5113300300300130260011533301e301800113300600600314a02c2c6eb4c07c00cdd7180e8011810801180f80099ba548008cc06cdd4805a5eb8052811191980080080191299980e8008a50132533301b3004375c604000429444cc00c00c004c080004c8c8ccc004004dd6980e180c9baa0144bd70111299980c980a0010800899980180199b8000248004cc074dd49b94337160040080026eccc004c05cdd5180d0039180d0008991980080080111299980c8008a5113253330173370e6eb4c064c070009200113300300300114a0603800264a666028601c602a6ea800452f5bded8c026eacc064c058dd5000991980080099198008009bab301a00422533301900114bd6f7b630099191919299980d19b91489000021533301a3371e9101000021003100513301e337606ea4008dd3000998030030019bab301b003375c6032004603a004603600244a666030002298103d87a800013232323253330193372201a0042a66603266e3c0340084c048cc074dd3000a5eb80530103d87a8000133006006003375660340066eb8c060008c070008c068004dd6180b980c180c180c180c000980b980b8011bac30150013015301500237586026002601e6ea800cdd7180898071baa0011630103011002300f001300b375400a29309b2b192999804980200089919299980718088010a4c2c6eb4c03c004c02cdd50030a99980498018008a99980618059baa00614985858c024dd5002899911299980599191919192999808180518089baa004132325333012300d30133754002264a666026601a60286ea80044cdc3999119299980b1808180b9baa0011480004dd6980d980c1baa0013253330163010301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220280042a66603866e3c0500084c054cc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc00400400c894ccc0680045300103d87a8000132323232533301b3372200e0042a66603666e3c01c0084c050cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004c8cc004004014894ccc06000452f5bded8c0264646464a66603266e4522100002153330193371e9101000021003100513301d337606ea4008dd3000998030030019bab301a003375c6030004603800460340026eb8c060c054dd5000a40022c602e60286ea8c05cc050dd5180b980c180a1baa3017301437540022c646600200200844a66602c002298103d87a80001323253330153375e6034602e6ea80080144c038cc0640092f5c026600800800260340046030002602a60246ea801058dd5980a180a980a980a980a8011bac3013001300f3754602400460226024002601a6ea800452613656375c00a601a60146ea8010dd2a40006e1d2002370e90001bae0015734aae7555cf2ab9f5740ae855d101", "hash": "fd38243b432e2b4fd502294f6c5addc5c6979cf289e99f85916b503f" }, { "title": "multi.gift_card", "redeemer": { "title": "rdmr", "schema": { "$ref": "#/definitions/multi~1Action" } }, "parameters": [ { "title": "creator", "schema": { "$ref": "#/definitions/ByteArray" } } ], "compiledCode": "5904fc01000032323232323232232225323232333008300330093754008264a666012646464a666018600e601a6ea80044c8c8c8c8c8c8c8c94ccc050c03cc054dd50088991919299980b99800802919b8f016001132323300100100622533301d00114a2264646464a66603c66010012466e3c00400c54ccc078c8cc00400403c894ccc08c00452809929998109919299981199baf3028302930290023374a9002198139ba90074bd70099baf300f302537540020182940c09c004c08cdd518130010a5113300300300130260011533301e301800113300600600314a02c2c6eb4c07c00cdd7180e8011810801180f80099ba548008cc06cdd4805a5eb8052811191980080080191299980e8008a50132533301b3004375c604000429444cc00c00c004c080004c8c8ccc004004dd6980e180c9baa0144bd70111299980c980a0010800899980180199b8000248004cc074dd49b94337160040080026eccc004c05cdd5180d0039180d0008991980080080111299980c8008a5113253330173370e6eb4c064c070009200113300300300114a0603800264a666028601c602a6ea800452f5bded8c026eacc064c058dd5000991980080099198008009bab301a00422533301900114bd6f7b630099191919299980d19b91489000021533301a3371e9101000021003100513301e337606ea4008dd3000998030030019bab301b003375c6032004603a004603600244a666030002298103d87a800013232323253330193372201a0042a66603266e3c0340084c048cc074dd3000a5eb80530103d87a8000133006006003375660340066eb8c060008c070008c068004dd6180b980c180c180c180c000980b980b8011bac30150013015301500237586026002601e6ea800cdd7180898071baa0011630103011002300f001300b375400a29309b2b192999804980200089919299980718088010a4c2c6eb4c03c004c02cdd50030a99980498018008a99980618059baa00614985858c024dd5002899911299980599191919192999808180518089baa004132325333012300d30133754002264a666026601a60286ea80044cdc3999119299980b1808180b9baa0011480004dd6980d980c1baa0013253330163010301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220280042a66603866e3c0500084c054cc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc00400400c894ccc0680045300103d87a8000132323232533301b3372200e0042a66603666e3c01c0084c050cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004c8cc004004014894ccc06000452f5bded8c0264646464a66603266e4522100002153330193371e9101000021003100513301d337606ea4008dd3000998030030019bab301a003375c6030004603800460340026eb8c060c054dd5000a40022c602e60286ea8c05cc050dd5180b980c180a1baa3017301437540022c646600200200844a66602c002298103d87a80001323253330153375e6034602e6ea80080144c038cc0640092f5c026600800800260340046030002602a60246ea801058dd5980a180a980a980a980a8011bac3013001300f3754602400460226024002601a6ea800452613656375c00a601a60146ea8010dd2a40006e1d2002370e90001bae0015734aae7555cf2ab9f5740ae855d101", "hash": "fd38243b432e2b4fd502294f6c5addc5c6979cf289e99f85916b503f" }, { "title": "oneshot.gift_card", "redeemer": { "title": "rdmr", "schema": { "$ref": "#/definitions/oneshot~1Action" } }, "parameters": [ { "title": "token_name", "schema": { "$ref": "#/definitions/ByteArray" } }, { "title": "utxo_ref", "schema": { "$ref": "#/definitions/aiken~1transaction~1OutputReference" } } ], "compiledCode": "5901f5010000323232323232322322232323225333009323232533300c3007300d3754002264646464a666026602c00426464a666024601a60266ea803854ccc048c034c04cdd5191980080080311299980b8008a60103d87a80001323253330163375e603660306ea800804c4cdd2a40006603400497ae0133004004001301b002301900115333012300c00113371e00402029405854ccc048cdc3800a4002266e3c0080405281bad3013002375c60220022c602800264a66601e601260206ea800452f5bded8c026eacc050c044dd500099191980080099198008009bab3016301730173017301700522533301500114bd6f7b630099191919299980b19b91488100002153330163371e9101000021003100513301a337606ea4008dd3000998030030019bab3017003375c602a0046032004602e00244a666028002298103d87a800013232323253330153372200e0042a66602a66e3c01c0084cdd2a4000660326e980052f5c02980103d87a80001330060060033756602c0066eb8c050008c060008c058004dd7180998081baa00337586024002601c6ea800858c040c044008c03c004c02cdd50008a4c26cac64a66601060060022a66601660146ea8010526161533300830020011533300b300a37540082930b0b18041baa003370e90011b8748000dd7000ab9a5573aaae7955cfaba05742ae89", "hash": "0c0d17d9095fe6b07a2727403e2c6f2dff8042ed7c300cb67a2577a2" }, { "title": "oneshot.redeem", "datum": { "title": "_d", "schema": { "$ref": "#/definitions/Data" } }, "redeemer": { "title": "_r", "schema": { "$ref": "#/definitions/Data" } }, "parameters": [ { "title": "token_name", "schema": { "$ref": "#/definitions/ByteArray" } }, { "title": "policy_id", "schema": { "$ref": "#/definitions/ByteArray" } } ], "compiledCode": "5901320100003232323232323223223222253330083232533300d3010002132533300b3370e6eb4c034009200113371e0020122940dd718058008b180700099299980499b8748008c028dd50008a5eb7bdb1804dd5980718059baa001323300100132330010013756601e602060206020602060186ea8c03cc030dd50019129998070008a5eb7bdb1804c8c8c8c94ccc03ccdc8a45000021533300f3371e91010000210031005133013337606ea4008dd3000998030030019bab3010003375c601c0046024004602000244a66601a002298103d87a8000132323232533300e337220140042a66601c66e3c0280084cdd2a4000660246e980052f5c02980103d87a80001330060060033756601e0066eb8c034008c044008c03c00452613656375c0026eb80055cd2ab9d5573caae7d5d02ba157441", "hash": "39faa048196bb6b30f50815475e9d16b22e7a0ef6de5935b408ca617" } ], "definitions": { "ByteArray": { "dataType": "bytes" }, "Data": { "title": "Data", "description": "Any Plutus data." }, "Int": { "dataType": "integer" }, "RedeemerWrapper$Data": { "title": "Wrapped Redeemer", "description": "A redeemer wrapped in an extra constructor to make multi-validator detection possible on-chain.", "anyOf": [ { "dataType": "constructor", "index": 1, "fields": [ { "$ref": "#/definitions/Data" } ] } ] }, "aiken/transaction/OutputReference": { "title": "OutputReference", "description": "An `OutputReference` is a unique reference to an output on-chain. The `output_index`\n corresponds to the position in the output list of the transaction (identified by its id)\n that produced that output", "anyOf": [ { "title": "OutputReference", "dataType": "constructor", "index": 0, "fields": [ { "title": "transaction_id", "$ref": "#/definitions/aiken~1transaction~1TransactionId" }, { "title": "output_index", "$ref": "#/definitions/Int" } ] } ] }, "aiken/transaction/TransactionId": { "title": "TransactionId", "description": "A unique transaction identifier, as the hash of a transaction body. Note that the transaction id\n isn't a direct hash of the `Transaction` as visible on-chain. Rather, they correspond to hash\n digests of transaction body as they are serialized on the network.", "anyOf": [ { "title": "TransactionId", "dataType": "constructor", "index": 0, "fields": [ { "title": "hash", "$ref": "#/definitions/ByteArray" } ] } ] }, "multi/Action": { "title": "Action", "anyOf": [ { "title": "Mint", "dataType": "constructor", "index": 0, "fields": [ { "$ref": "#/definitions/Int" } ] }, { "title": "Burn", "dataType": "constructor", "index": 1, "fields": [] } ] }, "oneshot/Action": { "title": "Action", "anyOf": [ { "title": "Mint", "dataType": "constructor", "index": 0, "fields": [] }, { "title": "Burn", "dataType": "constructor", "index": 1, "fields": [] } ] } } }