-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fbb771
commit 2ab3dc9
Showing
1 changed file
with
204 additions
and
0 deletions.
There are no files selected for viewing
204 changes: 204 additions & 0 deletions
204
packages/contracts/src/marketplace/aiken-workspace/plutus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
{ | ||
"preamble": { | ||
"title": "meshjs/marketplace", | ||
"description": "Aiken contracts for project 'meshjs/marketplace'", | ||
"version": "0.0.0", | ||
"plutusVersion": "v2", | ||
"compiler": { | ||
"name": "Aiken", | ||
"version": "v1.0.24-alpha+982eff4" | ||
}, | ||
"license": "Apache-2.0" | ||
}, | ||
"validators": [ | ||
{ | ||
"title": "marketplace.marketplace", | ||
"datum": { | ||
"title": "datum", | ||
"schema": { | ||
"$ref": "#/definitions/marketplace~1types~1MarketplaceDatum" | ||
} | ||
}, | ||
"redeemer": { | ||
"title": "redeemer", | ||
"schema": { | ||
"$ref": "#/definitions/marketplace~1types~1MarketplaceRedeemer" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"title": "owner", | ||
"schema": { | ||
"$ref": "#/definitions/aiken~1transaction~1credential~1Address" | ||
} | ||
}, | ||
{ | ||
"title": "fee_percentage_basis_point", | ||
"schema": { | ||
"$ref": "#/definitions/Int" | ||
} | ||
} | ||
], | ||
"compiledCode": "59084201000032323232323232323222322223232533300b3232323232323232323253330153370e90010008991919299980c19b87480000044c94ccc064cdc3a400060300022646464646464a66603ea66603e00620022940400852819806998079bac300e301c3011301c01601b300c3370666e08dd69808180e00c00ca41413802660186601c6eb0c034c06cc040c06c054c040c06c05cc02ccdc01bad300f301b0173330113756601e6036601e60360069110048810032533302000114a0264a666042002294452818118009919198008008011129998110008a5eb804c8c94ccc084cdd7980a180f9809980f80100309981280119802002000899802002000981300118120009bac300f301a300f301a014300e3019300d3019001301f00130170011632323300100100222533301e00114c103d87a800013232533301d3375e6020603600400e266e952000330210024bd70099802002000981100118100009bac300b3016300b301601013322323300100100322533301f00114a026464a66603c66e3c00801452889980200200098118011bae30210013758603a603c603c603c603c603c603c603c603c602c6016602c0206464a66603466e1d200030190011375c603e60300022c6018602e0026016602c024602c020603600260260042940c04c004c014c04402c94ccc04ccdc3800a4000297adef6c6013232330010014bd6f7b63011299980c80089980d19bb04c1014000374c00697adef6c60132323232533301a3375e6601e911000024c103d879800013301e33760981014000374c00e00a2a66603466e3d2210000213301e337609801014000374c00e00626603c66ec0dd48011ba600133006006003375660360066eb8c064008c074008c06c004c8cc0040052f5bded8c044a66603000226603266ec13001014000375000697adef6c6013232323253330193375e6601c911000024c103d879800013301d33760981014000375000e00a2a66603266e3d2210000213301d337609801014000375000e00626603a66ec0dd48011ba800133006006003375a60340066eb8c060008c070008c06800488c8c8cc004004008894ccc06400452889919299980c19b89375a601000466601800e6eb8c02c008dd718050010998020020008a50301d00237586036002646600200200444a666030002297ae0132333222323300100100322533301e001100313233020374e660406ea4018cc080dd49bae301d0013302037506eb4c0780052f5c066006006604400460400026eb8c05c004dd5980c00099801801980e001180d0009180b180b980b80091191980080080191299980b0008a5eb7bdb1804cc894ccc054cdd79804180980100289919199800800801801111299980e001080089919980200218100019991191980080080291299981080089981119bb037520086e9800d2f5bded8c0264646464a66604466ebccc05c020009300103d8798000133026337606ea4020dd30038028a99981119b8f0080021323253330243370e900000089981419bb037520146052604400400a200a604400264a666046a66604c00229445280a60103d87a800013374a9000198139ba60014bd70191998008008040011112999814001080089919980200218160019991191980080080291299981680089981719bb037520086ea000d2f5bded8c0264646464a66605c66ebccc08c020009300103d8798000133032337606ea4020dd40038028a99981719b8f0080021323253330303370e900000089981a19bb03752014606a605c00400a200a605c00264a66605e66e1c005200014c103d87a800013374a9000198199ba80014bd7019b80007001133032337606ea4008dd4000998030030019bad302f003375c605a0046062004605e0026eb8c09c004dd69814000981500109981319bb037520046e98004cc01801800cdd598118019bae302100230250023023001375c60360026eacc070004c078008dd5980398098010800980c00099801001180c8009180a180a80091809800911191919299980919b8748008004520001375a602e6020004602000264a66602266e1d200200114c0103d87a8000132323300100100222533301700114c103d87a800013232323253330183371e014004266e9520003301c375000297ae0133006006003375a60320066eb8c05c008c06c008c064004dd5980b18078011807800991980080080211299980a0008a6103d87a800013232323253330153371e010004266e95200033019374c00297ae01330060060033756602c0066eb8c050008c060008c058004894ccc034cdc80010008a60103d87980001533300d3371e0040022980103d87a800014c103d87b800014984d958c94ccc02ccdc3a40000022a66601c60120082930b0a99980599b874800800454ccc038c024010526161630090033232533300b3370e900000089919191919191919299980b180c80109924c64a66602866e1d2000001132323232533301b301e00213232498c94ccc068cdc3a400000226464a66603e60440042649319299980e99b87480000044c8c94ccc088c0940084c9263016001163023001301b0021533301d3370e90010008991919191919299981318148010a4c2c6eb4c09c004c09c008dd6981280098128011bad3023001301b00216301b00116302000130180031533301a3370e90010008a99980e980c0018a4c2c2c6030004601e0062c60380026038004603400260240102c602400e2c6eb8c05c004c05c008dd7180a800980a8011bad3013001301300230110013009005163009004232533300b3370e900000089919299980818098010a4c2c6eb8c044004c02400854ccc02ccdc3a400400226464a66602060260042930b1bae30110013009002163009001375a0024600a6ea80048c00cdd5000ab9a5573aaae7955cfaba05742ae881", | ||
"hash": "a02cfaa183d42cc36bcd1e3b86fd533d62ebc86ce3f6640120c33459" | ||
} | ||
], | ||
"definitions": { | ||
"ByteArray": { | ||
"dataType": "bytes" | ||
}, | ||
"Int": { | ||
"dataType": "integer" | ||
}, | ||
"Option$aiken/transaction/credential/Referenced$aiken/transaction/credential/Credential": { | ||
"title": "Optional", | ||
"anyOf": [ | ||
{ | ||
"title": "Some", | ||
"description": "An optional value.", | ||
"dataType": "constructor", | ||
"index": 0, | ||
"fields": [ | ||
{ | ||
"$ref": "#/definitions/aiken~1transaction~1credential~1Referenced$aiken~1transaction~1credential~1Credential" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "None", | ||
"description": "Nothing.", | ||
"dataType": "constructor", | ||
"index": 1, | ||
"fields": [] | ||
} | ||
] | ||
}, | ||
"aiken/transaction/credential/Address": { | ||
"title": "Address", | ||
"description": "A Cardano `Address` typically holding one or two credential references.\n\n Note that legacy bootstrap addresses (a.k.a. 'Byron addresses') are\n completely excluded from Plutus contexts. Thus, from an on-chain\n perspective only exists addresses of type 00, 01, ..., 07 as detailed\n in [CIP-0019 :: Shelley Addresses](https://github.com/cardano-foundation/CIPs/tree/master/CIP-0019/#shelley-addresses).", | ||
"anyOf": [ | ||
{ | ||
"title": "Address", | ||
"dataType": "constructor", | ||
"index": 0, | ||
"fields": [ | ||
{ | ||
"title": "payment_credential", | ||
"$ref": "#/definitions/aiken~1transaction~1credential~1Credential" | ||
}, | ||
{ | ||
"title": "stake_credential", | ||
"$ref": "#/definitions/Option$aiken~1transaction~1credential~1Referenced$aiken~1transaction~1credential~1Credential" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"aiken/transaction/credential/Credential": { | ||
"title": "Credential", | ||
"description": "A general structure for representing an on-chain `Credential`.\n\n Credentials are always one of two kinds: a direct public/private key\n pair, or a script (native or Plutus).", | ||
"anyOf": [ | ||
{ | ||
"title": "VerificationKeyCredential", | ||
"dataType": "constructor", | ||
"index": 0, | ||
"fields": [ | ||
{ | ||
"$ref": "#/definitions/ByteArray" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "ScriptCredential", | ||
"dataType": "constructor", | ||
"index": 1, | ||
"fields": [ | ||
{ | ||
"$ref": "#/definitions/ByteArray" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"aiken/transaction/credential/Referenced$aiken/transaction/credential/Credential": { | ||
"title": "Referenced", | ||
"description": "Represent a type of object that can be represented either inline (by hash)\n or via a reference (i.e. a pointer to an on-chain location).\n\n This is mainly use for capturing pointers to a stake credential\n registration certificate in the case of so-called pointer addresses.", | ||
"anyOf": [ | ||
{ | ||
"title": "Inline", | ||
"dataType": "constructor", | ||
"index": 0, | ||
"fields": [ | ||
{ | ||
"$ref": "#/definitions/aiken~1transaction~1credential~1Credential" | ||
} | ||
] | ||
}, | ||
{ | ||
"title": "Pointer", | ||
"dataType": "constructor", | ||
"index": 1, | ||
"fields": [ | ||
{ | ||
"title": "slot_number", | ||
"$ref": "#/definitions/Int" | ||
}, | ||
{ | ||
"title": "transaction_index", | ||
"$ref": "#/definitions/Int" | ||
}, | ||
{ | ||
"title": "certificate_index", | ||
"$ref": "#/definitions/Int" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"marketplace/types/MarketplaceDatum": { | ||
"title": "MarketplaceDatum", | ||
"anyOf": [ | ||
{ | ||
"title": "MarketplaceDatum", | ||
"dataType": "constructor", | ||
"index": 0, | ||
"fields": [ | ||
{ | ||
"title": "seller", | ||
"$ref": "#/definitions/aiken~1transaction~1credential~1Address" | ||
}, | ||
{ | ||
"title": "price", | ||
"$ref": "#/definitions/Int" | ||
}, | ||
{ | ||
"title": "policy", | ||
"$ref": "#/definitions/ByteArray" | ||
}, | ||
{ | ||
"title": "tokenName", | ||
"$ref": "#/definitions/ByteArray" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"marketplace/types/MarketplaceRedeemer": { | ||
"title": "MarketplaceRedeemer", | ||
"anyOf": [ | ||
{ | ||
"title": "Buy", | ||
"dataType": "constructor", | ||
"index": 0, | ||
"fields": [] | ||
}, | ||
{ | ||
"title": "Close", | ||
"dataType": "constructor", | ||
"index": 1, | ||
"fields": [] | ||
} | ||
] | ||
} | ||
} | ||
} |