218 lines
12 KiB
JSON
218 lines
12 KiB
JSON
{
|
|
"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.19-alpha+d56d518"
|
|
},
|
|
"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": "59050a0100003232323232323232322322253330073370e90001803000899299980419191919299980619b8748000c02c0044c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc074cdc3a400000226464646464646464a66604a002264646600200201844a66605600229444c8c8c8c94ccc0b0cc0240288cdc78008018a999816191980080080d9129998188008a50132325333030323232323253330353375e00266e95200433039375201697ae013375e602a60660080202940c0e4004c0e4004c0e0008c0d8004c0b8008528899802002000981a80118198008a99981619b87001480084cc01801800c5280b0b1bad302d003375c6056004605e004605a00266e95200233029375203097ae014a066002014466e3c08400488c8cc00400400c894ccc0a800452809919299981498028010a51133004004001302e002375c60580026466600200200a97ae022253330253370e00490000800899980180199b8100248008cc0a4dd49b94337160040080026eccc004c07c0088c098004c090040dd69811800980d80c099198008008019129998110008a511323253330213370e6eb4c08c009200113300400400114a0604c0046048002603602e64664464a66603e66e1d20020011002137566048603a006603a004646600200200444a666042002298103d87a800013232323253330223371e02a004266e95200033026374c00297ae0133006006003375660460066eb8c084008c094008c08c0052f5bded8c0646600200200e44a666040002297adef6c6013232323253330213371e911000021003133025337606ea4008dd3000998030030019bab3022003375c6040004604800460440026eb0c07c004c07c004c078004c074004c070008dd5980d000980d000980c8011bac30170013017001301600237586028002601800a6eb8c048004c02800458c040004c040008c038004c018008526136563253330083370e900000089919299980698080010a4c2c6eb4c038004c01800c54ccc020cdc3a40040022a666016600c0062930b0b180300109911929998051919191919191919191919299980a99b8748008c0500204c8c8c94ccc060cdc3a4000602e0022646464646464646464a66604266e1d20023020001132323370e6464664464a66605066e1d200200110021375a605a604c006604c00464a66604c66e1d200200114c0103d87a8000132323300100100222533302c00114c103d87a8000132323232533302d3371e048004266e95200033031375000297ae0133006006003375a605c0066eb8c0b0008c0c0008c0b8004dd5981598120011812000a4000646600200200444a6660520022980103d87a8000132323232533302a3371e010004266e9520003302e374c00297ae0133006006003375660560066eb8c0a4008c0b4008c0ac004c8cc004004040894ccc0a000452f5bded8c0264646464a66605266e3d22100002100313302d337606ea4008dd3000998030030019bab302a003375c60500046058004605400290009bae3027001301f001163025001301d0013023001301b001302100130210013018001301e001301600116323300100100922533301c00114c103d87a800013232533301b3375e6040603200400a266e9520003301f0024bd700998020020009810001180f000980d80098098040b1bab30190013019001301800130170013016002375860280026018006602400260240046020002601000429309b2b1bae004300c3005001375c0024600a6ea80048c00cdd5000ab9a5573aaae7955cfaba05742ae881",
|
|
"hash": "e616488e0b79189f22b849f099aba2b2434f84f57beb587d55116bc3"
|
|
},
|
|
{
|
|
"title": "multi.gift_card",
|
|
"redeemer": {
|
|
"title": "rdmr",
|
|
"schema": {
|
|
"$ref": "#/definitions/multi~1Action"
|
|
}
|
|
},
|
|
"parameters": [
|
|
{
|
|
"title": "creator",
|
|
"schema": {
|
|
"$ref": "#/definitions/ByteArray"
|
|
}
|
|
}
|
|
],
|
|
"compiledCode": "59050a0100003232323232323232322322253330073370e90001803000899299980419191919299980619b8748000c02c0044c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc074cdc3a400000226464646464646464a66604a002264646600200201844a66605600229444c8c8c8c94ccc0b0cc0240288cdc78008018a999816191980080080d9129998188008a50132325333030323232323253330353375e00266e95200433039375201697ae013375e602a60660080202940c0e4004c0e4004c0e0008c0d8004c0b8008528899802002000981a80118198008a99981619b87001480084cc01801800c5280b0b1bad302d003375c6056004605e004605a00266e95200233029375203097ae014a066002014466e3c08400488c8cc00400400c894ccc0a800452809919299981498028010a51133004004001302e002375c60580026466600200200a97ae022253330253370e00490000800899980180199b8100248008cc0a4dd49b94337160040080026eccc004c07c0088c098004c090040dd69811800980d80c099198008008019129998110008a511323253330213370e6eb4c08c009200113300400400114a0604c0046048002603602e64664464a66603e66e1d20020011002137566048603a006603a004646600200200444a666042002298103d87a800013232323253330223371e02a004266e95200033026374c00297ae0133006006003375660460066eb8c084008c094008c08c0052f5bded8c0646600200200e44a666040002297adef6c6013232323253330213371e911000021003133025337606ea4008dd3000998030030019bab3022003375c6040004604800460440026eb0c07c004c07c004c078004c074004c070008dd5980d000980d000980c8011bac30170013017001301600237586028002601800a6eb8c048004c02800458c040004c040008c038004c018008526136563253330083370e900000089919299980698080010a4c2c6eb4c038004c01800c54ccc020cdc3a40040022a666016600c0062930b0b180300109911929998051919191919191919191919299980a99b8748008c0500204c8c8c94ccc060cdc3a4000602e0022646464646464646464a66604266e1d20023020001132323370e6464664464a66605066e1d200200110021375a605a604c006604c00464a66604c66e1d200200114c0103d87a8000132323300100100222533302c00114c103d87a8000132323232533302d3371e048004266e95200033031375000297ae0133006006003375a605c0066eb8c0b0008c0c0008c0b8004dd5981598120011812000a4000646600200200444a6660520022980103d87a8000132323232533302a3371e010004266e9520003302e374c00297ae0133006006003375660560066eb8c0a4008c0b4008c0ac004c8cc004004040894ccc0a000452f5bded8c0264646464a66605266e3d22100002100313302d337606ea4008dd3000998030030019bab302a003375c60500046058004605400290009bae3027001301f001163025001301d0013023001301b001302100130210013018001301e001301600116323300100100922533301c00114c103d87a800013232533301b3375e6040603200400a266e9520003301f0024bd700998020020009810001180f000980d80098098040b1bab30190013019001301800130170013016002375860280026018006602400260240046020002601000429309b2b1bae004300c3005001375c0024600a6ea80048c00cdd5000ab9a5573aaae7955cfaba05742ae881",
|
|
"hash": "e616488e0b79189f22b849f099aba2b2434f84f57beb587d55116bc3"
|
|
},
|
|
{
|
|
"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": "5901f901000032323232323232323223222232533300932323232533300d3370e9000180600089919191919191919191919299980d980f0010991919299980d99b87480000044c94ccc070cdc3a40006036002264a66603a66e1c011200213371e00a0322940c06800458c8cc004004030894ccc080004530103d87a800013232533301f3375e6048603a004034266e952000330230024bd70099802002000981200118110008a99980d99b87002480044cdc780180b8a503019014375a60360046eb8c06400458c070004c8cc88c94ccc068cdc3a4004002200426eacc07cc06000cc060008c8cc004004008894ccc0700045300103d87a8000132323232533301d3371e01e004266e95200033021374c00297ae01330060060033756603c0066eb8c070008c080008c0780052f5bded8c0646600200200444a666036002297adef6c60132323232533301c3371e911000021003133020337606ea4008dd3000998030030019bab301d003375c6036004603e004603a0026eacc068004c068004c064004c060004c05c008dd6180a80098068029bae3013001300b0011630110013011002300f001300700214984d958c94ccc024cdc3a40000022a666018600e0062930b0a99980499b874800800454ccc030c01c00c52616163007002375c0024600a6ea80048c00cdd5000ab9a5573aaae7955cfaba05742ae89",
|
|
"hash": "e98009836402d3b8b30af400d67ed4c0d2ebed025a38a219cf1d30ad"
|
|
},
|
|
{
|
|
"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": "5901340100003232323232323232232232222533300932323232323232323232533301630190021323253330153370e0029000899b8f00201214a06eb4c058008dd7180a0008b180b80099199119299980a99b874800800440084dd5980d180a001980a9baa002323300100100222533301700114c0103d87a800013232323253330183371e026004266e9520003301c374c00297ae0133006006003375660320066eb8c05c008c06c008c0640052f5bded8c0646600200200444a66602c002297adef6c6013232323253330173371e91100002100313301b337606ea4008dd3000998030030019bab3018003375c602c004603400460300026eacc054004c054004c050004c04c004c048004c028004c03c004c02000452613656375c0026eb80048c010dd5000ab9a5573aaae7955cfaba05742ae881",
|
|
"hash": "fceef3e0b9e483291b55f9a1ce82f30a78910f5ab7658c51cb38a673"
|
|
}
|
|
],
|
|
"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": []
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |