@meshsdk/contract 1.9.0-beta.104 → 1.9.0-beta.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Hc=Object.create;var g0=Object.defineProperty;var vc=Object.getOwnPropertyDescriptor;var Vc=Object.getOwnPropertyNames;var Dc=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var Uc=(n,i,c)=>i in n?g0(n,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[i]=c;var Nc=(n,i)=>{for(var c in i)g0(n,c,{get:i[c],enumerable:!0})},rc=(n,i,c,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of Vc(i))!Bc.call(n,a)&&a!==c&&g0(n,a,{get:()=>i[a],enumerable:!(e=vc(i,a))||e.enumerable});return n};var Mc=(n,i,c)=>(c=n!=null?Hc(Dc(n)):{},rc(i||!n||!n.__esModule?g0(c,"default",{value:n,enumerable:!0}):c,n)),Fc=n=>rc(g0({},"__esModule",{value:!0}),n);var r=(n,i,c)=>Uc(n,typeof i!="symbol"?i+"":i,c);var fe={};Nc(fe,{MeshContentOwnershipContract:()=>B0,MeshEscrowContract:()=>U0,MeshGiftCardContract:()=>K0,MeshHelloWorldContract:()=>W0,MeshMarketplaceContract:()=>C0,MeshPaymentSplitterContract:()=>X0,MeshPlutusNFTContract:()=>Q0,MeshSwapContract:()=>Z0,MeshVestingContract:()=>ec,ProgrammableTokenContract:()=>ac,activeEscrowDatum:()=>bc,initiateEscrowDatum:()=>N0,marketplaceDatum:()=>J0,recipientDepositRedeemer:()=>lc,resolveBlacklistAddress:()=>oe,resolveBlacklistScripts:()=>w0,resolveSmartWalletAddress:()=>ne,resolveStakeCredential:()=>h0});module.exports=Fc(fe);var m=require("@meshsdk/core"),z=require("@meshsdk/core-cst");var D0=require("@meshsdk/core");var O=class{constructor({mesh:i,fetcher:c,wallet:e,networkId:a=0,stakeCredential:t="c08f0294ead5ab7ae0ce5471dd487007919297ba95230af22f25e575",version:d=2}){r(this,"mesh");r(this,"fetcher");r(this,"wallet");r(this,"stakeCredential");r(this,"networkId",0);r(this,"version",2);r(this,"languageVersion","V2");r(this,"getScriptAddress",i=>{let{address:c}=(0,D0.serializePlutusScript)({code:i,version:this.languageVersion},this.stakeCredential,this.networkId);return c});r(this,"signSubmitReset",async()=>{let i=this.mesh.completeSigning(),c=await this.mesh.submitTx(i);return this.mesh.reset(),c});r(this,"queryUtxos",async i=>this.fetcher?await this.fetcher.fetchAddressUTxOs(i):[]);r(this,"getWalletDappAddress",async()=>{if(this.wallet){let i=await this.wallet.getUsedAddresses();if(i.length>0)return i[0];let c=await this.wallet.getUnusedAddresses();if(c.length>0)return c[0]}return""});r(this,"getWalletCollateral",async()=>{if(this.wallet)return(await this.wallet.getCollateral())[0]});r(this,"getWalletUtxosWithMinLovelace",async(i,c=[])=>{let e=c;return this.wallet&&(!c||c.length===0)&&(e=await this.wallet.getUtxos()),e.filter(a=>{let t=a.output.amount.find(d=>d.unit==="lovelace")?.quantity;return Number(t)>i})});r(this,"getWalletUtxosWithToken",async(i,c=[])=>{let e=c;return this.wallet&&c.length===0&&(e=await this.wallet.getUtxos()),e.filter(a=>{let t=a.output.amount.find(d=>d.unit===i)?.quantity;return Number(t)>=1})});r(this,"getAddressUtxosWithMinLovelace",async(i,c,e=[])=>{let a=e;return this.fetcher&&(!e||e.length===0)&&(a=await this.fetcher.fetchAddressUTxOs(i)),a.filter(t=>{let d=t.output.amount.find(s=>s.unit==="lovelace")?.quantity;return Number(d)>c})});r(this,"getAddressUtxosWithToken",async(i,c,e=[])=>{let a=e;return this.fetcher&&e.length===0&&(a=await this.fetcher.fetchAddressUTxOs(i)),a.filter(t=>{let d=t.output.amount.find(s=>s.unit===c)?.quantity;return Number(d)>=1})});r(this,"getWalletInfoForTx",async()=>{let i=await this.wallet?.getUtxos(),c=await this.getWalletCollateral(),e=await this.getWalletDappAddress();if(!i||i?.length===0)throw new Error("No utxos found");if(!c)throw new Error("No collateral found");if(!e)throw new Error("No wallet address found");return{utxos:i,collateral:c,walletAddress:e}});r(this,"_getUtxoByTxHash",async(i,c)=>{if(this.fetcher){let e=await this.fetcher?.fetchUTxOs(i),a=e[0];if(c){let t=(0,D0.serializePlutusScript)({code:c,version:this.languageVersion},this.stakeCredential,this.networkId).address;a=e.filter(d=>d.output.address===t)[0]||e[0]}return a}});this.mesh=i,c&&(this.fetcher=c),e&&(this.wallet=e),this.networkId=a,this.networkId===1?this.mesh.setNetwork("mainnet"):this.mesh.setNetwork("preprod"),this.version=d,this.version===1?this.languageVersion="V2":this.languageVersion="V3",t&&(this.stakeCredential=t)}};var q=require("@meshsdk/core"),i0=require("@meshsdk/core-cst");var A0={preamble:{title:"meshjs/content-ownership",description:"Aiken contracts for project 'meshjs/content-ownership'",version:"0.0.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.3+3d77b5c"},license:"Apache-2.0"},validators:[{title:"content_registry.content_registry.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/content_ownership~1types~1ContentRegistryDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1ContentRegistryRedeemer"}},parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"590d4c0101003232323232323223225333004323232323253323300a3001300b375400426464646464646464a6660246006002264646464a666032603800426601200244a6660360042a0102646004603e0066eb8c07400858dd6180d000980d0011bae3018001301437540162a6660246012002264646464a66603260380042a00c2c6eb4c068004c068008dd7180c000980a1baa00b15333012300400115333015301437540162a0042c2c60246ea80284c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc0840045280a9998109812000899192999810180918109baa001132533302130123022375400226464646464646464646464646464646464646464a6660706076004264646600202626600201e26600201226464646464646464646464a6660846066016264646464646464a6660980040022a666098609e004264a66609a0080042a66609a60a00082646464a66609a607c609c6ea80044c8c94ccc13cc100c140dd500089919191919299982b982d001899299982c182d801899299982b1824182b9baa001132325333058304a305937540022646603a00626603c002264a6660b4609860b66ea80044c8c94ccc170c138c174dd50008991981080189981100089919191919299983119b8f01501315333062005153330620021533306200115333062004100314a029405280a5014a060a6604e60446eacc118c18cdd50069829181318109bab30453062375401a66ebc00cc118cc18cdd418139bad30223061375400e660c66e9ccc88c8cc00400400c894ccc198004400c4cc19cc1a0004cc008008c1a4004dd6182218309baa00733063374e03697ae04bd7019baf0043045330623750604c6eb4c084c180dd5004198311ba73301d3758608660c06ea8020cc188dd480da5eb812f5c066e1cdd69810182f9baa007375a604060be6ea8014c184c178dd50008b181e982e9baa007305f305c37540022c607660b66ea8018c174c168dd50008b181c982c9baa303c3059375401a60b660b06ea800458c0dcc15cdd5181d182b9baa00c163059002163058002375860ae60b00046eb0c158004cc150dd3999980901d8140150019982a1ba7333301203b0220240014bd701bae30543055375860a860a26ea800458cc00cc03cdd5981998281baa303330503754008466e3cdd718090008119bae30523053375860a4609e6ea800458cc004c034dd5981898271baa3031304e3754006466e3cdd718080008139119198008008019129998290008a60103d87a800013232533305130050021303833055374e00497ae01330040040013056002375860a8002609e008004609c0040022940dd618260011bac304b304c00133049374e66600a06803a03e660926e9cccc0140d005c0652f5c06eb0c124c128008dd7182400098221baa03b1325333043303a00c13232323232533304b304e0021325333049303a304a375400226464646464a6660a260a8006264a6660a460aa00626464a6660a2608660a46ea80044c8cc05c0044c94ccc14cc110c150dd500089919299982a8030a99982a80108008a5014a0608c6034602a6eacc0e4c158dd500319b8848000c8c8c8c94ccc168c1740084c8cc004004c8cc004004120894ccc17400452f5c02660bc6ea0ccc100dd5981f982e1baa303f305c375460be00200c0086600400460c000244a6660b800229000099b80375a60bc0026600400460be0022c6eb8c16c004c16c008dd7182c8009bac3058305537540022c66646002002444a6660b00042980103d87a800013232533305730480031303e3305b374e00497ae01333005005001337000069000982e0019bac305a0023758606e60a86ea8004034c158c14cdd50008b181918291baa30353052375401266646444a6660a6608a60a86ea80084c8cc06000454ccc150c118c154dd50010991980c800899baf001303c33059301830573754004660b26e9cc8c94ccc15cc120c160dd500089980b1bac301a0023305b37520266eb0c170c164dd50008b19299982d0008a60103d87a80001303e3305b374e60ba00297ae0375860760026600a6eb0c0e8c15cdd500100825eb80c164c158dd50010b182c182a9baa002163001001222533305500214bd70810180008101800009919299982a19b89003480004cc16130101800033058374e00897ae013233059374e660b26ea400cdd6182d0009982c982d182d800a5eb80ccc014014004cdc0001a400260b20066eb8c15c008c0c4c144dd5181a18289baa0023031305137540022c60a60042c60a40046eb0c144c148008dd61828000998271ba7323302f03a2533304c3375e601e609c6ea8c0c4c138dd5000812098219998191bab3031304e37546062609c6ea80040980085281bae302f0013304e374e666601806a0440486eb8c0bc0052f5c06eb0c138c12cdd50008b1929998260008a60103d87a8000130303304d304e0014bd70180498031bab302d304a3754605a60946ea800458c130004cc0a80cc8cdd7980518249baa302c304937540020326eb4c128c12c008dd7182480098229baa03c132533304700114a02a66608e6094002264a66608a646600200205c44a66609400229404c94ccc120cdc79bae304d00201414a2266006006002609a00220022940cdd79ba602d374c646600200260066eacc0a8c11cdd5181518239baa304a00222533304900114bd6f7b6300991982599bb03048001374c64660020026eacc128008894ccc13000452f5bded8c02646609c66ec0c12c004dd419b8148000dd69826000998018019828001182700099801801982680118258008a5033300303201b01d2323300100100222533304800114bd6f7b630099191919299982499b9148900002153330493371e9101000021003100513304d337606ea4008dd3000998030030019bab304a003375c60900046098004609400244646600200200644a666090002200626609260940026600400460960024446604e0064a66608866ebcc01cc118dd5181498231baa00100313233001001300637566054608e6ea8c0a8c11cdd50011129998248008a5013253330473371e6eb8c028dd618260010028a51133003003001304c00114a04646600200200444a66608a002297ae0132333222323300100100322533304b00110031323304d374e6609a6ea4018cc134c128004cc134c12c0052f5c066006006609e004609a0026eb8c110004dd5982280099801801982480118238009111198130021299982199baf300630453754002008260746660526eacc0a0c114dd50008018010a502304300122533303e302f303f3754004264646464a66608a609000426606a00244a66608e0042a00e264600460960066eb8c12400858dd6182300098230011bad3044001304037540042c44a66607a605c607c6ea80084c8c8c8c94ccc110c11c0084cc0d0004894ccc1180085401c4cc0d8dd61824001112999824001098019825802099180118260019bae304a002163758608a002608a0046eb4c10c004c0fcdd50010b180080091299981f0008a4000260066600400460820026e0120023038375406044a666070605260726ea80084c8c8c8c94ccc0fcc1080084cc01c00c4c8c94ccc0f8c0bc0044c8c94ccc10cc1180084c8c94ccc108c0cc0044c8c94ccc11cc1280084cc03c0045401058c120004c110dd50018a999821181c8008991919191919299982598270010a8040b1bad304c001304c002375a609400260940046eb4c120004c110dd50018b18211baa00215004163044001304037540062a66607c606a0022a66608260806ea800c540085858c0f8dd50010a8028b18200009820001181f000981d1baa0021622325333038302900113232533303d30400021500416375c607c00260746ea800c54ccc0e0c0bc0044c8c94ccc0f4c1000085401058dd7181f000981d1baa00316303837540042c6eb8c0e4004c0e4008dd7181b800981b8011bad3035001303500230330013033002375c606200260620046eb4c0bc004c0bc008c0b4004c0b4008dd718158009815801181480098148011bae3027001302337540022c604a60446ea800458c004c084dd5180218109baa3024002230243025302500114a0660020144602a6660086eacc00cc080dd5180198101baa00101c4890022323300100100322533302300114bd700991929998111802801099813001198020020008998020020009813801181280091810981100091119299980f180a980f9baa0011480004dd6981198101baa00132533301e3015301f3754002298103d87a8000132330010013756604860426ea8008894ccc08c004530103d87a80001323232325333024337220100042a66604866e3c0200084c02ccc0a0dd4000a5eb80530103d87a8000133006006003375a604a0066eb8c08c008c09c008c094004c8cc004004010894ccc0880045300103d87a80001323232325333023337220100042a66604666e3c0200084c028cc09cdd3000a5eb80530103d87a8000133006006003375660480066eb8c088008c098008c090004dd2a40006eb0c074c078c078c078c078008dd5980e000980e180e0011bac301a001301a0023758603000260300046eb0c058004c048dd50059b8748000dc3a40084464660020020064466006002600400460226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea800452613656375c002ae6955ceaab9e5573eae815d0aba201",hash:"f940075f7ed85d5f5c5045aef04e4c946e831be31b28e25bd90aab6c"},{title:"content_registry.content_registry.else",parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"590d4c0101003232323232323223225333004323232323253323300a3001300b375400426464646464646464a6660246006002264646464a666032603800426601200244a6660360042a0102646004603e0066eb8c07400858dd6180d000980d0011bae3018001301437540162a6660246012002264646464a66603260380042a00c2c6eb4c068004c068008dd7180c000980a1baa00b15333012300400115333015301437540162a0042c2c60246ea80284c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc0840045280a9998109812000899192999810180918109baa001132533302130123022375400226464646464646464646464646464646464646464a6660706076004264646600202626600201e26600201226464646464646464646464a6660846066016264646464646464a6660980040022a666098609e004264a66609a0080042a66609a60a00082646464a66609a607c609c6ea80044c8c94ccc13cc100c140dd500089919191919299982b982d001899299982c182d801899299982b1824182b9baa001132325333058304a305937540022646603a00626603c002264a6660b4609860b66ea80044c8c94ccc170c138c174dd50008991981080189981100089919191919299983119b8f01501315333062005153330620021533306200115333062004100314a029405280a5014a060a6604e60446eacc118c18cdd50069829181318109bab30453062375401a66ebc00cc118cc18cdd418139bad30223061375400e660c66e9ccc88c8cc00400400c894ccc198004400c4cc19cc1a0004cc008008c1a4004dd6182218309baa00733063374e03697ae04bd7019baf0043045330623750604c6eb4c084c180dd5004198311ba73301d3758608660c06ea8020cc188dd480da5eb812f5c066e1cdd69810182f9baa007375a604060be6ea8014c184c178dd50008b181e982e9baa007305f305c37540022c607660b66ea8018c174c168dd50008b181c982c9baa303c3059375401a60b660b06ea800458c0dcc15cdd5181d182b9baa00c163059002163058002375860ae60b00046eb0c158004cc150dd3999980901d8140150019982a1ba7333301203b0220240014bd701bae30543055375860a860a26ea800458cc00cc03cdd5981998281baa303330503754008466e3cdd718090008119bae30523053375860a4609e6ea800458cc004c034dd5981898271baa3031304e3754006466e3cdd718080008139119198008008019129998290008a60103d87a800013232533305130050021303833055374e00497ae01330040040013056002375860a8002609e008004609c0040022940dd618260011bac304b304c00133049374e66600a06803a03e660926e9cccc0140d005c0652f5c06eb0c124c128008dd7182400098221baa03b1325333043303a00c13232323232533304b304e0021325333049303a304a375400226464646464a6660a260a8006264a6660a460aa00626464a6660a2608660a46ea80044c8cc05c0044c94ccc14cc110c150dd500089919299982a8030a99982a80108008a5014a0608c6034602a6eacc0e4c158dd500319b8848000c8c8c8c94ccc168c1740084c8cc004004c8cc004004120894ccc17400452f5c02660bc6ea0ccc100dd5981f982e1baa303f305c375460be00200c0086600400460c000244a6660b800229000099b80375a60bc0026600400460be0022c6eb8c16c004c16c008dd7182c8009bac3058305537540022c66646002002444a6660b00042980103d87a800013232533305730480031303e3305b374e00497ae01333005005001337000069000982e0019bac305a0023758606e60a86ea8004034c158c14cdd50008b181918291baa30353052375401266646444a6660a6608a60a86ea80084c8cc06000454ccc150c118c154dd50010991980c800899baf001303c33059301830573754004660b26e9cc8c94ccc15cc120c160dd500089980b1bac301a0023305b37520266eb0c170c164dd50008b19299982d0008a60103d87a80001303e3305b374e60ba00297ae0375860760026600a6eb0c0e8c15cdd500100825eb80c164c158dd50010b182c182a9baa002163001001222533305500214bd70810180008101800009919299982a19b89003480004cc16130101800033058374e00897ae013233059374e660b26ea400cdd6182d0009982c982d182d800a5eb80ccc014014004cdc0001a400260b20066eb8c15c008c0c4c144dd5181a18289baa0023031305137540022c60a60042c60a40046eb0c144c148008dd61828000998271ba7323302f03a2533304c3375e601e609c6ea8c0c4c138dd5000812098219998191bab3031304e37546062609c6ea80040980085281bae302f0013304e374e666601806a0440486eb8c0bc0052f5c06eb0c138c12cdd50008b1929998260008a60103d87a8000130303304d304e0014bd70180498031bab302d304a3754605a60946ea800458c130004cc0a80cc8cdd7980518249baa302c304937540020326eb4c128c12c008dd7182480098229baa03c132533304700114a02a66608e6094002264a66608a646600200205c44a66609400229404c94ccc120cdc79bae304d00201414a2266006006002609a00220022940cdd79ba602d374c646600200260066eacc0a8c11cdd5181518239baa304a00222533304900114bd6f7b6300991982599bb03048001374c64660020026eacc128008894ccc13000452f5bded8c02646609c66ec0c12c004dd419b8148000dd69826000998018019828001182700099801801982680118258008a5033300303201b01d2323300100100222533304800114bd6f7b630099191919299982499b9148900002153330493371e9101000021003100513304d337606ea4008dd3000998030030019bab304a003375c60900046098004609400244646600200200644a666090002200626609260940026600400460960024446604e0064a66608866ebcc01cc118dd5181498231baa00100313233001001300637566054608e6ea8c0a8c11cdd50011129998248008a5013253330473371e6eb8c028dd618260010028a51133003003001304c00114a04646600200200444a66608a002297ae0132333222323300100100322533304b00110031323304d374e6609a6ea4018cc134c128004cc134c12c0052f5c066006006609e004609a0026eb8c110004dd5982280099801801982480118238009111198130021299982199baf300630453754002008260746660526eacc0a0c114dd50008018010a502304300122533303e302f303f3754004264646464a66608a609000426606a00244a66608e0042a00e264600460960066eb8c12400858dd6182300098230011bad3044001304037540042c44a66607a605c607c6ea80084c8c8c8c94ccc110c11c0084cc0d0004894ccc1180085401c4cc0d8dd61824001112999824001098019825802099180118260019bae304a002163758608a002608a0046eb4c10c004c0fcdd50010b180080091299981f0008a4000260066600400460820026e0120023038375406044a666070605260726ea80084c8c8c8c94ccc0fcc1080084cc01c00c4c8c94ccc0f8c0bc0044c8c94ccc10cc1180084c8c94ccc108c0cc0044c8c94ccc11cc1280084cc03c0045401058c120004c110dd50018a999821181c8008991919191919299982598270010a8040b1bad304c001304c002375a609400260940046eb4c120004c110dd50018b18211baa00215004163044001304037540062a66607c606a0022a66608260806ea800c540085858c0f8dd50010a8028b18200009820001181f000981d1baa0021622325333038302900113232533303d30400021500416375c607c00260746ea800c54ccc0e0c0bc0044c8c94ccc0f4c1000085401058dd7181f000981d1baa00316303837540042c6eb8c0e4004c0e4008dd7181b800981b8011bad3035001303500230330013033002375c606200260620046eb4c0bc004c0bc008c0b4004c0b4008dd718158009815801181480098148011bae3027001302337540022c604a60446ea800458c004c084dd5180218109baa3024002230243025302500114a0660020144602a6660086eacc00cc080dd5180198101baa00101c4890022323300100100322533302300114bd700991929998111802801099813001198020020008998020020009813801181280091810981100091119299980f180a980f9baa0011480004dd6981198101baa00132533301e3015301f3754002298103d87a8000132330010013756604860426ea8008894ccc08c004530103d87a80001323232325333024337220100042a66604866e3c0200084c02ccc0a0dd4000a5eb80530103d87a8000133006006003375a604a0066eb8c08c008c09c008c094004c8cc004004010894ccc0880045300103d87a80001323232325333023337220100042a66604666e3c0200084c028cc09cdd3000a5eb80530103d87a8000133006006003375660480066eb8c088008c098008c090004dd2a40006eb0c074c078c078c078c078008dd5980e000980e180e0011bac301a001301a0023758603000260300046eb0c058004c048dd50059b8748000dc3a40084464660020020064466006002600400460226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea800452613656375c002ae6955ceaab9e5573eae815d0aba201",hash:"f940075f7ed85d5f5c5045aef04e4c946e831be31b28e25bd90aab6c"},{title:"content_registry_ref_token.content_registry_ref_token.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1MintPolarity"}},parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"5907090101003232323232323223225333004323232323253323300a3001300b3754004264646464a66601c600a0022a66602260206ea801c540085854ccc038c00c00454ccc044c040dd50038a8010b0b18071baa0061323232323232323232323232323232533301b3012301c37540042a66603c0060022a66603c6042006264a6646603a6002603c6ea80084c8c8c8c8cc0040104c8c8c8c8c8c8c8c94ccc0b000800454ccc0b0c0bc0084c94ccc0b401000854ccc0b4c0c00104c8c94ccc0b0c040c0b4dd5000899192999817180918179baa0011323300f0031533302f302630303754002264646464a66606c6072004264660020020044464a6660720042646464646464a66607866ebc040c8c8c8c8c0bccc110c114010cc110c11400ccc110c114008cc110c114004cc110dd419b8001c48008c118c118004c114004c110004c10c004c0f8dd500f8a99981e0030a99981e00108008a5014a02940c07cc008dd59814181e9baa011301e30013756604e60786ea80448c008c094004c004004894ccc0f000452000133700900119801001181f800a99981b1816803099baf374e00898101800014a02646004607a0066eb8c0ec008c00800858dd6181b800981b8011bad3035001303137540022c606660606ea800458c058c0bcdd5001981898171baa001163014302d3754004605e008004605c0040022940dd618160011bac302b302c001323302a374e6666002030605600a0489101003302a374e666600203060560066eb8c0ac010c8c8c8c8c8cdc5000a441012900337149110a5265676973747279202800330010063300300648008c0040048894ccc0acc0800044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66605266e2000920141001133300300333706004900a19b82001480512f5c04444660320084a66605466ebcc050c0b0dd50008020980f99980c1bab3017302c37540020060042940dd69814981500098148009814000981398119baa00422533302230193023375400426464646464646464646464646464646464646464a666072607800426602e02226602e01a26602e00e2a02a2c6eb8c0e8004c0e8008dd7181c000981c0011bad3036001303600230340013034002375c606400260640046eb4c0c0004c0c0008c0b8004c0b8008dd718160009816001181500098150011bae3028001302437540042c44a666042603060446ea80084c8c8c8c94ccc0a0c0ac0084cc01c00c4c8c94ccc09cc0780044c8c94ccc0b0c0bc0084c8c94ccc0acc0880044c8c94ccc0c0c0cc0084cc03c0045401058c0c4004c0b4dd50018a99981598100008991919191919299981a181b8010a8040b1bad30350013035002375a606600260660046eb4c0c4004c0b4dd50018b18159baa0021500416302d001302937540062a66604e60380022a66605460526ea800c540085858c09cdd50010a8028b18148009814801181380098119baa0021622325333021301800113232533302630290021500416375c604e00260466ea800c54ccc084c0580044c8c94ccc098c0a40085401058dd7181380098119baa00316302137540046044603e6ea8008dc3a40082c6008603a6ea8c020c074dd518100018008008a99980d1807980d9baa00113233001001300600c22533301f00114a2264a66603a64a66603c66e3cdd7180400080a099b88375a600e00290000a51375860440042660060060022940c088004528180f0029bac301d301e0042301d301e301e0012301c0012323300100100222533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004cc060034cc060dd3998021bac30190082300a33300337566004602e6ea8c008c05cdd5000809a45004bd701180c980d00091119299980b1805980b9baa0011480004dd6980d980c1baa001325333016300b301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220100042a66603866e3c0200084c02ccc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc004004010894ccc0680045300103d87a8000132323232533301b337220100042a66603666e3c0200084c028cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004dd2a400044646600200200644a66602e002297ae0132325333016300500213301a00233004004001133004004001301b002301900137566028602a602a0046eb0c04c004c04cc04c004c038dd50039b8748008dd7180798061baa002370e90000b1806980700118060009806001180500098031baa00114984d958dd7000ab9a5573aaae7955cfaba05742ae89",hash:"5b692922e6ea97bd96497fb96c7a6e03f8a8d3544e85d4815e74b6e3"},{title:"content_registry_ref_token.content_registry_ref_token.else",parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"5907090101003232323232323223225333004323232323253323300a3001300b3754004264646464a66601c600a0022a66602260206ea801c540085854ccc038c00c00454ccc044c040dd50038a8010b0b18071baa0061323232323232323232323232323232533301b3012301c37540042a66603c0060022a66603c6042006264a6646603a6002603c6ea80084c8c8c8c8cc0040104c8c8c8c8c8c8c8c94ccc0b000800454ccc0b0c0bc0084c94ccc0b401000854ccc0b4c0c00104c8c94ccc0b0c040c0b4dd5000899192999817180918179baa0011323300f0031533302f302630303754002264646464a66606c6072004264660020020044464a6660720042646464646464a66607866ebc040c8c8c8c8c0bccc110c114010cc110c11400ccc110c114008cc110c114004cc110dd419b8001c48008c118c118004c114004c110004c10c004c0f8dd500f8a99981e0030a99981e00108008a5014a02940c07cc008dd59814181e9baa011301e30013756604e60786ea80448c008c094004c004004894ccc0f000452000133700900119801001181f800a99981b1816803099baf374e00898101800014a02646004607a0066eb8c0ec008c00800858dd6181b800981b8011bad3035001303137540022c606660606ea800458c058c0bcdd5001981898171baa001163014302d3754004605e008004605c0040022940dd618160011bac302b302c001323302a374e6666002030605600a0489101003302a374e666600203060560066eb8c0ac010c8c8c8c8c8cdc5000a441012900337149110a5265676973747279202800330010063300300648008c0040048894ccc0acc0800044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66605266e2000920141001133300300333706004900a19b82001480512f5c04444660320084a66605466ebcc050c0b0dd50008020980f99980c1bab3017302c37540020060042940dd69814981500098148009814000981398119baa00422533302230193023375400426464646464646464646464646464646464646464a666072607800426602e02226602e01a26602e00e2a02a2c6eb8c0e8004c0e8008dd7181c000981c0011bad3036001303600230340013034002375c606400260640046eb4c0c0004c0c0008c0b8004c0b8008dd718160009816001181500098150011bae3028001302437540042c44a666042603060446ea80084c8c8c8c94ccc0a0c0ac0084cc01c00c4c8c94ccc09cc0780044c8c94ccc0b0c0bc0084c8c94ccc0acc0880044c8c94ccc0c0c0cc0084cc03c0045401058c0c4004c0b4dd50018a99981598100008991919191919299981a181b8010a8040b1bad30350013035002375a606600260660046eb4c0c4004c0b4dd50018b18159baa0021500416302d001302937540062a66604e60380022a66605460526ea800c540085858c09cdd50010a8028b18148009814801181380098119baa0021622325333021301800113232533302630290021500416375c604e00260466ea800c54ccc084c0580044c8c94ccc098c0a40085401058dd7181380098119baa00316302137540046044603e6ea8008dc3a40082c6008603a6ea8c020c074dd518100018008008a99980d1807980d9baa00113233001001300600c22533301f00114a2264a66603a64a66603c66e3cdd7180400080a099b88375a600e00290000a51375860440042660060060022940c088004528180f0029bac301d301e0042301d301e301e0012301c0012323300100100222533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004cc060034cc060dd3998021bac30190082300a33300337566004602e6ea8c008c05cdd5000809a45004bd701180c980d00091119299980b1805980b9baa0011480004dd6980d980c1baa001325333016300b301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220100042a66603866e3c0200084c02ccc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc004004010894ccc0680045300103d87a8000132323232533301b337220100042a66603666e3c0200084c028cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004dd2a400044646600200200644a66602e002297ae0132325333016300500213301a00233004004001133004004001301b002301900137566028602a602a0046eb0c04c004c04cc04c004c038dd50039b8748008dd7180798061baa002370e90000b1806980700118060009806001180500098031baa00114984d958dd7000ab9a5573aaae7955cfaba05742ae89",hash:"5b692922e6ea97bd96497fb96c7a6e03f8a8d3544e85d4815e74b6e3"},{title:"one_time_minting_policy.one_time_minting_policy.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1MintPolarity"}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}}],compiledCode:"59019e0101003232323232323222533300332323232325332330093001300a37540042646464a66601860080022a66601e601c6ea8018540085854ccc030cdc3a40040022a66601e601c6ea8018540085858c030dd50028992999805980198061baa0051533300b3003300c375464660020026eb0c044c038dd50041129998080008a60103d87a800013232533300f3375e01c600a60226ea80084cdd2a40006602600497ae01330040040013014002301200114a229404c8cc004004c8cc004004dd59809180998099809980998079baa00922533301100114bd70099199911191980080080191299980b80088018991980c9ba733019375200c66032602c00266032602e00297ae033003003301b0023019001375c60200026eacc044004cc00c00cc054008c04c004894ccc040004528899299980719299980799b8f375c600a00200c266e20dd6980a180a980a800a40002944dd618098010998018018008a50301300123010001375c601c60166ea8008dc3a40002c6018601a004601600260160046012002600a6ea8004526136565734aae7555cf2ab9f5740ae855d101",hash:"55ada3bfe32c4ff89d50cfdd86956e013a011fa28279112e424e596a"},{title:"one_time_minting_policy.one_time_minting_policy.else",parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}}],compiledCode:"59019e0101003232323232323222533300332323232325332330093001300a37540042646464a66601860080022a66601e601c6ea8018540085854ccc030cdc3a40040022a66601e601c6ea8018540085858c030dd50028992999805980198061baa0051533300b3003300c375464660020026eb0c044c038dd50041129998080008a60103d87a800013232533300f3375e01c600a60226ea80084cdd2a40006602600497ae01330040040013014002301200114a229404c8cc004004c8cc004004dd59809180998099809980998079baa00922533301100114bd70099199911191980080080191299980b80088018991980c9ba733019375200c66032602c00266032602e00297ae033003003301b0023019001375c60200026eacc044004cc00c00cc054008c04c004894ccc040004528899299980719299980799b8f375c600a00200c266e20dd6980a180a980a800a40002944dd618098010998018018008a50301300123010001375c601c60166ea8008dc3a40002c6018601a004601600260160046012002600a6ea8004526136565734aae7555cf2ab9f5740ae855d101",hash:"55ada3bfe32c4ff89d50cfdd86956e013a011fa28279112e424e596a"},{title:"oracle_validator.oracle_validator.spend",datum:{title:"datum_opt",schema:{$ref:"#/definitions/content_ownership~1types~1OracleDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1OracleRedeemer"}},compiledCode:"5906cd01010032323232323232253330023232323232533233008300130093754004264646464646464a66601e60060022a66602460226ea8028540085854ccc03cc02000454ccc048c044dd50050a8010b0a9998079802000899191919299980b180c8010a8030b1bae30170013017002375c602a00260226ea802854ccc03ccdc3a400c0022a66602460226ea8028540085858c03cdd5004899191919192999809180318099baa008132323232323232323232323232323232323232323232325333029301d00713333001019011300200f4800854ccc0a4c08801c4cccc004064034c00802d2002132533302a301f00813232323232325333033303600213253330313026303237540022646464a6660686050606a6ea800c4c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc12cc1380084cc0540444cc0540344cc05401c4c94ccc124c8cc004004cc138dd4815198271ba90294bd701129998270008a51132533304c3302303b375c60a20042660060060022940c144004400452819baf0173232323232323230223305330540073305330540063305330540053305330540043305330540033305330540023305330540013305330543055001330533752048660a66ea408d2f5c060a800260a600260a400260a200260a0002609e00260946ea80d858dd7182600098260011bae304a001304a002375a60900026090004608c002608c0046eb8c110004c110008dd698210009821001182000098200011bae303e001303e002303c001303c002375c6074002606c6ea800c58894ccc0d4c0a4c0d8dd5001099191919299981e181f80109980380189919299981d9817800899192999820182180109919299981f981980089919299982218238010998078008a8020b182280098209baa0031533303f303800113232323232325333048304b0021500816375a609200260920046eb4c11c004c11c008dd6982280098209baa00316303f37540042a0082c6082002607a6ea800c54ccc0ecc0d000454ccc0f8c0f4dd50018a8010b0b181d9baa0021500516303d001303d002303b001303737540042c4464a66606a605200226464a666074607a0042a0082c6eb8c0ec004c0dcdd50018a99981a981700089919299981d181e8010a8020b1bae303b001303737540062c606a6ea8008c0d8c0ccdd50008b181a981b181b18191baa001163034001323300100102122533303300114bd70099192999819299981919baf3037303437540040382605664a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a60103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a800013232323253330393372291100002153330393371e9101000021300c3303d375000297ae014c0103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004dd5981c181c981a9baa00322533303700114c103d87a80001323232325333038337220480042a66607066e3c0900084c02ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e400452809981b00119802002000899802002000981b801181a8009ba548000dd7181898190011bae3030001302c375404a2a666054660020320122666600403402c91100480045281119198008008019129998180008a50132533302e3371e6eb8c0cc008010528899801801800981980091111929998180008a50153330303033001132323253330303371e6eb8c0d400c01c54ccc0c0cdc7800803099b8700200514a02940dd7181a181a8011bad303330343034001375860640022940c8cc004004014894ccc0c400452f5c0264666444646600200200644a66606e0022006264660726e9ccc0e4dd48031981c981b0009981c981b800a5eb80cc00c00cc0ec008c0e4004dd718180009bab30310013300300330350023033001232337140029101012900337149110a5265676973747279202800330020013300400148008c0040048894ccc0a0c0840044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66604c66e2000920141001133300300333706004900a19b8200148050c08cdd500e9bae30263027002375c604a002604a0046eb4c08c004c08cc08c008dd7181080098108011bad301f001301f301f002375c603a002603a004603600260360046eb8c064004c054dd5000980b980a1baa008163758602c602e602e602e602e0046eacc054004c054c054008dd618098009809980998079baa00a370e90001b8748010c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba201",hash:"d9c639433a3de1adeb247053b7556dd637be9398b245fa0ab351fbbf"},{title:"oracle_validator.oracle_validator.else",compiledCode:"5906cd01010032323232323232253330023232323232533233008300130093754004264646464646464a66601e60060022a66602460226ea8028540085854ccc03cc02000454ccc048c044dd50050a8010b0a9998079802000899191919299980b180c8010a8030b1bae30170013017002375c602a00260226ea802854ccc03ccdc3a400c0022a66602460226ea8028540085858c03cdd5004899191919192999809180318099baa008132323232323232323232323232323232323232323232325333029301d00713333001019011300200f4800854ccc0a4c08801c4cccc004064034c00802d2002132533302a301f00813232323232325333033303600213253330313026303237540022646464a6660686050606a6ea800c4c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc12cc1380084cc0540444cc0540344cc05401c4c94ccc124c8cc004004cc138dd4815198271ba90294bd701129998270008a51132533304c3302303b375c60a20042660060060022940c144004400452819baf0173232323232323230223305330540073305330540063305330540053305330540043305330540033305330540023305330540013305330543055001330533752048660a66ea408d2f5c060a800260a600260a400260a200260a0002609e00260946ea80d858dd7182600098260011bae304a001304a002375a60900026090004608c002608c0046eb8c110004c110008dd698210009821001182000098200011bae303e001303e002303c001303c002375c6074002606c6ea800c58894ccc0d4c0a4c0d8dd5001099191919299981e181f80109980380189919299981d9817800899192999820182180109919299981f981980089919299982218238010998078008a8020b182280098209baa0031533303f303800113232323232325333048304b0021500816375a609200260920046eb4c11c004c11c008dd6982280098209baa00316303f37540042a0082c6082002607a6ea800c54ccc0ecc0d000454ccc0f8c0f4dd50018a8010b0b181d9baa0021500516303d001303d002303b001303737540042c4464a66606a605200226464a666074607a0042a0082c6eb8c0ec004c0dcdd50018a99981a981700089919299981d181e8010a8020b1bae303b001303737540062c606a6ea8008c0d8c0ccdd50008b181a981b181b18191baa001163034001323300100102122533303300114bd70099192999819299981919baf3037303437540040382605664a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a60103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a800013232323253330393372291100002153330393371e9101000021300c3303d375000297ae014c0103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004dd5981c181c981a9baa00322533303700114c103d87a80001323232325333038337220480042a66607066e3c0900084c02ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e400452809981b00119802002000899802002000981b801181a8009ba548000dd7181898190011bae3030001302c375404a2a666054660020320122666600403402c91100480045281119198008008019129998180008a50132533302e3371e6eb8c0cc008010528899801801800981980091111929998180008a50153330303033001132323253330303371e6eb8c0d400c01c54ccc0c0cdc7800803099b8700200514a02940dd7181a181a8011bad303330343034001375860640022940c8cc004004014894ccc0c400452f5c0264666444646600200200644a66606e0022006264660726e9ccc0e4dd48031981c981b0009981c981b800a5eb80cc00c00cc0ec008c0e4004dd718180009bab30310013300300330350023033001232337140029101012900337149110a5265676973747279202800330020013300400148008c0040048894ccc0a0c0840044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66604c66e2000920141001133300300333706004900a19b8200148050c08cdd500e9bae30263027002375c604a002604a0046eb4c08c004c08cc08c008dd7181080098108011bad301f001301f301f002375c603a002603a004603600260360046eb8c064004c054dd5000980b980a1baa008163758602c602e602e602e602e0046eacc054004c054c054008dd618098009809980998079baa00a370e90001b8748010c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba201",hash:"d9c639433a3de1adeb247053b7556dd637be9398b245fa0ab351fbbf"},{title:"ownership_registry.ownership_registry.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/content_ownership~1types~1OwnershipRegistryDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1OwnershipRegistryRedeemer"}},parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"590bb40101003232323232323223225333004323232323253323300a3001300b375400426464646464646464a66602460060022a66602a60286ea802c540085854ccc048c0240044c8c8c8c94ccc064c0700084cc02400c894ccc06c008540204c8c008c07c00cdd7180e8010b1bad301a001301a0023758603000260286ea802c54ccc048c01000454ccc054c050dd50058a8010b0b18091baa00a1323232323232323232323232323232533302200114a02a666044604a00226464a666042602660446ea80044c8c8c8c8c94ccc098c05c01054ccc098c05cc09cdd500289919191919191919191919191919191919191919299981e982000109980b00889980b00689980b003899299981f0008a501533303e3041001132533303c302d303d37540022646464a66607e6060002264646464a66608c609200426606c00244a6660900042a010264600460980066eb8c12800858dd6182380098238011bae3045001304137540062a66607e606c002264646464a66608c60920042a00c2c6eb4c11c004c11c008dd7182280098209baa0031533303f303100115333042304137540062a0042c2c607e6ea800854ccc0f4c0b8c0f8dd50008a5114a06082607c6ea800458c8c8cc004004090894ccc104004530103d87a8000132323253330413375e00c60840062604c6608a00297ae01330050050023042002304500230430013374a90011981f980b181e9baa30400014bd700a503301d02923375e602c607a6ea8c084c0f4dd50008070b1bae303e001303e002375c607800260780046eb4c0e8004c0e8008c0e0004c0e0008dd7181b000981b0011bad3034001303400230320013032002375c60600026060004605c002605c0046eb8c0b0004c0a0dd50028b09919192999814981000389919192999816180e98169baa00b132323232323232323232323232323232323232325333043304600213301c01113301c00d13301c007132323232533304700200115333047304a002132533304800400215333048304b0041323253330473039304837540022646466002004264a666094607860966ea80044c8cc00c0044c94ccc130c0f4c134dd50008991919192999829982b00109919299982919b8848000c8c8cc004004c8cc004004110894ccc16400452f5c02660b46ea0ccc0e8dd5981e182c1baa303c3058375460b60026eb8c0c4010dd7181e00219801001182e00091299982c0008a4000266e00dd6982d00099801001182d8009982b1ba900533056375200697ae015333052002100114a02940c10ccc8c004004894ccc15800452000133700900119801001182c80098151bab30373053375401866ebc018c0d4cc150c0acc148dd50049982a1ba7323232533305330443054375400226644646600200200644a6660b400220062660b660b80026600400460ba0026eb0c0b8008cc15cdd38149bac3058305537540022c64a6660ac002298103d87a80001303833057374e60b200297ae0375860700026660020026eb0c0dcc14cdd5005013111299982b0010a5eb8410180008101800009919299982a99b89003480004cc16530101800033059374e00897ae01323305a374e660b46e9c00cdd6182d8009982d182d982e000a5eb80ccc014014004cdc0001a400260b40066eb0c1600092f5c02c6eb8c150004c150008dd718290009bac3051304e37540022c66646002002444a6660a20042980103d87a800013232533305030410031303533054374e00497ae01333005005001337000069000982a8019bac305300237586062609a6ea8010080c13cc130dd50008b181518259baa00422533304a303b304b3754004264646464a6660a260a800426608200244a6660a60042a00e2660866eb0c154008894ccc1540084c00cc1600104c8c008c16400cdd7182b8010b1bac30520013052002375a60a000260986ea800858c130c124dd50008b181398241baa302c30483754004609400800460920040022940dd618238011bac3046304700133044374e66603005e00e012660886e9ccc08c0b094ccc104cdd7980e18219baa00100813301b301a3756604e60866ea80048cdc79bae301d00100b14a097ae016375c608800260880046eb8c108004c108008dd698200009820001181f000981f0011bae303c001303c002375a60740026074004607000260700046eb8c0d8004c0d8008c0d0004c0d0008dd7181900098171baa00b16375a606060620046eb0c0bc004c0acdd50110a999814980d18151baa008132323232323232323232323232323232323232325333040304300213301901113301900d133019007132533304100114a02a6660826088002264a66607e646600200205044a66608800229404c94ccc108cdc79bae304700200614a2266006006002608e00220022940cdd79ba6028374c646600200264660020026eacc098c108dd5181318211baa304500322533304400114bd6f7b630099191919299982299b9148900002153330453371e91010000210031005133049337606ea4008dd3000998030030019bab3046003375c60880046090004608c00244a666086002297adef6c60132330453376060840026e98c8cc004004dd598220011129998230008a5eb7bdb1804c8cc120cdd818228009ba83370290001bad304600133003003304a0023048001330030033047002304500114a066602a05800e0122c6eb8c104004c104008dd7181f800981f8011bad303d001303d002303b001303b002375c607200260720046eb4c0dc004c0dc008c0d4004c0d4008dd718198009819801181880098188011bae302f001302b37540102c4446601c0064a66605866ebcc01cc0b8dd5180918171baa001003133006300537566024605c6ea8c048c0b8dd5000919b8f375c601000200629408c8cc004004008894ccc0b400452f5c0264666444646600200200644a66606600220062646606a6e9ccc0d4dd48031981a98190009981a9819800a5eb80cc00c00cc0dc008c0d4004dd718160009bab302d001330030033031002302f00122323300100100322533302d00114a0264a66605660086eb0c0c0008528899801801800981800091815800912999813180b98139baa002132323232533302d303000213300700313232533302c301d00113232533303130340021323253330303021001132325333035303800213300f00115004163036001303237540062a666060604e0022646464646464a66607260780042a0102c6eb4c0e8004c0e8008dd6981c000981c0011bad3036001303237540062c60606ea80085401058c0c8004c0b8dd50018a99981618118008a99981798171baa003150021616302c37540042a00a2c605c002605c004605800260506ea80085888c94ccc098c05c0044c8c94ccc0acc0b80085401058dd7181600098141baa00315333026301d00113232533302b302e0021500416375c605800260506ea800c58c098dd500118119baa01b3026302337540022c600260446ea8c018c088dd5181280111812981318130008a5033001375860460184602c6660066eacc014c084dd5180298109baa00101d48810022323300100100322533302400114bd7009919299981198028010998138011980200200089980200200098140011813000911192999810180b98109baa0011480004dd6981298111baa001325333020301730213754002298103d87a8000132330010013756604c60466ea8008894ccc094004530103d87a80001323232325333026337220100042a66604c66e3c0200084c02ccc0a8dd4000a5eb80530103d87a8000133006006003375a604e0066eb8c094008c0a4008c09c004c8cc004004010894ccc0900045300103d87a80001323232325333025337220100042a66604a66e3c0200084c028cc0a4dd3000a5eb80530103d87a80001330060060033756604c0066eb8c090008c0a0008c098004dd2a40004604060420026eacc078c07c008dd6180e800980e980e980e980e8011bab301b001301b301b00237586032002603200260300046eb0c058004c048dd50059b8748000dc3a40084464660020020064466006002600400460226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea800452613656375c002ae6955ceaab9e5573eae815d0aba21",hash:"12114eef00bfb34d7a7d42893b01f6395508fa5a275e2e2c96013446"},{title:"ownership_registry.ownership_registry.else",parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"590bb40101003232323232323223225333004323232323253323300a3001300b375400426464646464646464a66602460060022a66602a60286ea802c540085854ccc048c0240044c8c8c8c94ccc064c0700084cc02400c894ccc06c008540204c8c008c07c00cdd7180e8010b1bad301a001301a0023758603000260286ea802c54ccc048c01000454ccc054c050dd50058a8010b0b18091baa00a1323232323232323232323232323232533302200114a02a666044604a00226464a666042602660446ea80044c8c8c8c8c94ccc098c05c01054ccc098c05cc09cdd500289919191919191919191919191919191919191919299981e982000109980b00889980b00689980b003899299981f0008a501533303e3041001132533303c302d303d37540022646464a66607e6060002264646464a66608c609200426606c00244a6660900042a010264600460980066eb8c12800858dd6182380098238011bae3045001304137540062a66607e606c002264646464a66608c60920042a00c2c6eb4c11c004c11c008dd7182280098209baa0031533303f303100115333042304137540062a0042c2c607e6ea800854ccc0f4c0b8c0f8dd50008a5114a06082607c6ea800458c8c8cc004004090894ccc104004530103d87a8000132323253330413375e00c60840062604c6608a00297ae01330050050023042002304500230430013374a90011981f980b181e9baa30400014bd700a503301d02923375e602c607a6ea8c084c0f4dd50008070b1bae303e001303e002375c607800260780046eb4c0e8004c0e8008c0e0004c0e0008dd7181b000981b0011bad3034001303400230320013032002375c60600026060004605c002605c0046eb8c0b0004c0a0dd50028b09919192999814981000389919192999816180e98169baa00b132323232323232323232323232323232323232325333043304600213301c01113301c00d13301c007132323232533304700200115333047304a002132533304800400215333048304b0041323253330473039304837540022646466002004264a666094607860966ea80044c8cc00c0044c94ccc130c0f4c134dd50008991919192999829982b00109919299982919b8848000c8c8cc004004c8cc004004110894ccc16400452f5c02660b46ea0ccc0e8dd5981e182c1baa303c3058375460b60026eb8c0c4010dd7181e00219801001182e00091299982c0008a4000266e00dd6982d00099801001182d8009982b1ba900533056375200697ae015333052002100114a02940c10ccc8c004004894ccc15800452000133700900119801001182c80098151bab30373053375401866ebc018c0d4cc150c0acc148dd50049982a1ba7323232533305330443054375400226644646600200200644a6660b400220062660b660b80026600400460ba0026eb0c0b8008cc15cdd38149bac3058305537540022c64a6660ac002298103d87a80001303833057374e60b200297ae0375860700026660020026eb0c0dcc14cdd5005013111299982b0010a5eb8410180008101800009919299982a99b89003480004cc16530101800033059374e00897ae01323305a374e660b46e9c00cdd6182d8009982d182d982e000a5eb80ccc014014004cdc0001a400260b40066eb0c1600092f5c02c6eb8c150004c150008dd718290009bac3051304e37540022c66646002002444a6660a20042980103d87a800013232533305030410031303533054374e00497ae01333005005001337000069000982a8019bac305300237586062609a6ea8010080c13cc130dd50008b181518259baa00422533304a303b304b3754004264646464a6660a260a800426608200244a6660a60042a00e2660866eb0c154008894ccc1540084c00cc1600104c8c008c16400cdd7182b8010b1bac30520013052002375a60a000260986ea800858c130c124dd50008b181398241baa302c30483754004609400800460920040022940dd618238011bac3046304700133044374e66603005e00e012660886e9ccc08c0b094ccc104cdd7980e18219baa00100813301b301a3756604e60866ea80048cdc79bae301d00100b14a097ae016375c608800260880046eb8c108004c108008dd698200009820001181f000981f0011bae303c001303c002375a60740026074004607000260700046eb8c0d8004c0d8008c0d0004c0d0008dd7181900098171baa00b16375a606060620046eb0c0bc004c0acdd50110a999814980d18151baa008132323232323232323232323232323232323232325333040304300213301901113301900d133019007132533304100114a02a6660826088002264a66607e646600200205044a66608800229404c94ccc108cdc79bae304700200614a2266006006002608e00220022940cdd79ba6028374c646600200264660020026eacc098c108dd5181318211baa304500322533304400114bd6f7b630099191919299982299b9148900002153330453371e91010000210031005133049337606ea4008dd3000998030030019bab3046003375c60880046090004608c00244a666086002297adef6c60132330453376060840026e98c8cc004004dd598220011129998230008a5eb7bdb1804c8cc120cdd818228009ba83370290001bad304600133003003304a0023048001330030033047002304500114a066602a05800e0122c6eb8c104004c104008dd7181f800981f8011bad303d001303d002303b001303b002375c607200260720046eb4c0dc004c0dc008c0d4004c0d4008dd718198009819801181880098188011bae302f001302b37540102c4446601c0064a66605866ebcc01cc0b8dd5180918171baa001003133006300537566024605c6ea8c048c0b8dd5000919b8f375c601000200629408c8cc004004008894ccc0b400452f5c0264666444646600200200644a66606600220062646606a6e9ccc0d4dd48031981a98190009981a9819800a5eb80cc00c00cc0dc008c0d4004dd718160009bab302d001330030033031002302f00122323300100100322533302d00114a0264a66605660086eb0c0c0008528899801801800981800091815800912999813180b98139baa002132323232533302d303000213300700313232533302c301d00113232533303130340021323253330303021001132325333035303800213300f00115004163036001303237540062a666060604e0022646464646464a66607260780042a0102c6eb4c0e8004c0e8008dd6981c000981c0011bad3036001303237540062c60606ea80085401058c0c8004c0b8dd50018a99981618118008a99981798171baa003150021616302c37540042a00a2c605c002605c004605800260506ea80085888c94ccc098c05c0044c8c94ccc0acc0b80085401058dd7181600098141baa00315333026301d00113232533302b302e0021500416375c605800260506ea800c58c098dd500118119baa01b3026302337540022c600260446ea8c018c088dd5181280111812981318130008a5033001375860460184602c6660066eacc014c084dd5180298109baa00101d48810022323300100100322533302400114bd7009919299981198028010998138011980200200089980200200098140011813000911192999810180b98109baa0011480004dd6981298111baa001325333020301730213754002298103d87a8000132330010013756604c60466ea8008894ccc094004530103d87a80001323232325333026337220100042a66604c66e3c0200084c02ccc0a8dd4000a5eb80530103d87a8000133006006003375a604e0066eb8c094008c0a4008c09c004c8cc004004010894ccc0900045300103d87a80001323232325333025337220100042a66604a66e3c0200084c028cc0a4dd3000a5eb80530103d87a80001330060060033756604c0066eb8c090008c0a0008c098004dd2a40004604060420026eacc078c07c008dd6180e800980e980e980e980e8011bab301b001301b301b00237586032002603200260300046eb0c058004c048dd50059b8748000dc3a40084464660020020064466006002600400460226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea800452613656375c002ae6955ceaab9e5573eae815d0aba21",hash:"12114eef00bfb34d7a7d42893b01f6395508fa5a275e2e2c96013446"},{title:"ownership_registry_ref_token.ownership_registry_ref_token.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1MintPolarity"}},parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"59074d0101003232323232323223225333004323232323253323300a3001300b3754004264646464a66601c600a0022a66602260206ea801c540085854ccc038c00c00454ccc044c040dd50038a8010b0b18071baa0061323232323232323232323232323232533301b3012301c37540042a66603c0060022a66603c6042006264a6646603a6002603c6ea80084c8c8c8c8cc0040104c8c8c8c8c8c8c8c94ccc0b000800454ccc0b0c0bc0084c94ccc0b401000854ccc0b4c0c00104c8c94ccc0b0c040c0b4dd5000899192999817180918179baa0011323300f0031533302f302630303754002264646464a66606c60720042646600200444a6660720042646464646464a66607866ebc040c8c8c8c8c8c8c8c0c8cc11cc12001ccc11cc120018cc11cc120014cc11cc120010cc11cc12000ccc11cc120008cc11cc120004cc11cdd419b8001f48008c124c124004c120004c11c004c118004c114004c110004c10c004c0f8dd500f8a99981e0030a99981e00108008a5014a02940c07cc008dd59814181e9baa011301e30013756604e60786ea80448c008c094004c004004894ccc0f000452000133700900119801001181f800a99981b1816803099baf374e00898101800014a02660066eb0c0ec008894ccc0ec0084c00cc0f80104c8c008c0fc00cdd7181e801111919800800801911980180098010010b1bac30370013037002375a606a00260626ea800458c0ccc0c0dd50008b180b18179baa0033031302e37540022c6028605a6ea8008c0bc010008c0b80080045281bac302c00237586056605800264660546e9ccccc004060c0ac0140912201003302a374e666600203060560066eb8c0ac010c8c8c8c8c8cdc5000a441012900337149110a5265676973747279202800330010063300300648008c0040048894ccc0acc0800044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66605266e2000920141001133300300333706004900a19b82001480512f5c04444660320084a66605466ebcc050c0b0dd50008020980f99980c1bab3017302c37540020060042940dd69814981500098148009814181418141814000981398119baa00422533302230193023375400426464646464646464646464646464646464646464a666072607800426602e02226602e01a26602e00e2a02a2c6eb8c0e8004c0e8008dd7181c000981c0011bad3036001303600230340013034002375c606400260640046eb4c0c0004c0c0008c0b8004c0b8008dd718160009816001181500098150011bae3028001302437540042c44a666042603060446ea80084c8c8c8c94ccc0a0c0ac0084cc01c00c4c8c94ccc09cc0780044c8c94ccc0b0c0bc0084c8c94ccc0acc0880044c8c94ccc0c0c0cc0084cc03c0045401058c0c4004c0b4dd50018a99981598100008991919191919299981a181b8010a8040b1bad30350013035002375a606600260660046eb4c0c4004c0b4dd50018b18159baa0021500416302d001302937540062a66604e60380022a66605460526ea800c540085858c09cdd50010a8028b18148009814801181380098119baa0021622325333021301800113232533302630290021500416375c604e00260466ea800c54ccc084c0580044c8c94ccc098c0a40085401058dd7181380098119baa00316302137540046044603e6ea8008dc3a40082c6008603a6ea8c020c074dd518100018008008a99980d1807980d9baa00113233001001300600c22533301f00114a2264a66603a64a66603c66e3cdd7180400080a099b88375a600e00290000a51375860440042660060060022940c088004528180f0029bac301d301e0042301d301e301e0012301c0012323300100100222533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004cc060034cc060dd3998021bac30190082300a33300337566004602e6ea8c008c05cdd5000809a45004bd701180c980d00091119299980b1805980b9baa0011480004dd6980d980c1baa001325333016300b301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220100042a66603866e3c0200084c02ccc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc004004010894ccc0680045300103d87a8000132323232533301b337220100042a66603666e3c0200084c028cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004dd2a400044646600200200644a66602e002297ae0132325333016300500213301a00233004004001133004004001301b002301900137566028602a602a0046eb0c04c004c04cc04c004c038dd50039b8748008dd7180798061baa002370e90000b1806980700118060009806001180500098031baa00114984d958dd7000ab9a5573aaae7955cfaba05742ae89",hash:"fff25ccc074dc16f05defe497e8e250b15cd491c5565a63c260eb2b4"},{title:"ownership_registry_ref_token.ownership_registry_ref_token.else",parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"59074d0101003232323232323223225333004323232323253323300a3001300b3754004264646464a66601c600a0022a66602260206ea801c540085854ccc038c00c00454ccc044c040dd50038a8010b0b18071baa0061323232323232323232323232323232533301b3012301c37540042a66603c0060022a66603c6042006264a6646603a6002603c6ea80084c8c8c8c8cc0040104c8c8c8c8c8c8c8c94ccc0b000800454ccc0b0c0bc0084c94ccc0b401000854ccc0b4c0c00104c8c94ccc0b0c040c0b4dd5000899192999817180918179baa0011323300f0031533302f302630303754002264646464a66606c60720042646600200444a6660720042646464646464a66607866ebc040c8c8c8c8c8c8c8c0c8cc11cc12001ccc11cc120018cc11cc120014cc11cc120010cc11cc12000ccc11cc120008cc11cc120004cc11cdd419b8001f48008c124c124004c120004c11c004c118004c114004c110004c10c004c0f8dd500f8a99981e0030a99981e00108008a5014a02940c07cc008dd59814181e9baa011301e30013756604e60786ea80448c008c094004c004004894ccc0f000452000133700900119801001181f800a99981b1816803099baf374e00898101800014a02660066eb0c0ec008894ccc0ec0084c00cc0f80104c8c008c0fc00cdd7181e801111919800800801911980180098010010b1bac30370013037002375a606a00260626ea800458c0ccc0c0dd50008b180b18179baa0033031302e37540022c6028605a6ea8008c0bc010008c0b80080045281bac302c00237586056605800264660546e9ccccc004060c0ac0140912201003302a374e666600203060560066eb8c0ac010c8c8c8c8c8cdc5000a441012900337149110a5265676973747279202800330010063300300648008c0040048894ccc0acc0800044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66605266e2000920141001133300300333706004900a19b82001480512f5c04444660320084a66605466ebcc050c0b0dd50008020980f99980c1bab3017302c37540020060042940dd69814981500098148009814181418141814000981398119baa00422533302230193023375400426464646464646464646464646464646464646464a666072607800426602e02226602e01a26602e00e2a02a2c6eb8c0e8004c0e8008dd7181c000981c0011bad3036001303600230340013034002375c606400260640046eb4c0c0004c0c0008c0b8004c0b8008dd718160009816001181500098150011bae3028001302437540042c44a666042603060446ea80084c8c8c8c94ccc0a0c0ac0084cc01c00c4c8c94ccc09cc0780044c8c94ccc0b0c0bc0084c8c94ccc0acc0880044c8c94ccc0c0c0cc0084cc03c0045401058c0c4004c0b4dd50018a99981598100008991919191919299981a181b8010a8040b1bad30350013035002375a606600260660046eb4c0c4004c0b4dd50018b18159baa0021500416302d001302937540062a66604e60380022a66605460526ea800c540085858c09cdd50010a8028b18148009814801181380098119baa0021622325333021301800113232533302630290021500416375c604e00260466ea800c54ccc084c0580044c8c94ccc098c0a40085401058dd7181380098119baa00316302137540046044603e6ea8008dc3a40082c6008603a6ea8c020c074dd518100018008008a99980d1807980d9baa00113233001001300600c22533301f00114a2264a66603a64a66603c66e3cdd7180400080a099b88375a600e00290000a51375860440042660060060022940c088004528180f0029bac301d301e0042301d301e301e0012301c0012323300100100222533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004cc060034cc060dd3998021bac30190082300a33300337566004602e6ea8c008c05cdd5000809a45004bd701180c980d00091119299980b1805980b9baa0011480004dd6980d980c1baa001325333016300b301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220100042a66603866e3c0200084c02ccc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc004004010894ccc0680045300103d87a8000132323232533301b337220100042a66603666e3c0200084c028cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004dd2a400044646600200200644a66602e002297ae0132325333016300500213301a00233004004001133004004001301b002301900137566028602a602a0046eb0c04c004c04cc04c004c038dd50039b8748008dd7180798061baa002370e90000b1806980700118060009806001180500098031baa00114984d958dd7000ab9a5573aaae7955cfaba05742ae89",hash:"fff25ccc074dc16f05defe497e8e250b15cd491c5565a63c260eb2b4"}],definitions:{ByteArray:{dataType:"bytes"},Int:{dataType:"integer"},List$ByteArray:{dataType:"list",items:{$ref:"#/definitions/ByteArray"}},List$List$ByteArray:{dataType:"list",items:{$ref:"#/definitions/List$ByteArray"}},Option$StakeCredential:{title:"Option",anyOf:[{title:"Some",description:"An optional value.",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/StakeCredential"}]},{title:"None",description:"Nothing.",dataType:"constructor",index:1,fields:[]}]},PaymentCredential:{title:"PaymentCredential",description:`A general structure for representing an on-chain \`Credential\`.
1
+ "use strict";var vc=Object.create;var g0=Object.defineProperty;var Hc=Object.getOwnPropertyDescriptor;var Vc=Object.getOwnPropertyNames;var Dc=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var Uc=(n,i,c)=>i in n?g0(n,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[i]=c;var Nc=(n,i)=>{for(var c in i)g0(n,c,{get:i[c],enumerable:!0})},rc=(n,i,c,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of Vc(i))!Bc.call(n,a)&&a!==c&&g0(n,a,{get:()=>i[a],enumerable:!(e=Hc(i,a))||e.enumerable});return n};var Mc=(n,i,c)=>(c=n!=null?vc(Dc(n)):{},rc(i||!n||!n.__esModule?g0(c,"default",{value:n,enumerable:!0}):c,n)),Fc=n=>rc(g0({},"__esModule",{value:!0}),n);var r=(n,i,c)=>Uc(n,typeof i!="symbol"?i+"":i,c);var fe={};Nc(fe,{MeshContentOwnershipContract:()=>B0,MeshEscrowContract:()=>U0,MeshGiftCardContract:()=>K0,MeshHelloWorldContract:()=>W0,MeshMarketplaceContract:()=>C0,MeshPaymentSplitterContract:()=>X0,MeshPlutusNFTContract:()=>Q0,MeshSwapContract:()=>Z0,MeshVestingContract:()=>ec,ProgrammableTokenContract:()=>ac,activeEscrowDatum:()=>bc,initiateEscrowDatum:()=>N0,marketplaceDatum:()=>J0,recipientDepositRedeemer:()=>lc,resolveBlacklistAddress:()=>oe,resolveBlacklistScripts:()=>w0,resolveSmartWalletAddress:()=>ne,resolveStakeCredential:()=>h0});module.exports=Fc(fe);var m=require("@meshsdk/core"),z=require("@meshsdk/core-cst");var D0=require("@meshsdk/core");var O=class{constructor({mesh:i,fetcher:c,wallet:e,networkId:a=0,stakeCredential:t="c08f0294ead5ab7ae0ce5471dd487007919297ba95230af22f25e575",version:d=2}){r(this,"mesh");r(this,"fetcher");r(this,"wallet");r(this,"stakeCredential");r(this,"networkId",0);r(this,"version",2);r(this,"languageVersion","V2");r(this,"getScriptAddress",i=>{let{address:c}=(0,D0.serializePlutusScript)({code:i,version:this.languageVersion},this.stakeCredential,this.networkId);return c});r(this,"signSubmitReset",async()=>{let i=this.mesh.completeSigning(),c=await this.mesh.submitTx(i);return this.mesh.reset(),c});r(this,"queryUtxos",async i=>this.fetcher?await this.fetcher.fetchAddressUTxOs(i):[]);r(this,"getWalletDappAddress",async()=>{if(this.wallet){let i=await this.wallet.getUsedAddresses();if(i.length>0)return i[0];let c=await this.wallet.getUnusedAddresses();if(c.length>0)return c[0]}return""});r(this,"getWalletCollateral",async()=>{if(this.wallet)return(await this.wallet.getCollateral())[0]});r(this,"getWalletUtxosWithMinLovelace",async(i,c=[])=>{let e=c;return this.wallet&&(!c||c.length===0)&&(e=await this.wallet.getUtxos()),e.filter(a=>{let t=a.output.amount.find(d=>d.unit==="lovelace")?.quantity;return Number(t)>i})});r(this,"getWalletUtxosWithToken",async(i,c=[])=>{let e=c;return this.wallet&&c.length===0&&(e=await this.wallet.getUtxos()),e.filter(a=>{let t=a.output.amount.find(d=>d.unit===i)?.quantity;return Number(t)>=1})});r(this,"getAddressUtxosWithMinLovelace",async(i,c,e=[])=>{let a=e;return this.fetcher&&(!e||e.length===0)&&(a=await this.fetcher.fetchAddressUTxOs(i)),a.filter(t=>{let d=t.output.amount.find(s=>s.unit==="lovelace")?.quantity;return Number(d)>c})});r(this,"getAddressUtxosWithToken",async(i,c,e=[])=>{let a=e;return this.fetcher&&e.length===0&&(a=await this.fetcher.fetchAddressUTxOs(i)),a.filter(t=>{let d=t.output.amount.find(s=>s.unit===c)?.quantity;return Number(d)>=1})});r(this,"getWalletInfoForTx",async()=>{let i=await this.wallet?.getUtxos(),c=await this.getWalletCollateral(),e=await this.getWalletDappAddress();if(!i||i?.length===0)throw new Error("No utxos found");if(!c)throw new Error("No collateral found");if(!e)throw new Error("No wallet address found");return{utxos:i,collateral:c,walletAddress:e}});r(this,"_getUtxoByTxHash",async(i,c)=>{if(this.fetcher){let e=await this.fetcher?.fetchUTxOs(i),a=e[0];if(c){let t=(0,D0.serializePlutusScript)({code:c,version:this.languageVersion},this.stakeCredential,this.networkId).address;a=e.filter(d=>d.output.address===t)[0]||e[0]}return a}});this.mesh=i,c&&(this.fetcher=c),e&&(this.wallet=e),this.networkId=a,this.networkId===1?this.mesh.setNetwork("mainnet"):this.mesh.setNetwork("preprod"),this.version=d,this.version===1?this.languageVersion="V2":this.languageVersion="V3",t&&(this.stakeCredential=t)}};var q=require("@meshsdk/core"),i0=require("@meshsdk/core-cst");var A0={preamble:{title:"meshjs/content-ownership",description:"Aiken contracts for project 'meshjs/content-ownership'",version:"0.0.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.3+3d77b5c"},license:"Apache-2.0"},validators:[{title:"content_registry.content_registry.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/content_ownership~1types~1ContentRegistryDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1ContentRegistryRedeemer"}},parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"590d4c0101003232323232323223225333004323232323253323300a3001300b375400426464646464646464a6660246006002264646464a666032603800426601200244a6660360042a0102646004603e0066eb8c07400858dd6180d000980d0011bae3018001301437540162a6660246012002264646464a66603260380042a00c2c6eb4c068004c068008dd7180c000980a1baa00b15333012300400115333015301437540162a0042c2c60246ea80284c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc0840045280a9998109812000899192999810180918109baa001132533302130123022375400226464646464646464646464646464646464646464a6660706076004264646600202626600201e26600201226464646464646464646464a6660846066016264646464646464a6660980040022a666098609e004264a66609a0080042a66609a60a00082646464a66609a607c609c6ea80044c8c94ccc13cc100c140dd500089919191919299982b982d001899299982c182d801899299982b1824182b9baa001132325333058304a305937540022646603a00626603c002264a6660b4609860b66ea80044c8c94ccc170c138c174dd50008991981080189981100089919191919299983119b8f01501315333062005153330620021533306200115333062004100314a029405280a5014a060a6604e60446eacc118c18cdd50069829181318109bab30453062375401a66ebc00cc118cc18cdd418139bad30223061375400e660c66e9ccc88c8cc00400400c894ccc198004400c4cc19cc1a0004cc008008c1a4004dd6182218309baa00733063374e03697ae04bd7019baf0043045330623750604c6eb4c084c180dd5004198311ba73301d3758608660c06ea8020cc188dd480da5eb812f5c066e1cdd69810182f9baa007375a604060be6ea8014c184c178dd50008b181e982e9baa007305f305c37540022c607660b66ea8018c174c168dd50008b181c982c9baa303c3059375401a60b660b06ea800458c0dcc15cdd5181d182b9baa00c163059002163058002375860ae60b00046eb0c158004cc150dd3999980901d8140150019982a1ba7333301203b0220240014bd701bae30543055375860a860a26ea800458cc00cc03cdd5981998281baa303330503754008466e3cdd718090008119bae30523053375860a4609e6ea800458cc004c034dd5981898271baa3031304e3754006466e3cdd718080008139119198008008019129998290008a60103d87a800013232533305130050021303833055374e00497ae01330040040013056002375860a8002609e008004609c0040022940dd618260011bac304b304c00133049374e66600a06803a03e660926e9cccc0140d005c0652f5c06eb0c124c128008dd7182400098221baa03b1325333043303a00c13232323232533304b304e0021325333049303a304a375400226464646464a6660a260a8006264a6660a460aa00626464a6660a2608660a46ea80044c8cc05c0044c94ccc14cc110c150dd500089919299982a8030a99982a80108008a5014a0608c6034602a6eacc0e4c158dd500319b8848000c8c8c8c94ccc168c1740084c8cc004004c8cc004004120894ccc17400452f5c02660bc6ea0ccc100dd5981f982e1baa303f305c375460be00200c0086600400460c000244a6660b800229000099b80375a60bc0026600400460be0022c6eb8c16c004c16c008dd7182c8009bac3058305537540022c66646002002444a6660b00042980103d87a800013232533305730480031303e3305b374e00497ae01333005005001337000069000982e0019bac305a0023758606e60a86ea8004034c158c14cdd50008b181918291baa30353052375401266646444a6660a6608a60a86ea80084c8cc06000454ccc150c118c154dd50010991980c800899baf001303c33059301830573754004660b26e9cc8c94ccc15cc120c160dd500089980b1bac301a0023305b37520266eb0c170c164dd50008b19299982d0008a60103d87a80001303e3305b374e60ba00297ae0375860760026600a6eb0c0e8c15cdd500100825eb80c164c158dd50010b182c182a9baa002163001001222533305500214bd70810180008101800009919299982a19b89003480004cc16130101800033058374e00897ae013233059374e660b26ea400cdd6182d0009982c982d182d800a5eb80ccc014014004cdc0001a400260b20066eb8c15c008c0c4c144dd5181a18289baa0023031305137540022c60a60042c60a40046eb0c144c148008dd61828000998271ba7323302f03a2533304c3375e601e609c6ea8c0c4c138dd5000812098219998191bab3031304e37546062609c6ea80040980085281bae302f0013304e374e666601806a0440486eb8c0bc0052f5c06eb0c138c12cdd50008b1929998260008a60103d87a8000130303304d304e0014bd70180498031bab302d304a3754605a60946ea800458c130004cc0a80cc8cdd7980518249baa302c304937540020326eb4c128c12c008dd7182480098229baa03c132533304700114a02a66608e6094002264a66608a646600200205c44a66609400229404c94ccc120cdc79bae304d00201414a2266006006002609a00220022940cdd79ba602d374c646600200260066eacc0a8c11cdd5181518239baa304a00222533304900114bd6f7b6300991982599bb03048001374c64660020026eacc128008894ccc13000452f5bded8c02646609c66ec0c12c004dd419b8148000dd69826000998018019828001182700099801801982680118258008a5033300303201b01d2323300100100222533304800114bd6f7b630099191919299982499b9148900002153330493371e9101000021003100513304d337606ea4008dd3000998030030019bab304a003375c60900046098004609400244646600200200644a666090002200626609260940026600400460960024446604e0064a66608866ebcc01cc118dd5181498231baa00100313233001001300637566054608e6ea8c0a8c11cdd50011129998248008a5013253330473371e6eb8c028dd618260010028a51133003003001304c00114a04646600200200444a66608a002297ae0132333222323300100100322533304b00110031323304d374e6609a6ea4018cc134c128004cc134c12c0052f5c066006006609e004609a0026eb8c110004dd5982280099801801982480118238009111198130021299982199baf300630453754002008260746660526eacc0a0c114dd50008018010a502304300122533303e302f303f3754004264646464a66608a609000426606a00244a66608e0042a00e264600460960066eb8c12400858dd6182300098230011bad3044001304037540042c44a66607a605c607c6ea80084c8c8c8c94ccc110c11c0084cc0d0004894ccc1180085401c4cc0d8dd61824001112999824001098019825802099180118260019bae304a002163758608a002608a0046eb4c10c004c0fcdd50010b180080091299981f0008a4000260066600400460820026e0120023038375406044a666070605260726ea80084c8c8c8c94ccc0fcc1080084cc01c00c4c8c94ccc0f8c0bc0044c8c94ccc10cc1180084c8c94ccc108c0cc0044c8c94ccc11cc1280084cc03c0045401058c120004c110dd50018a999821181c8008991919191919299982598270010a8040b1bad304c001304c002375a609400260940046eb4c120004c110dd50018b18211baa00215004163044001304037540062a66607c606a0022a66608260806ea800c540085858c0f8dd50010a8028b18200009820001181f000981d1baa0021622325333038302900113232533303d30400021500416375c607c00260746ea800c54ccc0e0c0bc0044c8c94ccc0f4c1000085401058dd7181f000981d1baa00316303837540042c6eb8c0e4004c0e4008dd7181b800981b8011bad3035001303500230330013033002375c606200260620046eb4c0bc004c0bc008c0b4004c0b4008dd718158009815801181480098148011bae3027001302337540022c604a60446ea800458c004c084dd5180218109baa3024002230243025302500114a0660020144602a6660086eacc00cc080dd5180198101baa00101c4890022323300100100322533302300114bd700991929998111802801099813001198020020008998020020009813801181280091810981100091119299980f180a980f9baa0011480004dd6981198101baa00132533301e3015301f3754002298103d87a8000132330010013756604860426ea8008894ccc08c004530103d87a80001323232325333024337220100042a66604866e3c0200084c02ccc0a0dd4000a5eb80530103d87a8000133006006003375a604a0066eb8c08c008c09c008c094004c8cc004004010894ccc0880045300103d87a80001323232325333023337220100042a66604666e3c0200084c028cc09cdd3000a5eb80530103d87a8000133006006003375660480066eb8c088008c098008c090004dd2a40006eb0c074c078c078c078c078008dd5980e000980e180e0011bac301a001301a0023758603000260300046eb0c058004c048dd50059b8748000dc3a40084464660020020064466006002600400460226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea800452613656375c002ae6955ceaab9e5573eae815d0aba201",hash:"f940075f7ed85d5f5c5045aef04e4c946e831be31b28e25bd90aab6c"},{title:"content_registry.content_registry.else",parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"590d4c0101003232323232323223225333004323232323253323300a3001300b375400426464646464646464a6660246006002264646464a666032603800426601200244a6660360042a0102646004603e0066eb8c07400858dd6180d000980d0011bae3018001301437540162a6660246012002264646464a66603260380042a00c2c6eb4c068004c068008dd7180c000980a1baa00b15333012300400115333015301437540162a0042c2c60246ea80284c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc0840045280a9998109812000899192999810180918109baa001132533302130123022375400226464646464646464646464646464646464646464a6660706076004264646600202626600201e26600201226464646464646464646464a6660846066016264646464646464a6660980040022a666098609e004264a66609a0080042a66609a60a00082646464a66609a607c609c6ea80044c8c94ccc13cc100c140dd500089919191919299982b982d001899299982c182d801899299982b1824182b9baa001132325333058304a305937540022646603a00626603c002264a6660b4609860b66ea80044c8c94ccc170c138c174dd50008991981080189981100089919191919299983119b8f01501315333062005153330620021533306200115333062004100314a029405280a5014a060a6604e60446eacc118c18cdd50069829181318109bab30453062375401a66ebc00cc118cc18cdd418139bad30223061375400e660c66e9ccc88c8cc00400400c894ccc198004400c4cc19cc1a0004cc008008c1a4004dd6182218309baa00733063374e03697ae04bd7019baf0043045330623750604c6eb4c084c180dd5004198311ba73301d3758608660c06ea8020cc188dd480da5eb812f5c066e1cdd69810182f9baa007375a604060be6ea8014c184c178dd50008b181e982e9baa007305f305c37540022c607660b66ea8018c174c168dd50008b181c982c9baa303c3059375401a60b660b06ea800458c0dcc15cdd5181d182b9baa00c163059002163058002375860ae60b00046eb0c158004cc150dd3999980901d8140150019982a1ba7333301203b0220240014bd701bae30543055375860a860a26ea800458cc00cc03cdd5981998281baa303330503754008466e3cdd718090008119bae30523053375860a4609e6ea800458cc004c034dd5981898271baa3031304e3754006466e3cdd718080008139119198008008019129998290008a60103d87a800013232533305130050021303833055374e00497ae01330040040013056002375860a8002609e008004609c0040022940dd618260011bac304b304c00133049374e66600a06803a03e660926e9cccc0140d005c0652f5c06eb0c124c128008dd7182400098221baa03b1325333043303a00c13232323232533304b304e0021325333049303a304a375400226464646464a6660a260a8006264a6660a460aa00626464a6660a2608660a46ea80044c8cc05c0044c94ccc14cc110c150dd500089919299982a8030a99982a80108008a5014a0608c6034602a6eacc0e4c158dd500319b8848000c8c8c8c94ccc168c1740084c8cc004004c8cc004004120894ccc17400452f5c02660bc6ea0ccc100dd5981f982e1baa303f305c375460be00200c0086600400460c000244a6660b800229000099b80375a60bc0026600400460be0022c6eb8c16c004c16c008dd7182c8009bac3058305537540022c66646002002444a6660b00042980103d87a800013232533305730480031303e3305b374e00497ae01333005005001337000069000982e0019bac305a0023758606e60a86ea8004034c158c14cdd50008b181918291baa30353052375401266646444a6660a6608a60a86ea80084c8cc06000454ccc150c118c154dd50010991980c800899baf001303c33059301830573754004660b26e9cc8c94ccc15cc120c160dd500089980b1bac301a0023305b37520266eb0c170c164dd50008b19299982d0008a60103d87a80001303e3305b374e60ba00297ae0375860760026600a6eb0c0e8c15cdd500100825eb80c164c158dd50010b182c182a9baa002163001001222533305500214bd70810180008101800009919299982a19b89003480004cc16130101800033058374e00897ae013233059374e660b26ea400cdd6182d0009982c982d182d800a5eb80ccc014014004cdc0001a400260b20066eb8c15c008c0c4c144dd5181a18289baa0023031305137540022c60a60042c60a40046eb0c144c148008dd61828000998271ba7323302f03a2533304c3375e601e609c6ea8c0c4c138dd5000812098219998191bab3031304e37546062609c6ea80040980085281bae302f0013304e374e666601806a0440486eb8c0bc0052f5c06eb0c138c12cdd50008b1929998260008a60103d87a8000130303304d304e0014bd70180498031bab302d304a3754605a60946ea800458c130004cc0a80cc8cdd7980518249baa302c304937540020326eb4c128c12c008dd7182480098229baa03c132533304700114a02a66608e6094002264a66608a646600200205c44a66609400229404c94ccc120cdc79bae304d00201414a2266006006002609a00220022940cdd79ba602d374c646600200260066eacc0a8c11cdd5181518239baa304a00222533304900114bd6f7b6300991982599bb03048001374c64660020026eacc128008894ccc13000452f5bded8c02646609c66ec0c12c004dd419b8148000dd69826000998018019828001182700099801801982680118258008a5033300303201b01d2323300100100222533304800114bd6f7b630099191919299982499b9148900002153330493371e9101000021003100513304d337606ea4008dd3000998030030019bab304a003375c60900046098004609400244646600200200644a666090002200626609260940026600400460960024446604e0064a66608866ebcc01cc118dd5181498231baa00100313233001001300637566054608e6ea8c0a8c11cdd50011129998248008a5013253330473371e6eb8c028dd618260010028a51133003003001304c00114a04646600200200444a66608a002297ae0132333222323300100100322533304b00110031323304d374e6609a6ea4018cc134c128004cc134c12c0052f5c066006006609e004609a0026eb8c110004dd5982280099801801982480118238009111198130021299982199baf300630453754002008260746660526eacc0a0c114dd50008018010a502304300122533303e302f303f3754004264646464a66608a609000426606a00244a66608e0042a00e264600460960066eb8c12400858dd6182300098230011bad3044001304037540042c44a66607a605c607c6ea80084c8c8c8c94ccc110c11c0084cc0d0004894ccc1180085401c4cc0d8dd61824001112999824001098019825802099180118260019bae304a002163758608a002608a0046eb4c10c004c0fcdd50010b180080091299981f0008a4000260066600400460820026e0120023038375406044a666070605260726ea80084c8c8c8c94ccc0fcc1080084cc01c00c4c8c94ccc0f8c0bc0044c8c94ccc10cc1180084c8c94ccc108c0cc0044c8c94ccc11cc1280084cc03c0045401058c120004c110dd50018a999821181c8008991919191919299982598270010a8040b1bad304c001304c002375a609400260940046eb4c120004c110dd50018b18211baa00215004163044001304037540062a66607c606a0022a66608260806ea800c540085858c0f8dd50010a8028b18200009820001181f000981d1baa0021622325333038302900113232533303d30400021500416375c607c00260746ea800c54ccc0e0c0bc0044c8c94ccc0f4c1000085401058dd7181f000981d1baa00316303837540042c6eb8c0e4004c0e4008dd7181b800981b8011bad3035001303500230330013033002375c606200260620046eb4c0bc004c0bc008c0b4004c0b4008dd718158009815801181480098148011bae3027001302337540022c604a60446ea800458c004c084dd5180218109baa3024002230243025302500114a0660020144602a6660086eacc00cc080dd5180198101baa00101c4890022323300100100322533302300114bd700991929998111802801099813001198020020008998020020009813801181280091810981100091119299980f180a980f9baa0011480004dd6981198101baa00132533301e3015301f3754002298103d87a8000132330010013756604860426ea8008894ccc08c004530103d87a80001323232325333024337220100042a66604866e3c0200084c02ccc0a0dd4000a5eb80530103d87a8000133006006003375a604a0066eb8c08c008c09c008c094004c8cc004004010894ccc0880045300103d87a80001323232325333023337220100042a66604666e3c0200084c028cc09cdd3000a5eb80530103d87a8000133006006003375660480066eb8c088008c098008c090004dd2a40006eb0c074c078c078c078c078008dd5980e000980e180e0011bac301a001301a0023758603000260300046eb0c058004c048dd50059b8748000dc3a40084464660020020064466006002600400460226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea800452613656375c002ae6955ceaab9e5573eae815d0aba201",hash:"f940075f7ed85d5f5c5045aef04e4c946e831be31b28e25bd90aab6c"},{title:"content_registry_ref_token.content_registry_ref_token.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1MintPolarity"}},parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"5907090101003232323232323223225333004323232323253323300a3001300b3754004264646464a66601c600a0022a66602260206ea801c540085854ccc038c00c00454ccc044c040dd50038a8010b0b18071baa0061323232323232323232323232323232533301b3012301c37540042a66603c0060022a66603c6042006264a6646603a6002603c6ea80084c8c8c8c8cc0040104c8c8c8c8c8c8c8c94ccc0b000800454ccc0b0c0bc0084c94ccc0b401000854ccc0b4c0c00104c8c94ccc0b0c040c0b4dd5000899192999817180918179baa0011323300f0031533302f302630303754002264646464a66606c6072004264660020020044464a6660720042646464646464a66607866ebc040c8c8c8c8c0bccc110c114010cc110c11400ccc110c114008cc110c114004cc110dd419b8001c48008c118c118004c114004c110004c10c004c0f8dd500f8a99981e0030a99981e00108008a5014a02940c07cc008dd59814181e9baa011301e30013756604e60786ea80448c008c094004c004004894ccc0f000452000133700900119801001181f800a99981b1816803099baf374e00898101800014a02646004607a0066eb8c0ec008c00800858dd6181b800981b8011bad3035001303137540022c606660606ea800458c058c0bcdd5001981898171baa001163014302d3754004605e008004605c0040022940dd618160011bac302b302c001323302a374e6666002030605600a0489101003302a374e666600203060560066eb8c0ac010c8c8c8c8c8cdc5000a441012900337149110a5265676973747279202800330010063300300648008c0040048894ccc0acc0800044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66605266e2000920141001133300300333706004900a19b82001480512f5c04444660320084a66605466ebcc050c0b0dd50008020980f99980c1bab3017302c37540020060042940dd69814981500098148009814000981398119baa00422533302230193023375400426464646464646464646464646464646464646464a666072607800426602e02226602e01a26602e00e2a02a2c6eb8c0e8004c0e8008dd7181c000981c0011bad3036001303600230340013034002375c606400260640046eb4c0c0004c0c0008c0b8004c0b8008dd718160009816001181500098150011bae3028001302437540042c44a666042603060446ea80084c8c8c8c94ccc0a0c0ac0084cc01c00c4c8c94ccc09cc0780044c8c94ccc0b0c0bc0084c8c94ccc0acc0880044c8c94ccc0c0c0cc0084cc03c0045401058c0c4004c0b4dd50018a99981598100008991919191919299981a181b8010a8040b1bad30350013035002375a606600260660046eb4c0c4004c0b4dd50018b18159baa0021500416302d001302937540062a66604e60380022a66605460526ea800c540085858c09cdd50010a8028b18148009814801181380098119baa0021622325333021301800113232533302630290021500416375c604e00260466ea800c54ccc084c0580044c8c94ccc098c0a40085401058dd7181380098119baa00316302137540046044603e6ea8008dc3a40082c6008603a6ea8c020c074dd518100018008008a99980d1807980d9baa00113233001001300600c22533301f00114a2264a66603a64a66603c66e3cdd7180400080a099b88375a600e00290000a51375860440042660060060022940c088004528180f0029bac301d301e0042301d301e301e0012301c0012323300100100222533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004cc060034cc060dd3998021bac30190082300a33300337566004602e6ea8c008c05cdd5000809a45004bd701180c980d00091119299980b1805980b9baa0011480004dd6980d980c1baa001325333016300b301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220100042a66603866e3c0200084c02ccc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc004004010894ccc0680045300103d87a8000132323232533301b337220100042a66603666e3c0200084c028cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004dd2a400044646600200200644a66602e002297ae0132325333016300500213301a00233004004001133004004001301b002301900137566028602a602a0046eb0c04c004c04cc04c004c038dd50039b8748008dd7180798061baa002370e90000b1806980700118060009806001180500098031baa00114984d958dd7000ab9a5573aaae7955cfaba05742ae89",hash:"5b692922e6ea97bd96497fb96c7a6e03f8a8d3544e85d4815e74b6e3"},{title:"content_registry_ref_token.content_registry_ref_token.else",parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"5907090101003232323232323223225333004323232323253323300a3001300b3754004264646464a66601c600a0022a66602260206ea801c540085854ccc038c00c00454ccc044c040dd50038a8010b0b18071baa0061323232323232323232323232323232533301b3012301c37540042a66603c0060022a66603c6042006264a6646603a6002603c6ea80084c8c8c8c8cc0040104c8c8c8c8c8c8c8c94ccc0b000800454ccc0b0c0bc0084c94ccc0b401000854ccc0b4c0c00104c8c94ccc0b0c040c0b4dd5000899192999817180918179baa0011323300f0031533302f302630303754002264646464a66606c6072004264660020020044464a6660720042646464646464a66607866ebc040c8c8c8c8c0bccc110c114010cc110c11400ccc110c114008cc110c114004cc110dd419b8001c48008c118c118004c114004c110004c10c004c0f8dd500f8a99981e0030a99981e00108008a5014a02940c07cc008dd59814181e9baa011301e30013756604e60786ea80448c008c094004c004004894ccc0f000452000133700900119801001181f800a99981b1816803099baf374e00898101800014a02646004607a0066eb8c0ec008c00800858dd6181b800981b8011bad3035001303137540022c606660606ea800458c058c0bcdd5001981898171baa001163014302d3754004605e008004605c0040022940dd618160011bac302b302c001323302a374e6666002030605600a0489101003302a374e666600203060560066eb8c0ac010c8c8c8c8c8cdc5000a441012900337149110a5265676973747279202800330010063300300648008c0040048894ccc0acc0800044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66605266e2000920141001133300300333706004900a19b82001480512f5c04444660320084a66605466ebcc050c0b0dd50008020980f99980c1bab3017302c37540020060042940dd69814981500098148009814000981398119baa00422533302230193023375400426464646464646464646464646464646464646464a666072607800426602e02226602e01a26602e00e2a02a2c6eb8c0e8004c0e8008dd7181c000981c0011bad3036001303600230340013034002375c606400260640046eb4c0c0004c0c0008c0b8004c0b8008dd718160009816001181500098150011bae3028001302437540042c44a666042603060446ea80084c8c8c8c94ccc0a0c0ac0084cc01c00c4c8c94ccc09cc0780044c8c94ccc0b0c0bc0084c8c94ccc0acc0880044c8c94ccc0c0c0cc0084cc03c0045401058c0c4004c0b4dd50018a99981598100008991919191919299981a181b8010a8040b1bad30350013035002375a606600260660046eb4c0c4004c0b4dd50018b18159baa0021500416302d001302937540062a66604e60380022a66605460526ea800c540085858c09cdd50010a8028b18148009814801181380098119baa0021622325333021301800113232533302630290021500416375c604e00260466ea800c54ccc084c0580044c8c94ccc098c0a40085401058dd7181380098119baa00316302137540046044603e6ea8008dc3a40082c6008603a6ea8c020c074dd518100018008008a99980d1807980d9baa00113233001001300600c22533301f00114a2264a66603a64a66603c66e3cdd7180400080a099b88375a600e00290000a51375860440042660060060022940c088004528180f0029bac301d301e0042301d301e301e0012301c0012323300100100222533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004cc060034cc060dd3998021bac30190082300a33300337566004602e6ea8c008c05cdd5000809a45004bd701180c980d00091119299980b1805980b9baa0011480004dd6980d980c1baa001325333016300b301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220100042a66603866e3c0200084c02ccc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc004004010894ccc0680045300103d87a8000132323232533301b337220100042a66603666e3c0200084c028cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004dd2a400044646600200200644a66602e002297ae0132325333016300500213301a00233004004001133004004001301b002301900137566028602a602a0046eb0c04c004c04cc04c004c038dd50039b8748008dd7180798061baa002370e90000b1806980700118060009806001180500098031baa00114984d958dd7000ab9a5573aaae7955cfaba05742ae89",hash:"5b692922e6ea97bd96497fb96c7a6e03f8a8d3544e85d4815e74b6e3"},{title:"one_time_minting_policy.one_time_minting_policy.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1MintPolarity"}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}}],compiledCode:"59019e0101003232323232323222533300332323232325332330093001300a37540042646464a66601860080022a66601e601c6ea8018540085854ccc030cdc3a40040022a66601e601c6ea8018540085858c030dd50028992999805980198061baa0051533300b3003300c375464660020026eb0c044c038dd50041129998080008a60103d87a800013232533300f3375e01c600a60226ea80084cdd2a40006602600497ae01330040040013014002301200114a229404c8cc004004c8cc004004dd59809180998099809980998079baa00922533301100114bd70099199911191980080080191299980b80088018991980c9ba733019375200c66032602c00266032602e00297ae033003003301b0023019001375c60200026eacc044004cc00c00cc054008c04c004894ccc040004528899299980719299980799b8f375c600a00200c266e20dd6980a180a980a800a40002944dd618098010998018018008a50301300123010001375c601c60166ea8008dc3a40002c6018601a004601600260160046012002600a6ea8004526136565734aae7555cf2ab9f5740ae855d101",hash:"55ada3bfe32c4ff89d50cfdd86956e013a011fa28279112e424e596a"},{title:"one_time_minting_policy.one_time_minting_policy.else",parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}}],compiledCode:"59019e0101003232323232323222533300332323232325332330093001300a37540042646464a66601860080022a66601e601c6ea8018540085854ccc030cdc3a40040022a66601e601c6ea8018540085858c030dd50028992999805980198061baa0051533300b3003300c375464660020026eb0c044c038dd50041129998080008a60103d87a800013232533300f3375e01c600a60226ea80084cdd2a40006602600497ae01330040040013014002301200114a229404c8cc004004c8cc004004dd59809180998099809980998079baa00922533301100114bd70099199911191980080080191299980b80088018991980c9ba733019375200c66032602c00266032602e00297ae033003003301b0023019001375c60200026eacc044004cc00c00cc054008c04c004894ccc040004528899299980719299980799b8f375c600a00200c266e20dd6980a180a980a800a40002944dd618098010998018018008a50301300123010001375c601c60166ea8008dc3a40002c6018601a004601600260160046012002600a6ea8004526136565734aae7555cf2ab9f5740ae855d101",hash:"55ada3bfe32c4ff89d50cfdd86956e013a011fa28279112e424e596a"},{title:"oracle_validator.oracle_validator.spend",datum:{title:"datum_opt",schema:{$ref:"#/definitions/content_ownership~1types~1OracleDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1OracleRedeemer"}},compiledCode:"5906cd01010032323232323232253330023232323232533233008300130093754004264646464646464a66601e60060022a66602460226ea8028540085854ccc03cc02000454ccc048c044dd50050a8010b0a9998079802000899191919299980b180c8010a8030b1bae30170013017002375c602a00260226ea802854ccc03ccdc3a400c0022a66602460226ea8028540085858c03cdd5004899191919192999809180318099baa008132323232323232323232323232323232323232323232325333029301d00713333001019011300200f4800854ccc0a4c08801c4cccc004064034c00802d2002132533302a301f00813232323232325333033303600213253330313026303237540022646464a6660686050606a6ea800c4c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc12cc1380084cc0540444cc0540344cc05401c4c94ccc124c8cc004004cc138dd4815198271ba90294bd701129998270008a51132533304c3302303b375c60a20042660060060022940c144004400452819baf0173232323232323230223305330540073305330540063305330540053305330540043305330540033305330540023305330540013305330543055001330533752048660a66ea408d2f5c060a800260a600260a400260a200260a0002609e00260946ea80d858dd7182600098260011bae304a001304a002375a60900026090004608c002608c0046eb8c110004c110008dd698210009821001182000098200011bae303e001303e002303c001303c002375c6074002606c6ea800c58894ccc0d4c0a4c0d8dd5001099191919299981e181f80109980380189919299981d9817800899192999820182180109919299981f981980089919299982218238010998078008a8020b182280098209baa0031533303f303800113232323232325333048304b0021500816375a609200260920046eb4c11c004c11c008dd6982280098209baa00316303f37540042a0082c6082002607a6ea800c54ccc0ecc0d000454ccc0f8c0f4dd50018a8010b0b181d9baa0021500516303d001303d002303b001303737540042c4464a66606a605200226464a666074607a0042a0082c6eb8c0ec004c0dcdd50018a99981a981700089919299981d181e8010a8020b1bae303b001303737540062c606a6ea8008c0d8c0ccdd50008b181a981b181b18191baa001163034001323300100102122533303300114bd70099192999819299981919baf3037303437540040382605664a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a60103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a800013232323253330393372291100002153330393371e9101000021300c3303d375000297ae014c0103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004dd5981c181c981a9baa00322533303700114c103d87a80001323232325333038337220480042a66607066e3c0900084c02ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e400452809981b00119802002000899802002000981b801181a8009ba548000dd7181898190011bae3030001302c375404a2a666054660020320122666600403402c91100480045281119198008008019129998180008a50132533302e3371e6eb8c0cc008010528899801801800981980091111929998180008a50153330303033001132323253330303371e6eb8c0d400c01c54ccc0c0cdc7800803099b8700200514a02940dd7181a181a8011bad303330343034001375860640022940c8cc004004014894ccc0c400452f5c0264666444646600200200644a66606e0022006264660726e9ccc0e4dd48031981c981b0009981c981b800a5eb80cc00c00cc0ec008c0e4004dd718180009bab30310013300300330350023033001232337140029101012900337149110a5265676973747279202800330020013300400148008c0040048894ccc0a0c0840044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66604c66e2000920141001133300300333706004900a19b8200148050c08cdd500e9bae30263027002375c604a002604a0046eb4c08c004c08cc08c008dd7181080098108011bad301f001301f301f002375c603a002603a004603600260360046eb8c064004c054dd5000980b980a1baa008163758602c602e602e602e602e0046eacc054004c054c054008dd618098009809980998079baa00a370e90001b8748010c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba201",hash:"d9c639433a3de1adeb247053b7556dd637be9398b245fa0ab351fbbf"},{title:"oracle_validator.oracle_validator.else",compiledCode:"5906cd01010032323232323232253330023232323232533233008300130093754004264646464646464a66601e60060022a66602460226ea8028540085854ccc03cc02000454ccc048c044dd50050a8010b0a9998079802000899191919299980b180c8010a8030b1bae30170013017002375c602a00260226ea802854ccc03ccdc3a400c0022a66602460226ea8028540085858c03cdd5004899191919192999809180318099baa008132323232323232323232323232323232323232323232325333029301d00713333001019011300200f4800854ccc0a4c08801c4cccc004064034c00802d2002132533302a301f00813232323232325333033303600213253330313026303237540022646464a6660686050606a6ea800c4c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c8c94ccc12cc1380084cc0540444cc0540344cc05401c4c94ccc124c8cc004004cc138dd4815198271ba90294bd701129998270008a51132533304c3302303b375c60a20042660060060022940c144004400452819baf0173232323232323230223305330540073305330540063305330540053305330540043305330540033305330540023305330540013305330543055001330533752048660a66ea408d2f5c060a800260a600260a400260a200260a0002609e00260946ea80d858dd7182600098260011bae304a001304a002375a60900026090004608c002608c0046eb8c110004c110008dd698210009821001182000098200011bae303e001303e002303c001303c002375c6074002606c6ea800c58894ccc0d4c0a4c0d8dd5001099191919299981e181f80109980380189919299981d9817800899192999820182180109919299981f981980089919299982218238010998078008a8020b182280098209baa0031533303f303800113232323232325333048304b0021500816375a609200260920046eb4c11c004c11c008dd6982280098209baa00316303f37540042a0082c6082002607a6ea800c54ccc0ecc0d000454ccc0f8c0f4dd50018a8010b0b181d9baa0021500516303d001303d002303b001303737540042c4464a66606a605200226464a666074607a0042a0082c6eb8c0ec004c0dcdd50018a99981a981700089919299981d181e8010a8020b1bae303b001303737540062c606a6ea8008c0d8c0ccdd50008b181a981b181b18191baa001163034001323300100102122533303300114bd70099192999819299981919baf3037303437540040382605664a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a60103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a800013232323253330393372291100002153330393371e9101000021300c3303d375000297ae014c0103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004dd5981c181c981a9baa00322533303700114c103d87a80001323232325333038337220480042a66607066e3c0900084c02ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e400452809981b00119802002000899802002000981b801181a8009ba548000dd7181898190011bae3030001302c375404a2a666054660020320122666600403402c91100480045281119198008008019129998180008a50132533302e3371e6eb8c0cc008010528899801801800981980091111929998180008a50153330303033001132323253330303371e6eb8c0d400c01c54ccc0c0cdc7800803099b8700200514a02940dd7181a181a8011bad303330343034001375860640022940c8cc004004014894ccc0c400452f5c0264666444646600200200644a66606e0022006264660726e9ccc0e4dd48031981c981b0009981c981b800a5eb80cc00c00cc0ec008c0e4004dd718180009bab30310013300300330350023033001232337140029101012900337149110a5265676973747279202800330020013300400148008c0040048894ccc0a0c0840044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66604c66e2000920141001133300300333706004900a19b8200148050c08cdd500e9bae30263027002375c604a002604a0046eb4c08c004c08cc08c008dd7181080098108011bad301f001301f301f002375c603a002603a004603600260360046eb8c064004c054dd5000980b980a1baa008163758602c602e602e602e602e0046eacc054004c054c054008dd618098009809980998079baa00a370e90001b8748010c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba201",hash:"d9c639433a3de1adeb247053b7556dd637be9398b245fa0ab351fbbf"},{title:"ownership_registry.ownership_registry.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/content_ownership~1types~1OwnershipRegistryDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1OwnershipRegistryRedeemer"}},parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"590bb40101003232323232323223225333004323232323253323300a3001300b375400426464646464646464a66602460060022a66602a60286ea802c540085854ccc048c0240044c8c8c8c94ccc064c0700084cc02400c894ccc06c008540204c8c008c07c00cdd7180e8010b1bad301a001301a0023758603000260286ea802c54ccc048c01000454ccc054c050dd50058a8010b0b18091baa00a1323232323232323232323232323232533302200114a02a666044604a00226464a666042602660446ea80044c8c8c8c8c94ccc098c05c01054ccc098c05cc09cdd500289919191919191919191919191919191919191919299981e982000109980b00889980b00689980b003899299981f0008a501533303e3041001132533303c302d303d37540022646464a66607e6060002264646464a66608c609200426606c00244a6660900042a010264600460980066eb8c12800858dd6182380098238011bae3045001304137540062a66607e606c002264646464a66608c60920042a00c2c6eb4c11c004c11c008dd7182280098209baa0031533303f303100115333042304137540062a0042c2c607e6ea800854ccc0f4c0b8c0f8dd50008a5114a06082607c6ea800458c8c8cc004004090894ccc104004530103d87a8000132323253330413375e00c60840062604c6608a00297ae01330050050023042002304500230430013374a90011981f980b181e9baa30400014bd700a503301d02923375e602c607a6ea8c084c0f4dd50008070b1bae303e001303e002375c607800260780046eb4c0e8004c0e8008c0e0004c0e0008dd7181b000981b0011bad3034001303400230320013032002375c60600026060004605c002605c0046eb8c0b0004c0a0dd50028b09919192999814981000389919192999816180e98169baa00b132323232323232323232323232323232323232325333043304600213301c01113301c00d13301c007132323232533304700200115333047304a002132533304800400215333048304b0041323253330473039304837540022646466002004264a666094607860966ea80044c8cc00c0044c94ccc130c0f4c134dd50008991919192999829982b00109919299982919b8848000c8c8cc004004c8cc004004110894ccc16400452f5c02660b46ea0ccc0e8dd5981e182c1baa303c3058375460b60026eb8c0c4010dd7181e00219801001182e00091299982c0008a4000266e00dd6982d00099801001182d8009982b1ba900533056375200697ae015333052002100114a02940c10ccc8c004004894ccc15800452000133700900119801001182c80098151bab30373053375401866ebc018c0d4cc150c0acc148dd50049982a1ba7323232533305330443054375400226644646600200200644a6660b400220062660b660b80026600400460ba0026eb0c0b8008cc15cdd38149bac3058305537540022c64a6660ac002298103d87a80001303833057374e60b200297ae0375860700026660020026eb0c0dcc14cdd5005013111299982b0010a5eb8410180008101800009919299982a99b89003480004cc16530101800033059374e00897ae01323305a374e660b46e9c00cdd6182d8009982d182d982e000a5eb80ccc014014004cdc0001a400260b40066eb0c1600092f5c02c6eb8c150004c150008dd718290009bac3051304e37540022c66646002002444a6660a20042980103d87a800013232533305030410031303533054374e00497ae01333005005001337000069000982a8019bac305300237586062609a6ea8010080c13cc130dd50008b181518259baa00422533304a303b304b3754004264646464a6660a260a800426608200244a6660a60042a00e2660866eb0c154008894ccc1540084c00cc1600104c8c008c16400cdd7182b8010b1bac30520013052002375a60a000260986ea800858c130c124dd50008b181398241baa302c30483754004609400800460920040022940dd618238011bac3046304700133044374e66603005e00e012660886e9ccc08c0b094ccc104cdd7980e18219baa00100813301b301a3756604e60866ea80048cdc79bae301d00100b14a097ae016375c608800260880046eb8c108004c108008dd698200009820001181f000981f0011bae303c001303c002375a60740026074004607000260700046eb8c0d8004c0d8008c0d0004c0d0008dd7181900098171baa00b16375a606060620046eb0c0bc004c0acdd50110a999814980d18151baa008132323232323232323232323232323232323232325333040304300213301901113301900d133019007132533304100114a02a6660826088002264a66607e646600200205044a66608800229404c94ccc108cdc79bae304700200614a2266006006002608e00220022940cdd79ba6028374c646600200264660020026eacc098c108dd5181318211baa304500322533304400114bd6f7b630099191919299982299b9148900002153330453371e91010000210031005133049337606ea4008dd3000998030030019bab3046003375c60880046090004608c00244a666086002297adef6c60132330453376060840026e98c8cc004004dd598220011129998230008a5eb7bdb1804c8cc120cdd818228009ba83370290001bad304600133003003304a0023048001330030033047002304500114a066602a05800e0122c6eb8c104004c104008dd7181f800981f8011bad303d001303d002303b001303b002375c607200260720046eb4c0dc004c0dc008c0d4004c0d4008dd718198009819801181880098188011bae302f001302b37540102c4446601c0064a66605866ebcc01cc0b8dd5180918171baa001003133006300537566024605c6ea8c048c0b8dd5000919b8f375c601000200629408c8cc004004008894ccc0b400452f5c0264666444646600200200644a66606600220062646606a6e9ccc0d4dd48031981a98190009981a9819800a5eb80cc00c00cc0dc008c0d4004dd718160009bab302d001330030033031002302f00122323300100100322533302d00114a0264a66605660086eb0c0c0008528899801801800981800091815800912999813180b98139baa002132323232533302d303000213300700313232533302c301d00113232533303130340021323253330303021001132325333035303800213300f00115004163036001303237540062a666060604e0022646464646464a66607260780042a0102c6eb4c0e8004c0e8008dd6981c000981c0011bad3036001303237540062c60606ea80085401058c0c8004c0b8dd50018a99981618118008a99981798171baa003150021616302c37540042a00a2c605c002605c004605800260506ea80085888c94ccc098c05c0044c8c94ccc0acc0b80085401058dd7181600098141baa00315333026301d00113232533302b302e0021500416375c605800260506ea800c58c098dd500118119baa01b3026302337540022c600260446ea8c018c088dd5181280111812981318130008a5033001375860460184602c6660066eacc014c084dd5180298109baa00101d48810022323300100100322533302400114bd7009919299981198028010998138011980200200089980200200098140011813000911192999810180b98109baa0011480004dd6981298111baa001325333020301730213754002298103d87a8000132330010013756604c60466ea8008894ccc094004530103d87a80001323232325333026337220100042a66604c66e3c0200084c02ccc0a8dd4000a5eb80530103d87a8000133006006003375a604e0066eb8c094008c0a4008c09c004c8cc004004010894ccc0900045300103d87a80001323232325333025337220100042a66604a66e3c0200084c028cc0a4dd3000a5eb80530103d87a80001330060060033756604c0066eb8c090008c0a0008c098004dd2a40004604060420026eacc078c07c008dd6180e800980e980e980e980e8011bab301b001301b301b00237586032002603200260300046eb0c058004c048dd50059b8748000dc3a40084464660020020064466006002600400460226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea800452613656375c002ae6955ceaab9e5573eae815d0aba21",hash:"12114eef00bfb34d7a7d42893b01f6395508fa5a275e2e2c96013446"},{title:"ownership_registry.ownership_registry.else",parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"590bb40101003232323232323223225333004323232323253323300a3001300b375400426464646464646464a66602460060022a66602a60286ea802c540085854ccc048c0240044c8c8c8c94ccc064c0700084cc02400c894ccc06c008540204c8c008c07c00cdd7180e8010b1bad301a001301a0023758603000260286ea802c54ccc048c01000454ccc054c050dd50058a8010b0b18091baa00a1323232323232323232323232323232533302200114a02a666044604a00226464a666042602660446ea80044c8c8c8c8c94ccc098c05c01054ccc098c05cc09cdd500289919191919191919191919191919191919191919299981e982000109980b00889980b00689980b003899299981f0008a501533303e3041001132533303c302d303d37540022646464a66607e6060002264646464a66608c609200426606c00244a6660900042a010264600460980066eb8c12800858dd6182380098238011bae3045001304137540062a66607e606c002264646464a66608c60920042a00c2c6eb4c11c004c11c008dd7182280098209baa0031533303f303100115333042304137540062a0042c2c607e6ea800854ccc0f4c0b8c0f8dd50008a5114a06082607c6ea800458c8c8cc004004090894ccc104004530103d87a8000132323253330413375e00c60840062604c6608a00297ae01330050050023042002304500230430013374a90011981f980b181e9baa30400014bd700a503301d02923375e602c607a6ea8c084c0f4dd50008070b1bae303e001303e002375c607800260780046eb4c0e8004c0e8008c0e0004c0e0008dd7181b000981b0011bad3034001303400230320013032002375c60600026060004605c002605c0046eb8c0b0004c0a0dd50028b09919192999814981000389919192999816180e98169baa00b132323232323232323232323232323232323232325333043304600213301c01113301c00d13301c007132323232533304700200115333047304a002132533304800400215333048304b0041323253330473039304837540022646466002004264a666094607860966ea80044c8cc00c0044c94ccc130c0f4c134dd50008991919192999829982b00109919299982919b8848000c8c8cc004004c8cc004004110894ccc16400452f5c02660b46ea0ccc0e8dd5981e182c1baa303c3058375460b60026eb8c0c4010dd7181e00219801001182e00091299982c0008a4000266e00dd6982d00099801001182d8009982b1ba900533056375200697ae015333052002100114a02940c10ccc8c004004894ccc15800452000133700900119801001182c80098151bab30373053375401866ebc018c0d4cc150c0acc148dd50049982a1ba7323232533305330443054375400226644646600200200644a6660b400220062660b660b80026600400460ba0026eb0c0b8008cc15cdd38149bac3058305537540022c64a6660ac002298103d87a80001303833057374e60b200297ae0375860700026660020026eb0c0dcc14cdd5005013111299982b0010a5eb8410180008101800009919299982a99b89003480004cc16530101800033059374e00897ae01323305a374e660b46e9c00cdd6182d8009982d182d982e000a5eb80ccc014014004cdc0001a400260b40066eb0c1600092f5c02c6eb8c150004c150008dd718290009bac3051304e37540022c66646002002444a6660a20042980103d87a800013232533305030410031303533054374e00497ae01333005005001337000069000982a8019bac305300237586062609a6ea8010080c13cc130dd50008b181518259baa00422533304a303b304b3754004264646464a6660a260a800426608200244a6660a60042a00e2660866eb0c154008894ccc1540084c00cc1600104c8c008c16400cdd7182b8010b1bac30520013052002375a60a000260986ea800858c130c124dd50008b181398241baa302c30483754004609400800460920040022940dd618238011bac3046304700133044374e66603005e00e012660886e9ccc08c0b094ccc104cdd7980e18219baa00100813301b301a3756604e60866ea80048cdc79bae301d00100b14a097ae016375c608800260880046eb8c108004c108008dd698200009820001181f000981f0011bae303c001303c002375a60740026074004607000260700046eb8c0d8004c0d8008c0d0004c0d0008dd7181900098171baa00b16375a606060620046eb0c0bc004c0acdd50110a999814980d18151baa008132323232323232323232323232323232323232325333040304300213301901113301900d133019007132533304100114a02a6660826088002264a66607e646600200205044a66608800229404c94ccc108cdc79bae304700200614a2266006006002608e00220022940cdd79ba6028374c646600200264660020026eacc098c108dd5181318211baa304500322533304400114bd6f7b630099191919299982299b9148900002153330453371e91010000210031005133049337606ea4008dd3000998030030019bab3046003375c60880046090004608c00244a666086002297adef6c60132330453376060840026e98c8cc004004dd598220011129998230008a5eb7bdb1804c8cc120cdd818228009ba83370290001bad304600133003003304a0023048001330030033047002304500114a066602a05800e0122c6eb8c104004c104008dd7181f800981f8011bad303d001303d002303b001303b002375c607200260720046eb4c0dc004c0dc008c0d4004c0d4008dd718198009819801181880098188011bae302f001302b37540102c4446601c0064a66605866ebcc01cc0b8dd5180918171baa001003133006300537566024605c6ea8c048c0b8dd5000919b8f375c601000200629408c8cc004004008894ccc0b400452f5c0264666444646600200200644a66606600220062646606a6e9ccc0d4dd48031981a98190009981a9819800a5eb80cc00c00cc0dc008c0d4004dd718160009bab302d001330030033031002302f00122323300100100322533302d00114a0264a66605660086eb0c0c0008528899801801800981800091815800912999813180b98139baa002132323232533302d303000213300700313232533302c301d00113232533303130340021323253330303021001132325333035303800213300f00115004163036001303237540062a666060604e0022646464646464a66607260780042a0102c6eb4c0e8004c0e8008dd6981c000981c0011bad3036001303237540062c60606ea80085401058c0c8004c0b8dd50018a99981618118008a99981798171baa003150021616302c37540042a00a2c605c002605c004605800260506ea80085888c94ccc098c05c0044c8c94ccc0acc0b80085401058dd7181600098141baa00315333026301d00113232533302b302e0021500416375c605800260506ea800c58c098dd500118119baa01b3026302337540022c600260446ea8c018c088dd5181280111812981318130008a5033001375860460184602c6660066eacc014c084dd5180298109baa00101d48810022323300100100322533302400114bd7009919299981198028010998138011980200200089980200200098140011813000911192999810180b98109baa0011480004dd6981298111baa001325333020301730213754002298103d87a8000132330010013756604c60466ea8008894ccc094004530103d87a80001323232325333026337220100042a66604c66e3c0200084c02ccc0a8dd4000a5eb80530103d87a8000133006006003375a604e0066eb8c094008c0a4008c09c004c8cc004004010894ccc0900045300103d87a80001323232325333025337220100042a66604a66e3c0200084c028cc0a4dd3000a5eb80530103d87a80001330060060033756604c0066eb8c090008c0a0008c098004dd2a40004604060420026eacc078c07c008dd6180e800980e980e980e980e8011bab301b001301b301b00237586032002603200260300046eb0c058004c048dd50059b8748000dc3a40084464660020020064466006002600400460226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea800452613656375c002ae6955ceaab9e5573eae815d0aba21",hash:"12114eef00bfb34d7a7d42893b01f6395508fa5a275e2e2c96013446"},{title:"ownership_registry_ref_token.ownership_registry_ref_token.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/content_ownership~1types~1MintPolarity"}},parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"59074d0101003232323232323223225333004323232323253323300a3001300b3754004264646464a66601c600a0022a66602260206ea801c540085854ccc038c00c00454ccc044c040dd50038a8010b0b18071baa0061323232323232323232323232323232533301b3012301c37540042a66603c0060022a66603c6042006264a6646603a6002603c6ea80084c8c8c8c8cc0040104c8c8c8c8c8c8c8c94ccc0b000800454ccc0b0c0bc0084c94ccc0b401000854ccc0b4c0c00104c8c94ccc0b0c040c0b4dd5000899192999817180918179baa0011323300f0031533302f302630303754002264646464a66606c60720042646600200444a6660720042646464646464a66607866ebc040c8c8c8c8c8c8c8c0c8cc11cc12001ccc11cc120018cc11cc120014cc11cc120010cc11cc12000ccc11cc120008cc11cc120004cc11cdd419b8001f48008c124c124004c120004c11c004c118004c114004c110004c10c004c0f8dd500f8a99981e0030a99981e00108008a5014a02940c07cc008dd59814181e9baa011301e30013756604e60786ea80448c008c094004c004004894ccc0f000452000133700900119801001181f800a99981b1816803099baf374e00898101800014a02660066eb0c0ec008894ccc0ec0084c00cc0f80104c8c008c0fc00cdd7181e801111919800800801911980180098010010b1bac30370013037002375a606a00260626ea800458c0ccc0c0dd50008b180b18179baa0033031302e37540022c6028605a6ea8008c0bc010008c0b80080045281bac302c00237586056605800264660546e9ccccc004060c0ac0140912201003302a374e666600203060560066eb8c0ac010c8c8c8c8c8cdc5000a441012900337149110a5265676973747279202800330010063300300648008c0040048894ccc0acc0800044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66605266e2000920141001133300300333706004900a19b82001480512f5c04444660320084a66605466ebcc050c0b0dd50008020980f99980c1bab3017302c37540020060042940dd69814981500098148009814181418141814000981398119baa00422533302230193023375400426464646464646464646464646464646464646464a666072607800426602e02226602e01a26602e00e2a02a2c6eb8c0e8004c0e8008dd7181c000981c0011bad3036001303600230340013034002375c606400260640046eb4c0c0004c0c0008c0b8004c0b8008dd718160009816001181500098150011bae3028001302437540042c44a666042603060446ea80084c8c8c8c94ccc0a0c0ac0084cc01c00c4c8c94ccc09cc0780044c8c94ccc0b0c0bc0084c8c94ccc0acc0880044c8c94ccc0c0c0cc0084cc03c0045401058c0c4004c0b4dd50018a99981598100008991919191919299981a181b8010a8040b1bad30350013035002375a606600260660046eb4c0c4004c0b4dd50018b18159baa0021500416302d001302937540062a66604e60380022a66605460526ea800c540085858c09cdd50010a8028b18148009814801181380098119baa0021622325333021301800113232533302630290021500416375c604e00260466ea800c54ccc084c0580044c8c94ccc098c0a40085401058dd7181380098119baa00316302137540046044603e6ea8008dc3a40082c6008603a6ea8c020c074dd518100018008008a99980d1807980d9baa00113233001001300600c22533301f00114a2264a66603a64a66603c66e3cdd7180400080a099b88375a600e00290000a51375860440042660060060022940c088004528180f0029bac301d301e0042301d301e301e0012301c0012323300100100222533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004cc060034cc060dd3998021bac30190082300a33300337566004602e6ea8c008c05cdd5000809a45004bd701180c980d00091119299980b1805980b9baa0011480004dd6980d980c1baa001325333016300b301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220100042a66603866e3c0200084c02ccc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc004004010894ccc0680045300103d87a8000132323232533301b337220100042a66603666e3c0200084c028cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004dd2a400044646600200200644a66602e002297ae0132325333016300500213301a00233004004001133004004001301b002301900137566028602a602a0046eb0c04c004c04cc04c004c038dd50039b8748008dd7180798061baa002370e90000b1806980700118060009806001180500098031baa00114984d958dd7000ab9a5573aaae7955cfaba05742ae89",hash:"fff25ccc074dc16f05defe497e8e250b15cd491c5565a63c260eb2b4"},{title:"ownership_registry_ref_token.ownership_registry_ref_token.else",parameters:[{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"59074d0101003232323232323223225333004323232323253323300a3001300b3754004264646464a66601c600a0022a66602260206ea801c540085854ccc038c00c00454ccc044c040dd50038a8010b0b18071baa0061323232323232323232323232323232533301b3012301c37540042a66603c0060022a66603c6042006264a6646603a6002603c6ea80084c8c8c8c8cc0040104c8c8c8c8c8c8c8c94ccc0b000800454ccc0b0c0bc0084c94ccc0b401000854ccc0b4c0c00104c8c94ccc0b0c040c0b4dd5000899192999817180918179baa0011323300f0031533302f302630303754002264646464a66606c60720042646600200444a6660720042646464646464a66607866ebc040c8c8c8c8c8c8c8c0c8cc11cc12001ccc11cc120018cc11cc120014cc11cc120010cc11cc12000ccc11cc120008cc11cc120004cc11cdd419b8001f48008c124c124004c120004c11c004c118004c114004c110004c10c004c0f8dd500f8a99981e0030a99981e00108008a5014a02940c07cc008dd59814181e9baa011301e30013756604e60786ea80448c008c094004c004004894ccc0f000452000133700900119801001181f800a99981b1816803099baf374e00898101800014a02660066eb0c0ec008894ccc0ec0084c00cc0f80104c8c008c0fc00cdd7181e801111919800800801911980180098010010b1bac30370013037002375a606a00260626ea800458c0ccc0c0dd50008b180b18179baa0033031302e37540022c6028605a6ea8008c0bc010008c0b80080045281bac302c00237586056605800264660546e9ccccc004060c0ac0140912201003302a374e666600203060560066eb8c0ac010c8c8c8c8c8cdc5000a441012900337149110a5265676973747279202800330010063300300648008c0040048894ccc0acc0800044cdc599b80002481812210013371666e00cdc1801000a40c066600600666e18008004cdc1800a40286002002444a66605266e2000920141001133300300333706004900a19b82001480512f5c04444660320084a66605466ebcc050c0b0dd50008020980f99980c1bab3017302c37540020060042940dd69814981500098148009814181418141814000981398119baa00422533302230193023375400426464646464646464646464646464646464646464a666072607800426602e02226602e01a26602e00e2a02a2c6eb8c0e8004c0e8008dd7181c000981c0011bad3036001303600230340013034002375c606400260640046eb4c0c0004c0c0008c0b8004c0b8008dd718160009816001181500098150011bae3028001302437540042c44a666042603060446ea80084c8c8c8c94ccc0a0c0ac0084cc01c00c4c8c94ccc09cc0780044c8c94ccc0b0c0bc0084c8c94ccc0acc0880044c8c94ccc0c0c0cc0084cc03c0045401058c0c4004c0b4dd50018a99981598100008991919191919299981a181b8010a8040b1bad30350013035002375a606600260660046eb4c0c4004c0b4dd50018b18159baa0021500416302d001302937540062a66604e60380022a66605460526ea800c540085858c09cdd50010a8028b18148009814801181380098119baa0021622325333021301800113232533302630290021500416375c604e00260466ea800c54ccc084c0580044c8c94ccc098c0a40085401058dd7181380098119baa00316302137540046044603e6ea8008dc3a40082c6008603a6ea8c020c074dd518100018008008a99980d1807980d9baa00113233001001300600c22533301f00114a2264a66603a64a66603c66e3cdd7180400080a099b88375a600e00290000a51375860440042660060060022940c088004528180f0029bac301d301e0042301d301e301e0012301c0012323300100100222533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004cc060034cc060dd3998021bac30190082300a33300337566004602e6ea8c008c05cdd5000809a45004bd701180c980d00091119299980b1805980b9baa0011480004dd6980d980c1baa001325333016300b301737540022980103d87a8000132330010013756603860326ea8008894ccc06c004530103d87a8000132323232533301c337220100042a66603866e3c0200084c02ccc080dd4000a5eb80530103d87a8000133006006003375a603a0066eb8c06c008c07c008c074004c8cc004004010894ccc0680045300103d87a8000132323232533301b337220100042a66603666e3c0200084c028cc07cdd3000a5eb80530103d87a8000133006006003375660380066eb8c068008c078008c070004dd2a400044646600200200644a66602e002297ae0132325333016300500213301a00233004004001133004004001301b002301900137566028602a602a0046eb0c04c004c04cc04c004c038dd50039b8748008dd7180798061baa002370e90000b1806980700118060009806001180500098031baa00114984d958dd7000ab9a5573aaae7955cfaba05742ae89",hash:"fff25ccc074dc16f05defe497e8e250b15cd491c5565a63c260eb2b4"}],definitions:{ByteArray:{dataType:"bytes"},Int:{dataType:"integer"},List$ByteArray:{dataType:"list",items:{$ref:"#/definitions/ByteArray"}},List$List$ByteArray:{dataType:"list",items:{$ref:"#/definitions/List$ByteArray"}},Option$StakeCredential:{title:"Option",anyOf:[{title:"Some",description:"An optional value.",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/StakeCredential"}]},{title:"None",description:"Nothing.",dataType:"constructor",index:1,fields:[]}]},PaymentCredential:{title:"PaymentCredential",description:`A general structure for representing an on-chain \`Credential\`.
2
2
 
3
3
  Credentials are always one of two kinds: a direct public/private key
4
4
  pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/ScriptHash"}]}]},PolicyId:{title:"PolicyId",dataType:"bytes"},ScriptHash:{title:"ScriptHash",dataType:"bytes"},StakeCredential:{title:"StakeCredential",description:`Represent a type of object that can be represented either inline (by hash)
@@ -82,7 +82,7 @@
82
82
  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/PaymentCredential"},{title:"stake_credential",$ref:"#/definitions/Option$StakeCredential"}]}]},"cardano/address/Credential":{title:"Credential",description:`A general structure for representing an on-chain \`Credential\`.
83
83
 
84
84
  Credentials are always one of two kinds: a direct public/private key
85
- pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/ScriptHash"}]}]},"marketplace/MarketplaceDatum":{title:"MarketplaceDatum",anyOf:[{title:"MarketplaceDatum",dataType:"constructor",index:0,fields:[{title:"seller",$ref:"#/definitions/cardano~1address~1Address"},{title:"price",$ref:"#/definitions/Int"},{title:"policy",$ref:"#/definitions/ByteArray"},{title:"tokenName",$ref:"#/definitions/ByteArray"}]}]},"marketplace/MarketplaceRedeemer":{title:"MarketplaceRedeemer",anyOf:[{title:"Buy",dataType:"constructor",index:0,fields:[]},{title:"Close",dataType:"constructor",index:1,fields:[]}]}}};var J0=(n,i,c)=>{let{pubKeyHash:e,stakeCredentialHash:a}=(0,Z.deserializeAddress)(n),{policyId:t,assetName:d}=(0,$.parseAssetUnit)(c);return(0,$.conStr0)([(0,$.pubKeyAddress)(e,a),(0,$.integer)(i),(0,$.currencySymbol)(t),(0,$.tokenName)(d)])},C0=class extends O{constructor(c,e,a){super(c);r(this,"ownerAddress");r(this,"feePercentageBasisPoint");r(this,"scriptCbor");r(this,"scriptAddress");r(this,"getScriptCbor",(c,e,a)=>this.version===2?(0,z0.applyParamsToScript)(j0.validators[0].compiledCode,[(0,$.pubKeyAddress)(c,e),(0,$.integer)(a)],"JSON"):(0,z0.applyParamsToScript)(q0.validators[0].compiledCode,[(0,$.pubKeyAddress)(c,e),(0,$.integer)(a)],"JSON"));r(this,"listAsset",async(c,e)=>{let{utxos:a,walletAddress:t}=await this.getWalletInfoForTx();new Map().set(c,"1");let s=[{unit:c,quantity:"1"}],o=J0(t,e,c);return await this.mesh.txOut(this.scriptAddress,s).txOutInlineDatumValue(o,"JSON").changeAddress(t).selectUtxosFrom(a).complete(),this.mesh.txHex});r(this,"delistAsset",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx();return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,$.mConStr1)([])).txInScript(this.scriptCbor).changeAddress(a).requiredSignerHash((0,Z.deserializeAddress)(a).pubKeyHash).txInCollateral(t.input.txHash,t.input.outputIndex,t.output.amount,t.output.address).selectUtxosFrom(e).complete(),this.mesh.txHex});r(this,"purchaseAsset",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx(),d=(0,Z.deserializeDatum)(c.output.plutusData),s=c.output.amount.find(f=>f.unit==="lovelace").quantity,o=this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,$.mConStr0)([])).txInScript(this.scriptCbor).changeAddress(a).txInCollateral(t.input.txHash,t.input.outputIndex,t.output.amount,t.output.address).selectUtxosFrom(e),b=d.fields[1].int*this.feePercentageBasisPoint/1e4;if(this.feePercentageBasisPoint>0&&b<1e6&&(b=1e6),b>0){let f=[{unit:"lovelace",quantity:Math.ceil(b).toString()}];o.txOut(this.ownerAddress,f)}let l=d.fields[1].int+Number(s);if(l>0){let f=(0,Z.serializeAddressObj)(d.fields[0],this.networkId),u=[{unit:"lovelace",quantity:l.toString()}];o.txOut(f,u)}return await o.complete(),this.mesh.txHex});r(this,"relistAsset",async(c,e)=>{let{utxos:a,walletAddress:t,collateral:d}=await this.getWalletInfoForTx(),s=c.output.amount.find(l=>l.unit!=="lovelace").unit,o=[{unit:s,quantity:"1"}],b=J0(t,e,s);return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,$.mConStr1)([])).txInScript(this.scriptCbor).txOut(this.scriptAddress,o).txOutInlineDatumValue(b,"JSON").changeAddress(t).requiredSignerHash((0,Z.deserializeAddress)(t).pubKeyHash).txInCollateral(d.input.txHash,d.input.outputIndex,d.output.amount,d.output.address).selectUtxosFrom(a).complete(),this.mesh.txHex});r(this,"getUtxoByTxHash",async c=>await this._getUtxoByTxHash(c,this.scriptCbor));this.ownerAddress=e,this.feePercentageBasisPoint=a;let{pubKeyHash:t,stakeCredentialHash:d}=(0,Z.deserializeAddress)(e);this.scriptCbor=this.getScriptCbor(t,d,a),this.scriptAddress=this.getScriptAddress(this.scriptCbor)}};r(C0,"getCompiledCode",(c=2)=>c===2?j0.validators[0].compiledCode:q0.validators[0].compiledCode);var _0=require("@meshsdk/common"),r0=require("@meshsdk/core"),G0=require("@meshsdk/core-cst");var uc={preamble:{title:"fabianbormann/payment-splitter",description:"Aiken contracts for project 'fabianbormann/payment-splitter'",version:"0.1.0",plutusVersion:"v2",compiler:{name:"Aiken",version:"v1.0.29-alpha+unknown"},license:"Apache-2.0"},validators:[{title:"payment_splitter.payout",datum:{title:"_datum",schema:{$ref:"#/definitions/payment_splitter~1Datum"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/payment_splitter~1Redeemer"}},parameters:[{title:"scriptHashes",schema:{$ref:"#/definitions/List$ByteArray"}}],compiledCode:"5903a5010000323232323232322322322322533300832323232323232323232323253330143375e6e9cccc8c0040048894ccc06800440084ccc00c00cc8c8cc004004010894ccc07400452f5c026464a66603866ebc00801440044cc080008cc010010004c084008c07c004c070004c074004cc8c004004894ccc06400452f5c026466036002660060066600e603a004466603066ebc00400928251301b001323300100100722533301900114bd7009980d1806180c1baa300c3018375460360026600400460380020169801018000100114a0646600200200444a66603000229444c94ccc058cdc39bad301b00233005533301900414c0103d87a80001300e3301a301b0044bd70240002660060060022940c06c004c8cc004004028894ccc05c00452f5c02660306ea0c8c8c8c8c8c94ccc068cdc424000002266e04008cdc08009802005880119980119804806919baf3010301c3754602060386ea8c014c070dd5000803240004466e00004c014dd59803180e9baa3006301d375400466600266010014466ebcc03cc06cdd51807980d9baa0010054800088cdc000098021bab3005301c3754004444646600200200844a66603e0022008266006604200266004004604400246600c64a66603066e1d200230193754002298103d87a8000132330010013756603c60366ea8008894ccc074004530103d87a8000132323232533301e33722911000021533301e3371e9101000021301633022375000297ae014c0103d87a8000133006006003375a603e0066eb8c074008c084008c07c004c8cc004004008894ccc0700045300103d87a8000132323232533301d33722911000021533301d3371e9101000021301533021374c00297ae014c0103d87a80001330060060033756603c0066eb8c070008c080008c07800520002301b301c001301900133002002301a0012253330133370e9001180a1baa00210011375a6030602a6ea800888c8cc00400400c894ccc05c00452f5c026464a66602c600a00426603400466008008002266008008002603600460320026eacc050c054008dd61809800980998098011bac3011001300d37546002601a6ea80108c040004c8cc004004020894ccc03800452f5c026601e60066601e602000297ae0330020023011001374a90000a4c26caca66600c66e1d20003007375400226464a666016601c0042930b1bae300c001300837540022ca66600866e1d20003005375400226464a66601260180042930b1bae300a001300637540022c6eb00055cd2ab9d5573caae7d5d02ba157441",hash:"0776032753d2900f7c1e933af4108c53851e10ca95fa10e34af90277"}],definitions:{ByteArray:{dataType:"bytes"},List$ByteArray:{dataType:"list",items:{$ref:"#/definitions/ByteArray"}},"payment_splitter/Datum":{title:"Datum",anyOf:[{title:"Datum",dataType:"constructor",index:0,fields:[{title:"owner",$ref:"#/definitions/ByteArray"}]}]},"payment_splitter/Redeemer":{title:"Redeemer",anyOf:[{title:"Redeemer",dataType:"constructor",index:0,fields:[{title:"message",$ref:"#/definitions/ByteArray"}]}]}}};var hc={preamble:{title:"fabianbormann/payment-splitter",description:"Aiken contracts for project 'fabianbormann/payment-splitter'",version:"0.1.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.0+unknown"},license:"Apache-2.0"},validators:[{title:"payment_splitter.payout.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/payment_splitter~1Datum"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/payment_splitter~1Redeemer"}},parameters:[{title:"scriptHashes",schema:{$ref:"#/definitions/List$ByteArray"}}],compiledCode:"5903ac0101003232323232323223225333004323232323253323300a3001300b37540042646464a66601a66e1d2000300e375400c26464a666024602a0042646464646464646464646464a66603666ebcdd3999918008009112999810800880109998018019919198008008021129998120008a5eb804c8c94ccc08ccdd7801002880089981380119802002000981400118130009811800981200099918008009129998100008a5eb804c8cc088004cc00c00ccc01cc0900088ccc07ccdd78008012504a26044002646600200201044a666040002297ae01330213007301f3754600e603e6ea8c088004cc008008c08c00402d3001018000100114a0646600200200444a66603e00229444c94ccc074cdc39bad302200233005533302000414c0103d87a80001300e3302130220044bd70240002660060060022940c088004c8cc004004028894ccc07800452f5c026603e6ea0c8c8c8c8c8c94ccc084cdc424000002266e04008cdc0800806080119980119804807119baf300b30233754601660466ea8c014c08cdd5000803240004466e00004c014dd5980318121baa30063024375400466600266010016466ebcc028c088dd5180518111baa0010054800088cdc000098021bab300530233754004444646600200200844a66604c0022008266006605000266004004605200246600c64a66603e602c60406ea80045300103d87a8000132330010013756604a60446ea8008894ccc090004530103d87a800013232323253330253372291100002153330253371e9101000021301633029375000297ae014c0103d87a8000133006006003375a604c0066eb8c090008c0a0008c098004c8cc004004008894ccc08c0045300103d87a800013232323253330243372291100002153330243371e9101000021301533028374c00297ae014c0103d87a80001330060060033756604a0066eb8c08c008c09c008c0940052000230223023001302000133002002302100122533301a3011301b3754004200226eb4c07cc070dd500111191980080080191299980f0008a5eb804c8c94ccc074c0140084cc084008cc0100100044cc010010004c088008c0800048c070004dd6980d180d8011bac3019001301930190023758602e00260266ea8030c8cc00400403c894ccc05400452f5c026602c60066602c602e00297ae0330020023018001374a90000b1bae3013001300f375400c2c60226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea8004526136563758002ae6955ceaab9e5573eae815d0aba21",hash:"18dd08b9d716f70842061bc6967787def27aee863ac223e048f68317"},{title:"payment_splitter.payout.else",parameters:[{title:"scriptHashes",schema:{$ref:"#/definitions/List$ByteArray"}}],compiledCode:"5903ac0101003232323232323223225333004323232323253323300a3001300b37540042646464a66601a66e1d2000300e375400c26464a666024602a0042646464646464646464646464a66603666ebcdd3999918008009112999810800880109998018019919198008008021129998120008a5eb804c8c94ccc08ccdd7801002880089981380119802002000981400118130009811800981200099918008009129998100008a5eb804c8cc088004cc00c00ccc01cc0900088ccc07ccdd78008012504a26044002646600200201044a666040002297ae01330213007301f3754600e603e6ea8c088004cc008008c08c00402d3001018000100114a0646600200200444a66603e00229444c94ccc074cdc39bad302200233005533302000414c0103d87a80001300e3302130220044bd70240002660060060022940c088004c8cc004004028894ccc07800452f5c026603e6ea0c8c8c8c8c8c94ccc084cdc424000002266e04008cdc0800806080119980119804807119baf300b30233754601660466ea8c014c08cdd5000803240004466e00004c014dd5980318121baa30063024375400466600266010016466ebcc028c088dd5180518111baa0010054800088cdc000098021bab300530233754004444646600200200844a66604c0022008266006605000266004004605200246600c64a66603e602c60406ea80045300103d87a8000132330010013756604a60446ea8008894ccc090004530103d87a800013232323253330253372291100002153330253371e9101000021301633029375000297ae014c0103d87a8000133006006003375a604c0066eb8c090008c0a0008c098004c8cc004004008894ccc08c0045300103d87a800013232323253330243372291100002153330243371e9101000021301533028374c00297ae014c0103d87a80001330060060033756604a0066eb8c08c008c09c008c0940052000230223023001302000133002002302100122533301a3011301b3754004200226eb4c07cc070dd500111191980080080191299980f0008a5eb804c8c94ccc074c0140084cc084008cc0100100044cc010010004c088008c0800048c070004dd6980d180d8011bac3019001301930190023758602e00260266ea8030c8cc00400403c894ccc05400452f5c026602c60066602c602e00297ae0330020023018001374a90000b1bae3013001300f375400c2c60226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea8004526136563758002ae6955ceaab9e5573eae815d0aba21",hash:"18dd08b9d716f70842061bc6967787def27aee863ac223e048f68317"}],definitions:{ByteArray:{dataType:"bytes"},List$ByteArray:{dataType:"list",items:{$ref:"#/definitions/ByteArray"}},VerificationKeyHash:{title:"VerificationKeyHash",dataType:"bytes"},"payment_splitter/Datum":{title:"Datum",anyOf:[{title:"Datum",dataType:"constructor",index:0,fields:[{title:"owner",$ref:"#/definitions/VerificationKeyHash"}]}]},"payment_splitter/Redeemer":{title:"Redeemer",anyOf:[{title:"Redeemer",dataType:"constructor",index:0,fields:[{title:"message",$ref:"#/definitions/ByteArray"}]}]}}};var X0=class extends O{constructor(c,e){super(c);r(this,"scriptCbor");r(this,"scriptAddress");r(this,"payees",[]);r(this,"wrapPayees",c=>(0,_0.list)(c.map(e=>(0,_0.builtinByteString)((0,r0.deserializeAddress)(e).pubKeyHash))));r(this,"getScriptCbor",()=>this.version===2?(0,G0.applyParamsToScript)(hc.validators[0].compiledCode,[this.wrapPayees(this.payees)],"JSON"):(0,G0.applyParamsToScript)(uc.validators[0].compiledCode,[this.wrapPayees(this.payees)],"JSON"));r(this,"sendLovelaceToSplitter",async c=>{if(this.wallet===null||this.wallet===void 0)throw new Error("Wallet not provided");let{walletAddress:e}=await this.getWalletInfoForTx(),{pubKeyHash:a}=(0,r0.deserializeAddress)(e),t={alternative:0,fields:[a]};return await new r0.Transaction({initiator:this.wallet}).sendLovelace({address:this.scriptAddress,datum:{value:t}},c.toString()).build()});r(this,"triggerPayout",async()=>{if(this.wallet===null||this.wallet===void 0)throw new Error("Wallet not provided");let{walletAddress:c,collateral:e}=await this.getWalletInfoForTx(),a={code:this.scriptCbor,version:this.languageVersion},t=await this.fetcher?.fetchAddressUTxOs(this.scriptAddress)||[],{pubKeyHash:d}=(0,r0.deserializeAddress)(c),s={alternative:0,fields:[d]},b={data:{alternative:0,fields:["Hello, World!"]}},l=new r0.Transaction({initiator:this.wallet}),f=0;for(let h of t){let y=h.output?.amount;if(y){let T=y.find(C=>C.unit==="lovelace");T&&(f+=Math.floor(Number(T.quantity)/this.payees.length)),l=l.redeemValue({value:h,script:a,datum:s,redeemer:b})}}l=l.setCollateral([e]);for(let h of this.payees)l=l.sendLovelace(h,f.toString());return l=l.setRequiredSigners([c]),await l.build()});c.wallet?c.wallet.getUsedAddresses().then(a=>{this.payees=[a[0],...e]}):(this.payees=e,console.warn("Wallet not provided. Therefore the payment address will not be added to the payees list which makes it impossible to trigger the payout.")),this.scriptCbor=this.getScriptCbor(),this.scriptAddress=this.getScriptAddress(this.scriptCbor)}};var v=require("@meshsdk/common"),V=require("@meshsdk/core"),mc=require("@meshsdk/core-cst");var p0={preamble:{title:"meshjs/plutus-nft",description:"Aiken contracts for project 'meshjs/plutus-nft'",version:"0.0.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.4+79d0e45"},license:"Apache-2.0"},validators:[{title:"oracle.oracle.spend",datum:{title:"datum_opt",schema:{$ref:"#/definitions/oracle~1OracleDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/oracle~1OracleRedeemer"}},compiledCode:"590879010100323232323232322533300232323232325332330083001300937540042646464646464a66601c60060022a66602260206ea8024540085854ccc038c01c00454ccc044c040dd50048a8010b0b18071baa008132323232323232533301330083014375401226464646464646464a666036602060386ea80044c8c8c8c8c8c94ccc090c09c0084c8c8c8c8c8c8c94ccc0a0c074c0a4dd50010a9998158018008a99981598170018a9998158020008a9998159817002099191919299981619b8733230010012253330310011480004cdc024004660040046068002601e6eacc040c0b8dd5002240082a6660580042002294052819191980080098082999816981100b8a5eb7bdb1804c8c8cc0040052f5bded8c044a66606600226606866ec13001014000374c00697adef6c60132323232533303433720910100002133038337609801014000374c00e00a2a666068602c00426607066ec13001014000374c00e00626607066ec0dd48011ba6001330060060033756606a0066eb8c0cc008c0dc008c0d4004c8cc0040052f5bded8c044a66606400226606666ec13001014000375003297adef6c60132323232533303333720910100002133037337609801014000375003a00a2a666066602a00426606e66ec13001014000375003a00626606e66ec0dd48011ba800133006006003375a60680066eb8c0c8008c0d8008c0d0004894ccc0c400452889929998179919b89375a600e002664464a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a6103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a80001323232325333039337220100042a66607266e3c0200084c080cc0f4dd4000a5eb80530103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004020894ccc0dc0045300103d87a80001323232325333038337220100042a66607066e3c0200084c07ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e4004dd7180c0009bae3014001375860680042660060060022940c0d0004c8cc004004074894ccc0c000452f5bded8c026644a66605e66ebcc05cc0c4dd500100c0991998008008011bab301430323754006444a66606a004200226466600800860720066644646600200200a44a66607400226607666ec0dd48021ba60034bd6f7b630099191919299981d99b9000800213303f337606ea4020dd30038028a99981d99b8f008002132533303c3031303d375400226608066ec0dd48049820981f1baa001004100432533303c533303f00114a22940530103d87a80001302333040374c00297ae03233300100100800222253330410021001132333004004304500333223233001001005225333046001133047337606ea4010dd4001a5eb7bdb1804c8c8c8c94ccc11ccdc800400109982599bb037520106ea001c01454ccc11ccdc78040010992999824181e98249baa00113304c337606ea4024c134c128dd50008020802192999824181e8008a60103d87a80001302f3304c375000297ae03370000e00226609666ec0dd48011ba800133006006003375a60900066eb8c118008c128008c120004dd718200009bad3041001304300213303f337606ea4008dd3000998030030019bab303c003375c6074004607c00460780026eb8c0d0004dd5981a800981b8010800981900099801001181980099baf3001302c375400466e9520043302e30113302e375066e0005920023302e37500286605c02697ae04bd70118179818181800098168020008008008992999814181098149baa0021533302b0030011533302b302e003132533302932533302d00114a02a66605a60600022646464a66605a66e3cdd718190018060a9998169807800899b87002480045280a50375c606260640046eb4c0c0c0c4c0c4004dd618178008a50300c018100114a064646600200203044a66605c00229404c94ccc0b0cdc79bae303100200414a2266006006002606200264a666052604460546ea80044dd7181718159baa0011375c605c60566ea8004c040c0a8dd50088008008a50302b0033758605460560046eb0c0a4c0a8c0a8004c8c8cc0a4080cc0a4dd39980100c1299981319baf300e30283754601460506ea80040104cc008c024dd5980518141baa300a30283754002466e3cdd718078008030a5033029374e6600402c4a66604c66ebcc038c0a0dd500080209980118049bab300a30283754002466e3cdd718078008030a504bd701119198008008019129998158008a50132533302930043758605c00429444cc00c00c004c0b800488c8cc00400400c894ccc0a800452f5c026464a666052600a00426605a00466008008002266008008002605c0046058002601460486ea8c018c090dd50039bae3026001163758604a002646600200260066eacc010c088dd5180218111baa00522533302400114bd7009919299981199981198029bae300b0024a09444cc09cdd38011980200200089980200200098140011bac3026001371e911002323300100100222533302300114bd7009919991119198008008019129998148008801899198159ba73302b375200c66056605000266056605200297ae033003003302d002302b001375c60440026eacc08c004cc00c00cc09c008c0940048c088c08c004c080c074dd50008b191980080080711299980f8008a6103d87a800013232533301e3375e600c60406ea80080544c014cc0880092f5c0266008008002604600460420026e9520002301e001301c301d002375a603600260360046eb4c064004c054dd5180c180a9baa009163758602e60306030603060300046eacc058004c058c058008dd6180a000980a180a0011bac3012001300e37540126e1d2000300f3010002300e001300a37540046e1d200216300b300c002300a001300a00230080013004375400229309b2b2b9a5573aaae7955cfaba05742ae881",hash:"975ec6fe46e63846aad882fecd8e1c7c4a41d7ed3a8aae463482935e"},{title:"oracle.oracle.else",redeemer:{schema:{}},compiledCode:"590879010100323232323232322533300232323232325332330083001300937540042646464646464a66601c60060022a66602260206ea8024540085854ccc038c01c00454ccc044c040dd50048a8010b0b18071baa008132323232323232533301330083014375401226464646464646464a666036602060386ea80044c8c8c8c8c8c94ccc090c09c0084c8c8c8c8c8c8c94ccc0a0c074c0a4dd50010a9998158018008a99981598170018a9998158020008a9998159817002099191919299981619b8733230010012253330310011480004cdc024004660040046068002601e6eacc040c0b8dd5002240082a6660580042002294052819191980080098082999816981100b8a5eb7bdb1804c8c8cc0040052f5bded8c044a66606600226606866ec13001014000374c00697adef6c60132323232533303433720910100002133038337609801014000374c00e00a2a666068602c00426607066ec13001014000374c00e00626607066ec0dd48011ba6001330060060033756606a0066eb8c0cc008c0dc008c0d4004c8cc0040052f5bded8c044a66606400226606666ec13001014000375003297adef6c60132323232533303333720910100002133037337609801014000375003a00a2a666066602a00426606e66ec13001014000375003a00626606e66ec0dd48011ba800133006006003375a60680066eb8c0c8008c0d8008c0d0004894ccc0c400452889929998179919b89375a600e002664464a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a6103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a80001323232325333039337220100042a66607266e3c0200084c080cc0f4dd4000a5eb80530103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004020894ccc0dc0045300103d87a80001323232325333038337220100042a66607066e3c0200084c07ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e4004dd7180c0009bae3014001375860680042660060060022940c0d0004c8cc004004074894ccc0c000452f5bded8c026644a66605e66ebcc05cc0c4dd500100c0991998008008011bab301430323754006444a66606a004200226466600800860720066644646600200200a44a66607400226607666ec0dd48021ba60034bd6f7b630099191919299981d99b9000800213303f337606ea4020dd30038028a99981d99b8f008002132533303c3031303d375400226608066ec0dd48049820981f1baa001004100432533303c533303f00114a22940530103d87a80001302333040374c00297ae03233300100100800222253330410021001132333004004304500333223233001001005225333046001133047337606ea4010dd4001a5eb7bdb1804c8c8c8c94ccc11ccdc800400109982599bb037520106ea001c01454ccc11ccdc78040010992999824181e98249baa00113304c337606ea4024c134c128dd50008020802192999824181e8008a60103d87a80001302f3304c375000297ae03370000e00226609666ec0dd48011ba800133006006003375a60900066eb8c118008c128008c120004dd718200009bad3041001304300213303f337606ea4008dd3000998030030019bab303c003375c6074004607c00460780026eb8c0d0004dd5981a800981b8010800981900099801001181980099baf3001302c375400466e9520043302e30113302e375066e0005920023302e37500286605c02697ae04bd70118179818181800098168020008008008992999814181098149baa0021533302b0030011533302b302e003132533302932533302d00114a02a66605a60600022646464a66605a66e3cdd718190018060a9998169807800899b87002480045280a50375c606260640046eb4c0c0c0c4c0c4004dd618178008a50300c018100114a064646600200203044a66605c00229404c94ccc0b0cdc79bae303100200414a2266006006002606200264a666052604460546ea80044dd7181718159baa0011375c605c60566ea8004c040c0a8dd50088008008a50302b0033758605460560046eb0c0a4c0a8c0a8004c8c8cc0a4080cc0a4dd39980100c1299981319baf300e30283754601460506ea80040104cc008c024dd5980518141baa300a30283754002466e3cdd718078008030a5033029374e6600402c4a66604c66ebcc038c0a0dd500080209980118049bab300a30283754002466e3cdd718078008030a504bd701119198008008019129998158008a50132533302930043758605c00429444cc00c00c004c0b800488c8cc00400400c894ccc0a800452f5c026464a666052600a00426605a00466008008002266008008002605c0046058002601460486ea8c018c090dd50039bae3026001163758604a002646600200260066eacc010c088dd5180218111baa00522533302400114bd7009919299981199981198029bae300b0024a09444cc09cdd38011980200200089980200200098140011bac3026001371e911002323300100100222533302300114bd7009919991119198008008019129998148008801899198159ba73302b375200c66056605000266056605200297ae033003003302d002302b001375c60440026eacc08c004cc00c00cc09c008c0940048c088c08c004c080c074dd50008b191980080080711299980f8008a6103d87a800013232533301e3375e600c60406ea80080544c014cc0880092f5c0266008008002604600460420026e9520002301e001301c301d002375a603600260360046eb4c064004c054dd5180c180a9baa009163758602e60306030603060300046eacc058004c058c058008dd6180a000980a180a0011bac3012001300e37540126e1d2000300f3010002300e001300a37540046e1d200216300b300c002300a001300a00230080013004375400229309b2b2b9a5573aaae7955cfaba05742ae881",hash:"975ec6fe46e63846aad882fecd8e1c7c4a41d7ed3a8aae463482935e"},{title:"oracle_nft.oracle_nft.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/oracle_nft~1MintPolarity"}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}}],compiledCode:"59019e0101003232323232323222533300332323232325332330093001300a37540042646464a66601860080022a66601e601c6ea8018540085854ccc030cdc3a40040022a66601e601c6ea8018540085858c030dd50028992999805980198061baa0051533300b3003300c375464660020026eb0c044c038dd50041129998080008a60103d87a800013232533300f3375e01c600a60226ea80084cdd2a40006602600497ae01330040040013014002301200114a229404c8cc004004c8cc004004dd59809180998099809980998079baa00922533301100114bd70099199911191980080080191299980b80088018991980c9ba733019375200c66032602c00266032602e00297ae033003003301b0023019001375c60200026eacc044004cc00c00cc054008c04c004894ccc040004528899299980719299980799b8f375c600a00200c266e20dd6980a180a980a800a40002944dd618098010998018018008a50301300123010001375c601c60166ea8008dc3a40002c6018601a004601600260160046012002600a6ea8004526136565734aae7555cf2ab9f5740ae855d101",hash:"55ada3bfe32c4ff89d50cfdd86956e013a011fa28279112e424e596a"},{title:"oracle_nft.oracle_nft.else",redeemer:{schema:{}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}}],compiledCode:"59019e0101003232323232323222533300332323232325332330093001300a37540042646464a66601860080022a66601e601c6ea8018540085854ccc030cdc3a40040022a66601e601c6ea8018540085858c030dd50028992999805980198061baa0051533300b3003300c375464660020026eb0c044c038dd50041129998080008a60103d87a800013232533300f3375e01c600a60226ea80084cdd2a40006602600497ae01330040040013014002301200114a229404c8cc004004c8cc004004dd59809180998099809980998079baa00922533301100114bd70099199911191980080080191299980b80088018991980c9ba733019375200c66032602c00266032602e00297ae033003003301b0023019001375c60200026eacc044004cc00c00cc054008c04c004894ccc040004528899299980719299980799b8f375c600a00200c266e20dd6980a180a980a800a40002944dd618098010998018018008a50301300123010001375c601c60166ea8008dc3a40002c6018601a004601600260160046012002600a6ea8004526136565734aae7555cf2ab9f5740ae855d101",hash:"55ada3bfe32c4ff89d50cfdd86956e013a011fa28279112e424e596a"},{title:"plutus_nft.plutus_nft.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/plutus_nft~1MintPolarity"}},parameters:[{title:"collection_name",schema:{$ref:"#/definitions/ByteArray"}},{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"5904250101003232323232323223223225333006323232323253323300c3001300d3754004264646464a666020600a0022a66602660246ea801c540085854ccc040c00c00454ccc04cc048dd50038a8010b0b18081baa0061323232533301130063012375401026464646464a6660326038004264a66602e66e1d200430183754002264a666030601a60326ea80044c8c8c8c8c8c94ccc084c0900084c94ccc07cc050c080dd500109919191929998131814801099802801899192999812980d0008991929998151816801099192999814980f00089919299981718188010998068008a8020b181780098159baa00315333029301c0011323232323232533303230350021500816375a606600260660046eb4c0c4004c0c4008dd6981780098159baa00316302937540042a0082c6056002604e6ea800c54ccc094c06000454ccc0a0c09cdd50018a8010b0b18129baa00213232533302800114a02a66605060560022646464a66605066e3cdd7181680180e0a99981419b8f0010051301b00214a02940dd7181618168011bad302b302c302c001375860540022940c054048c8c8cdc5000a44101290033714002646466600200201a66600400401a90011112999814180d800899b8b3370000490302450013371666e00cdc1801000a40c066600600666e18008004cdc1800a4028444a66604e66e2000920141001133300300333706004900a19b8200148050cdc5010a4410220280016302700130270023025001302137540042c4464a666042602c00226464a66604c60520042a0082c6eb8c09c004c08cdd50018a999810980a00089919299981318148010a8020b1bae3027001302337540062c60426ea800858c088004c088008dd6981000098100011bad301e001301a37540022c603860326ea800458c020c060dd51801980c1baa00116301a00132330010013758603400844a666032002297ae01323253330183233001001300a3756600c60366ea8c018c06cdd500191299980e8008a50132533301b3371e6eb8c02cdd6181000100b8a51133003003001302000113301c00233004004001133004004001301d002301b00123019301a0013756602e603060306030603000260266ea80284c8cc004004c00cdd5980b980c180c180c180c180a1baa00b22533301600114a2264a66602864a66602a66e3cdd71802800804899b88375a600e00290000a51375860320042660060060022940c0640048c0580048c8cc004004008894ccc05400452f5c0264666444646600200200644a66603600220062646603a6e9ccc074dd48031980e980d0009980e980d800a5eb80cc00c00cc07c008c074004dd7180a0009bab301500133003003301900230170012301430153015001370e90011bae3011300e37540046e1d200016300f3010002300e001300e002300c0013008375400229309b2b1bae001375c002ae6955ceaab9e5573eae815d0aba201",hash:"227ea4150bb7c090b84178f7ff40bcaad280298db1611b6911252f33"},{title:"plutus_nft.plutus_nft.else",redeemer:{schema:{}},parameters:[{title:"collection_name",schema:{$ref:"#/definitions/ByteArray"}},{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"5904250101003232323232323223223225333006323232323253323300c3001300d3754004264646464a666020600a0022a66602660246ea801c540085854ccc040c00c00454ccc04cc048dd50038a8010b0b18081baa0061323232533301130063012375401026464646464a6660326038004264a66602e66e1d200430183754002264a666030601a60326ea80044c8c8c8c8c8c94ccc084c0900084c94ccc07cc050c080dd500109919191929998131814801099802801899192999812980d0008991929998151816801099192999814980f00089919299981718188010998068008a8020b181780098159baa00315333029301c0011323232323232533303230350021500816375a606600260660046eb4c0c4004c0c4008dd6981780098159baa00316302937540042a0082c6056002604e6ea800c54ccc094c06000454ccc0a0c09cdd50018a8010b0b18129baa00213232533302800114a02a66605060560022646464a66605066e3cdd7181680180e0a99981419b8f0010051301b00214a02940dd7181618168011bad302b302c302c001375860540022940c054048c8c8cdc5000a44101290033714002646466600200201a66600400401a90011112999814180d800899b8b3370000490302450013371666e00cdc1801000a40c066600600666e18008004cdc1800a4028444a66604e66e2000920141001133300300333706004900a19b8200148050cdc5010a4410220280016302700130270023025001302137540042c4464a666042602c00226464a66604c60520042a0082c6eb8c09c004c08cdd50018a999810980a00089919299981318148010a8020b1bae3027001302337540062c60426ea800858c088004c088008dd6981000098100011bad301e001301a37540022c603860326ea800458c020c060dd51801980c1baa00116301a00132330010013758603400844a666032002297ae01323253330183233001001300a3756600c60366ea8c018c06cdd500191299980e8008a50132533301b3371e6eb8c02cdd6181000100b8a51133003003001302000113301c00233004004001133004004001301d002301b00123019301a0013756602e603060306030603000260266ea80284c8cc004004c00cdd5980b980c180c180c180c180a1baa00b22533301600114a2264a66602864a66602a66e3cdd71802800804899b88375a600e00290000a51375860320042660060060022940c0640048c0580048c8cc004004008894ccc05400452f5c0264666444646600200200644a66603600220062646603a6e9ccc074dd48031980e980d0009980e980d800a5eb80cc00c00cc07c008c074004dd7180a0009bab301500133003003301900230170012301430153015001370e90011bae3011300e37540046e1d200016300f3010002300e001300e002300c0013008375400229309b2b1bae001375c002ae6955ceaab9e5573eae815d0aba201",hash:"227ea4150bb7c090b84178f7ff40bcaad280298db1611b6911252f33"}],definitions:{ByteArray:{dataType:"bytes"},Int:{dataType:"integer"},Option$StakeCredential:{title:"Option",anyOf:[{title:"Some",description:"An optional value.",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/StakeCredential"}]},{title:"None",description:"Nothing.",dataType:"constructor",index:1,fields:[]}]},PaymentCredential:{title:"PaymentCredential",description:`A general structure for representing an on-chain \`Credential\`.
85
+ pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/ScriptHash"}]}]},"marketplace/MarketplaceDatum":{title:"MarketplaceDatum",anyOf:[{title:"MarketplaceDatum",dataType:"constructor",index:0,fields:[{title:"seller",$ref:"#/definitions/cardano~1address~1Address"},{title:"price",$ref:"#/definitions/Int"},{title:"policy",$ref:"#/definitions/ByteArray"},{title:"tokenName",$ref:"#/definitions/ByteArray"}]}]},"marketplace/MarketplaceRedeemer":{title:"MarketplaceRedeemer",anyOf:[{title:"Buy",dataType:"constructor",index:0,fields:[]},{title:"Close",dataType:"constructor",index:1,fields:[]}]}}};var J0=(n,i,c)=>{let{pubKeyHash:e,stakeCredentialHash:a}=(0,Z.deserializeAddress)(n),{policyId:t,assetName:d}=(0,$.parseAssetUnit)(c);return(0,$.conStr0)([(0,$.pubKeyAddress)(e,a),(0,$.integer)(i),(0,$.currencySymbol)(t),(0,$.tokenName)(d)])},C0=class extends O{constructor(c,e,a){super(c);r(this,"ownerAddress");r(this,"feePercentageBasisPoint");r(this,"scriptCbor");r(this,"scriptAddress");r(this,"getScriptCbor",(c,e,a)=>this.version===2?(0,z0.applyParamsToScript)(j0.validators[0].compiledCode,[(0,$.pubKeyAddress)(c,e),(0,$.integer)(a)],"JSON"):(0,z0.applyParamsToScript)(q0.validators[0].compiledCode,[(0,$.pubKeyAddress)(c,e),(0,$.integer)(a)],"JSON"));r(this,"listAsset",async(c,e)=>{let{utxos:a,walletAddress:t}=await this.getWalletInfoForTx();new Map().set(c,"1");let s=[{unit:c,quantity:"1"}],o=J0(t,e,c);return await this.mesh.txOut(this.scriptAddress,s).txOutInlineDatumValue(o,"JSON").changeAddress(t).selectUtxosFrom(a).complete(),this.mesh.txHex});r(this,"delistAsset",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx();return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,$.mConStr1)([])).txInScript(this.scriptCbor).changeAddress(a).requiredSignerHash((0,Z.deserializeAddress)(a).pubKeyHash).txInCollateral(t.input.txHash,t.input.outputIndex,t.output.amount,t.output.address).selectUtxosFrom(e).complete(),this.mesh.txHex});r(this,"purchaseAsset",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx(),d=(0,Z.deserializeDatum)(c.output.plutusData),s=c.output.amount.find(f=>f.unit==="lovelace").quantity,o=this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,$.mConStr0)([])).txInScript(this.scriptCbor).changeAddress(a).txInCollateral(t.input.txHash,t.input.outputIndex,t.output.amount,t.output.address).selectUtxosFrom(e),b=d.fields[1].int*this.feePercentageBasisPoint/1e4;if(this.feePercentageBasisPoint>0&&b<1e6&&(b=1e6),b>0){let f=[{unit:"lovelace",quantity:Math.ceil(b).toString()}];o.txOut(this.ownerAddress,f)}let l=d.fields[1].int+Number(s);if(l>0){let f=(0,Z.serializeAddressObj)(d.fields[0],this.networkId),u=[{unit:"lovelace",quantity:l.toString()}];o.txOut(f,u)}return await o.complete(),this.mesh.txHex});r(this,"relistAsset",async(c,e)=>{let{utxos:a,walletAddress:t,collateral:d}=await this.getWalletInfoForTx(),s=c.output.amount.find(l=>l.unit!=="lovelace").unit,o=[{unit:s,quantity:"1"}],b=J0(t,e,s);return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,$.mConStr1)([])).txInScript(this.scriptCbor).txOut(this.scriptAddress,o).txOutInlineDatumValue(b,"JSON").changeAddress(t).requiredSignerHash((0,Z.deserializeAddress)(t).pubKeyHash).txInCollateral(d.input.txHash,d.input.outputIndex,d.output.amount,d.output.address).selectUtxosFrom(a).complete(),this.mesh.txHex});r(this,"getUtxoByTxHash",async c=>await this._getUtxoByTxHash(c,this.scriptCbor));this.ownerAddress=e,this.feePercentageBasisPoint=a;let{pubKeyHash:t,stakeCredentialHash:d}=(0,Z.deserializeAddress)(e);this.scriptCbor=this.getScriptCbor(t,d,a),this.scriptAddress=this.getScriptAddress(this.scriptCbor)}};r(C0,"getCompiledCode",(c=2)=>c===2?j0.validators[0].compiledCode:q0.validators[0].compiledCode);var _0=require("@meshsdk/common"),r0=require("@meshsdk/core"),G0=require("@meshsdk/core-cst");var uc={preamble:{title:"fabianbormann/payment-splitter",description:"Aiken contracts for project 'fabianbormann/payment-splitter'",version:"0.1.0",plutusVersion:"v2",compiler:{name:"Aiken",version:"v1.0.29-alpha+unknown"},license:"Apache-2.0"},validators:[{title:"payment_splitter.payout",datum:{title:"_datum",schema:{$ref:"#/definitions/payment_splitter~1Datum"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/payment_splitter~1Redeemer"}},parameters:[{title:"scriptHashes",schema:{$ref:"#/definitions/List$ByteArray"}}],compiledCode:"5903a5010000323232323232322322322322533300832323232323232323232323253330143375e6e9cccc8c0040048894ccc06800440084ccc00c00cc8c8cc004004010894ccc07400452f5c026464a66603866ebc00801440044cc080008cc010010004c084008c07c004c070004c074004cc8c004004894ccc06400452f5c026466036002660060066600e603a004466603066ebc00400928251301b001323300100100722533301900114bd7009980d1806180c1baa300c3018375460360026600400460380020169801018000100114a0646600200200444a66603000229444c94ccc058cdc39bad301b00233005533301900414c0103d87a80001300e3301a301b0044bd70240002660060060022940c06c004c8cc004004028894ccc05c00452f5c02660306ea0c8c8c8c8c8c94ccc068cdc424000002266e04008cdc08009802005880119980119804806919baf3010301c3754602060386ea8c014c070dd5000803240004466e00004c014dd59803180e9baa3006301d375400466600266010014466ebcc03cc06cdd51807980d9baa0010054800088cdc000098021bab3005301c3754004444646600200200844a66603e0022008266006604200266004004604400246600c64a66603066e1d200230193754002298103d87a8000132330010013756603c60366ea8008894ccc074004530103d87a8000132323232533301e33722911000021533301e3371e9101000021301633022375000297ae014c0103d87a8000133006006003375a603e0066eb8c074008c084008c07c004c8cc004004008894ccc0700045300103d87a8000132323232533301d33722911000021533301d3371e9101000021301533021374c00297ae014c0103d87a80001330060060033756603c0066eb8c070008c080008c07800520002301b301c001301900133002002301a0012253330133370e9001180a1baa00210011375a6030602a6ea800888c8cc00400400c894ccc05c00452f5c026464a66602c600a00426603400466008008002266008008002603600460320026eacc050c054008dd61809800980998098011bac3011001300d37546002601a6ea80108c040004c8cc004004020894ccc03800452f5c026601e60066601e602000297ae0330020023011001374a90000a4c26caca66600c66e1d20003007375400226464a666016601c0042930b1bae300c001300837540022ca66600866e1d20003005375400226464a66601260180042930b1bae300a001300637540022c6eb00055cd2ab9d5573caae7d5d02ba157441",hash:"0776032753d2900f7c1e933af4108c53851e10ca95fa10e34af90277"}],definitions:{ByteArray:{dataType:"bytes"},List$ByteArray:{dataType:"list",items:{$ref:"#/definitions/ByteArray"}},"payment_splitter/Datum":{title:"Datum",anyOf:[{title:"Datum",dataType:"constructor",index:0,fields:[{title:"owner",$ref:"#/definitions/ByteArray"}]}]},"payment_splitter/Redeemer":{title:"Redeemer",anyOf:[{title:"Redeemer",dataType:"constructor",index:0,fields:[{title:"message",$ref:"#/definitions/ByteArray"}]}]}}};var hc={preamble:{title:"fabianbormann/payment-splitter",description:"Aiken contracts for project 'fabianbormann/payment-splitter'",version:"0.1.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.0+unknown"},license:"Apache-2.0"},validators:[{title:"payment_splitter.payout.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/payment_splitter~1Datum"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/payment_splitter~1Redeemer"}},parameters:[{title:"scriptHashes",schema:{$ref:"#/definitions/List$ByteArray"}}],compiledCode:"5903ac0101003232323232323223225333004323232323253323300a3001300b37540042646464a66601a66e1d2000300e375400c26464a666024602a0042646464646464646464646464a66603666ebcdd3999918008009112999810800880109998018019919198008008021129998120008a5eb804c8c94ccc08ccdd7801002880089981380119802002000981400118130009811800981200099918008009129998100008a5eb804c8cc088004cc00c00ccc01cc0900088ccc07ccdd78008012504a26044002646600200201044a666040002297ae01330213007301f3754600e603e6ea8c088004cc008008c08c00402d3001018000100114a0646600200200444a66603e00229444c94ccc074cdc39bad302200233005533302000414c0103d87a80001300e3302130220044bd70240002660060060022940c088004c8cc004004028894ccc07800452f5c026603e6ea0c8c8c8c8c8c94ccc084cdc424000002266e04008cdc0800806080119980119804807119baf300b30233754601660466ea8c014c08cdd5000803240004466e00004c014dd5980318121baa30063024375400466600266010016466ebcc028c088dd5180518111baa0010054800088cdc000098021bab300530233754004444646600200200844a66604c0022008266006605000266004004605200246600c64a66603e602c60406ea80045300103d87a8000132330010013756604a60446ea8008894ccc090004530103d87a800013232323253330253372291100002153330253371e9101000021301633029375000297ae014c0103d87a8000133006006003375a604c0066eb8c090008c0a0008c098004c8cc004004008894ccc08c0045300103d87a800013232323253330243372291100002153330243371e9101000021301533028374c00297ae014c0103d87a80001330060060033756604a0066eb8c08c008c09c008c0940052000230223023001302000133002002302100122533301a3011301b3754004200226eb4c07cc070dd500111191980080080191299980f0008a5eb804c8c94ccc074c0140084cc084008cc0100100044cc010010004c088008c0800048c070004dd6980d180d8011bac3019001301930190023758602e00260266ea8030c8cc00400403c894ccc05400452f5c026602c60066602c602e00297ae0330020023018001374a90000b1bae3013001300f375400c2c60226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea8004526136563758002ae6955ceaab9e5573eae815d0aba21",hash:"18dd08b9d716f70842061bc6967787def27aee863ac223e048f68317"},{title:"payment_splitter.payout.else",parameters:[{title:"scriptHashes",schema:{$ref:"#/definitions/List$ByteArray"}}],compiledCode:"5903ac0101003232323232323223225333004323232323253323300a3001300b37540042646464a66601a66e1d2000300e375400c26464a666024602a0042646464646464646464646464a66603666ebcdd3999918008009112999810800880109998018019919198008008021129998120008a5eb804c8c94ccc08ccdd7801002880089981380119802002000981400118130009811800981200099918008009129998100008a5eb804c8cc088004cc00c00ccc01cc0900088ccc07ccdd78008012504a26044002646600200201044a666040002297ae01330213007301f3754600e603e6ea8c088004cc008008c08c00402d3001018000100114a0646600200200444a66603e00229444c94ccc074cdc39bad302200233005533302000414c0103d87a80001300e3302130220044bd70240002660060060022940c088004c8cc004004028894ccc07800452f5c026603e6ea0c8c8c8c8c8c94ccc084cdc424000002266e04008cdc0800806080119980119804807119baf300b30233754601660466ea8c014c08cdd5000803240004466e00004c014dd5980318121baa30063024375400466600266010016466ebcc028c088dd5180518111baa0010054800088cdc000098021bab300530233754004444646600200200844a66604c0022008266006605000266004004605200246600c64a66603e602c60406ea80045300103d87a8000132330010013756604a60446ea8008894ccc090004530103d87a800013232323253330253372291100002153330253371e9101000021301633029375000297ae014c0103d87a8000133006006003375a604c0066eb8c090008c0a0008c098004c8cc004004008894ccc08c0045300103d87a800013232323253330243372291100002153330243371e9101000021301533028374c00297ae014c0103d87a80001330060060033756604a0066eb8c08c008c09c008c0940052000230223023001302000133002002302100122533301a3011301b3754004200226eb4c07cc070dd500111191980080080191299980f0008a5eb804c8c94ccc074c0140084cc084008cc0100100044cc010010004c088008c0800048c070004dd6980d180d8011bac3019001301930190023758602e00260266ea8030c8cc00400403c894ccc05400452f5c026602c60066602c602e00297ae0330020023018001374a90000b1bae3013001300f375400c2c60226024004602000260186ea8008dc3a40042c601a601c004601800260180046014002600c6ea8004526136563758002ae6955ceaab9e5573eae815d0aba21",hash:"18dd08b9d716f70842061bc6967787def27aee863ac223e048f68317"}],definitions:{ByteArray:{dataType:"bytes"},List$ByteArray:{dataType:"list",items:{$ref:"#/definitions/ByteArray"}},VerificationKeyHash:{title:"VerificationKeyHash",dataType:"bytes"},"payment_splitter/Datum":{title:"Datum",anyOf:[{title:"Datum",dataType:"constructor",index:0,fields:[{title:"owner",$ref:"#/definitions/VerificationKeyHash"}]}]},"payment_splitter/Redeemer":{title:"Redeemer",anyOf:[{title:"Redeemer",dataType:"constructor",index:0,fields:[{title:"message",$ref:"#/definitions/ByteArray"}]}]}}};var X0=class extends O{constructor(c,e){super(c);r(this,"scriptCbor");r(this,"scriptAddress");r(this,"payees",[]);r(this,"wrapPayees",c=>(0,_0.list)(c.map(e=>(0,_0.builtinByteString)((0,r0.deserializeAddress)(e).pubKeyHash))));r(this,"getScriptCbor",()=>this.version===2?(0,G0.applyParamsToScript)(hc.validators[0].compiledCode,[this.wrapPayees(this.payees)],"JSON"):(0,G0.applyParamsToScript)(uc.validators[0].compiledCode,[this.wrapPayees(this.payees)],"JSON"));r(this,"sendLovelaceToSplitter",async c=>{if(this.wallet===null||this.wallet===void 0)throw new Error("Wallet not provided");let{walletAddress:e}=await this.getWalletInfoForTx(),{pubKeyHash:a}=(0,r0.deserializeAddress)(e),t={alternative:0,fields:[a]};return await new r0.Transaction({initiator:this.wallet}).sendLovelace({address:this.scriptAddress,datum:{value:t}},c.toString()).build()});r(this,"triggerPayout",async()=>{if(this.wallet===null||this.wallet===void 0)throw new Error("Wallet not provided");let{walletAddress:c,collateral:e}=await this.getWalletInfoForTx(),a={code:this.scriptCbor,version:this.languageVersion},t=await this.fetcher?.fetchAddressUTxOs(this.scriptAddress)||[],{pubKeyHash:d}=(0,r0.deserializeAddress)(c),s={alternative:0,fields:[d]},b={data:{alternative:0,fields:["Hello, World!"]}},l=new r0.Transaction({initiator:this.wallet}),f=0;for(let h of t){let y=h.output?.amount;if(y){let T=y.find(C=>C.unit==="lovelace");T&&(f+=Math.floor(Number(T.quantity)/this.payees.length)),l=l.redeemValue({value:h,script:a,datum:s,redeemer:b})}}l=l.setCollateral([e]);for(let h of this.payees)l=l.sendLovelace(h,f.toString());return l=l.setRequiredSigners([c]),await l.build()});c.wallet?c.wallet.getUsedAddresses().then(a=>{this.payees=[a[0],...e]}):(this.payees=e,console.warn("Wallet not provided. Therefore the payment address will not be added to the payees list which makes it impossible to trigger the payout.")),this.scriptCbor=this.getScriptCbor(),this.scriptAddress=this.getScriptAddress(this.scriptCbor)}};var H=require("@meshsdk/common"),V=require("@meshsdk/core"),mc=require("@meshsdk/core-cst");var p0={preamble:{title:"meshjs/plutus-nft",description:"Aiken contracts for project 'meshjs/plutus-nft'",version:"0.0.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.4+79d0e45"},license:"Apache-2.0"},validators:[{title:"oracle.oracle.spend",datum:{title:"datum_opt",schema:{$ref:"#/definitions/oracle~1OracleDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/oracle~1OracleRedeemer"}},compiledCode:"590879010100323232323232322533300232323232325332330083001300937540042646464646464a66601c60060022a66602260206ea8024540085854ccc038c01c00454ccc044c040dd50048a8010b0b18071baa008132323232323232533301330083014375401226464646464646464a666036602060386ea80044c8c8c8c8c8c94ccc090c09c0084c8c8c8c8c8c8c94ccc0a0c074c0a4dd50010a9998158018008a99981598170018a9998158020008a9998159817002099191919299981619b8733230010012253330310011480004cdc024004660040046068002601e6eacc040c0b8dd5002240082a6660580042002294052819191980080098082999816981100b8a5eb7bdb1804c8c8cc0040052f5bded8c044a66606600226606866ec13001014000374c00697adef6c60132323232533303433720910100002133038337609801014000374c00e00a2a666068602c00426607066ec13001014000374c00e00626607066ec0dd48011ba6001330060060033756606a0066eb8c0cc008c0dc008c0d4004c8cc0040052f5bded8c044a66606400226606666ec13001014000375003297adef6c60132323232533303333720910100002133037337609801014000375003a00a2a666066602a00426606e66ec13001014000375003a00626606e66ec0dd48011ba800133006006003375a60680066eb8c0c8008c0d8008c0d0004894ccc0c400452889929998179919b89375a600e002664464a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a6103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a80001323232325333039337220100042a66607266e3c0200084c080cc0f4dd4000a5eb80530103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004020894ccc0dc0045300103d87a80001323232325333038337220100042a66607066e3c0200084c07ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e4004dd7180c0009bae3014001375860680042660060060022940c0d0004c8cc004004074894ccc0c000452f5bded8c026644a66605e66ebcc05cc0c4dd500100c0991998008008011bab301430323754006444a66606a004200226466600800860720066644646600200200a44a66607400226607666ec0dd48021ba60034bd6f7b630099191919299981d99b9000800213303f337606ea4020dd30038028a99981d99b8f008002132533303c3031303d375400226608066ec0dd48049820981f1baa001004100432533303c533303f00114a22940530103d87a80001302333040374c00297ae03233300100100800222253330410021001132333004004304500333223233001001005225333046001133047337606ea4010dd4001a5eb7bdb1804c8c8c8c94ccc11ccdc800400109982599bb037520106ea001c01454ccc11ccdc78040010992999824181e98249baa00113304c337606ea4024c134c128dd50008020802192999824181e8008a60103d87a80001302f3304c375000297ae03370000e00226609666ec0dd48011ba800133006006003375a60900066eb8c118008c128008c120004dd718200009bad3041001304300213303f337606ea4008dd3000998030030019bab303c003375c6074004607c00460780026eb8c0d0004dd5981a800981b8010800981900099801001181980099baf3001302c375400466e9520043302e30113302e375066e0005920023302e37500286605c02697ae04bd70118179818181800098168020008008008992999814181098149baa0021533302b0030011533302b302e003132533302932533302d00114a02a66605a60600022646464a66605a66e3cdd718190018060a9998169807800899b87002480045280a50375c606260640046eb4c0c0c0c4c0c4004dd618178008a50300c018100114a064646600200203044a66605c00229404c94ccc0b0cdc79bae303100200414a2266006006002606200264a666052604460546ea80044dd7181718159baa0011375c605c60566ea8004c040c0a8dd50088008008a50302b0033758605460560046eb0c0a4c0a8c0a8004c8c8cc0a4080cc0a4dd39980100c1299981319baf300e30283754601460506ea80040104cc008c024dd5980518141baa300a30283754002466e3cdd718078008030a5033029374e6600402c4a66604c66ebcc038c0a0dd500080209980118049bab300a30283754002466e3cdd718078008030a504bd701119198008008019129998158008a50132533302930043758605c00429444cc00c00c004c0b800488c8cc00400400c894ccc0a800452f5c026464a666052600a00426605a00466008008002266008008002605c0046058002601460486ea8c018c090dd50039bae3026001163758604a002646600200260066eacc010c088dd5180218111baa00522533302400114bd7009919299981199981198029bae300b0024a09444cc09cdd38011980200200089980200200098140011bac3026001371e911002323300100100222533302300114bd7009919991119198008008019129998148008801899198159ba73302b375200c66056605000266056605200297ae033003003302d002302b001375c60440026eacc08c004cc00c00cc09c008c0940048c088c08c004c080c074dd50008b191980080080711299980f8008a6103d87a800013232533301e3375e600c60406ea80080544c014cc0880092f5c0266008008002604600460420026e9520002301e001301c301d002375a603600260360046eb4c064004c054dd5180c180a9baa009163758602e60306030603060300046eacc058004c058c058008dd6180a000980a180a0011bac3012001300e37540126e1d2000300f3010002300e001300a37540046e1d200216300b300c002300a001300a00230080013004375400229309b2b2b9a5573aaae7955cfaba05742ae881",hash:"975ec6fe46e63846aad882fecd8e1c7c4a41d7ed3a8aae463482935e"},{title:"oracle.oracle.else",redeemer:{schema:{}},compiledCode:"590879010100323232323232322533300232323232325332330083001300937540042646464646464a66601c60060022a66602260206ea8024540085854ccc038c01c00454ccc044c040dd50048a8010b0b18071baa008132323232323232533301330083014375401226464646464646464a666036602060386ea80044c8c8c8c8c8c94ccc090c09c0084c8c8c8c8c8c8c94ccc0a0c074c0a4dd50010a9998158018008a99981598170018a9998158020008a9998159817002099191919299981619b8733230010012253330310011480004cdc024004660040046068002601e6eacc040c0b8dd5002240082a6660580042002294052819191980080098082999816981100b8a5eb7bdb1804c8c8cc0040052f5bded8c044a66606600226606866ec13001014000374c00697adef6c60132323232533303433720910100002133038337609801014000374c00e00a2a666068602c00426607066ec13001014000374c00e00626607066ec0dd48011ba6001330060060033756606a0066eb8c0cc008c0dc008c0d4004c8cc0040052f5bded8c044a66606400226606666ec13001014000375003297adef6c60132323232533303333720910100002133037337609801014000375003a00a2a666066602a00426606e66ec13001014000375003a00626606e66ec0dd48011ba800133006006003375a60680066eb8c0c8008c0d8008c0d0004894ccc0c400452889929998179919b89375a600e002664464a666066605860686ea8004520001375a6070606a6ea8004c94ccc0ccc0b0c0d0dd50008a6103d87a80001323300100137566072606c6ea8008894ccc0e0004530103d87a80001323232325333039337220100042a66607266e3c0200084c080cc0f4dd4000a5eb80530103d87a8000133006006003375a60740066eb8c0e0008c0f0008c0e8004c8cc004004020894ccc0dc0045300103d87a80001323232325333038337220100042a66607066e3c0200084c07ccc0f0dd3000a5eb80530103d87a8000133006006003375660720066eb8c0dc008c0ec008c0e4004dd7180c0009bae3014001375860680042660060060022940c0d0004c8cc004004074894ccc0c000452f5bded8c026644a66605e66ebcc05cc0c4dd500100c0991998008008011bab301430323754006444a66606a004200226466600800860720066644646600200200a44a66607400226607666ec0dd48021ba60034bd6f7b630099191919299981d99b9000800213303f337606ea4020dd30038028a99981d99b8f008002132533303c3031303d375400226608066ec0dd48049820981f1baa001004100432533303c533303f00114a22940530103d87a80001302333040374c00297ae03233300100100800222253330410021001132333004004304500333223233001001005225333046001133047337606ea4010dd4001a5eb7bdb1804c8c8c8c94ccc11ccdc800400109982599bb037520106ea001c01454ccc11ccdc78040010992999824181e98249baa00113304c337606ea4024c134c128dd50008020802192999824181e8008a60103d87a80001302f3304c375000297ae03370000e00226609666ec0dd48011ba800133006006003375a60900066eb8c118008c128008c120004dd718200009bad3041001304300213303f337606ea4008dd3000998030030019bab303c003375c6074004607c00460780026eb8c0d0004dd5981a800981b8010800981900099801001181980099baf3001302c375400466e9520043302e30113302e375066e0005920023302e37500286605c02697ae04bd70118179818181800098168020008008008992999814181098149baa0021533302b0030011533302b302e003132533302932533302d00114a02a66605a60600022646464a66605a66e3cdd718190018060a9998169807800899b87002480045280a50375c606260640046eb4c0c0c0c4c0c4004dd618178008a50300c018100114a064646600200203044a66605c00229404c94ccc0b0cdc79bae303100200414a2266006006002606200264a666052604460546ea80044dd7181718159baa0011375c605c60566ea8004c040c0a8dd50088008008a50302b0033758605460560046eb0c0a4c0a8c0a8004c8c8cc0a4080cc0a4dd39980100c1299981319baf300e30283754601460506ea80040104cc008c024dd5980518141baa300a30283754002466e3cdd718078008030a5033029374e6600402c4a66604c66ebcc038c0a0dd500080209980118049bab300a30283754002466e3cdd718078008030a504bd701119198008008019129998158008a50132533302930043758605c00429444cc00c00c004c0b800488c8cc00400400c894ccc0a800452f5c026464a666052600a00426605a00466008008002266008008002605c0046058002601460486ea8c018c090dd50039bae3026001163758604a002646600200260066eacc010c088dd5180218111baa00522533302400114bd7009919299981199981198029bae300b0024a09444cc09cdd38011980200200089980200200098140011bac3026001371e911002323300100100222533302300114bd7009919991119198008008019129998148008801899198159ba73302b375200c66056605000266056605200297ae033003003302d002302b001375c60440026eacc08c004cc00c00cc09c008c0940048c088c08c004c080c074dd50008b191980080080711299980f8008a6103d87a800013232533301e3375e600c60406ea80080544c014cc0880092f5c0266008008002604600460420026e9520002301e001301c301d002375a603600260360046eb4c064004c054dd5180c180a9baa009163758602e60306030603060300046eacc058004c058c058008dd6180a000980a180a0011bac3012001300e37540126e1d2000300f3010002300e001300a37540046e1d200216300b300c002300a001300a00230080013004375400229309b2b2b9a5573aaae7955cfaba05742ae881",hash:"975ec6fe46e63846aad882fecd8e1c7c4a41d7ed3a8aae463482935e"},{title:"oracle_nft.oracle_nft.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/oracle_nft~1MintPolarity"}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}}],compiledCode:"59019e0101003232323232323222533300332323232325332330093001300a37540042646464a66601860080022a66601e601c6ea8018540085854ccc030cdc3a40040022a66601e601c6ea8018540085858c030dd50028992999805980198061baa0051533300b3003300c375464660020026eb0c044c038dd50041129998080008a60103d87a800013232533300f3375e01c600a60226ea80084cdd2a40006602600497ae01330040040013014002301200114a229404c8cc004004c8cc004004dd59809180998099809980998079baa00922533301100114bd70099199911191980080080191299980b80088018991980c9ba733019375200c66032602c00266032602e00297ae033003003301b0023019001375c60200026eacc044004cc00c00cc054008c04c004894ccc040004528899299980719299980799b8f375c600a00200c266e20dd6980a180a980a800a40002944dd618098010998018018008a50301300123010001375c601c60166ea8008dc3a40002c6018601a004601600260160046012002600a6ea8004526136565734aae7555cf2ab9f5740ae855d101",hash:"55ada3bfe32c4ff89d50cfdd86956e013a011fa28279112e424e596a"},{title:"oracle_nft.oracle_nft.else",redeemer:{schema:{}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}}],compiledCode:"59019e0101003232323232323222533300332323232325332330093001300a37540042646464a66601860080022a66601e601c6ea8018540085854ccc030cdc3a40040022a66601e601c6ea8018540085858c030dd50028992999805980198061baa0051533300b3003300c375464660020026eb0c044c038dd50041129998080008a60103d87a800013232533300f3375e01c600a60226ea80084cdd2a40006602600497ae01330040040013014002301200114a229404c8cc004004c8cc004004dd59809180998099809980998079baa00922533301100114bd70099199911191980080080191299980b80088018991980c9ba733019375200c66032602c00266032602e00297ae033003003301b0023019001375c60200026eacc044004cc00c00cc054008c04c004894ccc040004528899299980719299980799b8f375c600a00200c266e20dd6980a180a980a800a40002944dd618098010998018018008a50301300123010001375c601c60166ea8008dc3a40002c6018601a004601600260160046012002600a6ea8004526136565734aae7555cf2ab9f5740ae855d101",hash:"55ada3bfe32c4ff89d50cfdd86956e013a011fa28279112e424e596a"},{title:"plutus_nft.plutus_nft.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/plutus_nft~1MintPolarity"}},parameters:[{title:"collection_name",schema:{$ref:"#/definitions/ByteArray"}},{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"5904250101003232323232323223223225333006323232323253323300c3001300d3754004264646464a666020600a0022a66602660246ea801c540085854ccc040c00c00454ccc04cc048dd50038a8010b0b18081baa0061323232533301130063012375401026464646464a6660326038004264a66602e66e1d200430183754002264a666030601a60326ea80044c8c8c8c8c8c94ccc084c0900084c94ccc07cc050c080dd500109919191929998131814801099802801899192999812980d0008991929998151816801099192999814980f00089919299981718188010998068008a8020b181780098159baa00315333029301c0011323232323232533303230350021500816375a606600260660046eb4c0c4004c0c4008dd6981780098159baa00316302937540042a0082c6056002604e6ea800c54ccc094c06000454ccc0a0c09cdd50018a8010b0b18129baa00213232533302800114a02a66605060560022646464a66605066e3cdd7181680180e0a99981419b8f0010051301b00214a02940dd7181618168011bad302b302c302c001375860540022940c054048c8c8cdc5000a44101290033714002646466600200201a66600400401a90011112999814180d800899b8b3370000490302450013371666e00cdc1801000a40c066600600666e18008004cdc1800a4028444a66604e66e2000920141001133300300333706004900a19b8200148050cdc5010a4410220280016302700130270023025001302137540042c4464a666042602c00226464a66604c60520042a0082c6eb8c09c004c08cdd50018a999810980a00089919299981318148010a8020b1bae3027001302337540062c60426ea800858c088004c088008dd6981000098100011bad301e001301a37540022c603860326ea800458c020c060dd51801980c1baa00116301a00132330010013758603400844a666032002297ae01323253330183233001001300a3756600c60366ea8c018c06cdd500191299980e8008a50132533301b3371e6eb8c02cdd6181000100b8a51133003003001302000113301c00233004004001133004004001301d002301b00123019301a0013756602e603060306030603000260266ea80284c8cc004004c00cdd5980b980c180c180c180c180a1baa00b22533301600114a2264a66602864a66602a66e3cdd71802800804899b88375a600e00290000a51375860320042660060060022940c0640048c0580048c8cc004004008894ccc05400452f5c0264666444646600200200644a66603600220062646603a6e9ccc074dd48031980e980d0009980e980d800a5eb80cc00c00cc07c008c074004dd7180a0009bab301500133003003301900230170012301430153015001370e90011bae3011300e37540046e1d200016300f3010002300e001300e002300c0013008375400229309b2b1bae001375c002ae6955ceaab9e5573eae815d0aba201",hash:"227ea4150bb7c090b84178f7ff40bcaad280298db1611b6911252f33"},{title:"plutus_nft.plutus_nft.else",redeemer:{schema:{}},parameters:[{title:"collection_name",schema:{$ref:"#/definitions/ByteArray"}},{title:"oracle_nft",schema:{$ref:"#/definitions/PolicyId"}}],compiledCode:"5904250101003232323232323223223225333006323232323253323300c3001300d3754004264646464a666020600a0022a66602660246ea801c540085854ccc040c00c00454ccc04cc048dd50038a8010b0b18081baa0061323232533301130063012375401026464646464a6660326038004264a66602e66e1d200430183754002264a666030601a60326ea80044c8c8c8c8c8c94ccc084c0900084c94ccc07cc050c080dd500109919191929998131814801099802801899192999812980d0008991929998151816801099192999814980f00089919299981718188010998068008a8020b181780098159baa00315333029301c0011323232323232533303230350021500816375a606600260660046eb4c0c4004c0c4008dd6981780098159baa00316302937540042a0082c6056002604e6ea800c54ccc094c06000454ccc0a0c09cdd50018a8010b0b18129baa00213232533302800114a02a66605060560022646464a66605066e3cdd7181680180e0a99981419b8f0010051301b00214a02940dd7181618168011bad302b302c302c001375860540022940c054048c8c8cdc5000a44101290033714002646466600200201a66600400401a90011112999814180d800899b8b3370000490302450013371666e00cdc1801000a40c066600600666e18008004cdc1800a4028444a66604e66e2000920141001133300300333706004900a19b8200148050cdc5010a4410220280016302700130270023025001302137540042c4464a666042602c00226464a66604c60520042a0082c6eb8c09c004c08cdd50018a999810980a00089919299981318148010a8020b1bae3027001302337540062c60426ea800858c088004c088008dd6981000098100011bad301e001301a37540022c603860326ea800458c020c060dd51801980c1baa00116301a00132330010013758603400844a666032002297ae01323253330183233001001300a3756600c60366ea8c018c06cdd500191299980e8008a50132533301b3371e6eb8c02cdd6181000100b8a51133003003001302000113301c00233004004001133004004001301d002301b00123019301a0013756602e603060306030603000260266ea80284c8cc004004c00cdd5980b980c180c180c180c180a1baa00b22533301600114a2264a66602864a66602a66e3cdd71802800804899b88375a600e00290000a51375860320042660060060022940c0640048c0580048c8cc004004008894ccc05400452f5c0264666444646600200200644a66603600220062646603a6e9ccc074dd48031980e980d0009980e980d800a5eb80cc00c00cc07c008c074004dd7180a0009bab301500133003003301900230170012301430153015001370e90011bae3011300e37540046e1d200016300f3010002300e001300e002300c0013008375400229309b2b1bae001375c002ae6955ceaab9e5573eae815d0aba201",hash:"227ea4150bb7c090b84178f7ff40bcaad280298db1611b6911252f33"}],definitions:{ByteArray:{dataType:"bytes"},Int:{dataType:"integer"},Option$StakeCredential:{title:"Option",anyOf:[{title:"Some",description:"An optional value.",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/StakeCredential"}]},{title:"None",description:"Nothing.",dataType:"constructor",index:1,fields:[]}]},PaymentCredential:{title:"PaymentCredential",description:`A general structure for representing an on-chain \`Credential\`.
86
86
 
87
87
  Credentials are always one of two kinds: a direct public/private key
88
88
  pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/ScriptHash"}]}]},PolicyId:{title:"PolicyId",dataType:"bytes"},ScriptHash:{title:"ScriptHash",dataType:"bytes"},StakeCredential:{title:"StakeCredential",description:`Represent a type of object that can be represented either inline (by hash)
@@ -97,7 +97,7 @@
97
97
  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/PaymentCredential"},{title:"stake_credential",$ref:"#/definitions/Option$StakeCredential"}]}]},"cardano/address/Credential":{title:"Credential",description:`A general structure for representing an on-chain \`Credential\`.
98
98
 
99
99
  Credentials are always one of two kinds: a direct public/private key
100
- pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/ScriptHash"}]}]},"cardano/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/ByteArray"},{title:"output_index",$ref:"#/definitions/Int"}]}]},"oracle/OracleDatum":{title:"OracleDatum",anyOf:[{title:"OracleDatum",dataType:"constructor",index:0,fields:[{title:"count",$ref:"#/definitions/Int"},{title:"lovelace_price",$ref:"#/definitions/Int"},{title:"fee_address",$ref:"#/definitions/cardano~1address~1Address"}]}]},"oracle/OracleRedeemer":{title:"OracleRedeemer",anyOf:[{title:"MintPlutusNFT",dataType:"constructor",index:0,fields:[]},{title:"StopOracle",dataType:"constructor",index:1,fields:[]}]},"oracle_nft/MintPolarity":{title:"MintPolarity",anyOf:[{title:"RMint",dataType:"constructor",index:0,fields:[]},{title:"RBurn",dataType:"constructor",index:1,fields:[]}]},"plutus_nft/MintPolarity":{title:"MintPolarity",anyOf:[{title:"RMint",dataType:"constructor",index:0,fields:[]},{title:"RBurn",dataType:"constructor",index:1,fields:[]}]}}};var Q0=class extends O{constructor(c,e){super(c);r(this,"collectionName");r(this,"paramUtxo",{outputIndex:0,txHash:""});r(this,"oracleAddress");r(this,"getOracleCbor",()=>(0,V.applyCborEncoding)(p0.validators[0].compiledCode));r(this,"getOracleNFTCbor",()=>(0,V.applyParamsToScript)(p0.validators[2].compiledCode,[(0,v.mOutputReference)(this.paramUtxo.txHash,this.paramUtxo.outputIndex)]));r(this,"getNFTCbor",()=>{let c=(0,V.resolveScriptHash)(this.getOracleNFTCbor(),"V3");return(0,V.applyParamsToScript)(p0.validators[4].compiledCode,[(0,v.stringToHex)(this.collectionName),c])});r(this,"setupOracle",async c=>{let{utxos:e,collateral:a,walletAddress:t}=await this.getWalletInfoForTx();if(e?.length<=0)throw new Error("No UTxOs found");let d=e[0],s=p0.validators[2].compiledCode,o=(0,v.mOutputReference)(d.input.txHash,d.input.outputIndex),b=(0,V.applyParamsToScript)(s,[o]),l=(0,V.resolveScriptHash)(b,"V3"),f="",{pubKeyHash:u,stakeCredentialHash:h}=(0,V.deserializeAddress)(t),y=await this.mesh.txIn(d.input.txHash,d.input.outputIndex,d.output.amount,d.output.address).mintPlutusScriptV3().mint("1",l,f).mintingScript(b).mintRedeemerValue((0,v.mConStr0)([])).txOut(this.oracleAddress,[{unit:l,quantity:"1"}]).txOutInlineDatumValue((0,v.mConStr0)([0,c,(0,v.mPubKeyAddress)(u,h)])).txInCollateral(a.input.txHash,a.input.outputIndex,a.output.amount,a.output.address).changeAddress(t).selectUtxosFrom(e).complete();return this.paramUtxo=d.input,{tx:y,paramUtxo:d.input}});r(this,"mintPlutusNFT",async c=>{let{utxos:e,collateral:a,walletAddress:t}=await this.getWalletInfoForTx();if(e?.length<=0)throw new Error("No UTxOs found");let{nftIndex:d,policyId:s,lovelacePrice:o,oracleUtxo:b,oracleNftPolicyId:l,feeCollectorAddress:f,feeCollectorAddressObj:u}=await this.getOracleData(),h=`${this.collectionName} (${d})`,y=(0,v.stringToHex)(h),T=(0,v.conStr0)([(0,v.integer)(d+1),(0,v.integer)(o),u]),C=this.mesh.spendingPlutusScriptV3().txIn(b.input.txHash,b.input.outputIndex,b.output.amount,b.output.address).txInRedeemerValue((0,v.mConStr0)([])).txInScript(this.getOracleCbor()).txInInlineDatumPresent().txOut(this.oracleAddress,[{unit:l,quantity:"1"}]).txOutInlineDatumValue(T,"JSON").mintPlutusScriptV3().mint("1",s,y).mintingScript(this.getNFTCbor());if(c){let _={[s]:{[h]:{...c}}};C.metadataValue(721,_)}return C.mintRedeemerValue((0,v.mConStr0)([])).txOut(f,[{unit:"lovelace",quantity:o.toString()}]).txInCollateral(a.input.txHash,a.input.outputIndex,a.output.amount,a.output.address).changeAddress(t).selectUtxosFrom(e),await C.complete()});r(this,"getOracleData",async()=>{let c=(0,V.resolveScriptHash)(this.getOracleNFTCbor(),"V3"),e=(await this.getAddressUtxosWithToken(this.oracleAddress,c))[0],a=(0,mc.parseDatumCbor)(e.output.plutusData),t=a.fields[0].int,d=a.fields[1].int,s=a.fields[2],o=(0,V.serializeAddressObj)(s,this.networkId),b=(0,V.resolveScriptHash)(this.getNFTCbor(),"V3");return{nftIndex:t,policyId:b,lovelacePrice:d,oracleUtxo:e,oracleNftPolicyId:c,feeCollectorAddress:o,feeCollectorAddressObj:s}});r(this,"getUtxoByTxHash",async c=>await this._getUtxoByTxHash(c));this.collectionName=e.collectionName,e.paramUtxo&&(this.paramUtxo=e.paramUtxo),this.oracleAddress=(0,V.serializePlutusScript)({code:(0,V.applyCborEncoding)(p0.validators[0].compiledCode),version:"V3"},c.stakeCredential,c.networkId).address}};var F=require("@meshsdk/common"),c0=require("@meshsdk/core"),Y0=require("@meshsdk/core-cst");var yc={preamble:{title:"meshjs/swap",description:"Aiken contracts for project 'meshjs/swap'",version:"0.0.0",plutusVersion:"v2",compiler:{name:"Aiken",version:"v1.0.29-alpha+unknown"},license:"Apache-2.0"},validators:[{title:"swap.swap",datum:{title:"datum",schema:{$ref:"#/definitions/swap~1SwapDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/swap~1SwapRedeemer"}},compiledCode:"590827010000323232323232322323232232253330083232533300a3007300b375400226464a6466601a6014601c6ea80204c94ccc038c030c03cdd5000899191919191919191919299980c299980d8048a501533301b301e00914a2294054ccc06000440085280a50330043330030084bd6f7b63011299980c99baf300e301b3754602260366ea800802c4cc010004dd59808980d9baa3011301b37540042002600c6eacc03cc064dd500b19801999119980200125eb7bdb180894ccc068cdd79807980e1baa0020031330050013756602460386ea80084004dd61802180c1baa300b3018375401e601660306ea8054c014dd59802180c1baa0152232333001001003002222533301d00210011323330040043021003333300b002375c60380026eacc074004888c94ccc07d4ccc0880045288a5014c103d87a80001301333023374c00297ae0323330010010030022225333024002100113233300400430280033322323300100100522533302900113302a337606ea4010dd4001a5eb7bdb1804c8c8c8c94ccc0a8cdc800400109981719bb037520106ea001c01454ccc0a8cdc78040010992999815981498161baa00113302f337606ea4024c0c0c0b4dd5000802080219299981598148008a60103d87a80001301f3302f375000297ae03370000e00226605c66ec0dd48011ba800133006006003375a60560066eb8c0a4008c0b4008c0ac004dd718118009bad30240013026002301f002222323300100100422533301c0011004133003301e00133002002301f001223233001001323300100100322533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004894ccc068004528899299980c1919b89375a600e002664464a6660386032603a6ea8004520001375a6042603c6ea8004c94ccc070c064c074dd50008a6103d87a80001323300100137566044603e6ea8008894ccc084004530103d87a80001323232325333022337220100042a66604466e3c0200084c058cc098dd4000a5eb80530103d87a8000133006006003375a60460066eb8c084008c094008c08c004c8cc004004024894ccc0800045300103d87a80001323232325333021337220100042a66604266e3c0200084c054cc094dd3000a5eb80530103d87a8000133006006003375660440066eb8c080008c090008c088004dd718070009bae30110013758603a0042660060060022940c0740048c060c064c0640048c8cc004004008894ccc05c00452f5bded8c02664464646666010006004002444c646400464646600200200644a66603c002293099299980f8008a99980e18021bad301e30210021498584c8c8c8c94ccc080cdc81bae3021004375c60420062a666040601000226600e00e660480060042c2c6eb4c08400cc09000cc088008c084008c0840048ccc064c05c00528251375660320066eb8c05c008c064004cc008008c0680048888c8cc004004014894ccc0640044cc068cdd81ba9005374c00897adef6c60132323232533301a3372001200426603c66ec0dd48049ba60080051533301a3371e012004264a666036603260386ea80044cc07ccdd81ba900a3020301d3754002008200866600e01201000226603c66ec0dd48011ba600133006006003375660360066eb8c064008c074008c06c004c8cc004004dd6180298091baa30053012375401244a666028002297ae01323253330133375e6010602a6ea8c02cc054dd500100289980b80119802002000899802002000980c001180b000980198081baa300630103754602660206ea800458c8cc004004dd6180198081baa30033010375400e44a666024002298103d87a80001323253330113375e600c60266ea800801c4c014cc0540092f5c0266008008002602c0046028002264a66601c6018601e6ea80044cc88c8cc00400400c894ccc054004528099299980999b8f375c603000400829444cc00c00c004c060004dd61809980a180a180a180a180a180a180a180a18081baa30033010375400e6eb8c04cc040dd50008b192999807180618079baa001130023301230133010375400297ae014c0103d87a80003002300f37546004601e6ea8030dd2a400046022002601e60186ea8004528180098059baa0022300e300f00114984d958c94ccc01cc01400454ccc028c024dd50010a4c2c2a66600e60080022a66601460126ea80085261616300737540026464a66600c6008600e6ea80144c8c8c8c8c8c94ccc03cc0480084c8c8c926330090032323300b375660240044646eb4c050008dd718090009bae3010001330080042323300a375660220044646eb4c04c008dd718088009bae300f001533300c300a300d375400a264646464a666026602c0042646493192999809180800089919299980b980d00109924c64a66602a602600226464a666034603a0042649318098008b180d800980b9baa0021533301530120011323232323232533301e3021002149858dd6980f800980f8011bad301d001301d002375a6036002602e6ea800858c054dd50008b180c000980a1baa00315333012300f00115333015301437540062930b0b18091baa002300c00316301400130140023012001300e375400a2c2c6eacc040004c040008dd598070009807001180600098041baa0051622323300100100322533300c00114984c8cc00c00cc040008c00cc0380048c94ccc018c0100044c8c94ccc02cc03800852616375c601800260106ea800854ccc018c00c0044c8c94ccc02cc03800852616375c601800260106ea800858c018dd50009b8748008dc3a4000ae6955ceaab9e5573eae815d0aba201",hash:"5db0485a71b88eb31dec330bcf994509ea24b709498f90f9b1863902"}],definitions:{ByteArray:{dataType:"bytes"},Int:{dataType:"integer"},List$Pair$ByteArray_Int:{dataType:"map",keys:{$ref:"#/definitions/ByteArray"},values:{$ref:"#/definitions/Int"}},List$Pair$ByteArray_List$Pair$ByteArray_Int:{dataType:"map",keys:{$ref:"#/definitions/ByteArray"},values:{$ref:"#/definitions/List$Pair$ByteArray_Int"}},"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.
100
+ pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/ScriptHash"}]}]},"cardano/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/ByteArray"},{title:"output_index",$ref:"#/definitions/Int"}]}]},"oracle/OracleDatum":{title:"OracleDatum",anyOf:[{title:"OracleDatum",dataType:"constructor",index:0,fields:[{title:"count",$ref:"#/definitions/Int"},{title:"lovelace_price",$ref:"#/definitions/Int"},{title:"fee_address",$ref:"#/definitions/cardano~1address~1Address"}]}]},"oracle/OracleRedeemer":{title:"OracleRedeemer",anyOf:[{title:"MintPlutusNFT",dataType:"constructor",index:0,fields:[]},{title:"StopOracle",dataType:"constructor",index:1,fields:[]}]},"oracle_nft/MintPolarity":{title:"MintPolarity",anyOf:[{title:"RMint",dataType:"constructor",index:0,fields:[]},{title:"RBurn",dataType:"constructor",index:1,fields:[]}]},"plutus_nft/MintPolarity":{title:"MintPolarity",anyOf:[{title:"RMint",dataType:"constructor",index:0,fields:[]},{title:"RBurn",dataType:"constructor",index:1,fields:[]}]}}};var Q0=class extends O{constructor(c,e){super(c);r(this,"collectionName");r(this,"paramUtxo",{outputIndex:0,txHash:""});r(this,"oracleAddress");r(this,"getOracleCbor",()=>(0,V.applyCborEncoding)(p0.validators[0].compiledCode));r(this,"getOracleNFTCbor",()=>(0,V.applyParamsToScript)(p0.validators[2].compiledCode,[(0,H.mOutputReference)(this.paramUtxo.txHash,this.paramUtxo.outputIndex)]));r(this,"getNFTCbor",()=>{let c=(0,V.resolveScriptHash)(this.getOracleNFTCbor(),"V3");return(0,V.applyParamsToScript)(p0.validators[4].compiledCode,[(0,H.stringToHex)(this.collectionName),c])});r(this,"setupOracle",async c=>{let{utxos:e,collateral:a,walletAddress:t}=await this.getWalletInfoForTx();if(e?.length<=0)throw new Error("No UTxOs found");let d=e[0],s=p0.validators[2].compiledCode,o=(0,H.mOutputReference)(d.input.txHash,d.input.outputIndex),b=(0,V.applyParamsToScript)(s,[o]),l=(0,V.resolveScriptHash)(b,"V3"),f="",{pubKeyHash:u,stakeCredentialHash:h}=(0,V.deserializeAddress)(t),y=await this.mesh.txIn(d.input.txHash,d.input.outputIndex,d.output.amount,d.output.address).mintPlutusScriptV3().mint("1",l,f).mintingScript(b).mintRedeemerValue((0,H.mConStr0)([])).txOut(this.oracleAddress,[{unit:l,quantity:"1"}]).txOutInlineDatumValue((0,H.mConStr0)([0,c,(0,H.mPubKeyAddress)(u,h)])).txInCollateral(a.input.txHash,a.input.outputIndex,a.output.amount,a.output.address).changeAddress(t).selectUtxosFrom(e).complete();return this.paramUtxo=d.input,{tx:y,paramUtxo:d.input}});r(this,"mintPlutusNFT",async c=>{let{utxos:e,collateral:a,walletAddress:t}=await this.getWalletInfoForTx();if(e?.length<=0)throw new Error("No UTxOs found");let{nftIndex:d,policyId:s,lovelacePrice:o,oracleUtxo:b,oracleNftPolicyId:l,feeCollectorAddress:f,feeCollectorAddressObj:u}=await this.getOracleData(),h=`${this.collectionName} (${d})`,y=(0,H.stringToHex)(h),T=(0,H.conStr0)([(0,H.integer)(d+1),(0,H.integer)(o),u]),C=this.mesh.spendingPlutusScriptV3().txIn(b.input.txHash,b.input.outputIndex,b.output.amount,b.output.address).txInRedeemerValue((0,H.mConStr0)([])).txInScript(this.getOracleCbor()).txInInlineDatumPresent().txOut(this.oracleAddress,[{unit:l,quantity:"1"}]).txOutInlineDatumValue(T,"JSON").mintPlutusScriptV3().mint("1",s,y).mintingScript(this.getNFTCbor());if(c){let _={[s]:{[h]:{...c}}};C.metadataValue(721,_)}return C.mintRedeemerValue((0,H.mConStr0)([])).txOut(f,[{unit:"lovelace",quantity:o.toString()}]).txInCollateral(a.input.txHash,a.input.outputIndex,a.output.amount,a.output.address).changeAddress(t).selectUtxosFrom(e),await C.complete()});r(this,"getOracleData",async()=>{let c=(0,V.resolveScriptHash)(this.getOracleNFTCbor(),"V3"),e=(await this.getAddressUtxosWithToken(this.oracleAddress,c))[0],a=(0,mc.parseDatumCbor)(e.output.plutusData),t=a.fields[0].int,d=a.fields[1].int,s=a.fields[2],o=(0,V.serializeAddressObj)(s,this.networkId),b=(0,V.resolveScriptHash)(this.getNFTCbor(),"V3");return{nftIndex:t,policyId:b,lovelacePrice:d,oracleUtxo:e,oracleNftPolicyId:c,feeCollectorAddress:o,feeCollectorAddressObj:s}});r(this,"getUtxoByTxHash",async c=>await this._getUtxoByTxHash(c));this.collectionName=e.collectionName,e.paramUtxo&&(this.paramUtxo=e.paramUtxo),this.oracleAddress=(0,V.serializePlutusScript)({code:(0,V.applyCborEncoding)(p0.validators[0].compiledCode),version:"V3"},c.stakeCredential,c.networkId).address}};var F=require("@meshsdk/common"),c0=require("@meshsdk/core"),Y0=require("@meshsdk/core-cst");var yc={preamble:{title:"meshjs/swap",description:"Aiken contracts for project 'meshjs/swap'",version:"0.0.0",plutusVersion:"v2",compiler:{name:"Aiken",version:"v1.0.29-alpha+unknown"},license:"Apache-2.0"},validators:[{title:"swap.swap",datum:{title:"datum",schema:{$ref:"#/definitions/swap~1SwapDatum"}},redeemer:{title:"redeemer",schema:{$ref:"#/definitions/swap~1SwapRedeemer"}},compiledCode:"590827010000323232323232322323232232253330083232533300a3007300b375400226464a6466601a6014601c6ea80204c94ccc038c030c03cdd5000899191919191919191919299980c299980d8048a501533301b301e00914a2294054ccc06000440085280a50330043330030084bd6f7b63011299980c99baf300e301b3754602260366ea800802c4cc010004dd59808980d9baa3011301b37540042002600c6eacc03cc064dd500b19801999119980200125eb7bdb180894ccc068cdd79807980e1baa0020031330050013756602460386ea80084004dd61802180c1baa300b3018375401e601660306ea8054c014dd59802180c1baa0152232333001001003002222533301d00210011323330040043021003333300b002375c60380026eacc074004888c94ccc07d4ccc0880045288a5014c103d87a80001301333023374c00297ae0323330010010030022225333024002100113233300400430280033322323300100100522533302900113302a337606ea4010dd4001a5eb7bdb1804c8c8c8c94ccc0a8cdc800400109981719bb037520106ea001c01454ccc0a8cdc78040010992999815981498161baa00113302f337606ea4024c0c0c0b4dd5000802080219299981598148008a60103d87a80001301f3302f375000297ae03370000e00226605c66ec0dd48011ba800133006006003375a60560066eb8c0a4008c0b4008c0ac004dd718118009bad30240013026002301f002222323300100100422533301c0011004133003301e00133002002301f001223233001001323300100100322533301b00114bd7009919991119198008008019129998108008801899198119ba733023375200c66046604000266046604200297ae03300300330250023023001375c60340026eacc06c004cc00c00cc07c008c074004894ccc068004528899299980c1919b89375a600e002664464a6660386032603a6ea8004520001375a6042603c6ea8004c94ccc070c064c074dd50008a6103d87a80001323300100137566044603e6ea8008894ccc084004530103d87a80001323232325333022337220100042a66604466e3c0200084c058cc098dd4000a5eb80530103d87a8000133006006003375a60460066eb8c084008c094008c08c004c8cc004004024894ccc0800045300103d87a80001323232325333021337220100042a66604266e3c0200084c054cc094dd3000a5eb80530103d87a8000133006006003375660440066eb8c080008c090008c088004dd718070009bae30110013758603a0042660060060022940c0740048c060c064c0640048c8cc004004008894ccc05c00452f5bded8c02664464646666010006004002444c646400464646600200200644a66603c002293099299980f8008a99980e18021bad301e30210021498584c8c8c8c94ccc080cdc81bae3021004375c60420062a666040601000226600e00e660480060042c2c6eb4c08400cc09000cc088008c084008c0840048ccc064c05c00528251375660320066eb8c05c008c064004cc008008c0680048888c8cc004004014894ccc0640044cc068cdd81ba9005374c00897adef6c60132323232533301a3372001200426603c66ec0dd48049ba60080051533301a3371e012004264a666036603260386ea80044cc07ccdd81ba900a3020301d3754002008200866600e01201000226603c66ec0dd48011ba600133006006003375660360066eb8c064008c074008c06c004c8cc004004dd6180298091baa30053012375401244a666028002297ae01323253330133375e6010602a6ea8c02cc054dd500100289980b80119802002000899802002000980c001180b000980198081baa300630103754602660206ea800458c8cc004004dd6180198081baa30033010375400e44a666024002298103d87a80001323253330113375e600c60266ea800801c4c014cc0540092f5c0266008008002602c0046028002264a66601c6018601e6ea80044cc88c8cc00400400c894ccc054004528099299980999b8f375c603000400829444cc00c00c004c060004dd61809980a180a180a180a180a180a180a180a18081baa30033010375400e6eb8c04cc040dd50008b192999807180618079baa001130023301230133010375400297ae014c0103d87a80003002300f37546004601e6ea8030dd2a400046022002601e60186ea8004528180098059baa0022300e300f00114984d958c94ccc01cc01400454ccc028c024dd50010a4c2c2a66600e60080022a66601460126ea80085261616300737540026464a66600c6008600e6ea80144c8c8c8c8c8c94ccc03cc0480084c8c8c926330090032323300b375660240044646eb4c050008dd718090009bae3010001330080042323300a375660220044646eb4c04c008dd718088009bae300f001533300c300a300d375400a264646464a666026602c0042646493192999809180800089919299980b980d00109924c64a66602a602600226464a666034603a0042649318098008b180d800980b9baa0021533301530120011323232323232533301e3021002149858dd6980f800980f8011bad301d001301d002375a6036002602e6ea800858c054dd50008b180c000980a1baa00315333012300f00115333015301437540062930b0b18091baa002300c00316301400130140023012001300e375400a2c2c6eacc040004c040008dd598070009807001180600098041baa0051622323300100100322533300c00114984c8cc00c00cc040008c00cc0380048c94ccc018c0100044c8c94ccc02cc03800852616375c601800260106ea800854ccc018c00c0044c8c94ccc02cc03800852616375c601800260106ea800858c018dd50009b8748008dc3a4000ae6955ceaab9e5573eae815d0aba201",hash:"5db0485a71b88eb31dec330bcf994509ea24b709498f90f9b1863902"}],definitions:{ByteArray:{dataType:"bytes"},Int:{dataType:"integer"},List$Pair$ByteArray_Int:{dataType:"map",keys:{$ref:"#/definitions/ByteArray"},values:{$ref:"#/definitions/Int"}},List$Pair$ByteArray_List$Pair$ByteArray_Int:{dataType:"map",keys:{$ref:"#/definitions/ByteArray"},values:{$ref:"#/definitions/List$Pair$ByteArray_Int"}},"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.
101
101
 
102
102
  Note that legacy bootstrap addresses (a.k.a. 'Byron addresses') are
103
103
  completely excluded from Plutus contexts. Thus, from an on-chain
@@ -124,12 +124,12 @@
124
124
  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/PaymentCredential"},{title:"stake_credential",$ref:"#/definitions/Option$StakeCredential"}]}]},"cardano/address/Credential":{title:"Credential",description:`A general structure for representing an on-chain \`Credential\`.
125
125
 
126
126
  Credentials are always one of two kinds: a direct public/private key
127
- pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/ScriptHash"}]}]},"swap/SwapDatum":{title:"SwapDatum",anyOf:[{title:"SwapDatum",dataType:"constructor",index:0,fields:[{title:"initiator",$ref:"#/definitions/cardano~1address~1Address"},{title:"to_provide",$ref:"#/definitions/MValue"},{title:"to_receive",$ref:"#/definitions/MValue"}]}]},"swap/SwapRedeemer":{title:"SwapRedeemer",anyOf:[{title:"Cancel",dataType:"constructor",index:0,fields:[]},{title:"Swap",dataType:"constructor",index:1,fields:[]}]}}};var Z0=class extends O{constructor(c){super(c);r(this,"scriptCbor");r(this,"scriptAddress");r(this,"getScriptCbor",()=>this.version===2?(0,Y0.applyParamsToScript)(xc.validators[0].compiledCode,[]):(0,Y0.applyParamsToScript)(yc.validators[0].compiledCode,[]));r(this,"initiateSwap",async(c,e)=>{let{utxos:a,walletAddress:t,collateral:d}=await this.getWalletInfoForTx(),{pubKeyHash:s,stakeCredentialHash:o}=(0,c0.deserializeAddress)(t),b=(0,F.conStr0)([(0,F.pubKeyAddress)(s,o),(0,F.value)(c),(0,F.value)(e)]);return await this.mesh.txOut(this.scriptAddress,c).txOutInlineDatumValue(b,"JSON").changeAddress(t).txInCollateral(d.input.txHash,d.input.outputIndex,d.output.amount,d.output.address).selectUtxosFrom(a).complete(),this.mesh.txHex});r(this,"acceptSwap",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx(),d=(0,c0.deserializeDatum)(c.output.plutusData),s=(0,c0.serializeAddressObj)(d.fields[0],this.networkId),o=d.fields[2];return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,F.mConStr1)([])).txInScript(this.scriptCbor).txOut(s,F.MeshValue.fromValue(o).toAssets()).changeAddress(a).txInCollateral(t.input.txHash,t.input.outputIndex,t.output.amount,t.output.address).selectUtxosFrom(e).complete(),this.mesh.txHex});r(this,"cancelSwap",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx(),d=(0,c0.deserializeDatum)(c.output.plutusData),s=(0,c0.serializeAddressObj)(d.fields[0],this.networkId);return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,F.mConStr0)([])).txInScript(this.scriptCbor).changeAddress(a).txInCollateral(t.input.txHash,t.input.outputIndex,t.output.amount,t.output.address).requiredSignerHash((0,c0.deserializeAddress)(s).pubKeyHash).selectUtxosFrom(e).complete(),this.mesh.txHex});r(this,"getUtxoByTxHash",async c=>await this._getUtxoByTxHash(c,this.scriptCbor));this.scriptCbor=this.getScriptCbor(),this.scriptAddress=this.getScriptAddress(this.scriptCbor)}};var s0=require("@meshsdk/common"),u0=require("@meshsdk/core"),cc=require("@meshsdk/core-cst");var gc={preamble:{title:"meshjs/vesting",description:"Aiken contracts for project 'meshjs/vesting'",version:"0.0.0",plutusVersion:"v2",compiler:{name:"Aiken",version:"v1.0.29-alpha+unknown"},license:"Apache-2.0"},validators:[{title:"vesting.vesting",datum:{title:"datum",schema:{$ref:"#/definitions/vesting~1types~1VestingDatum"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},compiledCode:"5901c40100003232323232323223222533300532533233007300130083754600460126ea800c4c8c8c94ccc028cc004dd6180118061baa3003300c375400c6eb8c014c030dd50048a511533300a330013758600460186ea8c00cc030dd50031bae300f30103010300c3754012266446464646464a666022601660246ea80084c94ccc0480104cdc40038008011bad301630133754004002264a666022601660246ea80084c94ccc0480100084cdc48038009bad3016301337540040022940c050008cdc424000601e6ea8c04cc050004cc044c048004cc044ccc034cdc424000601c6ea8c048c04c00530103d87a80004c0103d87980004bd7018071baa3005300e3754004601e602060206020602060206020602060186ea8c00cc030dd50031bad3003300c3754012294088c8cc00400400c894ccc040004528099299980719b8f375c602600400829444cc00c00c004c04c0048c038c03cc03cc03cc03cc03cc03cc03cc03c0048c034004dc3a400429408c02cc0300045261365653330023370e900018019baa0011323232323232533300b300e002149858dd7180600098060011bae300a001300a002375a601000260086ea8004595cd2ab9d5573caae7d5d02ba157441",hash:"ac96a3fa3cabf670268a88720402c715ed5fd73ffb3276e6092ead00"}],definitions:{ByteArray:{dataType:"bytes"},Data:{title:"Data",description:"Any Plutus data."},Int:{dataType:"integer"},"vesting/types/VestingDatum":{title:"VestingDatum",anyOf:[{title:"VestingDatum",dataType:"constructor",index:0,fields:[{title:"lock_until",description:"POSIX time in second, e.g. 1672843961000",$ref:"#/definitions/Int"},{title:"owner",description:"Owner's credentials",$ref:"#/definitions/ByteArray"},{title:"beneficiary",description:"Beneficiary's credentials",$ref:"#/definitions/ByteArray"}]}]}}};var Ic={preamble:{title:"meshjs/vesting",description:"Aiken contracts for project 'meshjs/vesting'",version:"0.0.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.0+unknown"},license:"Apache-2.0"},validators:[{title:"vesting.vesting.spend",datum:{title:"datum_opt",schema:{$ref:"#/definitions/vesting~1VestingDatum"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},compiledCode:"5901a7010100323232323232322533300232323232325332330083001300937540042646464a66601666e1d2000300c37540022646464a66601c660026eb0c008c040dd50059bae3013301430103754006294454ccc038cc004dd6180118081baa00b375c60266028602860206ea800c4c8cc88c8c8c8c8c94ccc058c03cc05cdd5001099299980b802099b88007001002375a603660306ea80080044c94ccc058c03cc05cdd5001099299980b802001099b89007001375a603660306ea8008004528180c8011806180a1baa3018301900133016301700133016333012300b30133754602e603000298103d87a80004c0103d87980004bd7018099baa3003301337540046028602a602a602a602a602a602a602a60226ea8030dd6980098089baa0042301400114a044646600200200644a66602800229404c94ccc048cdc79bae301700200414a2266006006002602e00246024602660266026602660266026602660260026020601a6ea800458c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba21",hash:"d13324c13a48b69d67ccfc88e3e87f046f4417f57f5c740d515249fb"},{title:"vesting.vesting.else",compiledCode:"5901a7010100323232323232322533300232323232325332330083001300937540042646464a66601666e1d2000300c37540022646464a66601c660026eb0c008c040dd50059bae3013301430103754006294454ccc038cc004dd6180118081baa00b375c60266028602860206ea800c4c8cc88c8c8c8c8c94ccc058c03cc05cdd5001099299980b802099b88007001002375a603660306ea80080044c94ccc058c03cc05cdd5001099299980b802001099b89007001375a603660306ea8008004528180c8011806180a1baa3018301900133016301700133016333012300b30133754602e603000298103d87a80004c0103d87980004bd7018099baa3003301337540046028602a602a602a602a602a602a602a60226ea8030dd6980098089baa0042301400114a044646600200200644a66602800229404c94ccc048cdc79bae301700200414a2266006006002602e00246024602660266026602660266026602660260026020601a6ea800458c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba21",hash:"d13324c13a48b69d67ccfc88e3e87f046f4417f57f5c740d515249fb"}],definitions:{ByteArray:{dataType:"bytes"},Data:{title:"Data",description:"Any Plutus data."},Int:{dataType:"integer"},"vesting/VestingDatum":{title:"VestingDatum",anyOf:[{title:"VestingDatum",dataType:"constructor",index:0,fields:[{title:"lock_until",description:"POSIX time in milliseconds, e.g. 1672843961000",$ref:"#/definitions/Int"},{title:"owner",description:"Owner's credentials",$ref:"#/definitions/ByteArray"},{title:"beneficiary",description:"Beneficiary's credentials",$ref:"#/definitions/ByteArray"}]}]}}};var ec=class extends O{constructor(c){super(c);r(this,"scriptCbor");r(this,"scriptAddress");r(this,"getScriptCbor",()=>this.version===2?(0,cc.applyParamsToScript)(Ic.validators[0].compiledCode,[]):(0,cc.applyParamsToScript)(gc.validators[0].compiledCode,[]));r(this,"depositFund",async(c,e,a)=>{let{utxos:t,walletAddress:d}=await this.getWalletInfoForTx(),{pubKeyHash:s}=(0,u0.deserializeAddress)(d),{pubKeyHash:o}=(0,u0.deserializeAddress)(a);return await this.mesh.txOut(this.scriptAddress,c).txOutInlineDatumValue((0,s0.mConStr0)([e,s,o])).changeAddress(d).selectUtxosFrom(t).complete(),this.mesh.txHex});r(this,"withdrawFund",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx(),{input:d,output:s}=t,{pubKeyHash:o}=(0,u0.deserializeAddress)(a),b=(0,u0.deserializeDatum)(c.output.plutusData),l=(0,s0.unixTimeToEnclosingSlot)(Math.min(Number(b.fields[0].int),Date.now()-15e3),this.networkId===0?s0.SLOT_CONFIG_NETWORK.preprod:s0.SLOT_CONFIG_NETWORK.mainnet)+1;return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,this.scriptAddress).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue("").txInScript(this.scriptCbor).txOut(a,[]).txInCollateral(d.txHash,d.outputIndex,s.amount,s.address).invalidBefore(l).requiredSignerHash(o).changeAddress(a).selectUtxosFrom(e).complete(),this.mesh.txHex});r(this,"getUtxoByTxHash",async c=>await this._getUtxoByTxHash(c,this.scriptCbor));this.scriptCbor=this.getScriptCbor(),this.scriptAddress=this.getScriptAddress(this.scriptCbor)}};var p=require("@meshsdk/common"),n0=require("@meshsdk/core");var k=require("@meshsdk/common"),U=require("@meshsdk/core"),H0=require("@meshsdk/core-cst");var kc=Mc(require("cbor"),1);var wc={preamble:{title:"cip113/freeze-unfreeze",description:"CIP113 Sub Standard for freeze/unfreeze capabilities",version:"0.0.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.21+42babe5"},license:"Apache-2.0"},validators:[{title:"blacklist_mint.blacklist_mint.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/types~1BlacklistRedeemer"}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"manager_pkh",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"590e9e0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9cab9a9bae0024888888888a60022a6600692123657870656374205b6e6f64655f6f75747075745d203d206e6f64655f6f75747075747300168a99801a4924657870656374205b5061697228746e2c20717479295d203d20746f6b656e5f706169727300168a99801a493465787065637420636f766572696e675f6e6f64653a20426c61636b6c6973744e6f6465203d20636f766572696e675f646174756d00168a99801a4925657870656374205b636f766572696e675f696e7075745d203d206e6f64655f696e7075747300168a99801a4927657870656374205b6f75747075745f6e6f64655f6f75745d203d206e6f64655f6f75747075747300168a99801a4926657870656374205b6e6f64655f612c206e6f64655f625d203d20696e7075745f646174756d7300168a99801a4922657870656374206e6f64653a20426c61636b6c6973744e6f6465203d20646174756d00168a99801a491b72656465656d65723a20426c61636b6c69737452656465656d657200164888888896600264653001301200198091809800cdc3a400130120024888966002600460246ea800e264b30010058999119912cc004c01c0062b30013018375401300280620328acc004c010006264b3001001806c4c96600200300e807403a01d13259800980f801c01601e80e0dd7000a03e301c001406860306ea80262b300130030018992cc00400601b13259800800c03a01d00e80744c966002603e007005807a038375c00280f8c07000501a180c1baa009806202a405480a8660024603460360032301a301b301b0019b804800a460346036603660366036003223232330010010042259800800c00e2646644b30013372200e00515980099b8f0070028800c01901b44cc014014c08801101b1bae301b00137566038002603c00280e052f5bded8c1222598009804180c1baa0038992cc00400600513259800800c00e007003801c4cc89660020030058992cc00400600d006803401a264b30013023003804401d0201bae001408c604000280f0dd7000980f8012040301d001406c60326ea800e00280b244646600200200644b30010018a5eb822660386006603a00266004004603c00280da46034603660366036603660366036603660360032232330010010032259800800c528456600260066eb8c0740062946266004004603c00280b901b4c054dd5003c88c8cc00400400c896600200314a11598009801980e800c528c4cc008008c078005017203648888888888a600266446644b3001002899813a60101800033027374e00297ae08992cc004c8cc00400400c896600200314a315980099baf302b302837546056002007133002002302c0018a504094814a2660506e9c00ccc0a0dd380125eb822a66048921776578706563740a20202020202020206c6973742e616c6c280a202020202020202020206e6f64655f6f7574707574732c0a20202020202020202020666e286f757470757429207b206f75747075742e61646472657373203d3d2065787065637465645f61646472657373207d2c0a2020202020202020290016408c6050604a6ea8c03cc094dd51814001204c330023758604c60466ea80448cc008dd5980718121baa300e30243754002022660046eb0c030c08cdd50089198011bab300e3024375400202244646600200200644b30010018a5eb8226644b3001300500289981480119802002000c4cc01001000502418140009814800a04c2232330010010032259800800c52844c96600266e44010006266e3c01000626600600660540048118dd718121814000a04c912cc0040062900044c02ccc008008c09c005024489660020031480022601666004004604e0028122464b3001300e30223754003130263023375400315330214912465787065637420496e6c696e65446174756d286429203d206f75747075742e646174756d00164080601660446ea80064446466446600400400244b3001001801c4c8cc896600266e4401c00a2b30013371e00e0051001803204e8998028029817002204e375c604e0026eb4c0a0004c0a8005028198058020018a4000911114c004dd61814802cdd618149815002cc010012600600722230159800801c00a0028021222223259800980d806c566002660186eb0c0bcc0b0dd500d119baf3030302d375400206b159800992cc00401a051132598009819003c4c966002b30010098a518a5040c115980099b8f375c6064605e6ea8005221008acc004cdc79bae3019302f375400291011effffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008cc00400e039488100401514a08162294102c452820583300300101b814a05e303000640b86eacc04cc0b0dd500d4528c54cc0a924015076616c69646174655f626c61636b6c6973745f696e6974286e6f64655f696e707574732c206e6f64655f6f7574707574732c2073656c662e6d696e742c20706f6c6963795f696429203f2046616c73650014a0814a2a660549217d6578706563740a202020202020202020206c6973742e616e79280a20202020202020202020202073656c662e696e707574732c0a202020202020202020202020666e28696e70757429207b20696e7075742e6f75747075745f7265666572656e6365203d3d207574786f5f726566207d2c0a2020202020202020202029001640a5159800980c006c4cc89660020110268992cc004c0cc026264b30010018cc004006264b30015980099b87371a00a901c4528c54cc0bd2412e6275696c74696e2e6c656e6774685f6f665f627974656172726179286b657929203d3d203238203f2046616c73650014a081722b3001598008024528c54cc0bd2401166d616e616765725f7369676e6564203f2046616c73650014a081722b300159800cc004dd5980c18189baa01f80f40150074528c54cc0bd2401186a7573745f73696e676c655f6d696e74203f2046616c73650014a081722b30015980099b90375c606860626ea800801629462a6605e9212c6279746561727261795f6c7428636f766572696e675f6e6f64652e6b65792c206b657929203f2046616c73650014a081722b30015980099b90005375c603660626ea800a29462a6605e9212d6279746561727261795f6c74286b65792c20636f766572696e675f6e6f64652e6e65787429203f2046616c73650014a081722b300159800980e1804800c528c54cc0bd2401266c6973742e6c656e677468286f75747075745f6e6f64657329203d3d2032203f2046616c73650014a081722b3001598009980880092cc004cdc79bae3035303237540026eb8c0d4c0c8dd5001c4cdc79bae301c3032375400200d14a0817a29462a6605e92011e626c61636b6c6973745f6e6f64655f75706461746564203f2046616c73650014a081722b30013301100125980099b8f375c606a60646ea800401a266e3cdd7180e18191baa001375c603860646ea800e294102f4528c54cc0bd2411f626c61636b6c6973745f6e6f64655f696e736572746564203f2046616c73650014a08172294102e4528205c8a5040b914a08172294102e4528205c8a5040b86602801246600c00203d0294055029814c0a605281a8c02cc064c0bcdd5000c09d0301818804205e375c605e60586ea8074cc038dd6180798161baa01a23371e002053198009bae302f302c375403b3300e3758601e60586ea80688cdc7800814ccc0400188c96600200319800800c4006046809a047023811c08d0331804980b98169baa001488966002003025899912cc00400604f13259800981b00145660020170298992cc004c0dc032264b300159800803c528c54cc0c92401166d616e616765725f7369676e6564203f2046616c73650014a0818a2b30015980099b8798009bab301b30343754045021804201e4800629462a66064921186a7573745f73696e676c655f6275726e203f2046616c73650014a0818a2b3001301f300c00e8acc0056600266e3cdd7181b981a1baa0050088acc004cdc79bae3037303437540026eb8c0dcc0d0dd5001c56600266e3cdd7180f181a1baa001375c603c60686ea8016266e3cdd7180f181a1baa0030088a5040c514a0818a2b30013371e6eb8c0dcc0d0dd5001804456600266e3cdd7181b981a1baa001375c606e60686ea80162b30013371e6eb8c078c0d0dd50009bae301e3034375400713371e6eb8c078c0d0dd5002804452820628a5040c515330324901274e65697468657220696e707574206d61746368657320746865206b657920746f2072656d6f7665001640c4818a29462a660649210e636865636b73203f2046616c73650014a0818a2941031452820628a5040c46601000204102a40d0606a016819a0508198c0d000503218190009819800a060205240a44464b3001301932330010010022259800800c52000899914c004dd718188014dd598190014896600200310038991991180f99802802981d8021bae3034001375a606a002606e00281a922233001001002181980099801001181a000a0628992cc004c06cc018006264b30010018cc0040062b3001337206eb8c0ccc0c0dd50009bae301a3030375400315980080140aa264b300130350038992cc004c078dd698190014566002b30013371e0026eb8c0d4c0c8dd5001c528c4cdc7800a4410040bd10038a998182492d65787065637420746e203d3d206e6f64652e6b6579207c7c20746e203d3d206f726967696e5f6e6f64655f746e001640bd15330304910f65787065637420717479203d3d2031001640bc6eb8c0c00060568190c0cc009031454cc0b9240128657870656374206279746561727261795f6c74286e6f64652e6b65792c206e6f64652e6e65787429001640b50254055025812c09604a81a8c02c0122a6605a92012265787065637420646963742e73697a65286e6f64655f746f6b656e7329203d3d2031001640b066028002005153302c49012665787065637420636f756e745f756e697175655f746f6b656e732876616c756529203d3d2032001640ac6eacc05cc0b4dd500103015375400e6e1d2002370e900240220110088042032375c602c60266ea800e2c80806024002601a6ea804e293454cc02d2411856616c696461746f722072657475726e65642066616c7365001365640281",hash:"1693ffa822bd92dd0f194e0d09d5e2728663d07463c03bf6b074c7fe"},{title:"blacklist_mint.blacklist_mint.else",redeemer:{schema:{}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"manager_pkh",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"590e9e0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9cab9a9bae0024888888888a60022a6600692123657870656374205b6e6f64655f6f75747075745d203d206e6f64655f6f75747075747300168a99801a4924657870656374205b5061697228746e2c20717479295d203d20746f6b656e5f706169727300168a99801a493465787065637420636f766572696e675f6e6f64653a20426c61636b6c6973744e6f6465203d20636f766572696e675f646174756d00168a99801a4925657870656374205b636f766572696e675f696e7075745d203d206e6f64655f696e7075747300168a99801a4927657870656374205b6f75747075745f6e6f64655f6f75745d203d206e6f64655f6f75747075747300168a99801a4926657870656374205b6e6f64655f612c206e6f64655f625d203d20696e7075745f646174756d7300168a99801a4922657870656374206e6f64653a20426c61636b6c6973744e6f6465203d20646174756d00168a99801a491b72656465656d65723a20426c61636b6c69737452656465656d657200164888888896600264653001301200198091809800cdc3a400130120024888966002600460246ea800e264b30010058999119912cc004c01c0062b30013018375401300280620328acc004c010006264b3001001806c4c96600200300e807403a01d13259800980f801c01601e80e0dd7000a03e301c001406860306ea80262b300130030018992cc00400601b13259800800c03a01d00e80744c966002603e007005807a038375c00280f8c07000501a180c1baa009806202a405480a8660024603460360032301a301b301b0019b804800a460346036603660366036003223232330010010042259800800c00e2646644b30013372200e00515980099b8f0070028800c01901b44cc014014c08801101b1bae301b00137566038002603c00280e052f5bded8c1222598009804180c1baa0038992cc00400600513259800800c00e007003801c4cc89660020030058992cc00400600d006803401a264b30013023003804401d0201bae001408c604000280f0dd7000980f8012040301d001406c60326ea800e00280b244646600200200644b30010018a5eb822660386006603a00266004004603c00280da46034603660366036603660366036603660360032232330010010032259800800c528456600260066eb8c0740062946266004004603c00280b901b4c054dd5003c88c8cc00400400c896600200314a11598009801980e800c528c4cc008008c078005017203648888888888a600266446644b3001002899813a60101800033027374e00297ae08992cc004c8cc00400400c896600200314a315980099baf302b302837546056002007133002002302c0018a504094814a2660506e9c00ccc0a0dd380125eb822a66048921776578706563740a20202020202020206c6973742e616c6c280a202020202020202020206e6f64655f6f7574707574732c0a20202020202020202020666e286f757470757429207b206f75747075742e61646472657373203d3d2065787065637465645f61646472657373207d2c0a2020202020202020290016408c6050604a6ea8c03cc094dd51814001204c330023758604c60466ea80448cc008dd5980718121baa300e30243754002022660046eb0c030c08cdd50089198011bab300e3024375400202244646600200200644b30010018a5eb8226644b3001300500289981480119802002000c4cc01001000502418140009814800a04c2232330010010032259800800c52844c96600266e44010006266e3c01000626600600660540048118dd718121814000a04c912cc0040062900044c02ccc008008c09c005024489660020031480022601666004004604e0028122464b3001300e30223754003130263023375400315330214912465787065637420496e6c696e65446174756d286429203d206f75747075742e646174756d00164080601660446ea80064446466446600400400244b3001001801c4c8cc896600266e4401c00a2b30013371e00e0051001803204e8998028029817002204e375c604e0026eb4c0a0004c0a8005028198058020018a4000911114c004dd61814802cdd618149815002cc010012600600722230159800801c00a0028021222223259800980d806c566002660186eb0c0bcc0b0dd500d119baf3030302d375400206b159800992cc00401a051132598009819003c4c966002b30010098a518a5040c115980099b8f375c6064605e6ea8005221008acc004cdc79bae3019302f375400291011effffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008cc00400e039488100401514a08162294102c452820583300300101b814a05e303000640b86eacc04cc0b0dd500d4528c54cc0a924015076616c69646174655f626c61636b6c6973745f696e6974286e6f64655f696e707574732c206e6f64655f6f7574707574732c2073656c662e6d696e742c20706f6c6963795f696429203f2046616c73650014a0814a2a660549217d6578706563740a202020202020202020206c6973742e616e79280a20202020202020202020202073656c662e696e707574732c0a202020202020202020202020666e28696e70757429207b20696e7075742e6f75747075745f7265666572656e6365203d3d207574786f5f726566207d2c0a2020202020202020202029001640a5159800980c006c4cc89660020110268992cc004c0cc026264b30010018cc004006264b30015980099b87371a00a901c4528c54cc0bd2412e6275696c74696e2e6c656e6774685f6f665f627974656172726179286b657929203d3d203238203f2046616c73650014a081722b3001598008024528c54cc0bd2401166d616e616765725f7369676e6564203f2046616c73650014a081722b300159800cc004dd5980c18189baa01f80f40150074528c54cc0bd2401186a7573745f73696e676c655f6d696e74203f2046616c73650014a081722b30015980099b90375c606860626ea800801629462a6605e9212c6279746561727261795f6c7428636f766572696e675f6e6f64652e6b65792c206b657929203f2046616c73650014a081722b30015980099b90005375c603660626ea800a29462a6605e9212d6279746561727261795f6c74286b65792c20636f766572696e675f6e6f64652e6e65787429203f2046616c73650014a081722b300159800980e1804800c528c54cc0bd2401266c6973742e6c656e677468286f75747075745f6e6f64657329203d3d2032203f2046616c73650014a081722b3001598009980880092cc004cdc79bae3035303237540026eb8c0d4c0c8dd5001c4cdc79bae301c3032375400200d14a0817a29462a6605e92011e626c61636b6c6973745f6e6f64655f75706461746564203f2046616c73650014a081722b30013301100125980099b8f375c606a60646ea800401a266e3cdd7180e18191baa001375c603860646ea800e294102f4528c54cc0bd2411f626c61636b6c6973745f6e6f64655f696e736572746564203f2046616c73650014a08172294102e4528205c8a5040b914a08172294102e4528205c8a5040b86602801246600c00203d0294055029814c0a605281a8c02cc064c0bcdd5000c09d0301818804205e375c605e60586ea8074cc038dd6180798161baa01a23371e002053198009bae302f302c375403b3300e3758601e60586ea80688cdc7800814ccc0400188c96600200319800800c4006046809a047023811c08d0331804980b98169baa001488966002003025899912cc00400604f13259800981b00145660020170298992cc004c0dc032264b300159800803c528c54cc0c92401166d616e616765725f7369676e6564203f2046616c73650014a0818a2b30015980099b8798009bab301b30343754045021804201e4800629462a66064921186a7573745f73696e676c655f6275726e203f2046616c73650014a0818a2b3001301f300c00e8acc0056600266e3cdd7181b981a1baa0050088acc004cdc79bae3037303437540026eb8c0dcc0d0dd5001c56600266e3cdd7180f181a1baa001375c603c60686ea8016266e3cdd7180f181a1baa0030088a5040c514a0818a2b30013371e6eb8c0dcc0d0dd5001804456600266e3cdd7181b981a1baa001375c606e60686ea80162b30013371e6eb8c078c0d0dd50009bae301e3034375400713371e6eb8c078c0d0dd5002804452820628a5040c515330324901274e65697468657220696e707574206d61746368657320746865206b657920746f2072656d6f7665001640c4818a29462a660649210e636865636b73203f2046616c73650014a0818a2941031452820628a5040c46601000204102a40d0606a016819a0508198c0d000503218190009819800a060205240a44464b3001301932330010010022259800800c52000899914c004dd718188014dd598190014896600200310038991991180f99802802981d8021bae3034001375a606a002606e00281a922233001001002181980099801001181a000a0628992cc004c06cc018006264b30010018cc0040062b3001337206eb8c0ccc0c0dd50009bae301a3030375400315980080140aa264b300130350038992cc004c078dd698190014566002b30013371e0026eb8c0d4c0c8dd5001c528c4cdc7800a4410040bd10038a998182492d65787065637420746e203d3d206e6f64652e6b6579207c7c20746e203d3d206f726967696e5f6e6f64655f746e001640bd15330304910f65787065637420717479203d3d2031001640bc6eb8c0c00060568190c0cc009031454cc0b9240128657870656374206279746561727261795f6c74286e6f64652e6b65792c206e6f64652e6e65787429001640b50254055025812c09604a81a8c02c0122a6605a92012265787065637420646963742e73697a65286e6f64655f746f6b656e7329203d3d2031001640b066028002005153302c49012665787065637420636f756e745f756e697175655f746f6b656e732876616c756529203d3d2032001640ac6eacc05cc0b4dd500103015375400e6e1d2002370e900240220110088042032375c602c60266ea800e2c80806024002601a6ea804e293454cc02d2411856616c696461746f722072657475726e65642066616c7365001365640281",hash:"1693ffa822bd92dd0f194e0d09d5e2728663d07463c03bf6b074c7fe"},{title:"blacklist_spend.blacklist_spend.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/Data"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},parameters:[{title:"blacklist_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"58c1010100229800aba2aba1aab9faab9eaab9dab9cab9a9bae0024888888896600264646644b30013370e900118041baa0018994c004c0300066018601a0032259800800c52844c96600266e44024006266e3c02400626600600660200048050dd718059807000a01a4888cc004004dd59807980818081808180818069baa300f00818049baa0018b200c30090013009300a001300900130053754013149a2a660069211856616c696461746f722072657475726e65642066616c7365001365640081",hash:"2430d6ffbe8bd961e496fd22a08686ff9bd27643bc15f6f78c937e66"},{title:"blacklist_spend.blacklist_spend.else",redeemer:{schema:{}},parameters:[{title:"blacklist_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"58c1010100229800aba2aba1aab9faab9eaab9dab9cab9a9bae0024888888896600264646644b30013370e900118041baa0018994c004c0300066018601a0032259800800c52844c96600266e44024006266e3c02400626600600660200048050dd718059807000a01a4888cc004004dd59807980818081808180818069baa300f00818049baa0018b200c30090013009300a001300900130053754013149a2a660069211856616c696461746f722072657475726e65642066616c7365001365640081",hash:"2430d6ffbe8bd961e496fd22a08686ff9bd27643bc15f6f78c937e66"},{title:"example_transfer_logic.issuer_admin_contract.withdraw",redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},parameters:[{title:"permitted_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}}],compiledCode:"590121010100229800aba2aba1aba0aab9faab9eaab9dab9cab9a4888888896600264653001300900198049805000cc0240092225980099b8748010c020dd500144c96600266e1d20003009375402113232330010013758601e6020602060206020602060206020602060186ea8010896600200314a115980099b8f375c602000200714a3133002002301100140288070dd7180698051baa01089919198008009bab300f301030103010301030103010300c375400844b30010018a508acc004cdd798061808000801c528c4cc008008c04400500a201c3374a900119806180698051baa0104bd70200e300c30093754005164018300900130043754013149a2a6600492011856616c696461746f722072657475726e65642066616c7365001365640041",hash:"ec10bc8537367b5f3169268e25069beee7c6767770984c90c14c3dd4"},{title:"example_transfer_logic.issuer_admin_contract.else",redeemer:{schema:{}},parameters:[{title:"permitted_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}}],compiledCode:"590121010100229800aba2aba1aba0aab9faab9eaab9dab9cab9a4888888896600264653001300900198049805000cc0240092225980099b8748010c020dd500144c96600266e1d20003009375402113232330010013758601e6020602060206020602060206020602060186ea8010896600200314a115980099b8f375c602000200714a3133002002301100140288070dd7180698051baa01089919198008009bab300f301030103010301030103010300c375400844b30010018a508acc004cdd798061808000801c528c4cc008008c04400500a201c3374a900119806180698051baa0104bd70200e300c30093754005164018300900130043754013149a2a6600492011856616c696461746f722072657475726e65642066616c7365001365640041",hash:"ec10bc8537367b5f3169268e25069beee7c6767770984c90c14c3dd4"},{title:"example_transfer_logic.transfer.withdraw",redeemer:{title:"proofs",schema:{$ref:"#/definitions/List<types~1BlacklistProof>"}},parameters:[{title:"programmable_logic_base_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}},{title:"blacklist_node_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"59071d0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9cab9a9bae00248888888888cc896600264653001300c00198061806800cdc3a4009300c0024888966002600460186ea800e264b300100580440222646466002002004446644b30010038992cc004c8cc004004dd5980c180c980c980c980c980c980c980c980c980c980a9baa0092259800800c528456600264b3001300c3016375400313375e6034602e6ea800402a2941014180a980c800c528c4cc008008c068005013202e8994c004c00400644b30010018a518acc004cdc3a4004602c6ea8c068006266004004603600314a080a10184dd61801180a9baa0094888cc008008ca600200332330010013758603a60346ea8038896600200314bd7044cc896600266ebcc080c074dd51810180e9baa300a301d375400404b13322598009806980f1baa0028992cc004c038c07cdd5000c4c966002601e60406ea8006266046604860426ea8004016266046604860426ea800401501e181198101baa001801203a3022301f375400500140706014603a6ea8c080c074dd51805180e9baa00210018800a034301e00133002002301f001407100b4004444b30010028a5eb822b30010018a5eb8226603b30013322598009805980e1baa0018992cc0056600266e212000323322330020020012259800800c00e2646644b3001337229101000028acc004cdc7a441000028800c01902144cc014014c0a00110211bae3021001375a604400260480028110c8c8cc004004dd5980718109baa0042259800800c00e2646644b30013372204200515980099b8f0210028800c01902244cc014014c0a40110221bae302200137566046002604a002811852f5bded8c0290004528c4c8cc004004c8cc004004dd5980698101baa0032259800800c52f5c113233223322330020020012259800800c400e264660526e9ccc0a4dd4802998149813000998149813800a5eb80cc00c00cc0ac008c0a40050271bab3024003375c604200266006006604c00460480028110896600200314a115980099b8f375c60466eb0c08c0040722946266004004604800280e902120368992cc0040062b3001300d301e375400313259800800c06e264b300100180e407203901c899912cc00400603d13259800800c07e03f01f80fc4c966002605200715980099b90375c6050604a6ea801c02a266e40028dd7180918129baa0078a50408902040986eb80050291813000a048375c002604a0048130c08c005021180f9baa00180d203880d406a03501a409064b30013014301e375400313022301f3754003153301d49012465787065637420496e6c696e65446174756d286429203d206f75747075742e646174756d00164070604260446044603c6ea80062a660389201ff6578706563740a20202020202020207175616e746974795f6f66286e6f64655f6f75747075742e76616c75652c20626c61636b6c6973745f6e6f64655f63732c20222229203e2030207c7c202f2f20436865636b20666f7220616e7920746f6b656e2066726f6d207468697320706f6c6963792028736f6d6520696d706c656d656e746174696f6e732075736520746f6b656e206e616d6573290a20202020202020206c6973742e616e79280a202020202020202020206173736574732e666c617474656e286e6f64655f6f75747075742e76616c7565292c0a20202020202020202020666e28617373657429207b0a2020202020202020202020206c657453202863732c205f746e2c205f71747929203d2061737365740a2020202020202020202020206373203d3d20626c61636b6c6973745f6e6f64655f63730a202020202020202020207d2c0a2020202020202020290016406c6014603a6ea8c080c074dd5000c54cc06d24013c65787065637420536f6d65287265665f696e70757429203d206c6973742e6174287265666572656e63655f696e707574732c206e6f64655f69647829001640686eb8c078008c96600266e2000520008a6103d87a8000899803802800a032375a603c60366ea8c07800698103d87a8000a60103d879800040613001003980f8014c07c005003203840702225980080145300103d87a80008acc004c014006266e95200033019301a0024bd70466002007301b00299b80001480050032028406114a080888c05cc060006264b30010018acc004c008c04cdd5000c4c96600200300f8992cc00400602101080844c966002603600713006301b007808a030375a003010406c603000280b0c050dd5000c039011403a01d00e80720323016003405060040046e1d2000375800b00880420263010300d3754007164028300c0013007375401b149a2a6600a92011856616c696461746f722072657475726e65642066616c7365001365640102a6600692012d657870656374206e6f64653a2074797065732e426c61636b6c6973744e6f6465203d20646174756d5f64617461001615330034911c70726f6f66733a204c6973743c426c61636b6c69737450726f6f663e001601",hash:"7bb4d341b24f9ca7a59dcb60bb55b2871bd422c06a89f958c7602b4c"},{title:"example_transfer_logic.transfer.else",redeemer:{schema:{}},parameters:[{title:"programmable_logic_base_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}},{title:"blacklist_node_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"59071d0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9cab9a9bae00248888888888cc896600264653001300c00198061806800cdc3a4009300c0024888966002600460186ea800e264b300100580440222646466002002004446644b30010038992cc004c8cc004004dd5980c180c980c980c980c980c980c980c980c980c980a9baa0092259800800c528456600264b3001300c3016375400313375e6034602e6ea800402a2941014180a980c800c528c4cc008008c068005013202e8994c004c00400644b30010018a518acc004cdc3a4004602c6ea8c068006266004004603600314a080a10184dd61801180a9baa0094888cc008008ca600200332330010013758603a60346ea8038896600200314bd7044cc896600266ebcc080c074dd51810180e9baa300a301d375400404b13322598009806980f1baa0028992cc004c038c07cdd5000c4c966002601e60406ea8006266046604860426ea8004016266046604860426ea800401501e181198101baa001801203a3022301f375400500140706014603a6ea8c080c074dd51805180e9baa00210018800a034301e00133002002301f001407100b4004444b30010028a5eb822b30010018a5eb8226603b30013322598009805980e1baa0018992cc0056600266e212000323322330020020012259800800c00e2646644b3001337229101000028acc004cdc7a441000028800c01902144cc014014c0a00110211bae3021001375a604400260480028110c8c8cc004004dd5980718109baa0042259800800c00e2646644b30013372204200515980099b8f0210028800c01902244cc014014c0a40110221bae302200137566046002604a002811852f5bded8c0290004528c4c8cc004004c8cc004004dd5980698101baa0032259800800c52f5c113233223322330020020012259800800c400e264660526e9ccc0a4dd4802998149813000998149813800a5eb80cc00c00cc0ac008c0a40050271bab3024003375c604200266006006604c00460480028110896600200314a115980099b8f375c60466eb0c08c0040722946266004004604800280e902120368992cc0040062b3001300d301e375400313259800800c06e264b300100180e407203901c899912cc00400603d13259800800c07e03f01f80fc4c966002605200715980099b90375c6050604a6ea801c02a266e40028dd7180918129baa0078a50408902040986eb80050291813000a048375c002604a0048130c08c005021180f9baa00180d203880d406a03501a409064b30013014301e375400313022301f3754003153301d49012465787065637420496e6c696e65446174756d286429203d206f75747075742e646174756d00164070604260446044603c6ea80062a660389201ff6578706563740a20202020202020207175616e746974795f6f66286e6f64655f6f75747075742e76616c75652c20626c61636b6c6973745f6e6f64655f63732c20222229203e2030207c7c202f2f20436865636b20666f7220616e7920746f6b656e2066726f6d207468697320706f6c6963792028736f6d6520696d706c656d656e746174696f6e732075736520746f6b656e206e616d6573290a20202020202020206c6973742e616e79280a202020202020202020206173736574732e666c617474656e286e6f64655f6f75747075742e76616c7565292c0a20202020202020202020666e28617373657429207b0a2020202020202020202020206c657453202863732c205f746e2c205f71747929203d2061737365740a2020202020202020202020206373203d3d20626c61636b6c6973745f6e6f64655f63730a202020202020202020207d2c0a2020202020202020290016406c6014603a6ea8c080c074dd5000c54cc06d24013c65787065637420536f6d65287265665f696e70757429203d206c6973742e6174287265666572656e63655f696e707574732c206e6f64655f69647829001640686eb8c078008c96600266e2000520008a6103d87a8000899803802800a032375a603c60366ea8c07800698103d87a8000a60103d879800040613001003980f8014c07c005003203840702225980080145300103d87a80008acc004c014006266e95200033019301a0024bd70466002007301b00299b80001480050032028406114a080888c05cc060006264b30010018acc004c008c04cdd5000c4c96600200300f8992cc00400602101080844c966002603600713006301b007808a030375a003010406c603000280b0c050dd5000c039011403a01d00e80720323016003405060040046e1d2000375800b00880420263010300d3754007164028300c0013007375401b149a2a6600a92011856616c696461746f722072657475726e65642066616c7365001365640102a6600692012d657870656374206e6f64653a2074797065732e426c61636b6c6973744e6f6465203d20646174756d5f64617461001615330034911c70726f6f66733a204c6973743c426c61636b6c69737450726f6f663e001601",hash:"7bb4d341b24f9ca7a59dcb60bb55b2871bd422c06a89f958c7602b4c"}],definitions:{ByteArray:{title:"ByteArray",dataType:"bytes"},Data:{title:"Data",description:"Any Plutus data."},Int:{dataType:"integer"},"List<types/BlacklistProof>":{dataType:"list",items:{$ref:"#/definitions/types~1BlacklistProof"}},"aiken/crypto/ScriptHash":{title:"ScriptHash",dataType:"bytes"},"aiken/crypto/VerificationKeyHash":{title:"VerificationKeyHash",dataType:"bytes"},"cardano/address/Credential":{title:"Credential",description:`A general structure for representing an on-chain \`Credential\`.
127
+ pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/ScriptHash"}]}]},"swap/SwapDatum":{title:"SwapDatum",anyOf:[{title:"SwapDatum",dataType:"constructor",index:0,fields:[{title:"initiator",$ref:"#/definitions/cardano~1address~1Address"},{title:"to_provide",$ref:"#/definitions/MValue"},{title:"to_receive",$ref:"#/definitions/MValue"}]}]},"swap/SwapRedeemer":{title:"SwapRedeemer",anyOf:[{title:"Cancel",dataType:"constructor",index:0,fields:[]},{title:"Swap",dataType:"constructor",index:1,fields:[]}]}}};var Z0=class extends O{constructor(c){super(c);r(this,"scriptCbor");r(this,"scriptAddress");r(this,"getScriptCbor",()=>this.version===2?(0,Y0.applyParamsToScript)(xc.validators[0].compiledCode,[]):(0,Y0.applyParamsToScript)(yc.validators[0].compiledCode,[]));r(this,"initiateSwap",async(c,e)=>{let{utxos:a,walletAddress:t,collateral:d}=await this.getWalletInfoForTx(),{pubKeyHash:s,stakeCredentialHash:o}=(0,c0.deserializeAddress)(t),b=(0,F.conStr0)([(0,F.pubKeyAddress)(s,o),(0,F.value)(c),(0,F.value)(e)]);return await this.mesh.txOut(this.scriptAddress,c).txOutInlineDatumValue(b,"JSON").changeAddress(t).txInCollateral(d.input.txHash,d.input.outputIndex,d.output.amount,d.output.address).selectUtxosFrom(a).complete(),this.mesh.txHex});r(this,"acceptSwap",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx(),d=(0,c0.deserializeDatum)(c.output.plutusData),s=(0,c0.serializeAddressObj)(d.fields[0],this.networkId),o=d.fields[2];return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,F.mConStr1)([])).txInScript(this.scriptCbor).txOut(s,F.MeshValue.fromValue(o).toAssets()).changeAddress(a).txInCollateral(t.input.txHash,t.input.outputIndex,t.output.amount,t.output.address).selectUtxosFrom(e).complete(),this.mesh.txHex});r(this,"cancelSwap",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx(),d=(0,c0.deserializeDatum)(c.output.plutusData),s=(0,c0.serializeAddressObj)(d.fields[0],this.networkId);return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,c.output.address).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0,F.mConStr0)([])).txInScript(this.scriptCbor).changeAddress(a).txInCollateral(t.input.txHash,t.input.outputIndex,t.output.amount,t.output.address).requiredSignerHash((0,c0.deserializeAddress)(s).pubKeyHash).selectUtxosFrom(e).complete(),this.mesh.txHex});r(this,"getUtxoByTxHash",async c=>await this._getUtxoByTxHash(c,this.scriptCbor));this.scriptCbor=this.getScriptCbor(),this.scriptAddress=this.getScriptAddress(this.scriptCbor)}};var s0=require("@meshsdk/common"),u0=require("@meshsdk/core"),cc=require("@meshsdk/core-cst");var gc={preamble:{title:"meshjs/vesting",description:"Aiken contracts for project 'meshjs/vesting'",version:"0.0.0",plutusVersion:"v2",compiler:{name:"Aiken",version:"v1.0.29-alpha+unknown"},license:"Apache-2.0"},validators:[{title:"vesting.vesting",datum:{title:"datum",schema:{$ref:"#/definitions/vesting~1types~1VestingDatum"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},compiledCode:"5901c40100003232323232323223222533300532533233007300130083754600460126ea800c4c8c8c94ccc028cc004dd6180118061baa3003300c375400c6eb8c014c030dd50048a511533300a330013758600460186ea8c00cc030dd50031bae300f30103010300c3754012266446464646464a666022601660246ea80084c94ccc0480104cdc40038008011bad301630133754004002264a666022601660246ea80084c94ccc0480100084cdc48038009bad3016301337540040022940c050008cdc424000601e6ea8c04cc050004cc044c048004cc044ccc034cdc424000601c6ea8c048c04c00530103d87a80004c0103d87980004bd7018071baa3005300e3754004601e602060206020602060206020602060186ea8c00cc030dd50031bad3003300c3754012294088c8cc00400400c894ccc040004528099299980719b8f375c602600400829444cc00c00c004c04c0048c038c03cc03cc03cc03cc03cc03cc03cc03c0048c034004dc3a400429408c02cc0300045261365653330023370e900018019baa0011323232323232533300b300e002149858dd7180600098060011bae300a001300a002375a601000260086ea8004595cd2ab9d5573caae7d5d02ba157441",hash:"ac96a3fa3cabf670268a88720402c715ed5fd73ffb3276e6092ead00"}],definitions:{ByteArray:{dataType:"bytes"},Data:{title:"Data",description:"Any Plutus data."},Int:{dataType:"integer"},"vesting/types/VestingDatum":{title:"VestingDatum",anyOf:[{title:"VestingDatum",dataType:"constructor",index:0,fields:[{title:"lock_until",description:"POSIX time in second, e.g. 1672843961000",$ref:"#/definitions/Int"},{title:"owner",description:"Owner's credentials",$ref:"#/definitions/ByteArray"},{title:"beneficiary",description:"Beneficiary's credentials",$ref:"#/definitions/ByteArray"}]}]}}};var Ic={preamble:{title:"meshjs/vesting",description:"Aiken contracts for project 'meshjs/vesting'",version:"0.0.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.0+unknown"},license:"Apache-2.0"},validators:[{title:"vesting.vesting.spend",datum:{title:"datum_opt",schema:{$ref:"#/definitions/vesting~1VestingDatum"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},compiledCode:"5901a7010100323232323232322533300232323232325332330083001300937540042646464a66601666e1d2000300c37540022646464a66601c660026eb0c008c040dd50059bae3013301430103754006294454ccc038cc004dd6180118081baa00b375c60266028602860206ea800c4c8cc88c8c8c8c8c94ccc058c03cc05cdd5001099299980b802099b88007001002375a603660306ea80080044c94ccc058c03cc05cdd5001099299980b802001099b89007001375a603660306ea8008004528180c8011806180a1baa3018301900133016301700133016333012300b30133754602e603000298103d87a80004c0103d87980004bd7018099baa3003301337540046028602a602a602a602a602a602a602a60226ea8030dd6980098089baa0042301400114a044646600200200644a66602800229404c94ccc048cdc79bae301700200414a2266006006002602e00246024602660266026602660266026602660260026020601a6ea800458c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba21",hash:"d13324c13a48b69d67ccfc88e3e87f046f4417f57f5c740d515249fb"},{title:"vesting.vesting.else",compiledCode:"5901a7010100323232323232322533300232323232325332330083001300937540042646464a66601666e1d2000300c37540022646464a66601c660026eb0c008c040dd50059bae3013301430103754006294454ccc038cc004dd6180118081baa00b375c60266028602860206ea800c4c8cc88c8c8c8c8c94ccc058c03cc05cdd5001099299980b802099b88007001002375a603660306ea80080044c94ccc058c03cc05cdd5001099299980b802001099b89007001375a603660306ea8008004528180c8011806180a1baa3018301900133016301700133016333012300b30133754602e603000298103d87a80004c0103d87980004bd7018099baa3003301337540046028602a602a602a602a602a602a602a60226ea8030dd6980098089baa0042301400114a044646600200200644a66602800229404c94ccc048cdc79bae301700200414a2266006006002602e00246024602660266026602660266026602660260026020601a6ea800458c03cc040008c038004c028dd50011b874800858c02cc030008c028004c028008c020004c010dd50008a4c26cacae6955ceaab9e5573eae815d0aba21",hash:"d13324c13a48b69d67ccfc88e3e87f046f4417f57f5c740d515249fb"}],definitions:{ByteArray:{dataType:"bytes"},Data:{title:"Data",description:"Any Plutus data."},Int:{dataType:"integer"},"vesting/VestingDatum":{title:"VestingDatum",anyOf:[{title:"VestingDatum",dataType:"constructor",index:0,fields:[{title:"lock_until",description:"POSIX time in milliseconds, e.g. 1672843961000",$ref:"#/definitions/Int"},{title:"owner",description:"Owner's credentials",$ref:"#/definitions/ByteArray"},{title:"beneficiary",description:"Beneficiary's credentials",$ref:"#/definitions/ByteArray"}]}]}}};var ec=class extends O{constructor(c){super(c);r(this,"scriptCbor");r(this,"scriptAddress");r(this,"getScriptCbor",()=>this.version===2?(0,cc.applyParamsToScript)(Ic.validators[0].compiledCode,[]):(0,cc.applyParamsToScript)(gc.validators[0].compiledCode,[]));r(this,"depositFund",async(c,e,a)=>{let{utxos:t,walletAddress:d}=await this.getWalletInfoForTx(),{pubKeyHash:s}=(0,u0.deserializeAddress)(d),{pubKeyHash:o}=(0,u0.deserializeAddress)(a);return await this.mesh.txOut(this.scriptAddress,c).txOutInlineDatumValue((0,s0.mConStr0)([e,s,o])).changeAddress(d).selectUtxosFrom(t).complete(),this.mesh.txHex});r(this,"withdrawFund",async c=>{let{utxos:e,walletAddress:a,collateral:t}=await this.getWalletInfoForTx(),{input:d,output:s}=t,{pubKeyHash:o}=(0,u0.deserializeAddress)(a),b=(0,u0.deserializeDatum)(c.output.plutusData),l=(0,s0.unixTimeToEnclosingSlot)(Math.min(Number(b.fields[0].int),Date.now()-15e3),this.networkId===0?s0.SLOT_CONFIG_NETWORK.preprod:s0.SLOT_CONFIG_NETWORK.mainnet)+1;return await this.mesh.spendingPlutusScript(this.languageVersion).txIn(c.input.txHash,c.input.outputIndex,c.output.amount,this.scriptAddress).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue("").txInScript(this.scriptCbor).txOut(a,[]).txInCollateral(d.txHash,d.outputIndex,s.amount,s.address).invalidBefore(l).requiredSignerHash(o).changeAddress(a).selectUtxosFrom(e).complete(),this.mesh.txHex});r(this,"getUtxoByTxHash",async c=>await this._getUtxoByTxHash(c,this.scriptCbor));this.scriptCbor=this.getScriptCbor(),this.scriptAddress=this.getScriptAddress(this.scriptCbor)}};var p=require("@meshsdk/common"),n0=require("@meshsdk/core");var k=require("@meshsdk/common"),U=require("@meshsdk/core"),v0=require("@meshsdk/core-cst");var kc=Mc(require("cbor"),1);var wc={preamble:{title:"cip113/freeze-unfreeze",description:"CIP113 Sub Standard for freeze/unfreeze capabilities",version:"0.0.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.21+42babe5"},license:"Apache-2.0"},validators:[{title:"blacklist_mint.blacklist_mint.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/types~1BlacklistRedeemer"}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"manager_pkh",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"590e9e0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9cab9a9bae0024888888888a60022a6600692123657870656374205b6e6f64655f6f75747075745d203d206e6f64655f6f75747075747300168a99801a4924657870656374205b5061697228746e2c20717479295d203d20746f6b656e5f706169727300168a99801a493465787065637420636f766572696e675f6e6f64653a20426c61636b6c6973744e6f6465203d20636f766572696e675f646174756d00168a99801a4925657870656374205b636f766572696e675f696e7075745d203d206e6f64655f696e7075747300168a99801a4927657870656374205b6f75747075745f6e6f64655f6f75745d203d206e6f64655f6f75747075747300168a99801a4926657870656374205b6e6f64655f612c206e6f64655f625d203d20696e7075745f646174756d7300168a99801a4922657870656374206e6f64653a20426c61636b6c6973744e6f6465203d20646174756d00168a99801a491b72656465656d65723a20426c61636b6c69737452656465656d657200164888888896600264653001301200198091809800cdc3a400130120024888966002600460246ea800e264b30010058999119912cc004c01c0062b30013018375401300280620328acc004c010006264b3001001806c4c96600200300e807403a01d13259800980f801c01601e80e0dd7000a03e301c001406860306ea80262b300130030018992cc00400601b13259800800c03a01d00e80744c966002603e007005807a038375c00280f8c07000501a180c1baa009806202a405480a8660024603460360032301a301b301b0019b804800a460346036603660366036003223232330010010042259800800c00e2646644b30013372200e00515980099b8f0070028800c01901b44cc014014c08801101b1bae301b00137566038002603c00280e052f5bded8c1222598009804180c1baa0038992cc00400600513259800800c00e007003801c4cc89660020030058992cc00400600d006803401a264b30013023003804401d0201bae001408c604000280f0dd7000980f8012040301d001406c60326ea800e00280b244646600200200644b30010018a5eb822660386006603a00266004004603c00280da46034603660366036603660366036603660360032232330010010032259800800c528456600260066eb8c0740062946266004004603c00280b901b4c054dd5003c88c8cc00400400c896600200314a11598009801980e800c528c4cc008008c078005017203648888888888a600266446644b3001002899813a60101800033027374e00297ae08992cc004c8cc00400400c896600200314a315980099baf302b302837546056002007133002002302c0018a504094814a2660506e9c00ccc0a0dd380125eb822a66048921776578706563740a20202020202020206c6973742e616c6c280a202020202020202020206e6f64655f6f7574707574732c0a20202020202020202020666e286f757470757429207b206f75747075742e61646472657373203d3d2065787065637465645f61646472657373207d2c0a2020202020202020290016408c6050604a6ea8c03cc094dd51814001204c330023758604c60466ea80448cc008dd5980718121baa300e30243754002022660046eb0c030c08cdd50089198011bab300e3024375400202244646600200200644b30010018a5eb8226644b3001300500289981480119802002000c4cc01001000502418140009814800a04c2232330010010032259800800c52844c96600266e44010006266e3c01000626600600660540048118dd718121814000a04c912cc0040062900044c02ccc008008c09c005024489660020031480022601666004004604e0028122464b3001300e30223754003130263023375400315330214912465787065637420496e6c696e65446174756d286429203d206f75747075742e646174756d00164080601660446ea80064446466446600400400244b3001001801c4c8cc896600266e4401c00a2b30013371e00e0051001803204e8998028029817002204e375c604e0026eb4c0a0004c0a8005028198058020018a4000911114c004dd61814802cdd618149815002cc010012600600722230159800801c00a0028021222223259800980d806c566002660186eb0c0bcc0b0dd500d119baf3030302d375400206b159800992cc00401a051132598009819003c4c966002b30010098a518a5040c115980099b8f375c6064605e6ea8005221008acc004cdc79bae3019302f375400291011effffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008cc00400e039488100401514a08162294102c452820583300300101b814a05e303000640b86eacc04cc0b0dd500d4528c54cc0a924015076616c69646174655f626c61636b6c6973745f696e6974286e6f64655f696e707574732c206e6f64655f6f7574707574732c2073656c662e6d696e742c20706f6c6963795f696429203f2046616c73650014a0814a2a660549217d6578706563740a202020202020202020206c6973742e616e79280a20202020202020202020202073656c662e696e707574732c0a202020202020202020202020666e28696e70757429207b20696e7075742e6f75747075745f7265666572656e6365203d3d207574786f5f726566207d2c0a2020202020202020202029001640a5159800980c006c4cc89660020110268992cc004c0cc026264b30010018cc004006264b30015980099b87371a00a901c4528c54cc0bd2412e6275696c74696e2e6c656e6774685f6f665f627974656172726179286b657929203d3d203238203f2046616c73650014a081722b3001598008024528c54cc0bd2401166d616e616765725f7369676e6564203f2046616c73650014a081722b300159800cc004dd5980c18189baa01f80f40150074528c54cc0bd2401186a7573745f73696e676c655f6d696e74203f2046616c73650014a081722b30015980099b90375c606860626ea800801629462a6605e9212c6279746561727261795f6c7428636f766572696e675f6e6f64652e6b65792c206b657929203f2046616c73650014a081722b30015980099b90005375c603660626ea800a29462a6605e9212d6279746561727261795f6c74286b65792c20636f766572696e675f6e6f64652e6e65787429203f2046616c73650014a081722b300159800980e1804800c528c54cc0bd2401266c6973742e6c656e677468286f75747075745f6e6f64657329203d3d2032203f2046616c73650014a081722b3001598009980880092cc004cdc79bae3035303237540026eb8c0d4c0c8dd5001c4cdc79bae301c3032375400200d14a0817a29462a6605e92011e626c61636b6c6973745f6e6f64655f75706461746564203f2046616c73650014a081722b30013301100125980099b8f375c606a60646ea800401a266e3cdd7180e18191baa001375c603860646ea800e294102f4528c54cc0bd2411f626c61636b6c6973745f6e6f64655f696e736572746564203f2046616c73650014a08172294102e4528205c8a5040b914a08172294102e4528205c8a5040b86602801246600c00203d0294055029814c0a605281a8c02cc064c0bcdd5000c09d0301818804205e375c605e60586ea8074cc038dd6180798161baa01a23371e002053198009bae302f302c375403b3300e3758601e60586ea80688cdc7800814ccc0400188c96600200319800800c4006046809a047023811c08d0331804980b98169baa001488966002003025899912cc00400604f13259800981b00145660020170298992cc004c0dc032264b300159800803c528c54cc0c92401166d616e616765725f7369676e6564203f2046616c73650014a0818a2b30015980099b8798009bab301b30343754045021804201e4800629462a66064921186a7573745f73696e676c655f6275726e203f2046616c73650014a0818a2b3001301f300c00e8acc0056600266e3cdd7181b981a1baa0050088acc004cdc79bae3037303437540026eb8c0dcc0d0dd5001c56600266e3cdd7180f181a1baa001375c603c60686ea8016266e3cdd7180f181a1baa0030088a5040c514a0818a2b30013371e6eb8c0dcc0d0dd5001804456600266e3cdd7181b981a1baa001375c606e60686ea80162b30013371e6eb8c078c0d0dd50009bae301e3034375400713371e6eb8c078c0d0dd5002804452820628a5040c515330324901274e65697468657220696e707574206d61746368657320746865206b657920746f2072656d6f7665001640c4818a29462a660649210e636865636b73203f2046616c73650014a0818a2941031452820628a5040c46601000204102a40d0606a016819a0508198c0d000503218190009819800a060205240a44464b3001301932330010010022259800800c52000899914c004dd718188014dd598190014896600200310038991991180f99802802981d8021bae3034001375a606a002606e00281a922233001001002181980099801001181a000a0628992cc004c06cc018006264b30010018cc0040062b3001337206eb8c0ccc0c0dd50009bae301a3030375400315980080140aa264b300130350038992cc004c078dd698190014566002b30013371e0026eb8c0d4c0c8dd5001c528c4cdc7800a4410040bd10038a998182492d65787065637420746e203d3d206e6f64652e6b6579207c7c20746e203d3d206f726967696e5f6e6f64655f746e001640bd15330304910f65787065637420717479203d3d2031001640bc6eb8c0c00060568190c0cc009031454cc0b9240128657870656374206279746561727261795f6c74286e6f64652e6b65792c206e6f64652e6e65787429001640b50254055025812c09604a81a8c02c0122a6605a92012265787065637420646963742e73697a65286e6f64655f746f6b656e7329203d3d2031001640b066028002005153302c49012665787065637420636f756e745f756e697175655f746f6b656e732876616c756529203d3d2032001640ac6eacc05cc0b4dd500103015375400e6e1d2002370e900240220110088042032375c602c60266ea800e2c80806024002601a6ea804e293454cc02d2411856616c696461746f722072657475726e65642066616c7365001365640281",hash:"1693ffa822bd92dd0f194e0d09d5e2728663d07463c03bf6b074c7fe"},{title:"blacklist_mint.blacklist_mint.else",redeemer:{schema:{}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"manager_pkh",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"590e9e0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9cab9a9bae0024888888888a60022a6600692123657870656374205b6e6f64655f6f75747075745d203d206e6f64655f6f75747075747300168a99801a4924657870656374205b5061697228746e2c20717479295d203d20746f6b656e5f706169727300168a99801a493465787065637420636f766572696e675f6e6f64653a20426c61636b6c6973744e6f6465203d20636f766572696e675f646174756d00168a99801a4925657870656374205b636f766572696e675f696e7075745d203d206e6f64655f696e7075747300168a99801a4927657870656374205b6f75747075745f6e6f64655f6f75745d203d206e6f64655f6f75747075747300168a99801a4926657870656374205b6e6f64655f612c206e6f64655f625d203d20696e7075745f646174756d7300168a99801a4922657870656374206e6f64653a20426c61636b6c6973744e6f6465203d20646174756d00168a99801a491b72656465656d65723a20426c61636b6c69737452656465656d657200164888888896600264653001301200198091809800cdc3a400130120024888966002600460246ea800e264b30010058999119912cc004c01c0062b30013018375401300280620328acc004c010006264b3001001806c4c96600200300e807403a01d13259800980f801c01601e80e0dd7000a03e301c001406860306ea80262b300130030018992cc00400601b13259800800c03a01d00e80744c966002603e007005807a038375c00280f8c07000501a180c1baa009806202a405480a8660024603460360032301a301b301b0019b804800a460346036603660366036003223232330010010042259800800c00e2646644b30013372200e00515980099b8f0070028800c01901b44cc014014c08801101b1bae301b00137566038002603c00280e052f5bded8c1222598009804180c1baa0038992cc00400600513259800800c00e007003801c4cc89660020030058992cc00400600d006803401a264b30013023003804401d0201bae001408c604000280f0dd7000980f8012040301d001406c60326ea800e00280b244646600200200644b30010018a5eb822660386006603a00266004004603c00280da46034603660366036603660366036603660360032232330010010032259800800c528456600260066eb8c0740062946266004004603c00280b901b4c054dd5003c88c8cc00400400c896600200314a11598009801980e800c528c4cc008008c078005017203648888888888a600266446644b3001002899813a60101800033027374e00297ae08992cc004c8cc00400400c896600200314a315980099baf302b302837546056002007133002002302c0018a504094814a2660506e9c00ccc0a0dd380125eb822a66048921776578706563740a20202020202020206c6973742e616c6c280a202020202020202020206e6f64655f6f7574707574732c0a20202020202020202020666e286f757470757429207b206f75747075742e61646472657373203d3d2065787065637465645f61646472657373207d2c0a2020202020202020290016408c6050604a6ea8c03cc094dd51814001204c330023758604c60466ea80448cc008dd5980718121baa300e30243754002022660046eb0c030c08cdd50089198011bab300e3024375400202244646600200200644b30010018a5eb8226644b3001300500289981480119802002000c4cc01001000502418140009814800a04c2232330010010032259800800c52844c96600266e44010006266e3c01000626600600660540048118dd718121814000a04c912cc0040062900044c02ccc008008c09c005024489660020031480022601666004004604e0028122464b3001300e30223754003130263023375400315330214912465787065637420496e6c696e65446174756d286429203d206f75747075742e646174756d00164080601660446ea80064446466446600400400244b3001001801c4c8cc896600266e4401c00a2b30013371e00e0051001803204e8998028029817002204e375c604e0026eb4c0a0004c0a8005028198058020018a4000911114c004dd61814802cdd618149815002cc010012600600722230159800801c00a0028021222223259800980d806c566002660186eb0c0bcc0b0dd500d119baf3030302d375400206b159800992cc00401a051132598009819003c4c966002b30010098a518a5040c115980099b8f375c6064605e6ea8005221008acc004cdc79bae3019302f375400291011effffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008cc00400e039488100401514a08162294102c452820583300300101b814a05e303000640b86eacc04cc0b0dd500d4528c54cc0a924015076616c69646174655f626c61636b6c6973745f696e6974286e6f64655f696e707574732c206e6f64655f6f7574707574732c2073656c662e6d696e742c20706f6c6963795f696429203f2046616c73650014a0814a2a660549217d6578706563740a202020202020202020206c6973742e616e79280a20202020202020202020202073656c662e696e707574732c0a202020202020202020202020666e28696e70757429207b20696e7075742e6f75747075745f7265666572656e6365203d3d207574786f5f726566207d2c0a2020202020202020202029001640a5159800980c006c4cc89660020110268992cc004c0cc026264b30010018cc004006264b30015980099b87371a00a901c4528c54cc0bd2412e6275696c74696e2e6c656e6774685f6f665f627974656172726179286b657929203d3d203238203f2046616c73650014a081722b3001598008024528c54cc0bd2401166d616e616765725f7369676e6564203f2046616c73650014a081722b300159800cc004dd5980c18189baa01f80f40150074528c54cc0bd2401186a7573745f73696e676c655f6d696e74203f2046616c73650014a081722b30015980099b90375c606860626ea800801629462a6605e9212c6279746561727261795f6c7428636f766572696e675f6e6f64652e6b65792c206b657929203f2046616c73650014a081722b30015980099b90005375c603660626ea800a29462a6605e9212d6279746561727261795f6c74286b65792c20636f766572696e675f6e6f64652e6e65787429203f2046616c73650014a081722b300159800980e1804800c528c54cc0bd2401266c6973742e6c656e677468286f75747075745f6e6f64657329203d3d2032203f2046616c73650014a081722b3001598009980880092cc004cdc79bae3035303237540026eb8c0d4c0c8dd5001c4cdc79bae301c3032375400200d14a0817a29462a6605e92011e626c61636b6c6973745f6e6f64655f75706461746564203f2046616c73650014a081722b30013301100125980099b8f375c606a60646ea800401a266e3cdd7180e18191baa001375c603860646ea800e294102f4528c54cc0bd2411f626c61636b6c6973745f6e6f64655f696e736572746564203f2046616c73650014a08172294102e4528205c8a5040b914a08172294102e4528205c8a5040b86602801246600c00203d0294055029814c0a605281a8c02cc064c0bcdd5000c09d0301818804205e375c605e60586ea8074cc038dd6180798161baa01a23371e002053198009bae302f302c375403b3300e3758601e60586ea80688cdc7800814ccc0400188c96600200319800800c4006046809a047023811c08d0331804980b98169baa001488966002003025899912cc00400604f13259800981b00145660020170298992cc004c0dc032264b300159800803c528c54cc0c92401166d616e616765725f7369676e6564203f2046616c73650014a0818a2b30015980099b8798009bab301b30343754045021804201e4800629462a66064921186a7573745f73696e676c655f6275726e203f2046616c73650014a0818a2b3001301f300c00e8acc0056600266e3cdd7181b981a1baa0050088acc004cdc79bae3037303437540026eb8c0dcc0d0dd5001c56600266e3cdd7180f181a1baa001375c603c60686ea8016266e3cdd7180f181a1baa0030088a5040c514a0818a2b30013371e6eb8c0dcc0d0dd5001804456600266e3cdd7181b981a1baa001375c606e60686ea80162b30013371e6eb8c078c0d0dd50009bae301e3034375400713371e6eb8c078c0d0dd5002804452820628a5040c515330324901274e65697468657220696e707574206d61746368657320746865206b657920746f2072656d6f7665001640c4818a29462a660649210e636865636b73203f2046616c73650014a0818a2941031452820628a5040c46601000204102a40d0606a016819a0508198c0d000503218190009819800a060205240a44464b3001301932330010010022259800800c52000899914c004dd718188014dd598190014896600200310038991991180f99802802981d8021bae3034001375a606a002606e00281a922233001001002181980099801001181a000a0628992cc004c06cc018006264b30010018cc0040062b3001337206eb8c0ccc0c0dd50009bae301a3030375400315980080140aa264b300130350038992cc004c078dd698190014566002b30013371e0026eb8c0d4c0c8dd5001c528c4cdc7800a4410040bd10038a998182492d65787065637420746e203d3d206e6f64652e6b6579207c7c20746e203d3d206f726967696e5f6e6f64655f746e001640bd15330304910f65787065637420717479203d3d2031001640bc6eb8c0c00060568190c0cc009031454cc0b9240128657870656374206279746561727261795f6c74286e6f64652e6b65792c206e6f64652e6e65787429001640b50254055025812c09604a81a8c02c0122a6605a92012265787065637420646963742e73697a65286e6f64655f746f6b656e7329203d3d2031001640b066028002005153302c49012665787065637420636f756e745f756e697175655f746f6b656e732876616c756529203d3d2032001640ac6eacc05cc0b4dd500103015375400e6e1d2002370e900240220110088042032375c602c60266ea800e2c80806024002601a6ea804e293454cc02d2411856616c696461746f722072657475726e65642066616c7365001365640281",hash:"1693ffa822bd92dd0f194e0d09d5e2728663d07463c03bf6b074c7fe"},{title:"blacklist_spend.blacklist_spend.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/Data"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},parameters:[{title:"blacklist_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"58c1010100229800aba2aba1aab9faab9eaab9dab9cab9a9bae0024888888896600264646644b30013370e900118041baa0018994c004c0300066018601a0032259800800c52844c96600266e44024006266e3c02400626600600660200048050dd718059807000a01a4888cc004004dd59807980818081808180818069baa300f00818049baa0018b200c30090013009300a001300900130053754013149a2a660069211856616c696461746f722072657475726e65642066616c7365001365640081",hash:"2430d6ffbe8bd961e496fd22a08686ff9bd27643bc15f6f78c937e66"},{title:"blacklist_spend.blacklist_spend.else",redeemer:{schema:{}},parameters:[{title:"blacklist_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"58c1010100229800aba2aba1aab9faab9eaab9dab9cab9a9bae0024888888896600264646644b30013370e900118041baa0018994c004c0300066018601a0032259800800c52844c96600266e44024006266e3c02400626600600660200048050dd718059807000a01a4888cc004004dd59807980818081808180818069baa300f00818049baa0018b200c30090013009300a001300900130053754013149a2a660069211856616c696461746f722072657475726e65642066616c7365001365640081",hash:"2430d6ffbe8bd961e496fd22a08686ff9bd27643bc15f6f78c937e66"},{title:"example_transfer_logic.issuer_admin_contract.withdraw",redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},parameters:[{title:"permitted_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}}],compiledCode:"590121010100229800aba2aba1aba0aab9faab9eaab9dab9cab9a4888888896600264653001300900198049805000cc0240092225980099b8748010c020dd500144c96600266e1d20003009375402113232330010013758601e6020602060206020602060206020602060186ea8010896600200314a115980099b8f375c602000200714a3133002002301100140288070dd7180698051baa01089919198008009bab300f301030103010301030103010300c375400844b30010018a508acc004cdd798061808000801c528c4cc008008c04400500a201c3374a900119806180698051baa0104bd70200e300c30093754005164018300900130043754013149a2a6600492011856616c696461746f722072657475726e65642066616c7365001365640041",hash:"ec10bc8537367b5f3169268e25069beee7c6767770984c90c14c3dd4"},{title:"example_transfer_logic.issuer_admin_contract.else",redeemer:{schema:{}},parameters:[{title:"permitted_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}}],compiledCode:"590121010100229800aba2aba1aba0aab9faab9eaab9dab9cab9a4888888896600264653001300900198049805000cc0240092225980099b8748010c020dd500144c96600266e1d20003009375402113232330010013758601e6020602060206020602060206020602060186ea8010896600200314a115980099b8f375c602000200714a3133002002301100140288070dd7180698051baa01089919198008009bab300f301030103010301030103010300c375400844b30010018a508acc004cdd798061808000801c528c4cc008008c04400500a201c3374a900119806180698051baa0104bd70200e300c30093754005164018300900130043754013149a2a6600492011856616c696461746f722072657475726e65642066616c7365001365640041",hash:"ec10bc8537367b5f3169268e25069beee7c6767770984c90c14c3dd4"},{title:"example_transfer_logic.transfer.withdraw",redeemer:{title:"proofs",schema:{$ref:"#/definitions/List<types~1BlacklistProof>"}},parameters:[{title:"programmable_logic_base_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}},{title:"blacklist_node_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"59071d0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9cab9a9bae00248888888888cc896600264653001300c00198061806800cdc3a4009300c0024888966002600460186ea800e264b300100580440222646466002002004446644b30010038992cc004c8cc004004dd5980c180c980c980c980c980c980c980c980c980c980a9baa0092259800800c528456600264b3001300c3016375400313375e6034602e6ea800402a2941014180a980c800c528c4cc008008c068005013202e8994c004c00400644b30010018a518acc004cdc3a4004602c6ea8c068006266004004603600314a080a10184dd61801180a9baa0094888cc008008ca600200332330010013758603a60346ea8038896600200314bd7044cc896600266ebcc080c074dd51810180e9baa300a301d375400404b13322598009806980f1baa0028992cc004c038c07cdd5000c4c966002601e60406ea8006266046604860426ea8004016266046604860426ea800401501e181198101baa001801203a3022301f375400500140706014603a6ea8c080c074dd51805180e9baa00210018800a034301e00133002002301f001407100b4004444b30010028a5eb822b30010018a5eb8226603b30013322598009805980e1baa0018992cc0056600266e212000323322330020020012259800800c00e2646644b3001337229101000028acc004cdc7a441000028800c01902144cc014014c0a00110211bae3021001375a604400260480028110c8c8cc004004dd5980718109baa0042259800800c00e2646644b30013372204200515980099b8f0210028800c01902244cc014014c0a40110221bae302200137566046002604a002811852f5bded8c0290004528c4c8cc004004c8cc004004dd5980698101baa0032259800800c52f5c113233223322330020020012259800800c400e264660526e9ccc0a4dd4802998149813000998149813800a5eb80cc00c00cc0ac008c0a40050271bab3024003375c604200266006006604c00460480028110896600200314a115980099b8f375c60466eb0c08c0040722946266004004604800280e902120368992cc0040062b3001300d301e375400313259800800c06e264b300100180e407203901c899912cc00400603d13259800800c07e03f01f80fc4c966002605200715980099b90375c6050604a6ea801c02a266e40028dd7180918129baa0078a50408902040986eb80050291813000a048375c002604a0048130c08c005021180f9baa00180d203880d406a03501a409064b30013014301e375400313022301f3754003153301d49012465787065637420496e6c696e65446174756d286429203d206f75747075742e646174756d00164070604260446044603c6ea80062a660389201ff6578706563740a20202020202020207175616e746974795f6f66286e6f64655f6f75747075742e76616c75652c20626c61636b6c6973745f6e6f64655f63732c20222229203e2030207c7c202f2f20436865636b20666f7220616e7920746f6b656e2066726f6d207468697320706f6c6963792028736f6d6520696d706c656d656e746174696f6e732075736520746f6b656e206e616d6573290a20202020202020206c6973742e616e79280a202020202020202020206173736574732e666c617474656e286e6f64655f6f75747075742e76616c7565292c0a20202020202020202020666e28617373657429207b0a2020202020202020202020206c657453202863732c205f746e2c205f71747929203d2061737365740a2020202020202020202020206373203d3d20626c61636b6c6973745f6e6f64655f63730a202020202020202020207d2c0a2020202020202020290016406c6014603a6ea8c080c074dd5000c54cc06d24013c65787065637420536f6d65287265665f696e70757429203d206c6973742e6174287265666572656e63655f696e707574732c206e6f64655f69647829001640686eb8c078008c96600266e2000520008a6103d87a8000899803802800a032375a603c60366ea8c07800698103d87a8000a60103d879800040613001003980f8014c07c005003203840702225980080145300103d87a80008acc004c014006266e95200033019301a0024bd70466002007301b00299b80001480050032028406114a080888c05cc060006264b30010018acc004c008c04cdd5000c4c96600200300f8992cc00400602101080844c966002603600713006301b007808a030375a003010406c603000280b0c050dd5000c039011403a01d00e80720323016003405060040046e1d2000375800b00880420263010300d3754007164028300c0013007375401b149a2a6600a92011856616c696461746f722072657475726e65642066616c7365001365640102a6600692012d657870656374206e6f64653a2074797065732e426c61636b6c6973744e6f6465203d20646174756d5f64617461001615330034911c70726f6f66733a204c6973743c426c61636b6c69737450726f6f663e001601",hash:"7bb4d341b24f9ca7a59dcb60bb55b2871bd422c06a89f958c7602b4c"},{title:"example_transfer_logic.transfer.else",redeemer:{schema:{}},parameters:[{title:"programmable_logic_base_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}},{title:"blacklist_node_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"59071d0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9cab9a9bae00248888888888cc896600264653001300c00198061806800cdc3a4009300c0024888966002600460186ea800e264b300100580440222646466002002004446644b30010038992cc004c8cc004004dd5980c180c980c980c980c980c980c980c980c980c980a9baa0092259800800c528456600264b3001300c3016375400313375e6034602e6ea800402a2941014180a980c800c528c4cc008008c068005013202e8994c004c00400644b30010018a518acc004cdc3a4004602c6ea8c068006266004004603600314a080a10184dd61801180a9baa0094888cc008008ca600200332330010013758603a60346ea8038896600200314bd7044cc896600266ebcc080c074dd51810180e9baa300a301d375400404b13322598009806980f1baa0028992cc004c038c07cdd5000c4c966002601e60406ea8006266046604860426ea8004016266046604860426ea800401501e181198101baa001801203a3022301f375400500140706014603a6ea8c080c074dd51805180e9baa00210018800a034301e00133002002301f001407100b4004444b30010028a5eb822b30010018a5eb8226603b30013322598009805980e1baa0018992cc0056600266e212000323322330020020012259800800c00e2646644b3001337229101000028acc004cdc7a441000028800c01902144cc014014c0a00110211bae3021001375a604400260480028110c8c8cc004004dd5980718109baa0042259800800c00e2646644b30013372204200515980099b8f0210028800c01902244cc014014c0a40110221bae302200137566046002604a002811852f5bded8c0290004528c4c8cc004004c8cc004004dd5980698101baa0032259800800c52f5c113233223322330020020012259800800c400e264660526e9ccc0a4dd4802998149813000998149813800a5eb80cc00c00cc0ac008c0a40050271bab3024003375c604200266006006604c00460480028110896600200314a115980099b8f375c60466eb0c08c0040722946266004004604800280e902120368992cc0040062b3001300d301e375400313259800800c06e264b300100180e407203901c899912cc00400603d13259800800c07e03f01f80fc4c966002605200715980099b90375c6050604a6ea801c02a266e40028dd7180918129baa0078a50408902040986eb80050291813000a048375c002604a0048130c08c005021180f9baa00180d203880d406a03501a409064b30013014301e375400313022301f3754003153301d49012465787065637420496e6c696e65446174756d286429203d206f75747075742e646174756d00164070604260446044603c6ea80062a660389201ff6578706563740a20202020202020207175616e746974795f6f66286e6f64655f6f75747075742e76616c75652c20626c61636b6c6973745f6e6f64655f63732c20222229203e2030207c7c202f2f20436865636b20666f7220616e7920746f6b656e2066726f6d207468697320706f6c6963792028736f6d6520696d706c656d656e746174696f6e732075736520746f6b656e206e616d6573290a20202020202020206c6973742e616e79280a202020202020202020206173736574732e666c617474656e286e6f64655f6f75747075742e76616c7565292c0a20202020202020202020666e28617373657429207b0a2020202020202020202020206c657453202863732c205f746e2c205f71747929203d2061737365740a2020202020202020202020206373203d3d20626c61636b6c6973745f6e6f64655f63730a202020202020202020207d2c0a2020202020202020290016406c6014603a6ea8c080c074dd5000c54cc06d24013c65787065637420536f6d65287265665f696e70757429203d206c6973742e6174287265666572656e63655f696e707574732c206e6f64655f69647829001640686eb8c078008c96600266e2000520008a6103d87a8000899803802800a032375a603c60366ea8c07800698103d87a8000a60103d879800040613001003980f8014c07c005003203840702225980080145300103d87a80008acc004c014006266e95200033019301a0024bd70466002007301b00299b80001480050032028406114a080888c05cc060006264b30010018acc004c008c04cdd5000c4c96600200300f8992cc00400602101080844c966002603600713006301b007808a030375a003010406c603000280b0c050dd5000c039011403a01d00e80720323016003405060040046e1d2000375800b00880420263010300d3754007164028300c0013007375401b149a2a6600a92011856616c696461746f722072657475726e65642066616c7365001365640102a6600692012d657870656374206e6f64653a2074797065732e426c61636b6c6973744e6f6465203d20646174756d5f64617461001615330034911c70726f6f66733a204c6973743c426c61636b6c69737450726f6f663e001601",hash:"7bb4d341b24f9ca7a59dcb60bb55b2871bd422c06a89f958c7602b4c"}],definitions:{ByteArray:{title:"ByteArray",dataType:"bytes"},Data:{title:"Data",description:"Any Plutus data."},Int:{dataType:"integer"},"List<types/BlacklistProof>":{dataType:"list",items:{$ref:"#/definitions/types~1BlacklistProof"}},"aiken/crypto/ScriptHash":{title:"ScriptHash",dataType:"bytes"},"aiken/crypto/VerificationKeyHash":{title:"VerificationKeyHash",dataType:"bytes"},"cardano/address/Credential":{title:"Credential",description:`A general structure for representing an on-chain \`Credential\`.
128
128
 
129
129
  Credentials are always one of two kinds: a direct public/private key
130
130
  pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/aiken~1crypto~1VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/aiken~1crypto~1ScriptHash"}]}]},"cardano/assets/PolicyId":{title:"PolicyId",dataType:"bytes"},"cardano/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/ByteArray"},{title:"output_index",$ref:"#/definitions/Int"}]}]},"types/BlacklistProof":{title:"BlacklistProof",description:"Proof of blacklist membership or non-membership",anyOf:[{title:"NonmembershipProof",description:"Proof of non-membership via covering node",dataType:"constructor",index:0,fields:[{title:"node_idx",$ref:"#/definitions/Int"}]}]},"types/BlacklistRedeemer":{title:"BlacklistRedeemer",description:"Redeemer for blacklist minting policy (linked list operations)",anyOf:[{title:"BlacklistInit",description:"Initialize the blacklist with the origin node",dataType:"constructor",index:0,fields:[]},{title:"BlacklistInsert",description:"Insert a credential into the blacklist",dataType:"constructor",index:1,fields:[{title:"key",$ref:"#/definitions/ByteArray"}]},{title:"BlacklistRemove",description:"Remove a credential from the blacklist",dataType:"constructor",index:2,fields:[{title:"key",$ref:"#/definitions/ByteArray"}]}]}}};var Tc={preamble:{title:"wsc-poc/aiken-policy",description:"Aiken contracts for project 'wsc-poc/aiken-policy'",version:"0.0.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.19+e525483"},license:"Apache-2.0"},validators:[{title:"transfer.issue.withdraw",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/Int"}},compiledCode:"585701010029800aba2aba1aab9eaab9dab9a4888896600264646644b30013370e900218031baa00289919b87375a6012008906400980418039baa0028a504014600c600e002600c004600c00260066ea801a29344d9590011",hash:"a82718805c3541469346431c0cc023a76afce8d6d2c1c64d00bf1950"},{title:"transfer.issue.else",redeemer:{schema:{}},compiledCode:"585701010029800aba2aba1aab9eaab9dab9a4888896600264646644b30013370e900218031baa00289919b87375a6012008906400980418039baa0028a504014600c600e002600c004600c00260066ea801a29344d9590011",hash:"a82718805c3541469346431c0cc023a76afce8d6d2c1c64d00bf1950"},{title:"transfer.transfer.withdraw",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/Int"}},compiledCode:"585701010029800aba2aba1aab9eaab9dab9a4888896600264646644b30013370e900218031baa00289919b87375a6012008904801980418039baa0028a504014600c600e002600c004600c00260066ea801a29344d9590011",hash:"93fd90884c772ced27987503f9d37c857372b99cf5cc716197ebb8bd"},{title:"transfer.transfer.else",redeemer:{schema:{}},compiledCode:"585701010029800aba2aba1aab9eaab9dab9a4888896600264646644b30013370e900218031baa00289919b87375a6012008904801980418039baa0028a504014600c600e002600c004600c00260066ea801a29344d9590011",hash:"93fd90884c772ced27987503f9d37c857372b99cf5cc716197ebb8bd"}],definitions:{Int:{dataType:"integer"}}};var Ac={preamble:{title:"iohk/programmable-tokens",description:"Aiken implementation of CIP-0143 programmable tokens (migrated from Plutarch)",version:"0.3.0",plutusVersion:"v3",compiler:{name:"Aiken",version:"v1.1.21+42babe5"},license:"Apache-2.0"},validators:[{title:"always_fail.always_fail.spend",datum:{title:"_d",schema:{$ref:"#/definitions/Data"}},redeemer:{title:"_r",schema:{$ref:"#/definitions/Data"}},parameters:[{title:"_nonce",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"585f010100229800aba2aba1aab9eaab9dab9a9bae00248888896600264653001300700198039804000cc01c0092225980099b8748008c020dd500144c8cc898c02c004c02cc030004c024dd50014590070c01c004c010dd5003c52689b2b20041",hash:"e9d8d9c7fc531f0b179d502c86bffee829613c537794dab053ae28fe"},{title:"always_fail.always_fail.else",redeemer:{schema:{}},parameters:[{title:"_nonce",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"585f010100229800aba2aba1aab9eaab9dab9a9bae00248888896600264653001300700198039804000cc01c0092225980099b8748008c020dd500144c8cc898c02c004c02cc030004c024dd50014590070c01c004c010dd5003c52689b2b20041",hash:"e9d8d9c7fc531f0b179d502c86bffee829613c537794dab053ae28fe"},{title:"issuance_cbor_hex_mint.issuance_cbor_hex_mint.mint",redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"always_fail_hash",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"5903d30101002229800aba4aba2aba1aba0aab9faab9eaab9dab9a9bae00248888888896600264653001300900198049805000cdc3a400130090024888966002600460126ea800e26464b300130100018999119912cc004c020c03cdd500144c8c96600266e1d20043011375400313259800980598091baa0018991919912cc004c06c00e2b300132330010013758603660306ea803c896600200314a115980099baf301c30193754603800204314a3133002002301d001405c80d22b30013371e6eb8c0680212210f49737375616e636543626f72486578008acc004cdc39bad301a301b0084800a266ebcc068c05cdd500398051980c99ba548008cc064dd480a25eb80cc065300103d87a80004bd704528202a8a50405514a080aa2c80c0dd7180c0009bae3018002301800130133754003164044602a60246ea80062c8080c014c044dd5000980998081baa0028b201c323300100137586006601e6ea8018896600200314c0103d87a80008992cc004cc896600200514a11329800992cc004c034c050dd5000c4dd6980a980c1bab301830153754003148001013180b800cdd7980b980c000cdd5801a444b30010018acc004c00801a26600a00690004528202a8992cc004cdd7980b800a610140008acc004cc018010dd6980c180d9bab3018001898019ba6301c0028a5040591598009980300224001130030078a50405880b0c0680050180ca60020033756602e603060286ea80124466030004660306e980052f5c08008889660020051330014c103d87a80004bd6f7b63044ca60026eb8c0580066eacc05c00660360069112cc004cdc8a441000038acc004cdc7a4410000389980298069980e1ba60024bd70000c4cc015300103d87a8000006406119800803c006446600e0046603c66ec0dd48029ba6004001401c80c0603200480ba2942294229410181ba633013337606ea401cdd31980999bb04c1104f49737375616e636543626f72486578004c010101004bd6f7b63025eb7bdb1808928c4c010cc04c0052f5c11330030033015002403c60260028088c048dd6180880191808180898088009ba5480022c8068c8cc004004c8cc004004dd59808180898089808980898069baa0042259800800c52f5c113233223322330020020012259800800c400e2646602c6e9ccc058dd48029980b18098009980b180a000a5eb80cc00c00cc060008c0580050141bab3011003375c601c00266006006602600460220028078896600200314bd7044cc896600266e3cdd71809001002c4cc044dd380119802002000c4cc01001000500d1bac3010001301100140386eb8c034c028dd5001c590080c024004c010dd5005452689b2b200401",hash:"7a52b5d9171439e64fa0df2d49ca7487d369e146f697553feba95426"},{title:"issuance_cbor_hex_mint.issuance_cbor_hex_mint.else",redeemer:{schema:{}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"always_fail_hash",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"5903d30101002229800aba4aba2aba1aba0aab9faab9eaab9dab9a9bae00248888888896600264653001300900198049805000cdc3a400130090024888966002600460126ea800e26464b300130100018999119912cc004c020c03cdd500144c8c96600266e1d20043011375400313259800980598091baa0018991919912cc004c06c00e2b300132330010013758603660306ea803c896600200314a115980099baf301c30193754603800204314a3133002002301d001405c80d22b30013371e6eb8c0680212210f49737375616e636543626f72486578008acc004cdc39bad301a301b0084800a266ebcc068c05cdd500398051980c99ba548008cc064dd480a25eb80cc065300103d87a80004bd704528202a8a50405514a080aa2c80c0dd7180c0009bae3018002301800130133754003164044602a60246ea80062c8080c014c044dd5000980998081baa0028b201c323300100137586006601e6ea8018896600200314c0103d87a80008992cc004cc896600200514a11329800992cc004c034c050dd5000c4dd6980a980c1bab301830153754003148001013180b800cdd7980b980c000cdd5801a444b30010018acc004c00801a26600a00690004528202a8992cc004cdd7980b800a610140008acc004cc018010dd6980c180d9bab3018001898019ba6301c0028a5040591598009980300224001130030078a50405880b0c0680050180ca60020033756602e603060286ea80124466030004660306e980052f5c08008889660020051330014c103d87a80004bd6f7b63044ca60026eb8c0580066eacc05c00660360069112cc004cdc8a441000038acc004cdc7a4410000389980298069980e1ba60024bd70000c4cc015300103d87a8000006406119800803c006446600e0046603c66ec0dd48029ba6004001401c80c0603200480ba2942294229410181ba633013337606ea401cdd31980999bb04c1104f49737375616e636543626f72486578004c010101004bd6f7b63025eb7bdb1808928c4c010cc04c0052f5c11330030033015002403c60260028088c048dd6180880191808180898088009ba5480022c8068c8cc004004c8cc004004dd59808180898089808980898069baa0042259800800c52f5c113233223322330020020012259800800c400e2646602c6e9ccc058dd48029980b18098009980b180a000a5eb80cc00c00cc060008c0580050141bab3011003375c601c00266006006602600460220028078896600200314bd7044cc896600266e3cdd71809001002c4cc044dd380119802002000c4cc01001000500d1bac3010001301100140386eb8c034c028dd5001c590080c024004c010dd5005452689b2b200401",hash:"7a52b5d9171439e64fa0df2d49ca7487d369e146f697553feba95426"},{title:"issuance_mint.issuance_mint.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/types~1SmartTokenMintingAction"}},parameters:[{title:"programmable_logic_base",schema:{$ref:"#/definitions/cardano~1address~1Credential"}},{title:"minting_logic_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}}],compiledCode:"5903b30101002229800aba2aba1aba0aab9faab9eaab9dab9a488888896600264653001300800198041804800cdc3a400130080024888966002600460106ea800e2664464b30013005300b375400f132598009808800c4c8c96600260100031323259800980a801401a2c8090dd7180980098079baa0028acc004c01400626464b300130150028034590121bae3013001300f37540051640348068c034dd50009808000c5900e18061baa0078b2014132598009808000c4c8c96600266ebcc044c038dd500480a4566002646600200264660020026eacc04cc050c050c050c050c050c050c040dd5004112cc004006297ae08998099808180a00099801001180a800a0242259800800c528456600266ebcc04c00405a294626600400460280028071011456600260086530010019bab3012301330133013301330133013301330133013300f375400f480010011112cc00400a200319800801cc05400a64b3001300b30113754602200315980099baf301200100d899b800024800a2004808220048080c05000900320248acc004c010c8cc0040040108966002003148002266e012002330020023014001404515980099b88480000062664464b3001300a30103754003159800980518081baa30143011375400315980099baf301430113754602860226ea800c062266e1e60026eacc008c044dd5001cdd7180a002c520004888cc88cc004004008c8c8cc004004014896600200300389919912cc004cdc8808801456600266e3c04400a20030064061133005005301e00440606eb8c05c004dd5980c000980d000a03014bd6f7b630112cc00400600713233225980099b910070028acc004cdc78038014400600c80ba26600a00a603a00880b8dd7180b0009bad30170013019001405c0048a50403d16403d16403c600260206ea8c04cc040dd500118089bac301130123012300e375400c46024602600315980099b880014800229462c806100c452820188a50403114a08062294100c1bad3010301100130103758601e003164034646600200264660020026eacc040c044c044c044c044c034dd5002912cc004006297ae08991991199119801001000912cc004006200713233016374e6602c6ea4014cc058c04c004cc058c0500052f5c0660060066030004602c00280a0dd598088019bae300e0013300300330130023011001403c44b30010018a5eb8226644b30013371e6eb8c04800801a2660226e9c008cc0100100062660080080028068dd618080009808800a01c375c601860126ea800cdc3a400516401c300800130033754011149a26cac80081",hash:"a5ed4b4e7813e17eec3b66f64dc5f2c6d11d62e7120d90a0f0acf450"},{title:"issuance_mint.issuance_mint.else",redeemer:{schema:{}},parameters:[{title:"programmable_logic_base",schema:{$ref:"#/definitions/cardano~1address~1Credential"}},{title:"minting_logic_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}}],compiledCode:"5903b30101002229800aba2aba1aba0aab9faab9eaab9dab9a488888896600264653001300800198041804800cdc3a400130080024888966002600460106ea800e2664464b30013005300b375400f132598009808800c4c8c96600260100031323259800980a801401a2c8090dd7180980098079baa0028acc004c01400626464b300130150028034590121bae3013001300f37540051640348068c034dd50009808000c5900e18061baa0078b2014132598009808000c4c8c96600266ebcc044c038dd500480a4566002646600200264660020026eacc04cc050c050c050c050c050c050c040dd5004112cc004006297ae08998099808180a00099801001180a800a0242259800800c528456600266ebcc04c00405a294626600400460280028071011456600260086530010019bab3012301330133013301330133013301330133013300f375400f480010011112cc00400a200319800801cc05400a64b3001300b30113754602200315980099baf301200100d899b800024800a2004808220048080c05000900320248acc004c010c8cc0040040108966002003148002266e012002330020023014001404515980099b88480000062664464b3001300a30103754003159800980518081baa30143011375400315980099baf301430113754602860226ea800c062266e1e60026eacc008c044dd5001cdd7180a002c520004888cc88cc004004008c8c8cc004004014896600200300389919912cc004cdc8808801456600266e3c04400a20030064061133005005301e00440606eb8c05c004dd5980c000980d000a03014bd6f7b630112cc00400600713233225980099b910070028acc004cdc78038014400600c80ba26600a00a603a00880b8dd7180b0009bad30170013019001405c0048a50403d16403d16403c600260206ea8c04cc040dd500118089bac301130123012300e375400c46024602600315980099b880014800229462c806100c452820188a50403114a08062294100c1bad3010301100130103758601e003164034646600200264660020026eacc040c044c044c044c044c034dd5002912cc004006297ae08991991199119801001000912cc004006200713233016374e6602c6ea4014cc058c04c004cc058c0500052f5c0660060066030004602c00280a0dd598088019bae300e0013300300330130023011001403c44b30010018a5eb8226644b30013371e6eb8c04800801a2660226e9c008cc0100100062660080080028068dd618080009808800a01c375c601860126ea800cdc3a400516401c300800130033754011149a26cac80081",hash:"a5ed4b4e7813e17eec3b66f64dc5f2c6d11d62e7120d90a0f0acf450"},{title:"programmable_logic_base.programmable_logic_base.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/Data"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},parameters:[{title:"stake_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}}],compiledCode:"588b010100229800aba2aba1aab9eaab9dab9a4888896600264646644b30013370e900118031baa0018994c004c02400660126014003225980099baf3009300b00100e8a518998010011806000a0104888cc004004dd5980618069806980698069806980698059baa300c00818039baa0018b200a30060013006300700130060013003375400d149a26cac8009",hash:"be1e5967da54825149611a725eddea8664c1898a98bcf54f05f6728a"},{title:"programmable_logic_base.programmable_logic_base.else",redeemer:{schema:{}},parameters:[{title:"stake_cred",schema:{$ref:"#/definitions/cardano~1address~1Credential"}}],compiledCode:"588b010100229800aba2aba1aab9eaab9dab9a4888896600264646644b30013370e900118031baa0018994c004c02400660126014003225980099baf3009300b00100e8a518998010011806000a0104888cc004004dd5980618069806980698069806980698059baa300c00818039baa0018b200a30060013006300700130060013003375400d149a26cac8009",hash:"be1e5967da54825149611a725eddea8664c1898a98bcf54f05f6728a"},{title:"programmable_logic_global.programmable_logic_global.withdraw",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/types~1ProgrammableLogicGlobalRedeemer"}},parameters:[{title:"params_policy",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"590a58010100229800aba2aba1aba0aab9faab9eaab9dab9a9bae0024888888896600264653001300900198049805000cdc3a400930090024888966002600460126ea800e33001300d300a3754007370e90004dc3a4005300937540089111192cc004c01000a264b30013014001899198008009bac301400222325980080140162646644b3001300b002899192cc004c07000a0071640646eb4c068004c058dd5001c56600260140051323259800980e001400e2c80c8dd6980d000980b1baa0038b2028405060266ea80044c008c06000cc058009014180100145901118079baa0098acc004c00c00a26464653001375a602a003375a602a007375a602a0049112cc004c06401200f16405830150013014001300f375401316403480686600246024602660260032300f37540032232598009803000c4c8c966002602e0050048b2028375c602a00260226ea800e2b30013005001899192cc004c05c00a0091640506eb8c054004c044dd5001c5900f201e300f375400523012301300148888c8c966002601860266ea800626466446600e00233001329800800d20009bac30073018375401f2640044444b30010028800c4ca600200b3370000890014c08000e4b30013370e00a00315980099b8f300b300c301d375400401113259800980b180e9baa00189810980f1baa0018b2038300f301d37546018603a6ea800a2c80da2600600280d9005180f00120389180d980e180e180e180e180e180e000c8c06cc070c070c070c070006444b30010018a5189991191980080080291192cc004cdc79bae301e005375c603c00315980099b89375a603e00a6eb4c07c00633001008981180140110084528203a8998018019811801203a3021001301d001301e001406d222329800800c012006800888966002005100189919914c00401a604800b32330010010052259800800c4cc090cdd81ba9004375000697adef6c608994c004dd71811000cdd69811800cc09c0092225980099b9000800389981419bb037520106ea001c0162b30013371e01000719800804401e005233029337606ea4024dd40008014400500d44cc0a0cdd81ba900337500046600c00c00281210240c094005023200c375c603a0026eb4c078004c08000901e24444464b30013012301c375402f198009112cc00400a2003132332298008034c09c016646600200200a44b300100189981399bb037520086e9800d2f5bded8c113298009bae30250019bab302600198150012444b30013372001000713302b337606ea4020dd3003802c56600266e3c02000e26605666ec0dd48041ba69800803c00a44444600466e0001000d00e000c4cc0accdd81ba9003374c0046600c00c00281390270c0a0005026200c375c60400026eacc084004c08c00902148896600200310028994c0040124b30013375e00400314a313004001408130250024010603e6046002810a603860406eacc014c074dd500a244464664466ebd3001018000374e6530010019bac30273024375403d98009bac3027302437540373756601660486ea806e44464b30013375e605660506ea8c0acc0a0dd500080944c966002603c60506ea8006264b3001301f3029375400313232300700559800981018151baa0018992cc004c8cc004004dd618181818981898189818981898189818981898169baa024225980099b8f375c606200200714a3133002002303200140b1149a2c8150dd7181718159baa0018acc004c0240062934590292052302d302a37540031640a0605860526ea80062c8138c05cc0a0dd5181598141baa001801204c301630273754006801b30013758602c60486ea806e97adef6c609112cc004cdd7981518139baa302a3027375400602313259800980e98139baa0018acc004c074c09cdd5181598141baa00189801802459026459026180b18139baa302a302737540070014094801900111112cc00400a200713298009bae30270019bab302800198158024c0b000d222259800981098159baa00289919911980f8008acc004cdc7801003c566002601a0031323300100100a22325980099b8f00a375c60620031598009980b1bab30320010098cc00403e606c01d007981b001201e8b2060899801801981b001206030340018b205a8b205a375c6060002606060626062002603a602a6eb4c0bcc0b0dd500144c96600266e40dd71818000802c56600266e40014dd718181818800c660020153031009801401d00a45902b45902b180e980a9bad302f302c3754004815060540048140888ca6002003004801a0022225980080144006330010039815801660026054005233008002302c3756602e60506ea80062002802100320509800801c8cdd7800801cc094dd5980498109baa018400c60060068cc004c074dd500bc888ca6002003004a5eb7bdb1810011112cc00400a33001001a5eb7bdb18297adef6c60401113233225980099b900020088cc00401a00333028003004401915980099b8f0020088cc0040126eacc09800e002803a33001004a5eb7bdb18200a80390242048375c60460026050006604c00481224464646600200200844b3001001801c4c8cc896600266e4401c00a2b30013371e00e0051001803204689980280298148022046375c60440026eacc08c004c0940050230a5eb7bdb182453001002800c88888c966002603400300289801800a046337000080068021222233223298009bae30270019813981418141814000cdd698139814001cdd69813801a4444660300062b300132330010013756602260526ea8080896600266ebcc0a4c0b40040162946266004004605c002814226530010019bac301b30293754041002a5eb7bdb1810011111192cc004cdc4801a40011329800800cdd6181898171baa02580440166601e6eacc054c0b8dd5012805400d0011111112cc004cdc48022400115980099baf4c1018000374e00b133017329800800c01200480088896600200510018cc00400e6074005325980099baf303a303737546074606e6ea800408626602e660306eacc098c0dcdd500080980144009035181c801200640dc0051640c51325980099baf303730343754606e60686ea800407a264b30013375e6070606a6ea8004c0e0c0d4dd5001456600266ebcc09cc0d4dd50009813981a9baa0028cc004dd59812181a9baa002808c88a60026eacc09cc0e0dd50024052444b30015980099baf374c00c6e9800e2b30013375e6e98010dd3000c6600266ebcdd30029ba6002a50a5140e514a081ca294103946600201d303f00d98078064c0fc02e6603601400b3301b00200940391640e480d1017459033459033181b80246600200f30380069804002c012007002401c8190c0d8c0dcc0ccdd5181b002a06289919912cc004cdd7981998181baa3033303037540020351300233010005330113756603e60606ea80040322600400a8170a600200f0029801802c00500718188029818802205637009000c590260c050c030004c094010dd69812002101b18010010dd7180c000980c180c8009802980b980a1baa0018b2024300530133754600460266ea8c8cc004004dd61801980a1baa00b22325980099b8f30043005301637540020271001899801801980d001202830180012375c6024602c602e6eacc008c04cdd50009164020300900130043754013149a26cac8011",hash:"da609c9b93fee7a2cce156f879aa1f800ad05e86c587478026540231"},{title:"programmable_logic_global.programmable_logic_global.else",redeemer:{schema:{}},parameters:[{title:"params_policy",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"590a58010100229800aba2aba1aba0aab9faab9eaab9dab9a9bae0024888888896600264653001300900198049805000cdc3a400930090024888966002600460126ea800e33001300d300a3754007370e90004dc3a4005300937540089111192cc004c01000a264b30013014001899198008009bac301400222325980080140162646644b3001300b002899192cc004c07000a0071640646eb4c068004c058dd5001c56600260140051323259800980e001400e2c80c8dd6980d000980b1baa0038b2028405060266ea80044c008c06000cc058009014180100145901118079baa0098acc004c00c00a26464653001375a602a003375a602a007375a602a0049112cc004c06401200f16405830150013014001300f375401316403480686600246024602660260032300f37540032232598009803000c4c8c966002602e0050048b2028375c602a00260226ea800e2b30013005001899192cc004c05c00a0091640506eb8c054004c044dd5001c5900f201e300f375400523012301300148888c8c966002601860266ea800626466446600e00233001329800800d20009bac30073018375401f2640044444b30010028800c4ca600200b3370000890014c08000e4b30013370e00a00315980099b8f300b300c301d375400401113259800980b180e9baa00189810980f1baa0018b2038300f301d37546018603a6ea800a2c80da2600600280d9005180f00120389180d980e180e180e180e180e180e000c8c06cc070c070c070c070006444b30010018a5189991191980080080291192cc004cdc79bae301e005375c603c00315980099b89375a603e00a6eb4c07c00633001008981180140110084528203a8998018019811801203a3021001301d001301e001406d222329800800c012006800888966002005100189919914c00401a604800b32330010010052259800800c4cc090cdd81ba9004375000697adef6c608994c004dd71811000cdd69811800cc09c0092225980099b9000800389981419bb037520106ea001c0162b30013371e01000719800804401e005233029337606ea4024dd40008014400500d44cc0a0cdd81ba900337500046600c00c00281210240c094005023200c375c603a0026eb4c078004c08000901e24444464b30013012301c375402f198009112cc00400a2003132332298008034c09c016646600200200a44b300100189981399bb037520086e9800d2f5bded8c113298009bae30250019bab302600198150012444b30013372001000713302b337606ea4020dd3003802c56600266e3c02000e26605666ec0dd48041ba69800803c00a44444600466e0001000d00e000c4cc0accdd81ba9003374c0046600c00c00281390270c0a0005026200c375c60400026eacc084004c08c00902148896600200310028994c0040124b30013375e00400314a313004001408130250024010603e6046002810a603860406eacc014c074dd500a244464664466ebd3001018000374e6530010019bac30273024375403d98009bac3027302437540373756601660486ea806e44464b30013375e605660506ea8c0acc0a0dd500080944c966002603c60506ea8006264b3001301f3029375400313232300700559800981018151baa0018992cc004c8cc004004dd618181818981898189818981898189818981898169baa024225980099b8f375c606200200714a3133002002303200140b1149a2c8150dd7181718159baa0018acc004c0240062934590292052302d302a37540031640a0605860526ea80062c8138c05cc0a0dd5181598141baa001801204c301630273754006801b30013758602c60486ea806e97adef6c609112cc004cdd7981518139baa302a3027375400602313259800980e98139baa0018acc004c074c09cdd5181598141baa00189801802459026459026180b18139baa302a302737540070014094801900111112cc00400a200713298009bae30270019bab302800198158024c0b000d222259800981098159baa00289919911980f8008acc004cdc7801003c566002601a0031323300100100a22325980099b8f00a375c60620031598009980b1bab30320010098cc00403e606c01d007981b001201e8b2060899801801981b001206030340018b205a8b205a375c6060002606060626062002603a602a6eb4c0bcc0b0dd500144c96600266e40dd71818000802c56600266e40014dd718181818800c660020153031009801401d00a45902b45902b180e980a9bad302f302c3754004815060540048140888ca6002003004801a0022225980080144006330010039815801660026054005233008002302c3756602e60506ea80062002802100320509800801c8cdd7800801cc094dd5980498109baa018400c60060068cc004c074dd500bc888ca6002003004a5eb7bdb1810011112cc00400a33001001a5eb7bdb18297adef6c60401113233225980099b900020088cc00401a00333028003004401915980099b8f0020088cc0040126eacc09800e002803a33001004a5eb7bdb18200a80390242048375c60460026050006604c00481224464646600200200844b3001001801c4c8cc896600266e4401c00a2b30013371e00e0051001803204689980280298148022046375c60440026eacc08c004c0940050230a5eb7bdb182453001002800c88888c966002603400300289801800a046337000080068021222233223298009bae30270019813981418141814000cdd698139814001cdd69813801a4444660300062b300132330010013756602260526ea8080896600266ebcc0a4c0b40040162946266004004605c002814226530010019bac301b30293754041002a5eb7bdb1810011111192cc004cdc4801a40011329800800cdd6181898171baa02580440166601e6eacc054c0b8dd5012805400d0011111112cc004cdc48022400115980099baf4c1018000374e00b133017329800800c01200480088896600200510018cc00400e6074005325980099baf303a303737546074606e6ea800408626602e660306eacc098c0dcdd500080980144009035181c801200640dc0051640c51325980099baf303730343754606e60686ea800407a264b30013375e6070606a6ea8004c0e0c0d4dd5001456600266ebcc09cc0d4dd50009813981a9baa0028cc004dd59812181a9baa002808c88a60026eacc09cc0e0dd50024052444b30015980099baf374c00c6e9800e2b30013375e6e98010dd3000c6600266ebcdd30029ba6002a50a5140e514a081ca294103946600201d303f00d98078064c0fc02e6603601400b3301b00200940391640e480d1017459033459033181b80246600200f30380069804002c012007002401c8190c0d8c0dcc0ccdd5181b002a06289919912cc004cdd7981998181baa3033303037540020351300233010005330113756603e60606ea80040322600400a8170a600200f0029801802c00500718188029818802205637009000c590260c050c030004c094010dd69812002101b18010010dd7180c000980c180c8009802980b980a1baa0018b2024300530133754600460266ea8c8cc004004dd61801980a1baa00b22325980099b8f30043005301637540020271001899801801980d001202830180012375c6024602c602e6eacc008c04cdd50009164020300900130043754013149a26cac8011",hash:"da609c9b93fee7a2cce156f879aa1f800ad05e86c587478026540231"},{title:"protocol_params_mint.protocol_params_mint.mint",redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"always_fail_hash",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"59041c0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9a9bae00248888888896600264653001300900198049805000cdc3a400130090024888966002600460126ea800e26464b300130100018999119912cc004c020c03cdd500144c8c96600266e1d2004301137540031332259800980618099baa00289919912cc004c06c00626464b30013011001899192cc004c07c00a0111640706eb8c074004c064dd5001456600266e1d2002001899192cc004c07c00a0111640706eb8c074004c064dd5001459017202e3017375400260340031640606eb8c060004c064004c050dd5001459012180a98091baa00115980099198008009bac30163013375401444b30010018a508acc004cdd7980b980a1baa301700101c8a51899801001180c000a024405515980099b8f375c602a00691010e50726f746f636f6c506172616d73008acc004cdc39bad301530160034800a266ebcc054c048dd500118029980a19ba548008cc050dd4807a5eb80cc051300103d87a80004bd70452820208a50404114a080822c8080c014c044dd5000980998081baa0028b201c323300100137586006601e6ea8018896600200314c0103d87a80008992cc004cc896600200514a11329800992cc004c034c050dd5000c4dd6980a980c1bab301830153754003148001013180b800cdd7980b980c000cdd5801a444b30010018acc004c00801a26600a00690004528202a8992cc004cdd7980b800a610140008acc004cc018010dd6980c180d9bab3018001898019ba6301c0028a5040591598009980300224001130030078a50405880b0c0680050180ca60020033756602e603060286ea80124466030004660306e980052f5c08008889660020051330014c103d87a80004bd6f7b63044ca60026eb8c0580066eacc05c00660360069112cc004cdc8a441000038acc004cdc7a4410000389980298069980e1ba60024bd70000c4cc015300103d87a8000006406119800803c006446600e0046603c66ec0dd48029ba6004001401c80c0603200480ba2942294229410181ba633013337606ea401cdd31980999bb04c10f4e50726f746f636f6c506172616d73004c010101004bd6f7b63025eb7bdb1808928c4c010cc04c0052f5c11330030033015002403c60260028088c048dd6180880191808180898088009ba5480022c8068c8cc004004c8cc004004dd59808180898089808980898069baa0042259800800c52f5c113233223322330020020012259800800c400e2646602c6e9ccc058dd48029980b18098009980b180a000a5eb80cc00c00cc060008c0580050141bab3011003375c601c00266006006602600460220028078896600200314bd7044cc896600266e3cdd71809001002c4cc044dd380119802002000c4cc01001000500d1bac3010001301100140386eb8c034c028dd5001c590080c024004c010dd5005452689b2b200401",hash:"b35a80517d8fd4bd767e7b20516fbd913b7a4961383ab29cc4a7d92c"},{title:"protocol_params_mint.protocol_params_mint.else",redeemer:{schema:{}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"always_fail_hash",schema:{$ref:"#/definitions/ByteArray"}}],compiledCode:"59041c0101002229800aba4aba2aba1aba0aab9faab9eaab9dab9a9bae00248888888896600264653001300900198049805000cdc3a400130090024888966002600460126ea800e26464b300130100018999119912cc004c020c03cdd500144c8c96600266e1d2004301137540031332259800980618099baa00289919912cc004c06c00626464b30013011001899192cc004c07c00a0111640706eb8c074004c064dd5001456600266e1d2002001899192cc004c07c00a0111640706eb8c074004c064dd5001459017202e3017375400260340031640606eb8c060004c064004c050dd5001459012180a98091baa00115980099198008009bac30163013375401444b30010018a508acc004cdd7980b980a1baa301700101c8a51899801001180c000a024405515980099b8f375c602a00691010e50726f746f636f6c506172616d73008acc004cdc39bad301530160034800a266ebcc054c048dd500118029980a19ba548008cc050dd4807a5eb80cc051300103d87a80004bd70452820208a50404114a080822c8080c014c044dd5000980998081baa0028b201c323300100137586006601e6ea8018896600200314c0103d87a80008992cc004cc896600200514a11329800992cc004c034c050dd5000c4dd6980a980c1bab301830153754003148001013180b800cdd7980b980c000cdd5801a444b30010018acc004c00801a26600a00690004528202a8992cc004cdd7980b800a610140008acc004cc018010dd6980c180d9bab3018001898019ba6301c0028a5040591598009980300224001130030078a50405880b0c0680050180ca60020033756602e603060286ea80124466030004660306e980052f5c08008889660020051330014c103d87a80004bd6f7b63044ca60026eb8c0580066eacc05c00660360069112cc004cdc8a441000038acc004cdc7a4410000389980298069980e1ba60024bd70000c4cc015300103d87a8000006406119800803c006446600e0046603c66ec0dd48029ba6004001401c80c0603200480ba2942294229410181ba633013337606ea401cdd31980999bb04c10f4e50726f746f636f6c506172616d73004c010101004bd6f7b63025eb7bdb1808928c4c010cc04c0052f5c11330030033015002403c60260028088c048dd6180880191808180898088009ba5480022c8068c8cc004004c8cc004004dd59808180898089808980898069baa0042259800800c52f5c113233223322330020020012259800800c400e2646602c6e9ccc058dd48029980b18098009980b180a000a5eb80cc00c00cc060008c0580050141bab3011003375c601c00266006006602600460220028078896600200314bd7044cc896600266e3cdd71809001002c4cc044dd380119802002000c4cc01001000500d1bac3010001301100140386eb8c034c028dd5001c590080c024004c010dd5005452689b2b200401",hash:"b35a80517d8fd4bd767e7b20516fbd913b7a4961383ab29cc4a7d92c"},{title:"registry_mint.registry_mint.mint",redeemer:{title:"redeemer",schema:{$ref:"#/definitions/types~1RegistryRedeemer"}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"issuance_cbor_hex_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"5908ea0101002229800aba2aba1aba0aab9faab9eaab9dab9a9bae0024888888896600264653001300900198049805000cdc3a400130090024888966002600460126ea800e266446644b300130060018acc004c038dd5004400a2c807a2b300130030018991919912cc004c05800e00d16404c6eb8c04c004dd71809801180980098071baa0088b20184030330012301030110019180818089808800c88c8cc00400400c896600200314a115980098019809800c528c4cc008008c05000500e20229b804800a4464b30013007001899192cc004c05400a0091640486eb8c04c004c03cdd5001c56600260080031323259800980a80140122c8090dd7180980098079baa0038b201a4034601a6ea800a6e1d200491191919800800802112cc00400600713233225980099b910070028acc004cdc78038014400600c809226600a00a60300088090dd718088009bab301200130140014048297adef6c609b8f48900918081808980898089808800c8c040c044c044c04400522222222229800999119912cc00400a26603898010180003301c374e00297ae08992cc004c8cc00400400c896600200314a315980099baf3020301d3754604000200713300200230210018a50406c80f226603a6e9c00ccc074dd380125eb822c80c8c074c068dd51807180d1baa301d002406c660046eb0c06cc060dd50079198011bab300d30193754601a60326ea800403ccc008dd61805980c1baa00f2330023756601a60326ea800403c88c8cc00400400c896600200314bd7044cc8966002600a00513301e00233004004001899802002000a034301d001301e001406c446466002002603a00644b30010018a508acc004cdc79bae3019301d0010038a51899801001180f000a030406d2259800800c520008980499801001180e000a0329192cc004c01cc05cdd5000c4c06cc060dd5000c590161805180b9baa001912cc004c040c05cdd500144c8c8c8c8ca60026eb8c0800066eb8c0800166eb8c080012604000491112cc004c094016266022604800e2660220020151640883020001301f001301e001301d00130183754005164059222300e323322330020020012259800800c00e2646644b30013372200e00515980099b8f0070028800c01901d44cc014014c08c01101d1bae301c001375a603a002603e00280e8cc02001000c52000488888ca60024464b3001300e32330010010022259800800c52000899914c004dd718110014dd598118014896600200310038991991180c9980280298160021bae3025001375a604c00260500028131222330010010021812000998010011812800a0448992cc004c054c014006264660100022b3001337206eb8c090c084dd50009bae301530213754003159800981280144c8c96600260306eb4c08c00a2b30015980099b8f001375c604c60466ea800e294626020002810a20071640851640846eb8c084004c09000a2c81122c80f8c0200122c80f0cc03400400a2c80e8dd59809180f1baa0029bac301f30200069bac301f006488966002602e603c6ea80662b30013301137586044603e6ea80588cdd7981198101baa0010278acc004c08c00a264b3001598008014528c52820428acc004c034dd7181198101baa0018acc004cdc79bae3014302037540029111effffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008acc004cdd7980998101baa0014c0105d8799f40ff008acc004cdd7980598101baa0014c0105d8799f40ff008acc004c034dd7180618101baa0018cc004dd5980618101baa01780b522100401914a080f2294101e4528203c8a50407914a080f2294101e19801981100100ac590204528203a89919912cc004c068c084dd5000c4c966002603660446ea8006264646644b3001302b0038992cc004c0b002a26466020002264b30010038992cc004c004dc6805c56600266e40dd7181718159baa00300b8acc004cdc80059bae301f302b3754007159800cc004dd5980b98159baa022810c02d01145660026034646600200200644b30010018a40011301e33002002303100140b91598009980e80112cc004cdc79bae302f302c37540026eb8c0bcc0b0dd5002456600266e3cdd7181018161baa00100c8acc004cdd7980f98161baa001301f302c375400915980099baf3017302c3754002602e60586ea8012266e3cdd7180c18161baa001375c603060586ea8012294102a452820548a5040a914a0815226603a00446464b30013371e6eb8c0c4c0b8dd5001807456600266e3cdd7181118171baa003375c6044605c6ea801a2b300130013021302e37540071598009800980c98171baa0038acc004c098dc69bae301a302e375400714a313004371a6eb8c068c0b8dd5001a0588a5040b114a08162294102c45282058259800981318169baa001898011bae3031302e375400313002375c6062605c6ea800502c1192cc004c01000629462604c0028160dc6800c52820528a5040a514a0814a2941029452820528a5040a46e1d20388a5040a0646600200201a44b30010018a5eb8226605a6601e605c00204266004004605e0028160c040c070c0a0dd518158054590292cc004c8cc004004c8cc004004dd5980a98149baa0202259800800c52f5c113233223322330020020012259800800c400e264660646e9ccc0c8dd4802998191817800998191818000a5eb80cc00c00cc0d0008c0c80050301bab302d003375c605400266006006605e004605a0028158896600200314a1159800992cc004cdc79bae302d00100a899b8848000dd6981698171817000c52820503758605800314a3133002002302d001409c8152266e3cde419b8a4881010300337146eb8c0a8c09cdd500299b8a375c605460560106eb8c06cc09cdd5002803c528204a8b2050375c60500026eb8c0a0008c0a0004c08cdd5000c590211805180b18111baa3025302237540031640806eb8c08c004c8cc004004dd6180a98109baa0182259800800c530103d87a80008992cc0066002b3001330113756602e60466ea8c05cc08cdd50008104528c5282048a50a51408513374a900019812800a5eb82266006006604e0048108c094005023180f9baa019407430040040c02cdd50031bae300d300a37540066e1d20028b2010180480098021baa0098a4d1365640081",hash:"7caba74f4f7d0b7f813a05552ba48bbcd3b49f6d6b4fda9c22a3fe06"},{title:"registry_mint.registry_mint.else",redeemer:{schema:{}},parameters:[{title:"utxo_ref",schema:{$ref:"#/definitions/cardano~1transaction~1OutputReference"}},{title:"issuance_cbor_hex_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"5908ea0101002229800aba2aba1aba0aab9faab9eaab9dab9a9bae0024888888896600264653001300900198049805000cdc3a400130090024888966002600460126ea800e266446644b300130060018acc004c038dd5004400a2c807a2b300130030018991919912cc004c05800e00d16404c6eb8c04c004dd71809801180980098071baa0088b20184030330012301030110019180818089808800c88c8cc00400400c896600200314a115980098019809800c528c4cc008008c05000500e20229b804800a4464b30013007001899192cc004c05400a0091640486eb8c04c004c03cdd5001c56600260080031323259800980a80140122c8090dd7180980098079baa0038b201a4034601a6ea800a6e1d200491191919800800802112cc00400600713233225980099b910070028acc004cdc78038014400600c809226600a00a60300088090dd718088009bab301200130140014048297adef6c609b8f48900918081808980898089808800c8c040c044c044c04400522222222229800999119912cc00400a26603898010180003301c374e00297ae08992cc004c8cc00400400c896600200314a315980099baf3020301d3754604000200713300200230210018a50406c80f226603a6e9c00ccc074dd380125eb822c80c8c074c068dd51807180d1baa301d002406c660046eb0c06cc060dd50079198011bab300d30193754601a60326ea800403ccc008dd61805980c1baa00f2330023756601a60326ea800403c88c8cc00400400c896600200314bd7044cc8966002600a00513301e00233004004001899802002000a034301d001301e001406c446466002002603a00644b30010018a508acc004cdc79bae3019301d0010038a51899801001180f000a030406d2259800800c520008980499801001180e000a0329192cc004c01cc05cdd5000c4c06cc060dd5000c590161805180b9baa001912cc004c040c05cdd500144c8c8c8c8ca60026eb8c0800066eb8c0800166eb8c080012604000491112cc004c094016266022604800e2660220020151640883020001301f001301e001301d00130183754005164059222300e323322330020020012259800800c00e2646644b30013372200e00515980099b8f0070028800c01901d44cc014014c08c01101d1bae301c001375a603a002603e00280e8cc02001000c52000488888ca60024464b3001300e32330010010022259800800c52000899914c004dd718110014dd598118014896600200310038991991180c9980280298160021bae3025001375a604c00260500028131222330010010021812000998010011812800a0448992cc004c054c014006264660100022b3001337206eb8c090c084dd50009bae301530213754003159800981280144c8c96600260306eb4c08c00a2b30015980099b8f001375c604c60466ea800e294626020002810a20071640851640846eb8c084004c09000a2c81122c80f8c0200122c80f0cc03400400a2c80e8dd59809180f1baa0029bac301f30200069bac301f006488966002602e603c6ea80662b30013301137586044603e6ea80588cdd7981198101baa0010278acc004c08c00a264b3001598008014528c52820428acc004c034dd7181198101baa0018acc004cdc79bae3014302037540029111effffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008acc004cdd7980998101baa0014c0105d8799f40ff008acc004cdd7980598101baa0014c0105d8799f40ff008acc004c034dd7180618101baa0018cc004dd5980618101baa01780b522100401914a080f2294101e4528203c8a50407914a080f2294101e19801981100100ac590204528203a89919912cc004c068c084dd5000c4c966002603660446ea8006264646644b3001302b0038992cc004c0b002a26466020002264b30010038992cc004c004dc6805c56600266e40dd7181718159baa00300b8acc004cdc80059bae301f302b3754007159800cc004dd5980b98159baa022810c02d01145660026034646600200200644b30010018a40011301e33002002303100140b91598009980e80112cc004cdc79bae302f302c37540026eb8c0bcc0b0dd5002456600266e3cdd7181018161baa00100c8acc004cdd7980f98161baa001301f302c375400915980099baf3017302c3754002602e60586ea8012266e3cdd7180c18161baa001375c603060586ea8012294102a452820548a5040a914a0815226603a00446464b30013371e6eb8c0c4c0b8dd5001807456600266e3cdd7181118171baa003375c6044605c6ea801a2b300130013021302e37540071598009800980c98171baa0038acc004c098dc69bae301a302e375400714a313004371a6eb8c068c0b8dd5001a0588a5040b114a08162294102c45282058259800981318169baa001898011bae3031302e375400313002375c6062605c6ea800502c1192cc004c01000629462604c0028160dc6800c52820528a5040a514a0814a2941029452820528a5040a46e1d20388a5040a0646600200201a44b30010018a5eb8226605a6601e605c00204266004004605e0028160c040c070c0a0dd518158054590292cc004c8cc004004c8cc004004dd5980a98149baa0202259800800c52f5c113233223322330020020012259800800c400e264660646e9ccc0c8dd4802998191817800998191818000a5eb80cc00c00cc0d0008c0c80050301bab302d003375c605400266006006605e004605a0028158896600200314a1159800992cc004cdc79bae302d00100a899b8848000dd6981698171817000c52820503758605800314a3133002002302d001409c8152266e3cde419b8a4881010300337146eb8c0a8c09cdd500299b8a375c605460560106eb8c06cc09cdd5002803c528204a8b2050375c60500026eb8c0a0008c0a0004c08cdd5000c590211805180b18111baa3025302237540031640806eb8c08c004c8cc004004dd6180a98109baa0182259800800c530103d87a80008992cc0066002b3001330113756602e60466ea8c05cc08cdd50008104528c5282048a50a51408513374a900019812800a5eb82266006006604e0048108c094005023180f9baa019407430040040c02cdd50031bae300d300a37540066e1d20028b2010180480098021baa0098a4d1365640081",hash:"7caba74f4f7d0b7f813a05552ba48bbcd3b49f6d6b4fda9c22a3fe06"},{title:"registry_spend.registry_spend.spend",datum:{title:"_datum",schema:{$ref:"#/definitions/Data"}},redeemer:{title:"_redeemer",schema:{$ref:"#/definitions/Data"}},parameters:[{title:"protocol_params_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"59025f010100229800aba2aba1aba0aab9faab9eaab9dab9a9bae0024888888896600264653001300900198049805000cc0240092225980099b8748008c020dd500144cc8a6002601c005300e300f00299198008009bac3002300c375400844b30010018a60103d87a80008992cc004c8cc004004c04cdd5980298079baa3005300f375400444b30010018a508acc004cdc79bae300f301300100d8a51899801001180a000a01c404513374a900019808000a5eb8226600600660240048060c04000500e4dc3a400091112cc004c004c038dd500144c8c966002600660206ea800a2646644b30013018001899192cc004c02000626464b3001301c0028044590191bae301a0013016375400515980099b874800800626464b3001301c0028044590191bae301a0013016375400516405080a0c050dd5000980b800c590151bae301500130160013011375400516403c264646600200264660020026eacc058c05cc05cc05cc05cc04cdd5005912cc004006297ae08991991199119801001000912cc00400620071323301c374e660386ea4014cc070c064004cc070c0680052f5c066006006603c004603800280d0dd5980b8019bae30140013300300330190023017001405444b30010018a508acc004c96600266e3cdd7180b800802466002600c6eb4c05cc060c060006942945012452820243758602c00314a31330020023017001404480a0dd7180998081baa001325980099b8748010c03cdd5000c4c04cc040dd5000c5900e18091809980998079baa3005300f37546024601e6ea800a2c806860126ea80088c034c0380062c8038601200260086ea802629344d95900201",hash:"d38270f68cf6138cc7815cce73342378701cc6352f6f15f65235f6b5"},{title:"registry_spend.registry_spend.else",redeemer:{schema:{}},parameters:[{title:"protocol_params_cs",schema:{$ref:"#/definitions/cardano~1assets~1PolicyId"}}],compiledCode:"59025f010100229800aba2aba1aba0aab9faab9eaab9dab9a9bae0024888888896600264653001300900198049805000cc0240092225980099b8748008c020dd500144cc8a6002601c005300e300f00299198008009bac3002300c375400844b30010018a60103d87a80008992cc004c8cc004004c04cdd5980298079baa3005300f375400444b30010018a508acc004cdc79bae300f301300100d8a51899801001180a000a01c404513374a900019808000a5eb8226600600660240048060c04000500e4dc3a400091112cc004c004c038dd500144c8c966002600660206ea800a2646644b30013018001899192cc004c02000626464b3001301c0028044590191bae301a0013016375400515980099b874800800626464b3001301c0028044590191bae301a0013016375400516405080a0c050dd5000980b800c590151bae301500130160013011375400516403c264646600200264660020026eacc058c05cc05cc05cc05cc04cdd5005912cc004006297ae08991991199119801001000912cc00400620071323301c374e660386ea4014cc070c064004cc070c0680052f5c066006006603c004603800280d0dd5980b8019bae30140013300300330190023017001405444b30010018a508acc004c96600266e3cdd7180b800802466002600c6eb4c05cc060c060006942945012452820243758602c00314a31330020023017001404480a0dd7180998081baa001325980099b8748010c03cdd5000c4c04cc040dd5000c5900e18091809980998079baa3005300f37546024601e6ea800a2c806860126ea80088c034c0380062c8038601200260086ea802629344d95900201",hash:"d38270f68cf6138cc7815cce73342378701cc6352f6f15f65235f6b5"}],definitions:{ByteArray:{title:"ByteArray",dataType:"bytes"},Data:{title:"Data",description:"Any Plutus data."},Int:{dataType:"integer"},"List<types/RegistryProof>":{dataType:"list",items:{$ref:"#/definitions/types~1RegistryProof"}},"aiken/crypto/ScriptHash":{title:"ScriptHash",dataType:"bytes"},"aiken/crypto/VerificationKeyHash":{title:"VerificationKeyHash",dataType:"bytes"},"cardano/address/Credential":{title:"Credential",description:`A general structure for representing an on-chain \`Credential\`.
131
131
 
132
132
  Credentials are always one of two kinds: a direct public/private key
133
133
  pair, or a script (native or Plutus).`,anyOf:[{title:"VerificationKey",dataType:"constructor",index:0,fields:[{$ref:"#/definitions/aiken~1crypto~1VerificationKeyHash"}]},{title:"Script",dataType:"constructor",index:1,fields:[{$ref:"#/definitions/aiken~1crypto~1ScriptHash"}]}]},"cardano/assets/PolicyId":{title:"PolicyId",dataType:"bytes"},"cardano/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/ByteArray"},{title:"output_index",$ref:"#/definitions/Int"}]}]},"types/ProgrammableLogicGlobalRedeemer":{title:"ProgrammableLogicGlobalRedeemer",description:"Redeemer for the global programmable logic stake validator",anyOf:[{title:"TransferAct",description:"Transfer action with proofs for each token type",dataType:"constructor",index:0,fields:[{title:"proofs",$ref:"#/definitions/List<types~1RegistryProof>"}]},{title:"ThirdPartyAct",description:`Third party action for admin operations (seizure, freeze, etc.)
134
- Supports multiple UTxOs in a single transaction`,dataType:"constructor",index:1,fields:[{title:"registry_node_idx",description:"Index of the registry node in reference inputs",$ref:"#/definitions/Int"},{title:"outputs_start_idx",description:"Starting index in outputs where processed outputs begin",$ref:"#/definitions/Int"},{title:"length_inputs",description:"Length of input_idxs list (for validation)",$ref:"#/definitions/Int"}]}]},"types/RegistryProof":{title:"RegistryProof",description:"Proof that a token is (or is not) in the registry",anyOf:[{title:"TokenExists",description:"Token exists in the registry at this reference input index",dataType:"constructor",index:0,fields:[{title:"node_idx",$ref:"#/definitions/Int"}]},{title:"TokenDoesNotExist",description:"Token does not exist (proof via covering node at this index)",dataType:"constructor",index:1,fields:[{title:"node_idx",$ref:"#/definitions/Int"}]}]},"types/RegistryRedeemer":{title:"RegistryRedeemer",description:"Redeemer for registry minting policy (linked list operations)",anyOf:[{title:"RegistryInit",description:"Initialize the registry with the origin node",dataType:"constructor",index:0,fields:[]},{title:"RegistryInsert",description:"Insert a new programmable token policy into the registry",dataType:"constructor",index:1,fields:[{title:"key",$ref:"#/definitions/ByteArray"},{title:"hashed_param",$ref:"#/definitions/ByteArray"}]}]},"types/SmartTokenMintingAction":{title:"SmartTokenMintingAction",description:"Action for the minting policy",anyOf:[{title:"SmartTokenMintingAction",dataType:"constructor",index:0,fields:[{title:"minting_logic_cred",description:"The credential of the minting logic script that must be invoked",$ref:"#/definitions/cardano~1address~1Credential"}]}]}}};var be=require("@meshsdk/core-cst"),le=require("@meshsdk/core");var d0=require("@meshsdk/core-cst");var O0={txHash:"259e58611145bf7276bf5e97e7924cfa704f0d658b7e53b445be976649fc59e7",protocolParams:{txInput:{txHash:"c39b5e0db71df7fd41d7dc44d66911d99d98bb7e76127b5335bb04dc3087f973",outputIndex:0},scriptHash:"debc6597dd54b0c372dc30c72494f49b2a0a6a6c9058dc6a67748214",alwaysFailScriptHash:"de8efca54bfd3b0a445f9d9f72a1c1b2524928f810ea106a6ca9aa99"},programmableLogicGlobalParams:{protocolParamsScriptHash:"debc6597dd54b0c372dc30c72494f49b2a0a6a6c9058dc6a67748214",scriptHash:"24b338c9996217cc2a9770e00efe7d66ad459fa368d0eb804956c046"},programmableLogicBaseParams:{programmableLogicGlobalScriptHash:"24b338c9996217cc2a9770e00efe7d66ad459fa368d0eb804956c046",scriptHash:"3a7ce34145cbc597a85ac83db88c029ff9e909d92e04a7b2376b31ff"},issuanceParams:{txInput:{txHash:"c39b5e0db71df7fd41d7dc44d66911d99d98bb7e76127b5335bb04dc3087f973",outputIndex:1},scriptHash:"188a2b2cc43b93f026ccb56bfe7a1eea121e9a74e5bdb6259a0215e1",alwaysFailScriptHash:"de8efca54bfd3b0a445f9d9f72a1c1b2524928f810ea106a6ca9aa99"},directoryMintParams:{txInput:{txHash:"c39b5e0db71df7fd41d7dc44d66911d99d98bb7e76127b5335bb04dc3087f973",outputIndex:0},issuanceScriptHash:"188a2b2cc43b93f026ccb56bfe7a1eea121e9a74e5bdb6259a0215e1",scriptHash:"91b403111a7fab9ffbf5a3c7485d3f9a79d5bf65f38c8d48359be4c0"},directorySpendParams:{protocolParamsPolicyId:"debc6597dd54b0c372dc30c72494f49b2a0a6a6c9058dc6a67748214",scriptHash:"b672f3b03d19cd40c59c447aabd6c26ca296bbc78b205e5227317638"},programmableBaseRefInput:{txHash:"259e58611145bf7276bf5e97e7924cfa704f0d658b7e53b445be976649fc59e7",outputIndex:3},programmableGlobalRefInput:{txHash:"259e58611145bf7276bf5e97e7924cfa704f0d658b7e53b445be976649fc59e7",outputIndex:4}};var ne=async(n,i)=>{let c=(0,d0.deserializeAddress)(n).asBase()?.getStakeCredential().hash;if(!c)throw new Error("Address missing stake credential");let a=await new e0(i).programmableLogicBase(O0);return(0,d0.buildBaseAddress)(i,a.policyId,c,d0.CredentialType.ScriptHash,d0.CredentialType.KeyHash).toAddress().toBech32()},h0=n=>{let i=(0,d0.deserializeAddress)(n).asBase()?.getStakeCredential().hash;if(!i)throw new Error("Address missing stake credential");return i};async function w0(n,i,c){let e=new j(n),a=await e.blacklistMint(i,c),t=await e.blacklistSpend(a.policyId);return{blacklistMint:a,blacklistSpend:t}}var oe=async(n,i)=>(await new j(i).blacklistSpend(n)).address;var R0=(n,i=!0)=>{let c=i?[Ac]:[wc,Tc];for(let e of c){let a=e.validators.find(({title:t})=>t===n);if(a)return a.compiledCode}throw new Error(`Validator ${n} not found`)},Sc=n=>kc.default.encode(Buffer.from(n,"hex")).toString("hex");function m0(n){if(!n)return"";if(typeof n=="string")return n;if(n.bytes)return n.bytes;if(n.fields&&n.fields.length>0){let i=n.fields[0];if(typeof i=="string")return i;if(i?.bytes)return i.bytes}return""}function $0(n){if(!n?.fields||n.fields.length<5)return null;let i=c=>({hash:m0(c),index:c.constructor??0});return{key:m0(n.fields[0]),next:m0(n.fields[1]),transferScript:i(n.fields[2]),thirdPartyScript:i(n.fields[3]),metadata:m0(n.fields[4])}}function P0(n){return!n?.fields||n.fields.length<2?null:{key:m0(n.fields[0]),next:m0(n.fields[1])}}var Cc=async(n,i,c)=>{let e=[],a=0;for(let d of n){if(a>=c)break;let s=d.output.amount.find(o=>o.unit===i);s&&(e.push(d),a+=Number(s.quantity))}let t=a-c;return{selectedUtxos:e,returningAmount:t}};var e0=class{constructor(i){r(this,"networkID",i)}build(i,c){let e=(0,U.applyParamsToScript)(R0(i),c,"JSON");return{cbor:e,plutusScript:{code:e,version:"V3"}}}txRef(i){return(0,k.conStr)(0,[(0,k.byteString)(i.txHash),(0,k.integer)(i.outputIndex)])}resolveParam(i,c,e){let a=typeof i=="string"?i:c(i);if(!a)throw new Error(e);return a}toAddress(i,c=void 0){return(0,U.serializePlutusScript)(i,c,this.networkID,!1).address}async issuanceMint(i,c){let e=this.resolveParam(c,d=>d.programmableLogicBaseParams.scriptHash,"could not resolve issuance mint parameters"),{cbor:a,plutusScript:t}=this.build("issuance_mint.issuance_mint.mint",[(0,k.conStr1)([(0,k.byteString)(e)]),(0,k.conStr1)([(0,k.byteString)(i)])]);return{cbor:a,plutusScript:t,policyId:(0,U.resolveScriptHash)(a,"V3"),address:this.toAddress(t)}}async issuanceCborHexMint(i){let{cbor:c,plutusScript:e}=this.build("issuance_cbor_hex_mint.issuance_cbor_hex_mint.mint",[this.txRef(i)]);return{cbor:c,plutusScript:e,policyId:(0,U.resolveScriptHash)(c,"V3"),address:this.toAddress(e)}}async programmableLogicBase(i){let c=this.resolveParam(i,t=>t.programmableLogicGlobalParams.scriptHash,"could not resolve logic base parameter"),{cbor:e,plutusScript:a}=this.build("programmable_logic_base.programmable_logic_base.spend",[(0,k.conStr1)([(0,k.byteString)(c)])]);return{cbor:e,plutusScript:a,policyId:(0,U.resolveScriptHash)(e,"V3")}}async programmableLogicGlobal(i){let c=this.resolveParam(i,d=>d.protocolParams.scriptHash,"could not resolve logic global parameter"),{cbor:e,plutusScript:a}=this.build("programmable_logic_global.programmable_logic_global.withdraw",[(0,k.byteString)(c)]),t=(0,U.resolveScriptHash)(e,"V3");return{cbor:e,plutusScript:a,scriptHash:t,rewardAddress:(0,H0.scriptHashToRewardAddress)(t,this.networkID)}}async protocolParamMint(i){let{cbor:c,plutusScript:e}=this.build("protocol_params_mint.protocol_params_mint.mint",[this.txRef(i)]),a=(0,U.resolveScriptHash)(c,"V3");return{cbor:c,plutusScript:e,scriptHash:a,address:this.toAddress(e)}}async registryMint(i,c){let e=typeof i=="string"?i:i.directoryMintParams.issuanceScriptHash,a=typeof i=="string"?c:i.directoryMintParams.txInput;if(!a)throw new Error("register mint utxo parameter could not resolve");if(!e)throw new Error("registry mint param script hash could not resolve");let{cbor:t,plutusScript:d}=this.build("registry_mint.registry_mint.mint",[this.txRef(a),(0,k.byteString)(e)]);return{cbor:t,plutusScript:d,policyId:(0,U.resolveScriptHash)(t,"V3")}}async registrySpend(i){let c=this.resolveParam(i,t=>t.protocolParams.scriptHash,"could not resolve params for registry spend"),{cbor:e,plutusScript:a}=this.build("registry_spend.registry_spend.spend",[(0,k.byteString)(c)]);return{cbor:e,plutusScript:a,policyId:(0,U.resolveScriptHash)(e,"V3"),address:this.toAddress(a,"")}}},j=class{constructor(i){r(this,"networkID",i)}buildRaw(i){let c=Sc(R0(i,!1)),e={code:c,version:"V3"},a=(0,U.resolveScriptHash)(c,"V3"),t=(0,H0.scriptHashToRewardAddress)(a,this.networkID);return{_cbor:c,plutusScript:e,policyId:a,rewardAddress:t}}buildWithParams(i,c){let e=R0(i,!1),a=(0,U.applyParamsToScript)(e,c,"JSON"),t={code:a,version:"V3"},d=(0,U.resolveScriptHash)(a,"V3"),s=(0,H0.scriptHashToRewardAddress)(d,this.networkID);return{cbor:a,plutusScript:t,policyId:d,rewardAddress:s}}txRef(i){return(0,k.conStr)(0,[(0,k.byteString)(i.txHash),(0,k.integer)(i.outputIndex)])}async issue(){return this.buildRaw("transfer.issue.withdraw")}async transfer(){return this.buildRaw("transfer.transfer.withdraw")}async blacklistSpend(i){let{cbor:c,plutusScript:e,policyId:a}=this.buildWithParams("blacklist_spend.blacklist_spend.spend",[(0,k.byteString)(i)]),t=(0,U.serializePlutusScript)(e,"",this.networkID,!1).address;return{cbor:c,plutusScript:e,address:t,policyId:a}}async blacklistMint(i,c){return this.buildWithParams("blacklist_mint.blacklist_mint.mint",[this.txRef(i),(0,k.byteString)(c)])}async issuerAdmin(i){return this.buildWithParams("example_transfer_logic.issuer_admin_contract.withdraw",[(0,k.conStr)(0,[(0,k.byteString)(i)])])}async customTransfer(i,c){let{cbor:e,plutusScript:a,policyId:t,rewardAddress:d}=this.buildWithParams("example_transfer_logic.transfer.withdraw",[(0,k.conStr1)([(0,k.byteString)(i)]),(0,k.byteString)(c)]);return{cbor:e,plutusScript:a,policyId:t,rewardAddress:d}}};var ac=class extends O{constructor(c,e){super(c);r(this,"inputs",c);r(this,"_blacklistBootstrap");r(this,"_params");r(this,"mintToken",async(c,e,a,t)=>{let d=this._params,s=this.fetcher,o=this.wallet;if(!d||!s||!o)throw new Error("Contract parameters, fetcher, or wallet not initialized");let{utxos:b,walletAddress:l,collateral:f}=await this.getWalletInfoForTx(),u=new e0(this.networkId),y=await new j(this.networkId).issuerAdmin(a),T=y.cbor,C=y.policyId,P=await u.issuanceMint(C,d),_=(0,p.conStr0)([(0,p.conStr1)([(0,p.byteString)(C)])]),S=[{unit:"lovelace",quantity:"1300000"},{unit:P.policyId+(0,p.stringToHex)(c),quantity:e}],A=(0,p.conStr0)([]);return this.mesh.txEvaluationMultiplier=1.3,this.mesh.withdrawalPlutusScriptV3().withdrawal(y.rewardAddress,"0").withdrawalScript(T).withdrawalRedeemerValue((0,p.conStr0)([]),"JSON").mintPlutusScriptV3().mint(e,P.policyId,(0,p.stringToHex)(c)).mintingScript(P.cbor).mintRedeemerValue(_,"JSON").txOut(t,S).txOutInlineDatumValue(A,"JSON").requiredSignerHash(a).txInCollateral(f.input.txHash,f.input.outputIndex).selectUtxosFrom(b).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(l),await this.mesh.complete()});r(this,"burnToken",async(c,e,a,t,d)=>{let s=this._params,o=this.fetcher,b=this.wallet;if(!s||!o||!b)throw new Error("Contract parameters, fetcher, or wallet not initialized");let{utxos:l,walletAddress:f,collateral:u}=await this.getWalletInfoForTx(),h=new e0(this.networkId),y=new j(this.networkId),T=await h.programmableLogicBase(s),C=await h.programmableLogicGlobal(s),P=await h.registrySpend(s),_=await y.issuerAdmin(d),S=await h.issuanceMint(_.policyId,s),A=(await o.fetchUTxOs(a,t))?.[0];if(!A)throw new Error("Token UTxO not found");let I=S.policyId+(0,p.stringToHex)(c),L=A.output.amount.find(x=>x.unit===I)?.quantity??"0";if(Number(e)>Number(L))throw new Error("Not enough tokens to burn");let E=(await o.fetchAddressUTxOs(P.address)).find(x=>x.output.plutusData?$0((0,n0.deserializeDatum)(x.output.plutusData))?.key===S.policyId:!1);if(!E)throw new Error("Registry entry not found, token not registered");let M=l.find(x=>BigInt(x.output.amount.find(N=>N.unit==="lovelace")?.quantity??"0")>5000000n);if(!M)throw new Error("No UTXO with enough ADA for fees found");let a0=(await o.fetchUTxOs(s.txHash,0))?.[0];if(!a0)throw new Error("Protocol params missing");let o0=[M,A].length,J=(x,N)=>x.input.txHash!==N.input.txHash?x.input.txHash.localeCompare(N.input.txHash):x.input.outputIndex-N.input.outputIndex,G=[a0,E].sort(J),t0=G.findIndex(x=>x.input.txHash===E.input.txHash&&x.input.outputIndex===E.input.outputIndex);if(t0===-1)throw new Error("Could not find registry in sorted reference inputs");let y0=(0,p.conStr0)([(0,p.conStr1)([(0,p.byteString)(_.policyId)])]),b0=(0,p.conStr1)([(0,p.integer)(t0),(0,p.integer)(0),(0,p.integer)(o0)]),X=A.output.amount.map(x=>x.unit===I?{unit:x.unit,quantity:String(BigInt(x.quantity)-BigInt(e))}:x).filter(x=>BigInt(x.quantity)>0n);this.mesh.txEvaluationMultiplier=1.3,this.mesh.txIn(M.input.txHash,M.input.outputIndex).spendingPlutusScriptV3().txIn(A.input.txHash,A.input.outputIndex).txInScript(T.cbor).txInInlineDatumPresent().txInRedeemerValue((0,p.conStr0)([]),"JSON").withdrawalPlutusScriptV3().withdrawal(_.rewardAddress,"0").withdrawalScript(_.cbor).withdrawalRedeemerValue((0,p.conStr0)([]),"JSON").withdrawalPlutusScriptV3().withdrawal(C.rewardAddress,"0").withdrawalScript(C.cbor).withdrawalRedeemerValue(b0,"JSON").mintPlutusScriptV3().mint(`-${e}`,S.policyId,(0,p.stringToHex)(c)).mintingScript(S.cbor).mintRedeemerValue(y0,"JSON"),X.length>0&&this.mesh.txOut(A.output.address,X).txOutInlineDatumValue((0,p.conStr0)([]),"JSON");for(let x of G)this.mesh.readOnlyTxInReference(x.input.txHash,x.input.outputIndex);return this.mesh.requiredSignerHash(d).txInCollateral(u.input.txHash,u.input.outputIndex).selectUtxosFrom(l).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(f),await this.mesh.complete()});r(this,"transferToken",async(c,e,a,t)=>{let d=this._params,s=this.fetcher,o=this.wallet;if(!d||!s||!o)throw new Error("Contract parameters, fetcher, or wallet not initialized");let b=c.substring(0,p.POLICY_ID_LENGTH),{utxos:l,walletAddress:f,collateral:u}=await this.getWalletInfoForTx(),h=new e0(this.networkId),y=new j(this.networkId),T=await h.programmableLogicBase(d),C=await h.programmableLogicGlobal(d),P=await h.registrySpend(d);if(!this._blacklistBootstrap)throw new Error("Blacklist bootstrap not initialized");let _=this._blacklistBootstrap.blacklistMintBootstrap.scriptHash,S=await y.customTransfer(d.programmableLogicBaseParams.scriptHash,_),A=S.cbor;if(!(await s.fetchAddressUTxOs(P.address)).find(g=>g.output.plutusData?$0((0,n0.deserializeDatum)(g.output.plutusData))?.key===b:!1))throw new Error("Could not find registry entry for token");let L=(await s.fetchUTxOs(d.txHash,0))?.[0];if(!L)throw new Error("Could not resolve protocol params");let W=await s.fetchAddressUTxOs(a);if(!W?.length)throw new Error("No programmable tokens found at sender address");let{selectedUtxos:E}=await Cc(W,c,Number(e));if(!E.length)throw new Error("Not enough funds");let M=(g,H)=>g.input.txHash!==H.input.txHash?g.input.txHash.localeCompare(H.input.txHash):g.input.outputIndex-H.input.outputIndex,a0=[...E].sort(M),o0=[],J=[];for(let g of a0){o0.push(g);for(let H of g.output.amount){if(H.unit==="lovelace")continue;let D=H.unit.substring(0,56);J.includes(D)||J.push(D)}}J.sort();let G=[];if(_){let g=await y.blacklistSpend(_),H=await s.fetchAddressUTxOs(g.address);for(let D of o0){let l0=h0(D.output.address);if(!l0)throw new Error("UTXO missing stake credential");let T0=H.find(ic=>{if(!ic.output.plutusData)return!1;let x0=P0((0,n0.deserializeDatum)(ic.output.plutusData));if(!x0)return!1;let $c=x0.key===""||l0>x0.key,Pc=x0.next===""||l0<x0.next;return $c&&Pc});if(!T0)throw new Error(`Blacklist proof not found for wallet ${l0}`);G.push(T0)}}let t0=[],y0=await s.fetchAddressUTxOs(P.address);for(let g of J){let H=d.directoryMintParams.scriptHash+g,D=y0.find(l0=>l0.output.amount.find(T0=>T0.unit===H));if(!D)throw new Error(`Registry node not found for policy ${g}`);t0.push(D)}let X=[...[...new Map(G.map(g=>[`${g.input.txHash}#${g.input.outputIndex}`,g])).values()],...t0,L].sort(M),x=(0,p.list)(G.map(g=>{let H=X.findIndex(D=>D.input.txHash===g.input.txHash&&D.input.outputIndex===g.input.outputIndex);return(0,p.conStr0)([(0,p.integer)(H)])})),N=(0,p.conStr0)([(0,p.list)(t0.map(g=>{let H=X.findIndex(D=>D.input.txHash===g.input.txHash&&D.input.outputIndex===g.input.outputIndex);return(0,p.conStr0)([(0,p.integer)(H)])}))]),tc=E.reduce((g,H)=>g+BigInt(H.output.amount.find(D=>D.unit===c)?.quantity??"0"),0n),_c=E.reduce((g,H)=>g+BigInt(H.output.amount.find(D=>D.unit==="lovelace")?.quantity??"0"),0n);if(tc<BigInt(e))throw new Error("Not enough funds");let dc=1500000n,v0=tc-BigInt(e),Oc=[{unit:"lovelace",quantity:dc.toString()},{unit:c,quantity:e}],V0=_c-dc,Rc=[{unit:"lovelace",quantity:(V0>1000000n?V0:1500000n).toString()},...v0>0n?[{unit:c,quantity:v0.toString()}]:[]];this.mesh.verbose=!0,this.mesh.evaluator=this.inputs.mesh.evaluator;for(let g of a0)this.mesh.spendingPlutusScriptV3().txIn(g.input.txHash,g.input.outputIndex).txInScript(T.cbor).txInRedeemerValue((0,p.conStr0)([]),"JSON").txInInlineDatumPresent();this.mesh.withdrawalPlutusScriptV3().withdrawal(S.rewardAddress,"0").withdrawalScript(A).withdrawalRedeemerValue(x,"JSON").withdrawalPlutusScriptV3().withdrawal(C.rewardAddress,"0").withdrawalScript(C.cbor).withdrawalRedeemerValue(N,"JSON"),(v0>0n||V0>1000000n)&&this.mesh.txOut(a,Rc).txOutInlineDatumValue((0,p.conStr0)([]),"JSON"),this.mesh.txOut(t,Oc).txOutInlineDatumValue((0,p.conStr0)([]),"JSON");for(let g of X)this.mesh.readOnlyTxInReference(g.input.txHash,g.input.outputIndex);return this.mesh.requiredSignerHash(h0(a)).setFee("600000").txInCollateral(u.input.txHash,u.input.outputIndex).selectUtxosFrom(l).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(f),await this.mesh.complete()});r(this,"blacklistSmartWalletAddress",async c=>{let e=this.fetcher,a=this.wallet;if(!e||!a)throw new Error("Fetcher or wallet not initialized");let{utxos:t,walletAddress:d,collateral:s}=await this.getWalletInfoForTx();if(!this._blacklistBootstrap)throw new Error("Blacklist bootstrap not initialized");let o=this._blacklistBootstrap.blacklistMintBootstrap,{blacklistMint:b,blacklistSpend:l}=await w0(this.networkId,o.txInput,o.adminPubKeyHash);if(!this.fetcher)throw new Error("Fetcher not initialized");let f=await e.fetchAddressUTxOs(l.address);if(!f?.length)throw new Error("No blacklist UTxOs found");let u=h0(c),h=null,y=null;for(let A of f){if(!A.output.plutusData)continue;let I=P0((0,n0.deserializeDatum)(A.output.plutusData));if(I){if(I.key===u)throw new Error("Target address is already blacklisted");if(I.key.localeCompare(u)<0&&u.localeCompare(I.next)<0){h=A,y=I;break}}}if(!h||!y)throw new Error("Could not find blacklist node to replace");let T=(0,p.conStr0)([(0,p.byteString)(y.key),(0,p.byteString)(u)]),C=(0,p.conStr0)([(0,p.byteString)(u),(0,p.byteString)(y.next)]),P=(0,p.conStr1)([(0,p.byteString)(u)]),_=(0,p.conStr0)([]),S=[{unit:b.policyId+u,quantity:"1"}];return this.mesh.txEvaluationMultiplier=1.3,this.mesh.spendingPlutusScriptV3().txIn(h.input.txHash,h.input.outputIndex).txInScript(l.cbor).txInRedeemerValue(_,"JSON").txInInlineDatumPresent().mintPlutusScriptV3().mint("1",b.policyId,u).mintingScript(b.cbor).mintRedeemerValue(P,"JSON").txOut(l.address,h.output.amount).txOutInlineDatumValue(T,"JSON").txOut(l.address,S).txOutInlineDatumValue(C,"JSON").requiredSignerHash(this._blacklistBootstrap.blacklistMintBootstrap.adminPubKeyHash).txInCollateral(s.input.txHash,s.input.outputIndex).selectUtxosFrom(t).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(d),await this.mesh.complete()});r(this,"whitelistSmartWalletAddress",async c=>{let e=this.fetcher,{utxos:a,walletAddress:t,collateral:d}=await this.getWalletInfoForTx();if(!e)throw new Error("Fetcher or wallet not initialized");let s=h0(c);if(!this._blacklistBootstrap)throw new Error("Blacklist bootstrap not initialized");let o=this._blacklistBootstrap.blacklistMintBootstrap,{blacklistMint:b,blacklistSpend:l}=await w0(this.networkId,o.txInput,o.adminPubKeyHash);if(!this.fetcher)throw new Error("Fetcher not initialized");let f=await e.fetchAddressUTxOs(l.address);if(!f?.length)throw new Error("No blacklist UTxOs found");let u=null,h=null,y=null,T=null;for(let A of f){if(!A.output.plutusData)continue;let I=P0((0,n0.deserializeDatum)(A.output.plutusData));if(I&&(I.key===s&&(u=A,h=I),I.next===s&&(y=A,T=I),u&&y))break}if(!u||!h)throw new Error("Could not resolve relevant blacklist nodes (node to remove)");if(!y||!T)throw new Error("Could not resolve relevant blacklist nodes (node to update)");let C=h.next,P=(0,p.conStr0)([(0,p.byteString)(T.key),(0,p.byteString)(C)]),_=(0,p.conStr2)([(0,p.byteString)(s)]),S=(0,p.conStr0)([]);return this.mesh.txEvaluationMultiplier=1.3,this.mesh.spendingPlutusScriptV3().txIn(u.input.txHash,u.input.outputIndex).txInScript(l.cbor).txInInlineDatumPresent().txInRedeemerValue(S,"JSON").spendingPlutusScriptV3().txIn(y.input.txHash,y.input.outputIndex).txInScript(l.cbor).txInInlineDatumPresent().txInRedeemerValue(S,"JSON").mintPlutusScriptV3().mint("-1",b.policyId,s).mintingScript(b.cbor).mintRedeemerValue(_,"JSON").txOut(l.address,y.output.amount).txOutInlineDatumValue(P,"JSON").requiredSignerHash(this._blacklistBootstrap.blacklistMintBootstrap.adminPubKeyHash).txInCollateral(d.input.txHash,d.input.outputIndex).selectUtxosFrom(a).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(t),await this.mesh.complete()});r(this,"seizeToken",async(c,e,a,t,d)=>{let s=this._params,o=this.fetcher,b=this.wallet;if(!s||!o||!b)throw new Error("Contract parameters, fetcher, or wallet not initialized");let l=c.substring(0,p.POLICY_ID_LENGTH),{utxos:f,walletAddress:u,collateral:h}=await this.getWalletInfoForTx(),y=new e0(this.networkId),T=new j(this.networkId),C=await y.programmableLogicBase(s),P=await y.programmableLogicGlobal(s),_=await y.registrySpend(s),S=f.find(x=>BigInt(x.output.amount.find(N=>N.unit==="lovelace")?.quantity??"0")>10000000n);if(!S)throw new Error("No UTXO with enough ADA for fees found");let I=(await o.fetchUTxOs(e,a))?.[0];if(!I)throw new Error("Could not find utxo to seize");if(!I.output.plutusData)throw new Error("UTXO to seize must have inline datum");let L=[S,I].length,W=I.output.amount.find(x=>x.unit===c);if(!W)throw new Error("UTXO does not contain the specified token");if(Number(W.quantity)<=0)throw new Error("UTXO token quantity must be greater than zero");let M=(await o.fetchAddressUTxOs(_.address)).find(x=>x.output.plutusData?$0((0,n0.deserializeDatum)(x.output.plutusData))?.key===l:!1);if(!M)throw new Error("Could not find registry entry for token");let a0=(await o.fetchUTxOs(s.txHash,0))?.[0];if(!a0)throw new Error("Could not resolve protocol params");let o0=(x,N)=>x.input.txHash!==N.input.txHash?x.input.txHash.localeCompare(N.input.txHash):x.input.outputIndex-N.input.outputIndex,J=[a0,M].sort(o0),G=J.findIndex(x=>x.input.txHash===M.input.txHash&&x.input.outputIndex===M.input.outputIndex);if(G===-1)throw new Error("Could not find registry in sorted reference inputs");let t0=(0,p.conStr1)([(0,p.integer)(G),(0,p.integer)(1),(0,p.integer)(L)]),y0=[{unit:"lovelace",quantity:"1500000"},{unit:c,quantity:W.quantity}],b0=I.output.amount.filter(x=>x.unit!==c);b0.length===0&&b0.push({unit:"lovelace",quantity:"1000000"});let X=await T.issuerAdmin(t);this.mesh.txEvaluationMultiplier=1.3,this.mesh.txIn(S.input.txHash,S.input.outputIndex).spendingPlutusScriptV3().txIn(I.input.txHash,I.input.outputIndex).txInScript(C.cbor).txInRedeemerValue((0,p.conStr0)([]),"JSON").txInInlineDatumPresent().withdrawalPlutusScriptV3().withdrawal(X.rewardAddress,"0").withdrawalScript(X.cbor).withdrawalRedeemerValue((0,p.conStr0)([]),"JSON").withdrawalPlutusScriptV3().withdrawal(P.rewardAddress,"0").withdrawalScript(P.cbor).withdrawalRedeemerValue(t0,"JSON").txOut(d,y0).txOutInlineDatumValue((0,p.conStr0)([]),"JSON").txOut(I.output.address,b0).txOutInlineDatumValue((0,p.conStr0)([]),"JSON");for(let x of J)this.mesh.readOnlyTxInReference(x.input.txHash,x.input.outputIndex);return this.mesh.requiredSignerHash(t).txInCollateral(h.input.txHash,h.input.outputIndex).selectUtxosFrom(f).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(u),await this.mesh.complete()});r(this,"initializeBlacklist",async c=>{let e=this._params,a=this.wallet;if(!e||!a)throw new Error("Contract parameters or wallet not initialized");let{utxos:t,walletAddress:d,collateral:s}=await this.getWalletInfoForTx(),o=t.filter(S=>{let A=S.output.amount.find(W=>W.unit==="lovelace");if(!A)return!1;let I=S.output.amount.length===1,L=Number(A.quantity)>=1e7;return I&&L});if(o.length===0)throw new Error("No suitable UTxOs found for bootstrap");let b=o[0].input,l=new j(this.networkId),f=await l.blacklistMint(b,c),u=f.policyId,h=await l.blacklistSpend(u),y=h.address,T=(0,p.conStr0)([(0,p.byteString)(""),(0,p.byteString)("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")]),C=[{unit:u,quantity:"1"}];this.mesh.txEvaluationMultiplier=1.3,this.mesh.txIn(b.txHash,b.outputIndex).mintPlutusScriptV3().mint("1",u,(0,p.stringToHex)("")).mintingScript(f.cbor).mintRedeemerValue((0,p.conStr0)([]),"JSON").txOut(y,C).txOutInlineDatumValue(T,"JSON").txInCollateral(s.input.txHash,s.input.outputIndex).setNetwork(this.networkId===0?"preview":"mainnet").selectUtxosFrom(o).changeAddress(d);let P=await this.mesh.complete(),_={blacklistMintBootstrap:{txInput:b,adminPubKeyHash:c,scriptHash:u},blacklistSpendBootstrap:{blacklistMintScriptHash:u,scriptHash:h.policyId}};return{txHex:P,bootstrap:_}});this._params=O0,this._blacklistBootstrap=e}get protocolParams(){return this._params}};0&&(module.exports={MeshContentOwnershipContract,MeshEscrowContract,MeshGiftCardContract,MeshHelloWorldContract,MeshMarketplaceContract,MeshPaymentSplitterContract,MeshPlutusNFTContract,MeshSwapContract,MeshVestingContract,ProgrammableTokenContract,activeEscrowDatum,initiateEscrowDatum,marketplaceDatum,recipientDepositRedeemer,resolveBlacklistAddress,resolveBlacklistScripts,resolveSmartWalletAddress,resolveStakeCredential});
134
+ Supports multiple UTxOs in a single transaction`,dataType:"constructor",index:1,fields:[{title:"registry_node_idx",description:"Index of the registry node in reference inputs",$ref:"#/definitions/Int"},{title:"outputs_start_idx",description:"Starting index in outputs where processed outputs begin",$ref:"#/definitions/Int"},{title:"length_inputs",description:"Length of input_idxs list (for validation)",$ref:"#/definitions/Int"}]}]},"types/RegistryProof":{title:"RegistryProof",description:"Proof that a token is (or is not) in the registry",anyOf:[{title:"TokenExists",description:"Token exists in the registry at this reference input index",dataType:"constructor",index:0,fields:[{title:"node_idx",$ref:"#/definitions/Int"}]},{title:"TokenDoesNotExist",description:"Token does not exist (proof via covering node at this index)",dataType:"constructor",index:1,fields:[{title:"node_idx",$ref:"#/definitions/Int"}]}]},"types/RegistryRedeemer":{title:"RegistryRedeemer",description:"Redeemer for registry minting policy (linked list operations)",anyOf:[{title:"RegistryInit",description:"Initialize the registry with the origin node",dataType:"constructor",index:0,fields:[]},{title:"RegistryInsert",description:"Insert a new programmable token policy into the registry",dataType:"constructor",index:1,fields:[{title:"key",$ref:"#/definitions/ByteArray"},{title:"hashed_param",$ref:"#/definitions/ByteArray"}]}]},"types/SmartTokenMintingAction":{title:"SmartTokenMintingAction",description:"Action for the minting policy",anyOf:[{title:"SmartTokenMintingAction",dataType:"constructor",index:0,fields:[{title:"minting_logic_cred",description:"The credential of the minting logic script that must be invoked",$ref:"#/definitions/cardano~1address~1Credential"}]}]}}};var be=require("@meshsdk/core-cst"),le=require("@meshsdk/core");var d0=require("@meshsdk/core-cst");var O0={txHash:"259e58611145bf7276bf5e97e7924cfa704f0d658b7e53b445be976649fc59e7",protocolParams:{txInput:{txHash:"c39b5e0db71df7fd41d7dc44d66911d99d98bb7e76127b5335bb04dc3087f973",outputIndex:0},scriptHash:"debc6597dd54b0c372dc30c72494f49b2a0a6a6c9058dc6a67748214",alwaysFailScriptHash:"de8efca54bfd3b0a445f9d9f72a1c1b2524928f810ea106a6ca9aa99"},programmableLogicGlobalParams:{protocolParamsScriptHash:"debc6597dd54b0c372dc30c72494f49b2a0a6a6c9058dc6a67748214",scriptHash:"24b338c9996217cc2a9770e00efe7d66ad459fa368d0eb804956c046"},programmableLogicBaseParams:{programmableLogicGlobalScriptHash:"24b338c9996217cc2a9770e00efe7d66ad459fa368d0eb804956c046",scriptHash:"3a7ce34145cbc597a85ac83db88c029ff9e909d92e04a7b2376b31ff"},issuanceParams:{txInput:{txHash:"c39b5e0db71df7fd41d7dc44d66911d99d98bb7e76127b5335bb04dc3087f973",outputIndex:1},scriptHash:"188a2b2cc43b93f026ccb56bfe7a1eea121e9a74e5bdb6259a0215e1",alwaysFailScriptHash:"de8efca54bfd3b0a445f9d9f72a1c1b2524928f810ea106a6ca9aa99"},directoryMintParams:{txInput:{txHash:"c39b5e0db71df7fd41d7dc44d66911d99d98bb7e76127b5335bb04dc3087f973",outputIndex:0},issuanceScriptHash:"188a2b2cc43b93f026ccb56bfe7a1eea121e9a74e5bdb6259a0215e1",scriptHash:"91b403111a7fab9ffbf5a3c7485d3f9a79d5bf65f38c8d48359be4c0"},directorySpendParams:{protocolParamsPolicyId:"debc6597dd54b0c372dc30c72494f49b2a0a6a6c9058dc6a67748214",scriptHash:"b672f3b03d19cd40c59c447aabd6c26ca296bbc78b205e5227317638"},programmableBaseRefInput:{txHash:"259e58611145bf7276bf5e97e7924cfa704f0d658b7e53b445be976649fc59e7",outputIndex:3},programmableGlobalRefInput:{txHash:"259e58611145bf7276bf5e97e7924cfa704f0d658b7e53b445be976649fc59e7",outputIndex:4}};var ne=async(n,i)=>{let c=(0,d0.deserializeAddress)(n).asBase()?.getStakeCredential().hash;if(!c)throw new Error("Address missing stake credential");let a=await new e0(i).programmableLogicBase(O0);return(0,d0.buildBaseAddress)(i,a.policyId,c,d0.CredentialType.ScriptHash,d0.CredentialType.KeyHash).toAddress().toBech32()},h0=n=>{let i=(0,d0.deserializeAddress)(n).asBase()?.getStakeCredential().hash;if(!i)throw new Error("Address missing stake credential");return i};async function w0(n,i,c){let e=new j(n),a=await e.blacklistMint(i,c),t=await e.blacklistSpend(a.policyId);return{blacklistMint:a,blacklistSpend:t}}var oe=async(n,i)=>(await new j(i).blacklistSpend(n)).address;var R0=(n,i=!0)=>{let c=i?[Ac]:[wc,Tc];for(let e of c){let a=e.validators.find(({title:t})=>t===n);if(a)return a.compiledCode}throw new Error(`Validator ${n} not found`)},Sc=n=>kc.default.encode(Buffer.from(n,"hex")).toString("hex");function m0(n){if(!n)return"";if(typeof n=="string")return n;if(n.bytes)return n.bytes;if(n.fields&&n.fields.length>0){let i=n.fields[0];if(typeof i=="string")return i;if(i?.bytes)return i.bytes}return""}function $0(n){if(!n?.fields||n.fields.length<5)return null;let i=c=>({hash:m0(c),index:c.constructor??0});return{key:m0(n.fields[0]),next:m0(n.fields[1]),transferScript:i(n.fields[2]),thirdPartyScript:i(n.fields[3]),metadata:m0(n.fields[4])}}function P0(n){return!n?.fields||n.fields.length<2?null:{key:m0(n.fields[0]),next:m0(n.fields[1])}}var Cc=async(n,i,c)=>{let e=[],a=0;for(let d of n){if(a>=c)break;let s=d.output.amount.find(o=>o.unit===i);s&&(e.push(d),a+=Number(s.quantity))}let t=a-c;return{selectedUtxos:e,returningAmount:t}};var e0=class{constructor(i){r(this,"networkID",i)}build(i,c){let e=(0,U.applyParamsToScript)(R0(i),c,"JSON");return{cbor:e,plutusScript:{code:e,version:"V3"}}}txRef(i){return(0,k.conStr)(0,[(0,k.byteString)(i.txHash),(0,k.integer)(i.outputIndex)])}resolveParam(i,c,e){let a=typeof i=="string"?i:c(i);if(!a)throw new Error(e);return a}toAddress(i,c=void 0){return(0,U.serializePlutusScript)(i,c,this.networkID,!1).address}async issuanceMint(i,c){let e=this.resolveParam(c,d=>d.programmableLogicBaseParams.scriptHash,"could not resolve issuance mint parameters"),{cbor:a,plutusScript:t}=this.build("issuance_mint.issuance_mint.mint",[(0,k.conStr1)([(0,k.byteString)(e)]),(0,k.conStr1)([(0,k.byteString)(i)])]);return{cbor:a,plutusScript:t,policyId:(0,U.resolveScriptHash)(a,"V3"),address:this.toAddress(t)}}async issuanceCborHexMint(i){let{cbor:c,plutusScript:e}=this.build("issuance_cbor_hex_mint.issuance_cbor_hex_mint.mint",[this.txRef(i)]);return{cbor:c,plutusScript:e,policyId:(0,U.resolveScriptHash)(c,"V3"),address:this.toAddress(e)}}async programmableLogicBase(i){let c=this.resolveParam(i,t=>t.programmableLogicGlobalParams.scriptHash,"could not resolve logic base parameter"),{cbor:e,plutusScript:a}=this.build("programmable_logic_base.programmable_logic_base.spend",[(0,k.conStr1)([(0,k.byteString)(c)])]);return{cbor:e,plutusScript:a,policyId:(0,U.resolveScriptHash)(e,"V3")}}async programmableLogicGlobal(i){let c=this.resolveParam(i,d=>d.protocolParams.scriptHash,"could not resolve logic global parameter"),{cbor:e,plutusScript:a}=this.build("programmable_logic_global.programmable_logic_global.withdraw",[(0,k.byteString)(c)]),t=(0,U.resolveScriptHash)(e,"V3");return{cbor:e,plutusScript:a,scriptHash:t,rewardAddress:(0,v0.scriptHashToRewardAddress)(t,this.networkID)}}async protocolParamMint(i){let{cbor:c,plutusScript:e}=this.build("protocol_params_mint.protocol_params_mint.mint",[this.txRef(i)]),a=(0,U.resolveScriptHash)(c,"V3");return{cbor:c,plutusScript:e,scriptHash:a,address:this.toAddress(e)}}async registryMint(i,c){let e=typeof i=="string"?i:i.directoryMintParams.issuanceScriptHash,a=typeof i=="string"?c:i.directoryMintParams.txInput;if(!a)throw new Error("register mint utxo parameter could not resolve");if(!e)throw new Error("registry mint param script hash could not resolve");let{cbor:t,plutusScript:d}=this.build("registry_mint.registry_mint.mint",[this.txRef(a),(0,k.byteString)(e)]);return{cbor:t,plutusScript:d,policyId:(0,U.resolveScriptHash)(t,"V3")}}async registrySpend(i){let c=this.resolveParam(i,t=>t.protocolParams.scriptHash,"could not resolve params for registry spend"),{cbor:e,plutusScript:a}=this.build("registry_spend.registry_spend.spend",[(0,k.byteString)(c)]);return{cbor:e,plutusScript:a,policyId:(0,U.resolveScriptHash)(e,"V3"),address:this.toAddress(a,"")}}},j=class{constructor(i){r(this,"networkID",i)}buildRaw(i){let c=Sc(R0(i,!1)),e={code:c,version:"V3"},a=(0,U.resolveScriptHash)(c,"V3"),t=(0,v0.scriptHashToRewardAddress)(a,this.networkID);return{_cbor:c,plutusScript:e,policyId:a,rewardAddress:t}}buildWithParams(i,c){let e=R0(i,!1),a=(0,U.applyParamsToScript)(e,c,"JSON"),t={code:a,version:"V3"},d=(0,U.resolveScriptHash)(a,"V3"),s=(0,v0.scriptHashToRewardAddress)(d,this.networkID);return{cbor:a,plutusScript:t,policyId:d,rewardAddress:s}}txRef(i){return(0,k.conStr)(0,[(0,k.byteString)(i.txHash),(0,k.integer)(i.outputIndex)])}async issue(){return this.buildRaw("transfer.issue.withdraw")}async transfer(){return this.buildRaw("transfer.transfer.withdraw")}async blacklistSpend(i){let{cbor:c,plutusScript:e,policyId:a}=this.buildWithParams("blacklist_spend.blacklist_spend.spend",[(0,k.byteString)(i)]),t=(0,U.serializePlutusScript)(e,"",this.networkID,!1).address;return{cbor:c,plutusScript:e,address:t,policyId:a}}async blacklistMint(i,c){return this.buildWithParams("blacklist_mint.blacklist_mint.mint",[this.txRef(i),(0,k.byteString)(c)])}async issuerAdmin(i){return this.buildWithParams("example_transfer_logic.issuer_admin_contract.withdraw",[(0,k.conStr)(0,[(0,k.byteString)(i)])])}async customTransfer(i,c){let{cbor:e,plutusScript:a,policyId:t,rewardAddress:d}=this.buildWithParams("example_transfer_logic.transfer.withdraw",[(0,k.conStr1)([(0,k.byteString)(i)]),(0,k.byteString)(c)]);return{cbor:e,plutusScript:a,policyId:t,rewardAddress:d}}};var ac=class extends O{constructor(c,e){super(c);r(this,"inputs",c);r(this,"_blacklistBootstrap");r(this,"_params");r(this,"mintToken",async(c,e,a,t)=>{let d=this._params,s=this.fetcher,o=this.wallet;if(!d||!s||!o)throw new Error("Contract parameters, fetcher, or wallet not initialized");let{utxos:b,walletAddress:l,collateral:f}=await this.getWalletInfoForTx(),u=new e0(this.networkId),y=await new j(this.networkId).issuerAdmin(a),T=y.cbor,C=y.policyId,P=await u.issuanceMint(C,d),_=(0,p.conStr0)([(0,p.conStr1)([(0,p.byteString)(C)])]),S=[{unit:"lovelace",quantity:"1300000"},{unit:P.policyId+(0,p.stringToHex)(c),quantity:e}],A=(0,p.conStr0)([]);return this.mesh.txEvaluationMultiplier=1.3,this.mesh.evaluator=this.inputs.mesh.evaluator,this.mesh.withdrawalPlutusScriptV3().withdrawal(y.rewardAddress,"0").withdrawalScript(T).withdrawalRedeemerValue((0,p.conStr0)([]),"JSON").mintPlutusScriptV3().mint(e,P.policyId,(0,p.stringToHex)(c)).mintingScript(P.cbor).mintRedeemerValue(_,"JSON").txOut(t,S).txOutInlineDatumValue(A,"JSON").requiredSignerHash(a).txInCollateral(f.input.txHash,f.input.outputIndex).selectUtxosFrom(b).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(l),await this.mesh.complete()});r(this,"burnToken",async(c,e,a,t,d)=>{let s=this._params,o=this.fetcher,b=this.wallet;if(!s||!o||!b)throw new Error("Contract parameters, fetcher, or wallet not initialized");let{utxos:l,walletAddress:f,collateral:u}=await this.getWalletInfoForTx(),h=new e0(this.networkId),y=new j(this.networkId),T=await h.programmableLogicBase(s),C=await h.programmableLogicGlobal(s),P=await h.registrySpend(s),_=await y.issuerAdmin(d),S=await h.issuanceMint(_.policyId,s),A=(await o.fetchUTxOs(a,t))?.[0];if(!A)throw new Error("Token UTxO not found");let I=S.policyId+(0,p.stringToHex)(c),L=A.output.amount.find(x=>x.unit===I)?.quantity??"0";if(Number(e)>Number(L))throw new Error("Not enough tokens to burn");let E=(await o.fetchAddressUTxOs(P.address)).find(x=>x.output.plutusData?$0((0,n0.deserializeDatum)(x.output.plutusData))?.key===S.policyId:!1);if(!E)throw new Error("Registry entry not found, token not registered");let M=l.find(x=>BigInt(x.output.amount.find(N=>N.unit==="lovelace")?.quantity??"0")>5000000n);if(!M)throw new Error("No UTXO with enough ADA for fees found");let a0=(await o.fetchUTxOs(s.txHash,0))?.[0];if(!a0)throw new Error("Protocol params missing");let o0=[M,A].length,J=(x,N)=>x.input.txHash!==N.input.txHash?x.input.txHash.localeCompare(N.input.txHash):x.input.outputIndex-N.input.outputIndex,G=[a0,E].sort(J),t0=G.findIndex(x=>x.input.txHash===E.input.txHash&&x.input.outputIndex===E.input.outputIndex);if(t0===-1)throw new Error("Could not find registry in sorted reference inputs");let y0=(0,p.conStr0)([(0,p.conStr1)([(0,p.byteString)(_.policyId)])]),b0=(0,p.conStr1)([(0,p.integer)(t0),(0,p.integer)(0),(0,p.integer)(o0)]),X=A.output.amount.map(x=>x.unit===I?{unit:x.unit,quantity:String(BigInt(x.quantity)-BigInt(e))}:x).filter(x=>BigInt(x.quantity)>0n);this.mesh.txEvaluationMultiplier=1.3,this.mesh.evaluator=this.inputs.mesh.evaluator,this.mesh.txIn(M.input.txHash,M.input.outputIndex).spendingPlutusScriptV3().txIn(A.input.txHash,A.input.outputIndex).txInScript(T.cbor).txInInlineDatumPresent().txInRedeemerValue((0,p.conStr0)([]),"JSON").withdrawalPlutusScriptV3().withdrawal(_.rewardAddress,"0").withdrawalScript(_.cbor).withdrawalRedeemerValue((0,p.conStr0)([]),"JSON").withdrawalPlutusScriptV3().withdrawal(C.rewardAddress,"0").withdrawalScript(C.cbor).withdrawalRedeemerValue(b0,"JSON").mintPlutusScriptV3().mint(`-${e}`,S.policyId,(0,p.stringToHex)(c)).mintingScript(S.cbor).mintRedeemerValue(y0,"JSON"),X.length>0&&this.mesh.txOut(A.output.address,X).txOutInlineDatumValue((0,p.conStr0)([]),"JSON");for(let x of G)this.mesh.readOnlyTxInReference(x.input.txHash,x.input.outputIndex);return this.mesh.requiredSignerHash(d).txInCollateral(u.input.txHash,u.input.outputIndex).selectUtxosFrom(l).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(f),await this.mesh.complete()});r(this,"transferToken",async(c,e,a,t)=>{let d=this._params,s=this.fetcher,o=this.wallet;if(!d||!s||!o)throw new Error("Contract parameters, fetcher, or wallet not initialized");let b=c.substring(0,p.POLICY_ID_LENGTH),{utxos:l,walletAddress:f,collateral:u}=await this.getWalletInfoForTx(),h=new e0(this.networkId),y=new j(this.networkId),T=await h.programmableLogicBase(d),C=await h.programmableLogicGlobal(d),P=await h.registrySpend(d);if(!this._blacklistBootstrap)throw new Error("Blacklist bootstrap not initialized");let _=this._blacklistBootstrap.blacklistMintBootstrap.scriptHash,S=await y.customTransfer(d.programmableLogicBaseParams.scriptHash,_),A=S.cbor;if(!(await s.fetchAddressUTxOs(P.address)).find(g=>g.output.plutusData?$0((0,n0.deserializeDatum)(g.output.plutusData))?.key===b:!1))throw new Error("Could not find registry entry for token");let L=(await s.fetchUTxOs(d.txHash,0))?.[0];if(!L)throw new Error("Could not resolve protocol params");let W=await s.fetchAddressUTxOs(a);if(!W?.length)throw new Error("No programmable tokens found at sender address");let{selectedUtxos:E}=await Cc(W,c,Number(e));if(!E.length)throw new Error("Not enough funds");let M=(g,v)=>g.input.txHash!==v.input.txHash?g.input.txHash.localeCompare(v.input.txHash):g.input.outputIndex-v.input.outputIndex,a0=[...E].sort(M),o0=[],J=[];for(let g of a0){o0.push(g);for(let v of g.output.amount){if(v.unit==="lovelace")continue;let D=v.unit.substring(0,56);J.includes(D)||J.push(D)}}J.sort();let G=[];if(_){let g=await y.blacklistSpend(_),v=await s.fetchAddressUTxOs(g.address);for(let D of o0){let l0=h0(D.output.address);if(!l0)throw new Error("UTXO missing stake credential");let T0=v.find(ic=>{if(!ic.output.plutusData)return!1;let x0=P0((0,n0.deserializeDatum)(ic.output.plutusData));if(!x0)return!1;let $c=x0.key===""||l0>x0.key,Pc=x0.next===""||l0<x0.next;return $c&&Pc});if(!T0)throw new Error(`Blacklist proof not found for wallet ${l0}`);G.push(T0)}}let t0=[],y0=await s.fetchAddressUTxOs(P.address);for(let g of J){let v=d.directoryMintParams.scriptHash+g,D=y0.find(l0=>l0.output.amount.find(T0=>T0.unit===v));if(!D)throw new Error(`Registry node not found for policy ${g}`);t0.push(D)}let X=[...[...new Map(G.map(g=>[`${g.input.txHash}#${g.input.outputIndex}`,g])).values()],...t0,L].sort(M),x=(0,p.list)(G.map(g=>{let v=X.findIndex(D=>D.input.txHash===g.input.txHash&&D.input.outputIndex===g.input.outputIndex);return(0,p.conStr0)([(0,p.integer)(v)])})),N=(0,p.conStr0)([(0,p.list)(t0.map(g=>{let v=X.findIndex(D=>D.input.txHash===g.input.txHash&&D.input.outputIndex===g.input.outputIndex);return(0,p.conStr0)([(0,p.integer)(v)])}))]),tc=E.reduce((g,v)=>g+BigInt(v.output.amount.find(D=>D.unit===c)?.quantity??"0"),0n),_c=E.reduce((g,v)=>g+BigInt(v.output.amount.find(D=>D.unit==="lovelace")?.quantity??"0"),0n);if(tc<BigInt(e))throw new Error("Not enough funds");let dc=1500000n,H0=tc-BigInt(e),Oc=[{unit:"lovelace",quantity:dc.toString()},{unit:c,quantity:e}],V0=_c-dc,Rc=[{unit:"lovelace",quantity:(V0>1000000n?V0:1500000n).toString()},...H0>0n?[{unit:c,quantity:H0.toString()}]:[]];this.mesh.verbose=!0,this.mesh.evaluator=this.inputs.mesh.evaluator;for(let g of a0)this.mesh.spendingPlutusScriptV3().txIn(g.input.txHash,g.input.outputIndex).txInScript(T.cbor).txInRedeemerValue((0,p.conStr0)([]),"JSON").txInInlineDatumPresent();this.mesh.withdrawalPlutusScriptV3().withdrawal(S.rewardAddress,"0").withdrawalScript(A).withdrawalRedeemerValue(x,"JSON").withdrawalPlutusScriptV3().withdrawal(C.rewardAddress,"0").withdrawalScript(C.cbor).withdrawalRedeemerValue(N,"JSON"),(H0>0n||V0>1000000n)&&this.mesh.txOut(a,Rc).txOutInlineDatumValue((0,p.conStr0)([]),"JSON"),this.mesh.txOut(t,Oc).txOutInlineDatumValue((0,p.conStr0)([]),"JSON");for(let g of X)this.mesh.readOnlyTxInReference(g.input.txHash,g.input.outputIndex);return this.mesh.requiredSignerHash(h0(a)).setFee("600000").txInCollateral(u.input.txHash,u.input.outputIndex).selectUtxosFrom(l).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(f),await this.mesh.complete()});r(this,"blacklistSmartWalletAddress",async c=>{let e=this.fetcher,a=this.wallet;if(!e||!a)throw new Error("Fetcher or wallet not initialized");let{utxos:t,walletAddress:d,collateral:s}=await this.getWalletInfoForTx();if(!this._blacklistBootstrap)throw new Error("Blacklist bootstrap not initialized");let o=this._blacklistBootstrap.blacklistMintBootstrap,{blacklistMint:b,blacklistSpend:l}=await w0(this.networkId,o.txInput,o.adminPubKeyHash);if(!this.fetcher)throw new Error("Fetcher not initialized");let f=await e.fetchAddressUTxOs(l.address);if(!f?.length)throw new Error("No blacklist UTxOs found");let u=h0(c),h=null,y=null;for(let A of f){if(!A.output.plutusData)continue;let I=P0((0,n0.deserializeDatum)(A.output.plutusData));if(I){if(I.key===u)throw new Error("Target address is already blacklisted");if(I.key.localeCompare(u)<0&&u.localeCompare(I.next)<0){h=A,y=I;break}}}if(!h||!y)throw new Error("Could not find blacklist node to replace");let T=(0,p.conStr0)([(0,p.byteString)(y.key),(0,p.byteString)(u)]),C=(0,p.conStr0)([(0,p.byteString)(u),(0,p.byteString)(y.next)]),P=(0,p.conStr1)([(0,p.byteString)(u)]),_=(0,p.conStr0)([]),S=[{unit:b.policyId+u,quantity:"1"}];return this.mesh.txEvaluationMultiplier=1.3,this.mesh.evaluator=this.inputs.mesh.evaluator,this.mesh.spendingPlutusScriptV3().txIn(h.input.txHash,h.input.outputIndex).txInScript(l.cbor).txInRedeemerValue(_,"JSON").txInInlineDatumPresent().mintPlutusScriptV3().mint("1",b.policyId,u).mintingScript(b.cbor).mintRedeemerValue(P,"JSON").txOut(l.address,h.output.amount).txOutInlineDatumValue(T,"JSON").txOut(l.address,S).txOutInlineDatumValue(C,"JSON").requiredSignerHash(this._blacklistBootstrap.blacklistMintBootstrap.adminPubKeyHash).txInCollateral(s.input.txHash,s.input.outputIndex).selectUtxosFrom(t).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(d),await this.mesh.complete()});r(this,"whitelistSmartWalletAddress",async c=>{let e=this.fetcher,{utxos:a,walletAddress:t,collateral:d}=await this.getWalletInfoForTx();if(!e)throw new Error("Fetcher or wallet not initialized");let s=h0(c);if(!this._blacklistBootstrap)throw new Error("Blacklist bootstrap not initialized");let o=this._blacklistBootstrap.blacklistMintBootstrap,{blacklistMint:b,blacklistSpend:l}=await w0(this.networkId,o.txInput,o.adminPubKeyHash);if(!this.fetcher)throw new Error("Fetcher not initialized");let f=await e.fetchAddressUTxOs(l.address);if(!f?.length)throw new Error("No blacklist UTxOs found");let u=null,h=null,y=null,T=null;for(let A of f){if(!A.output.plutusData)continue;let I=P0((0,n0.deserializeDatum)(A.output.plutusData));if(I&&(I.key===s&&(u=A,h=I),I.next===s&&(y=A,T=I),u&&y))break}if(!u||!h)throw new Error("Could not resolve relevant blacklist nodes (node to remove)");if(!y||!T)throw new Error("Could not resolve relevant blacklist nodes (node to update)");let C=h.next,P=(0,p.conStr0)([(0,p.byteString)(T.key),(0,p.byteString)(C)]),_=(0,p.conStr2)([(0,p.byteString)(s)]),S=(0,p.conStr0)([]);return this.mesh.txEvaluationMultiplier=1.3,this.mesh.evaluator=this.inputs.mesh.evaluator,this.mesh.spendingPlutusScriptV3().txIn(u.input.txHash,u.input.outputIndex).txInScript(l.cbor).txInInlineDatumPresent().txInRedeemerValue(S,"JSON").spendingPlutusScriptV3().txIn(y.input.txHash,y.input.outputIndex).txInScript(l.cbor).txInInlineDatumPresent().txInRedeemerValue(S,"JSON").mintPlutusScriptV3().mint("-1",b.policyId,s).mintingScript(b.cbor).mintRedeemerValue(_,"JSON").txOut(l.address,y.output.amount).txOutInlineDatumValue(P,"JSON").requiredSignerHash(this._blacklistBootstrap.blacklistMintBootstrap.adminPubKeyHash).txInCollateral(d.input.txHash,d.input.outputIndex).selectUtxosFrom(a).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(t),await this.mesh.complete()});r(this,"seizeToken",async(c,e,a,t,d)=>{let s=this._params,o=this.fetcher,b=this.wallet;if(!s||!o||!b)throw new Error("Contract parameters, fetcher, or wallet not initialized");let l=c.substring(0,p.POLICY_ID_LENGTH),{utxos:f,walletAddress:u,collateral:h}=await this.getWalletInfoForTx(),y=new e0(this.networkId),T=new j(this.networkId),C=await y.programmableLogicBase(s),P=await y.programmableLogicGlobal(s),_=await y.registrySpend(s),S=f.find(x=>BigInt(x.output.amount.find(N=>N.unit==="lovelace")?.quantity??"0")>10000000n);if(!S)throw new Error("No UTXO with enough ADA for fees found");let I=(await o.fetchUTxOs(e,a))?.[0];if(!I)throw new Error("Could not find utxo to seize");if(!I.output.plutusData)throw new Error("UTXO to seize must have inline datum");let L=[S,I].length,W=I.output.amount.find(x=>x.unit===c);if(!W)throw new Error("UTXO does not contain the specified token");if(Number(W.quantity)<=0)throw new Error("UTXO token quantity must be greater than zero");let M=(await o.fetchAddressUTxOs(_.address)).find(x=>x.output.plutusData?$0((0,n0.deserializeDatum)(x.output.plutusData))?.key===l:!1);if(!M)throw new Error("Could not find registry entry for token");let a0=(await o.fetchUTxOs(s.txHash,0))?.[0];if(!a0)throw new Error("Could not resolve protocol params");let o0=(x,N)=>x.input.txHash!==N.input.txHash?x.input.txHash.localeCompare(N.input.txHash):x.input.outputIndex-N.input.outputIndex,J=[a0,M].sort(o0),G=J.findIndex(x=>x.input.txHash===M.input.txHash&&x.input.outputIndex===M.input.outputIndex);if(G===-1)throw new Error("Could not find registry in sorted reference inputs");let t0=(0,p.conStr1)([(0,p.integer)(G),(0,p.integer)(1),(0,p.integer)(L)]),y0=[{unit:"lovelace",quantity:"1500000"},{unit:c,quantity:W.quantity}],b0=I.output.amount.filter(x=>x.unit!==c);b0.length===0&&b0.push({unit:"lovelace",quantity:"1000000"});let X=await T.issuerAdmin(t);this.mesh.txEvaluationMultiplier=1.3,this.mesh.evaluator=this.inputs.mesh.evaluator,this.mesh.txIn(S.input.txHash,S.input.outputIndex).spendingPlutusScriptV3().txIn(I.input.txHash,I.input.outputIndex).txInScript(C.cbor).txInRedeemerValue((0,p.conStr0)([]),"JSON").txInInlineDatumPresent().withdrawalPlutusScriptV3().withdrawal(X.rewardAddress,"0").withdrawalScript(X.cbor).withdrawalRedeemerValue((0,p.conStr0)([]),"JSON").withdrawalPlutusScriptV3().withdrawal(P.rewardAddress,"0").withdrawalScript(P.cbor).withdrawalRedeemerValue(t0,"JSON").txOut(d,y0).txOutInlineDatumValue((0,p.conStr0)([]),"JSON").txOut(I.output.address,b0).txOutInlineDatumValue((0,p.conStr0)([]),"JSON");for(let x of J)this.mesh.readOnlyTxInReference(x.input.txHash,x.input.outputIndex);return this.mesh.requiredSignerHash(t).txInCollateral(h.input.txHash,h.input.outputIndex).selectUtxosFrom(f).setNetwork(this.networkId===0?"preview":"mainnet").changeAddress(u),await this.mesh.complete()});r(this,"initializeBlacklist",async c=>{let e=this._params,a=this.wallet;if(!e||!a)throw new Error("Contract parameters or wallet not initialized");let{utxos:t,walletAddress:d,collateral:s}=await this.getWalletInfoForTx(),o=t.filter(S=>{let A=S.output.amount.find(W=>W.unit==="lovelace");if(!A)return!1;let I=S.output.amount.length===1,L=Number(A.quantity)>=1e7;return I&&L});if(o.length===0)throw new Error("No suitable UTxOs found for bootstrap");let b=o[0].input,l=new j(this.networkId),f=await l.blacklistMint(b,c),u=f.policyId,h=await l.blacklistSpend(u),y=h.address,T=(0,p.conStr0)([(0,p.byteString)(""),(0,p.byteString)("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")]),C=[{unit:u,quantity:"1"}];this.mesh.txEvaluationMultiplier=1.3,this.mesh.evaluator=this.inputs.mesh.evaluator,this.mesh.txIn(b.txHash,b.outputIndex).mintPlutusScriptV3().mint("1",u,(0,p.stringToHex)("")).mintingScript(f.cbor).mintRedeemerValue((0,p.conStr0)([]),"JSON").txOut(y,C).txOutInlineDatumValue(T,"JSON").txInCollateral(s.input.txHash,s.input.outputIndex).setNetwork(this.networkId===0?"preview":"mainnet").selectUtxosFrom(o).changeAddress(d);let P=await this.mesh.complete(),_={blacklistMintBootstrap:{txInput:b,adminPubKeyHash:c,scriptHash:u},blacklistSpendBootstrap:{blacklistMintScriptHash:u,scriptHash:h.policyId}};return{txHex:P,bootstrap:_}});this._params=O0,this._blacklistBootstrap=e}get protocolParams(){return this._params}};0&&(module.exports={MeshContentOwnershipContract,MeshEscrowContract,MeshGiftCardContract,MeshHelloWorldContract,MeshMarketplaceContract,MeshPaymentSplitterContract,MeshPlutusNFTContract,MeshSwapContract,MeshVestingContract,ProgrammableTokenContract,activeEscrowDatum,initiateEscrowDatum,marketplaceDatum,recipientDepositRedeemer,resolveBlacklistAddress,resolveBlacklistScripts,resolveSmartWalletAddress,resolveStakeCredential});
135
135
  //# sourceMappingURL=index.js.map