Replace 'assets' with generated blueprints.

This commit is contained in:
KtorZ 2023-01-29 13:02:29 +01:00
parent daee8e39d6
commit 79b8786cee
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
24 changed files with 129 additions and 40 deletions

View File

@ -1 +0,0 @@
addr1w8r2ln3c7meykuf6ejw0qu5qtdfxh4e4p68v5e3c0lwmrmsdujvef

View File

@ -1,5 +0,0 @@
{
"type": "PlutusScriptV2",
"description": "Generated by Aiken",
"cborHex": "590173590170010000323222253335734646464646466002006464646464646464646600201291010500000000000022323232300600130060013300600100237566601c601e00490011199ab9a0014a09448c94ccd55cf8008a5114a00024464646600a00297adef6c60330050010020022232325333573466e1c005200210031323200137566ae84004c034008d55ce9baa001002223300300200130010012223253335573e002266e9520024bd700991919192999ab9a3371e00c002266e9520003357406e980092f5c0266601001000600c6eb8d55ce8019bab35573c0046ae88008d5d08008011800800911192999aab9f00114a026464a666ae68c01000852889998030030008021aba2002357420020046eb0cc004c008cc004c00800d20004801088c8ccc00400520000032223333573466e1c0100095d0919980200219b8000348008d5d100080091aab9e37540022930b18008009112999aab9f00214984cd5cd98009aba1002333003003357440040021"
}

View File

@ -1 +0,0 @@
590170010000323222253335734646464646466002006464646464646464646600201291010500000000000022323232300600130060013300600100237566601c601e00490011199ab9a0014a09448c94ccd55cf8008a5114a00024464646600a00297adef6c60330050010020022232325333573466e1c005200210031323200137566ae84004c034008d55ce9baa001002223300300200130010012223253335573e002266e9520024bd700991919192999ab9a3371e00c002266e9520003357406e980092f5c0266601001000600c6eb8d55ce8019bab35573c0046ae88008d5d08008011800800911192999aab9f00114a026464a666ae68c01000852889998030030008021aba2002357420020046eb0cc004c008cc004c00800d20004801088c8ccc00400520000032223333573466e1c0100095d0919980200219b8000348008d5d100080091aab9e37540022930b18008009112999aab9f00214984cd5cd98009aba1002333003003357440040021

View File

@ -1 +0,0 @@
addr_test1wrr2ln3c7meykuf6ejw0qu5qtdfxh4e4p68v5e3c0lwmrmsk5xskv

View File

@ -0,0 +1,22 @@
{
"preamble": {
"title": "aiken-lang/acceptance_test_036",
"version": "0.0.0"
},
"validators": [
{
"title": "spend",
"purpose": "spend",
"datum": {
"title": "Data",
"description": "Any Plutus data."
},
"redeemer": {
"title": "Data",
"description": "Any Plutus data."
},
"compiledCode": "590170010000323222253335734646464646466002006464646464646464646600201291010500000000000022323232300600130060013300600100237566601c601e00490011199ab9a0014a09448c94ccd55cf8008a5114a00024464646600a00297adef6c60330050010020022232325333573466e1c005200210031323200137566ae84004c034008d55ce9baa001002223300300200130010012223253335573e002266e9520024bd700991919192999ab9a3371e00c002266e9520003357406e980092f5c0266601001000600c6eb8d55ce8019bab35573c0046ae88008d5d08008011800800911192999aab9f00114a026464a666ae68c01000852889998030030008021aba2002357420020046eb0cc004c008cc004c00800d20004801088c8ccc00400520000032223333573466e1c0100095d0919980200219b8000348008d5d100080091aab9e37540022930b18008009112999aab9f00214984cd5cd98009aba1002333003003357440040021",
"hash": "c6afce38f6f24b713acc9cf072805b526bd7350e8eca66387fddb1ee"
}
]
}

View File

@ -12,7 +12,7 @@ pub fn has_policy_id(self: Output, policy_id: PolicyId) -> Bool {
|> not
}
pub fn spend(_datum, _redeemer, ctx: ScriptContext) -> Bool {
pub fn spend(_datum: Data, _redeemer: Data, ctx: ScriptContext) -> Bool {
ctx.transaction.outputs
|> list.any(has_policy_id(_, my_policy_id))
}

View File

@ -1 +0,0 @@
addr1wyahaesnnh44nkyjj4dv8jk3t4f7frwtzepjyujkk2wjkmczwqttr

View File

@ -1,5 +0,0 @@
{
"type": "PlutusScriptV2",
"description": "Generated by Aiken",
"cborHex": "5831582f01000032322225333573494452616300100122253335573e004293099ab9b3001357420046660060066ae880080041"
}

View File

@ -1 +0,0 @@
582f01000032322225333573494452616300100122253335573e004293099ab9b3001357420046660060066ae880080041

View File

@ -1 +0,0 @@
addr_test1wqahaesnnh44nkyjj4dv8jk3t4f7frwtzepjyujkk2wjkmcex5hyx

View File

@ -0,0 +1,36 @@
{
"preamble": {
"title": "aiken-lang/acceptance_test_047",
"version": "0.0.0"
},
"validators": [
{
"title": "foo",
"purpose": "spend",
"datum": {
"title": "Unit",
"description": "The nullary constructor.",
"anyOf": [
{
"dataType": "constructor",
"index": 0,
"fields": []
}
]
},
"redeemer": {
"title": "Unit",
"description": "The nullary constructor.",
"anyOf": [
{
"dataType": "constructor",
"index": 0,
"fields": []
}
]
},
"compiledCode": "582f01000032322225333573494452616300100122253335573e004293099ab9b3001357420046660060066ae880080041",
"hash": "3b7ee6139deb59d892955ac3cad15d53e48dcb1643227256b29d2b6f"
}
]
}

View File

@ -1 +0,0 @@
addr1w9d2hmr5s8j9cz5xgzjzn3srsfajcwjjzeruaj5mh3kpuqcmvmz3r

View File

@ -1,5 +0,0 @@
{
"type": "PlutusScriptV2",
"description": "Generated by Aiken",
"cborHex": "5855585301000032322225333573466e1cc8c0052f7b6301010400010101002323232002375a6aae78008dd69aab9d0010014802052616300100122253335573e004293099ab9b3001357420046660060066ae88008005"
}

View File

@ -1 +0,0 @@
585301000032322225333573466e1cc8c0052f7b6301010400010101002323232002375a6aae78008dd69aab9d0010014802052616300100122253335573e004293099ab9b3001357420046660060066ae88008005

View File

@ -1 +0,0 @@
addr_test1wpd2hmr5s8j9cz5xgzjzn3srsfajcwjjzeruaj5mh3kpuqcqy077x

View File

@ -0,0 +1,22 @@
{
"preamble": {
"title": "aiken-lang/acceptance_test_048",
"version": "0.0.0"
},
"validators": [
{
"title": "foo",
"purpose": "spend",
"datum": {
"title": "Data",
"description": "Any Plutus data."
},
"redeemer": {
"title": "Data",
"description": "Any Plutus data."
},
"compiledCode": "585301000032322225333573466e1cc8c0052f7b6301010400010101002323232002375a6aae78008dd69aab9d0010014802052616300100122253335573e004293099ab9b3001357420046660060066ae88008005",
"hash": "5aabec7481e45c0a8640a429c603827b2c3a521647ceca9bbc6c1e03"
}
]
}

View File

@ -4,6 +4,6 @@ fn when_tuple(a: (Int, Int)) -> Int {
}
}
pub fn spend(a, b, c) -> Bool {
pub fn spend(a: Data, b: Data, c) -> Bool {
when_tuple((4, 1)) == 4
}

View File

@ -1 +0,0 @@
addr1w9z47fyj9ffqck2fnld04k27zfe04wq6n9zj76u4ghu4xdcd0futm

View File

@ -1,5 +0,0 @@
{
"type": "PlutusScriptV2",
"description": "Generated by Aiken",
"cborHex": "4e4d01000022253335734944526161"
}

View File

@ -1 +0,0 @@
4d01000022253335734944526161

View File

@ -1 +0,0 @@
addr_test1wpz47fyj9ffqck2fnld04k27zfe04wq6n9zj76u4ghu4xdck8aqy7

View File

@ -1,5 +0,0 @@
{
"type": "PlutusScriptV2",
"description": "Generated by Aiken",
"cborHex": "58bb58b90100002225333573464646464a666ae6800840045281919198009bac330043005330043005006480012010375c66008600a01090001800800911192999aab9f00114a026464a666ae68cdc78010020a511333006006001004357440046eb8d5d080080119b97323001375c66004600600a900011b9900149010d48656c6c6f2c20576f726c64210022323330010014800000c888cccd5cd19b870040025742466600800866e0000d20023574400200246aae78dd50008a4c2d"
}

View File

@ -1 +0,0 @@
58b90100002225333573464646464a666ae6800840045281919198009bac330043005330043005006480012010375c66008600a01090001800800911192999aab9f00114a026464a666ae68cdc78010020a511333006006001004357440046eb8d5d080080119b97323001375c66004600600a900011b9900149010d48656c6c6f2c20576f726c64210022323330010014800000c888cccd5cd19b870040025742466600800866e0000d20023574400200246aae78dd50008a4c2d

View File

@ -0,0 +1,47 @@
{
"preamble": {
"title": "aiken-lang/hello_world",
"description": "Aiken contracts for project 'aiken-lang/hello_world'",
"version": "1.0.0"
},
"validators": [
{
"title": "hello_world",
"purpose": "spend",
"datum": {
"title": "Datum",
"anyOf": [
{
"title": "Datum",
"dataType": "constructor",
"index": 0,
"fields": [
{
"title": "owner",
"dataType": "bytes"
}
]
}
]
},
"redeemer": {
"title": "Redeemer",
"anyOf": [
{
"title": "Redeemer",
"dataType": "constructor",
"index": 0,
"fields": [
{
"title": "msg",
"dataType": "bytes"
}
]
}
]
},
"compiledCode": "58db01000032322225333573464646464a666ae6800840045281919198009bac330043005330043005006480012010375c66008600a01090001800800911192999aab9f00114a026464a666ae68cdc78010020a511333006006001004357440046eb8d5d080080119b97323001375c66004600600a900011b9900149010d48656c6c6f2c20576f726c64210022323330010014800000c888cccd5cd19b870040025742466600800866e0000d20023574400200246aae78dd50008a4c2c6002002444a666aae7c008526133573660026ae84008ccc00c00cd5d10010009",
"hash": "d478e73c101a53d083f4720d400c876d7441c279168becabab0e0177"
}
]
}