diff --git a/CHANGELOG.md b/CHANGELOG.md index a70b3f19..55606fac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Changed - **aiken-lang**: Fix pattern-matching on list wildcard sometimes causing compiler crash following the new _decision trees_ approach. @MicroProofs +- **uplc**, **aiken**, **aiken-lang**: Update internal dependencies to pallas-0.31.0. @KtorZ ## v1.1.6 - 2024-11-13 diff --git a/Cargo.lock b/Cargo.lock index 7f8797e7..d4b7056a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "addr2line" -version = "0.24.1" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5fb1d8e4442bd405fdfd1dacb42792696b0cf9cb15882e5d097b742a676d375" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ "gimli", ] @@ -180,15 +180,15 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.18" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" +checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9" [[package]] name = "anstream" -version = "0.6.15" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", @@ -201,36 +201,36 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.8" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anstyle-parse" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.4" +version = "3.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" +checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" dependencies = [ "anstyle", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -265,7 +265,7 @@ dependencies = [ "proc-macro2", "quote", "serde", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -296,9 +296,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "backtrace" @@ -413,9 +413,9 @@ dependencies = [ [[package]] name = "bstr" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c" +checksum = "1a68f1f47cdf0ec8ee4b941b2eee2a80cb796db73118c0dd09ac63fbe405be22" dependencies = [ "memchr", "serde", @@ -423,9 +423,9 @@ dependencies = [ [[package]] name = "built" -version = "0.7.4" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "236e6289eda5a812bc6b53c3b024039382a2895fbbeef2d748b2931546d392c4" +checksum = "c360505aed52b7ec96a3636c3f039d99103c37d1d9b4f7a8c743d3ea9ffcd03b" dependencies = [ "git2", ] @@ -444,9 +444,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" [[package]] name = "bzip2" @@ -477,9 +477,9 @@ checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3" [[package]] name = "cc" -version = "1.1.21" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07b1695e2c7e8fc85310cde85aeaab7e3097f593c91d209d3f9df76c928100f0" +checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" dependencies = [ "jobserver", "libc", @@ -526,7 +526,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" dependencies = [ "ciborium-io", - "half 2.4.1", + "half", ] [[package]] @@ -541,9 +541,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.18" +version = "4.5.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0956a43b323ac1afaffc053ed5c4b7c1f1800bacd1683c353aabbb752515dd3" +checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f" dependencies = [ "clap_builder", "clap_derive", @@ -551,24 +551,24 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.18" +version = "4.5.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d72166dd41634086d5803a47eb71ae740e61d84709c36f3c34110173db3961b" +checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec" dependencies = [ "anstream", "anstyle", "clap_lex", "strsim", - "terminal_size", + "terminal_size 0.4.0", "unicase", - "unicode-width", + "unicode-width 0.2.0", ] [[package]] name = "clap_complete" -version = "4.5.29" +version = "4.5.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8937760c3f4c60871870b8c3ee5f9b30771f792a7045c48bcbba999d7d6b3b8e" +checksum = "d9647a559c112175f17cf724dc72d3645680a883c58481332779192b0d8e7a01" dependencies = [ "clap", ] @@ -582,14 +582,14 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "clap_lex" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" +checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" [[package]] name = "color-print" @@ -609,14 +609,14 @@ dependencies = [ "nom", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "colorchoice" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" [[package]] name = "console" @@ -660,9 +660,9 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "cpufeatures" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" +checksum = "0ca741a962e1b0bff6d724a1a0958b686406e853bb14061f218562e1896f95e6" dependencies = [ "libc", ] @@ -841,6 +841,17 @@ dependencies = [ "winapi", ] +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "dyn-clone" version = "1.0.17" @@ -894,9 +905,9 @@ checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" [[package]] name = "encoding_rs" -version = "0.8.34" +version = "0.8.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" dependencies = [ "cfg-if", ] @@ -919,9 +930,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6" +checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4" [[package]] name = "ff" @@ -953,9 +964,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.33" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "324a1be68054ef05ad64b861cc9eaf1d623d2d8cb25b4bf2cb9cdd902b4bf253" +checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" dependencies = [ "crc32fast", "miniz_oxide", @@ -1012,9 +1023,9 @@ dependencies = [ [[package]] name = "futures" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" dependencies = [ "futures-channel", "futures-core", @@ -1027,9 +1038,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", @@ -1037,15 +1048,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" dependencies = [ "futures-core", "futures-task", @@ -1054,38 +1065,38 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-macro" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "futures-sink" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-channel", "futures-core", @@ -1123,9 +1134,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.31.0" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "git2" @@ -1182,19 +1193,13 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 2.5.0", + "indexmap 2.6.0", "slab", "tokio", "tokio-util", "tracing", ] -[[package]] -name = "half" -version = "1.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" - [[package]] name = "half" version = "2.4.1" @@ -1221,6 +1226,12 @@ dependencies = [ "allocator-api2", ] +[[package]] +name = "hashbrown" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" + [[package]] name = "heck" version = "0.4.1" @@ -1287,9 +1298,9 @@ dependencies = [ [[package]] name = "httparse" -version = "1.9.4" +version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" +checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" [[package]] name = "httpdate" @@ -1308,9 +1319,9 @@ dependencies = [ [[package]] name = "hyper" -version = "0.14.30" +version = "0.14.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a152ddd61dfaec7273fe8419ab357f33aee0d914c5f4efbf0d96fa749eea5ec9" +checksum = "8c08302e8fa335b151b788c775ff56e7a03ae64ff85c548ee820fecb70356e85" dependencies = [ "bytes", "futures-channel", @@ -1344,13 +1355,142 @@ dependencies = [ ] [[package]] -name = "idna" -version = "0.5.0" +name = "icu_collections" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", ] [[package]] @@ -1381,12 +1521,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" +checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" dependencies = [ "equivalent", - "hashbrown 0.14.5", + "hashbrown 0.15.1", ] [[package]] @@ -1437,14 +1577,14 @@ dependencies = [ "newline-converter", "thiserror", "unicode-segmentation", - "unicode-width", + "unicode-width 0.1.14", ] [[package]] name = "insta" -version = "1.40.0" +version = "1.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6593a41c7a73841868772495db7dc1e8ecab43bb5c0b6da2059246c4b506ab60" +checksum = "7e9ffc4d4892617c50a928c52b2961cb5174b6fc6ebf252b2fac9d21955c48b8" dependencies = [ "console", "lazy_static", @@ -1457,9 +1597,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.10.0" +version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "187674a687eed5fe42285b40c6291f9a01517d415fad1c3cbc6a9f778af7fcd4" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" [[package]] name = "is_ci" @@ -1508,9 +1648,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.70" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1868808506b929d7b0cfa8f75951347aa71bb21144b7791bae35d9bccfcfe37a" +checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" dependencies = [ "wasm-bindgen", ] @@ -1557,9 +1697,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.158" +version = "0.2.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" +checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" [[package]] name = "libgit2-sys" @@ -1575,9 +1715,9 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.8" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" +checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" [[package]] name = "libredox" @@ -1614,6 +1754,12 @@ version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +[[package]] +name = "litemap" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704" + [[package]] name = "lock_api" version = "0.4.12" @@ -1670,7 +1816,7 @@ dependencies = [ "miette-derive 5.10.0", "once_cell", "thiserror", - "unicode-width", + "unicode-width 0.1.14", ] [[package]] @@ -1687,10 +1833,10 @@ dependencies = [ "supports-color 3.0.1", "supports-hyperlinks", "supports-unicode", - "terminal_size", + "terminal_size 0.3.0", "textwrap", "thiserror", - "unicode-width", + "unicode-width 0.1.14", ] [[package]] @@ -1701,7 +1847,7 @@ checksum = "49e7bc1560b95a3c4a25d03de42fe76ca718ab92d1a22a55b9b4cf67b3ae635c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1712,7 +1858,7 @@ checksum = "dcf09caffaac8068c346b6df2a7fc27a177fd20b39421a39ce0a211bde679a6c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1733,23 +1879,23 @@ dependencies = [ [[package]] name = "minicbor" -version = "0.20.0" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d15f4203d71fdf90903c2696e55426ac97a363c67b218488a73b534ce7aca10" +checksum = "c0452a60c1863c1f50b5f77cd295e8d2786849f35883f0b9e18e7e6e1b5691b0" dependencies = [ - "half 1.8.3", + "half", "minicbor-derive", ] [[package]] name = "minicbor-derive" -version = "0.13.0" +version = "0.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1154809406efdb7982841adb6311b3d095b46f78342dd646736122fe6b19e267" +checksum = "bd2209fff77f705b00c737016a48e73733d7fbccb8b007194db148f03561fb70" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.87", ] [[package]] @@ -1893,24 +2039,24 @@ dependencies = [ [[package]] name = "object" -version = "0.36.4" +version = "0.36.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "084f1a5821ac4c651660a94a7153d27ac9d8a53736203f58b31945ded098070a" +checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "openssl" -version = "0.10.66" +version = "0.10.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" +checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" dependencies = [ "bitflags 2.6.0", "cfg-if", @@ -1929,7 +2075,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1940,18 +2086,18 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-src" -version = "300.3.2+3.3.2" +version = "300.4.1+3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a211a18d945ef7e648cc6e0058f4c548ee46aab922ea203e0d30e966ea23647b" +checksum = "faa4eac4138c62414b5622d1b31c5c304f34b406b013c079c2bbc652fdd6678c" dependencies = [ "cc", ] [[package]] name = "openssl-sys" -version = "0.9.103" +version = "0.9.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" +checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741" dependencies = [ "cc", "libc", @@ -1986,9 +2132,9 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "pallas-addresses" -version = "0.30.2" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84460293bb3323066e9ce608702750c14f02bc36d41c469e44b3eef5ec0fdbf6" +checksum = "5d47110e25338f995c1f29858292c016b974d23fa3a1ce97fff542047b6c2142" dependencies = [ "base58", "bech32", @@ -2002,9 +2148,9 @@ dependencies = [ [[package]] name = "pallas-codec" -version = "0.30.2" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "747279d1bc612986035619a3eaded8f9f4ceae29668aa7a5feae83681a0e93f4" +checksum = "1389b47a97864a7cb167e2392b44332930af90f6aaaac45eb2f369ccab95f4c7" dependencies = [ "hex", "minicbor", @@ -2015,9 +2161,9 @@ dependencies = [ [[package]] name = "pallas-crypto" -version = "0.30.2" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b6f8b08e32c7dbb50302222701ae15ef9ac1a7cc39225ce29c253f6ddab2aa7" +checksum = "f5d84346a1f0da5240b2aa16fde96998b84cdcc466cb7c04ba24bb1e1630e0d3" dependencies = [ "cryptoxide", "hex", @@ -2025,13 +2171,14 @@ dependencies = [ "rand_core", "serde", "thiserror", + "zeroize", ] [[package]] name = "pallas-primitives" -version = "0.30.2" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24929d461308626183d5bf15290e6315f4cc67fa38a1a66469425919683cceb2" +checksum = "5627a5cd6512eaa3900b93d8b6e604d495a31d4439c9f34d9f88ec38383c0ddc" dependencies = [ "base58", "bech32", @@ -2045,9 +2192,9 @@ dependencies = [ [[package]] name = "pallas-traverse" -version = "0.30.2" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73ca94c2278a160c226d6f5bb1756ea5f355421158aaa697445f59f09477a6a4" +checksum = "5d04fc75a2144eb257c68b4604cdde647e07404ea185b791c0005826960dfb35" dependencies = [ "hex", "itertools 0.13.0", @@ -2156,9 +2303,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.13" +version = "2.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdbef9d1d47087a895abd220ed25eb4ad973a5e26f6a4367b038c25e28dfc2d9" +checksum = "879952a81a83930934cbf1786752d6dedc3b1f29e8f8fb2ad1d0a36f377cf442" dependencies = [ "memchr", "thiserror", @@ -2167,9 +2314,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.7.13" +version = "2.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d3a6e3394ec80feb3b6393c725571754c6188490265c61aaf260810d6b95aa0" +checksum = "d214365f632b123a47fd913301e14c946c61d1c183ee245fa76eb752e59a02dd" dependencies = [ "pest", "pest_generator", @@ -2177,22 +2324,22 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.7.13" +version = "2.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94429506bde1ca69d1b5601962c73f4172ab4726571a59ea95931218cb0e930e" +checksum = "eb55586734301717aea2ac313f50b2eb8f60d2fc3dc01d190eefa2e625f60c4e" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "pest_meta" -version = "2.7.13" +version = "2.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac8a071862e93690b6e34e9a5fb8e33ff3734473ac0245b27232222c4906a33f" +checksum = "b75da2a70cf4d9cb76833c990ac9cd3923c9a8905a8929789ce347c84564d03d" dependencies = [ "once_cell", "pest", @@ -2206,14 +2353,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.5.0", + "indexmap 2.6.0", ] [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" [[package]] name = "pin-utils" @@ -2233,9 +2380,9 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" +checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" [[package]] name = "powerfmt" @@ -2272,7 +2419,7 @@ checksum = "b55c4d17d994b637e2f4daf6e5dc5d660d209d5642377d675d7a1c3ab69fa579" dependencies = [ "arrayvec", "typed-arena", - "unicode-width", + "unicode-width 0.1.14", ] [[package]] @@ -2287,9 +2434,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.86" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" dependencies = [ "unicode-ident", ] @@ -2316,18 +2463,18 @@ dependencies = [ [[package]] name = "psm" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa37f80ca58604976033fae9515a8a2989fc13797d953f7c04fb8fa36a11f205" +checksum = "200b9ff220857e53e184257720a14553b2f4aa02577d2ed9842d45d4b9654810" dependencies = [ "cc", ] [[package]] name = "pulldown-cmark" -version = "0.12.1" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "666f0f59e259aea2d72e6012290c09877a780935cc3c18b1ceded41f3890d59c" +checksum = "f86ba2052aebccc42cbbb3ed234b8b13ce76f75c3551a303cb2bcffcff12bb14" dependencies = [ "bitflags 2.6.0", "memchr", @@ -2417,9 +2564,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.4" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0884ad60e090bf1345b93da0a5de8923c93884cd03f40dfcfddd3b4bee661853" +checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" dependencies = [ "bitflags 2.6.0", ] @@ -2437,9 +2584,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.6" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", @@ -2449,9 +2596,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", @@ -2460,9 +2607,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "reqwest" @@ -2522,9 +2669,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustix" -version = "0.38.37" +version = "0.38.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811" +checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6" dependencies = [ "bitflags 2.6.0", "errno", @@ -2544,9 +2691,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" +checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" [[package]] name = "rusty-fork" @@ -2577,9 +2724,9 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.24" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9aaafd5a2b6e3d657ff009d82fbd630b6bd54dd4eb06f21693925cdf80f9b8b" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" dependencies = [ "windows-sys 0.59.0", ] @@ -2637,9 +2784,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.12.0" +version = "2.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6" +checksum = "fa39c7303dc58b5543c94d22c1766b0d31f2ee58306363ea622b10bbc075eaa2" dependencies = [ "core-foundation-sys", "libc", @@ -2656,31 +2803,31 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.210" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" +checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.210" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" +checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" dependencies = [ - "indexmap 2.5.0", + "indexmap 2.6.0", "itoa", "memchr", "ryu", @@ -2695,14 +2842,14 @@ checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "serde_spanned" -version = "0.6.7" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" dependencies = [ "serde", ] @@ -2834,6 +2981,12 @@ dependencies = [ "der", ] +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + [[package]] name = "stacker" version = "0.1.17" @@ -2931,9 +3084,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.77" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -2946,6 +3099,17 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "system-configuration" version = "0.5.1" @@ -2969,9 +3133,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.12.0" +version = "3.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" +checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" dependencies = [ "cfg-if", "fastrand", @@ -2990,6 +3154,16 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "terminal_size" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f599bd7ca042cfdf8f4512b277c02ba102247820f9d9d4a9f521f496751a6ef" +dependencies = [ + "rustix", + "windows-sys 0.59.0", +] + [[package]] name = "textwrap" version = "0.16.1" @@ -2998,27 +3172,27 @@ checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" dependencies = [ "smawk", "unicode-linebreak", - "unicode-width", + "unicode-width 0.1.14", ] [[package]] name = "thiserror" -version = "1.0.63" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.63" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -3050,25 +3224,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] -name = "tinyvec" -version = "1.8.0" +name = "tinystr" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" dependencies = [ - "tinyvec_macros", + "displaydoc", + "zerovec", ] -[[package]] -name = "tinyvec_macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" - [[package]] name = "tokio" -version = "1.40.0" +version = "1.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998" +checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" dependencies = [ "backtrace", "bytes", @@ -3090,7 +3259,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -3143,7 +3312,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.5.0", + "indexmap 2.6.0", "serde", "serde_spanned", "toml_datetime", @@ -3175,7 +3344,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -3207,9 +3376,9 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "ucd-trie" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" +checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" [[package]] name = "unarray" @@ -3219,18 +3388,9 @@ checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" [[package]] name = "unicase" -version = "2.7.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89" -dependencies = [ - "version_check", -] - -[[package]] -name = "unicode-bidi" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" +checksum = "7e51b68083f157f853b6379db119d1c1be0e6e4dec98101079dec41f6f5cf6df" [[package]] name = "unicode-ident" @@ -3244,15 +3404,6 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" -[[package]] -name = "unicode-normalization" -version = "0.1.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" -dependencies = [ - "tinyvec", -] - [[package]] name = "unicode-segmentation" version = "1.12.0" @@ -3265,6 +3416,12 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" +[[package]] +name = "unicode-width" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" + [[package]] name = "uplc" version = "1.1.6" @@ -3301,9 +3458,9 @@ dependencies = [ [[package]] name = "url" -version = "2.5.2" +version = "2.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" +checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada" dependencies = [ "form_urlencoded", "idna", @@ -3317,6 +3474,18 @@ version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "utf8parse" version = "0.2.2" @@ -3398,9 +3567,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5" +checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" dependencies = [ "cfg-if", "once_cell", @@ -3409,24 +3578,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b" +checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.43" +version = "0.4.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61e9300f63a621e96ed275155c108eb6f843b6a26d053f122ab69724559dc8ed" +checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" dependencies = [ "cfg-if", "js-sys", @@ -3436,9 +3605,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf" +checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3446,28 +3615,28 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" +checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484" +checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" [[package]] name = "web-sys" -version = "0.3.70" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26fdeaafd9bd129f65e7c031593c24d62186301e0c72c8978fa1678be7d532c0" +checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" dependencies = [ "js-sys", "wasm-bindgen", @@ -3671,6 +3840,18 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + [[package]] name = "xdg" version = "2.5.2" @@ -3683,6 +3864,30 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" +[[package]] +name = "yoke" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure", +] + [[package]] name = "zerocopy" version = "0.7.35" @@ -3701,7 +3906,28 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", +] + +[[package]] +name = "zerofrom" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure", ] [[package]] @@ -3721,7 +3947,29 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", +] + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 6afb0a11..dc82aabe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,11 +52,11 @@ x86_64-unknown-linux-musl = "ubuntu-22.04" walkdir = "2.3.2" insta = { version = "1.30.0", features = ["yaml", "json", "redactions"] } miette = { version = "7.2.0" } -pallas-addresses = "0.30.1" -pallas-codec = { version = "0.30.1", features = ["num-bigint"] } -pallas-crypto = "0.30.1" -pallas-primitives = "0.30.1" -pallas-traverse = "0.30.1" +pallas-addresses = "0.31.0" +pallas-codec = { version = "0.31.0", features = ["num-bigint"] } +pallas-crypto = "0.31.0" +pallas-primitives = "0.31.0" +pallas-traverse = "0.31.0" [profile.dev.package.insta] opt-level = 3 diff --git a/crates/aiken-lang/src/expr.rs b/crates/aiken-lang/src/expr.rs index 58407df4..5ad0dda6 100644 --- a/crates/aiken-lang/src/expr.rs +++ b/crates/aiken-lang/src/expr.rs @@ -1007,6 +1007,7 @@ impl UntypedExpr { PlutusData::Array(elems) => UntypedExpr::List { location: Span::empty(), elements: elems + .to_vec() .into_iter() .map(UntypedExpr::reify_blind) .collect::>(), @@ -1041,6 +1042,7 @@ impl UntypedExpr { let ix = convert_tag_to_constr(tag).or(any_constructor).unwrap() as usize; let fields = fields + .to_vec() .into_iter() .map(|field| CallArg { location: Span::empty(), @@ -1127,6 +1129,7 @@ impl UntypedExpr { Ok(UntypedExpr::List { location: Span::empty(), elements: args + .to_vec() .into_iter() .map(|arg| { UntypedExpr::do_reify_data(generics, data_types, arg, inner) @@ -1144,6 +1147,7 @@ impl UntypedExpr { Type::Tuple { elems, .. } => Ok(UntypedExpr::Tuple { location: Span::empty(), elems: args + .to_vec() .into_iter() .zip(elems) .map(|(arg, arg_type)| { @@ -1153,6 +1157,7 @@ impl UntypedExpr { }), Type::Pair { fst, snd, .. } => { let mut elems = args + .to_vec() .into_iter() .zip([fst, snd]) .map(|(arg, arg_type)| { @@ -1213,6 +1218,7 @@ impl UntypedExpr { } else { let arguments = fields + .to_vec() .into_iter() .zip(constructor.arguments.iter()) .map( @@ -1264,9 +1270,9 @@ impl UntypedExpr { UntypedExpr::do_reify_data( generics, data_types, - PlutusData::Array( + Data::list( kvs.into_iter() - .map(|(k, v)| PlutusData::Array(vec![k, v])) + .map(|(k, v)| Data::list(vec![k, v])) .collect(), ), tipo, diff --git a/crates/aiken-lang/src/gen_uplc/builder.rs b/crates/aiken-lang/src/gen_uplc/builder.rs index 97b4f2a3..159ec328 100644 --- a/crates/aiken-lang/src/gen_uplc/builder.rs +++ b/crates/aiken-lang/src/gen_uplc/builder.rs @@ -18,14 +18,11 @@ use indexmap::IndexMap; use itertools::{Itertools, Position}; use std::{ops::Deref, rc::Rc}; use uplc::{ - ast::{Constant as UplcConstant, Name, Term, Type as UplcType}, + ast::{Constant as UplcConstant, Data, Name, Term, Type as UplcType}, builder::{CONSTR_FIELDS_EXPOSER, CONSTR_INDEX_EXPOSER}, builtins::DefaultFunction, - machine::{ - runtime::{convert_constr_to_tag, Compressable, ANY_TAG}, - value::to_pallas_bigint, - }, - Constr, KeyValuePairs, PlutusData, + machine::{runtime::Compressable, value::to_pallas_bigint}, + KeyValuePairs, PlutusData, }; pub type Variant = String; @@ -637,12 +634,7 @@ pub fn convert_constants_to_data(constants: Vec>) -> Vec UplcConstant::Data(PlutusData::Constr(Constr { - tag: convert_constr_to_tag((*b).into()).unwrap_or(ANY_TAG), - any_constructor: convert_constr_to_tag((*b).into()) - .map_or(Some((*b).into()), |_| None), - fields: vec![], - })), + UplcConstant::Bool(b) => UplcConstant::Data(Data::constr((*b).into(), vec![])), UplcConstant::ProtoList(list_type, constants) => { if matches!(list_type, UplcType::Pair(_, _)) { let inner_constants = constants @@ -675,7 +667,7 @@ pub fn convert_constants_to_data(constants: Vec>) -> Vec { @@ -688,17 +680,13 @@ pub fn convert_constants_to_data(constants: Vec>) -> Vec d.clone(), - UplcConstant::Unit => UplcConstant::Data(PlutusData::Constr(Constr { - tag: convert_constr_to_tag(0).unwrap(), - any_constructor: None, - fields: vec![], - })), + UplcConstant::Unit => UplcConstant::Data(Data::constr(0, vec![])), UplcConstant::Bls12_381G1Element(b) => UplcConstant::Data(PlutusData::BoundedBytes( b.deref().clone().compress().into(), )), @@ -741,33 +729,12 @@ pub fn convert_type_to_data(term: Term, field_type: &Rc) -> Term Term::Constant( - UplcConstant::Data(PlutusData::Constr(Constr { - tag: convert_constr_to_tag(0).unwrap(), - any_constructor: None, - fields: vec![], - })) - .into(), - ) - .lambda("_") - .apply(term), + Some(UplcType::Unit) => Term::Constant(UplcConstant::Data(Data::constr(0, vec![])).into()) + .lambda("_") + .apply(term), Some(UplcType::Bool) => term.if_then_else( - Term::Constant( - UplcConstant::Data(PlutusData::Constr(Constr { - tag: convert_constr_to_tag(1).unwrap(), - any_constructor: None, - fields: vec![], - })) - .into(), - ), - Term::Constant( - UplcConstant::Data(PlutusData::Constr(Constr { - tag: convert_constr_to_tag(0).unwrap(), - any_constructor: None, - fields: vec![], - })) - .into(), - ), + Term::Constant(UplcConstant::Data(Data::constr(1, vec![])).into()), + Term::Constant(UplcConstant::Data(Data::constr(0, vec![])).into()), ), Some(UplcType::Data) | None => term, diff --git a/crates/aiken-lang/src/test_framework.rs b/crates/aiken-lang/src/test_framework.rs index 2aa97e5a..c4a5e8ec 100644 --- a/crates/aiken-lang/src/test_framework.rs +++ b/crates/aiken-lang/src/test_framework.rs @@ -559,16 +559,15 @@ impl Prng { { return Prng::Seeded { choices: choices.to_vec(), - uplc: PlutusData::Constr(Constr { - tag: 121 + Prng::SEEDED, - fields: vec![ + uplc: Data::constr( + Prng::SEEDED, + vec![ PlutusData::BoundedBytes(bytes.to_owned()), // Clear choices between seeded runs, to not // accumulate ALL choices ever made. PlutusData::BoundedBytes(vec![].into()), ], - any_constructor: None, - }), + ), }; } } diff --git a/crates/uplc/src/ast.rs b/crates/uplc/src/ast.rs index 21832ebc..ae73cb6f 100644 --- a/crates/uplc/src/ast.rs +++ b/crates/uplc/src/ast.rs @@ -149,21 +149,21 @@ impl SerializableProgram { PlutusV1Program(pgrm) => { let cbor = pgrm.to_cbor().unwrap(); let compiled_code = hex::encode(&cbor); - let hash = conway::PlutusV1Script(cbor.into()).compute_hash(); + let hash = conway::PlutusScript::<1>(cbor.into()).compute_hash(); (compiled_code, hash) } PlutusV2Program(pgrm) => { let cbor = pgrm.to_cbor().unwrap(); let compiled_code = hex::encode(&cbor); - let hash = conway::PlutusV2Script(cbor.into()).compute_hash(); + let hash = conway::PlutusScript::<2>(cbor.into()).compute_hash(); (compiled_code, hash) } PlutusV3Program(pgrm) => { let cbor = pgrm.to_cbor().unwrap(); let compiled_code = hex::encode(&cbor); - let hash = conway::PlutusV3Script(cbor.into()).compute_hash(); + let hash = conway::PlutusScript::<3>(cbor.into()).compute_hash(); (compiled_code, hash) } } @@ -239,15 +239,15 @@ impl<'a> Deserialize<'a> for SerializableProgram { .and_then(|program| { let cbor = || program.to_cbor().unwrap().into(); - if conway::PlutusV3Script(cbor()).compute_hash().to_string() == hash { + if conway::PlutusScript::<1>(cbor()).compute_hash().to_string() == hash { return Ok(SerializableProgram::PlutusV3Program(program)); } - if conway::PlutusV2Script(cbor()).compute_hash().to_string() == hash { + if conway::PlutusScript::<2>(cbor()).compute_hash().to_string() == hash { return Ok(SerializableProgram::PlutusV2Program(program)); } - if conway::PlutusV1Script(cbor()).compute_hash().to_string() == hash { + if conway::PlutusScript::<3>(cbor()).compute_hash().to_string() == hash { return Ok(SerializableProgram::PlutusV1Program(program)); } @@ -273,9 +273,9 @@ impl Program { let cbor = self.to_cbor().unwrap(); let validator_hash = match plutus_version { - Language::PlutusV1 => conway::PlutusV1Script(cbor.into()).compute_hash(), - Language::PlutusV2 => conway::PlutusV2Script(cbor.into()).compute_hash(), - Language::PlutusV3 => conway::PlutusV3Script(cbor.into()).compute_hash(), + Language::PlutusV1 => conway::PlutusScript::<1>(cbor.into()).compute_hash(), + Language::PlutusV2 => conway::PlutusScript::<2>(cbor.into()).compute_hash(), + Language::PlutusV3 => conway::PlutusScript::<3>(cbor.into()).compute_hash(), }; ShelleyAddress::new( @@ -420,10 +420,20 @@ impl Data { } pub fn list(xs: Vec) -> PlutusData { - PlutusData::Array(xs) + PlutusData::Array(if xs.is_empty() { + conway::MaybeIndefArray::Def(xs) + } else { + conway::MaybeIndefArray::Indef(xs) + }) } pub fn constr(ix: u64, fields: Vec) -> PlutusData { + let fields = if fields.is_empty() { + conway::MaybeIndefArray::Def(fields) + } else { + conway::MaybeIndefArray::Indef(fields) + }; + // NOTE: see https://github.com/input-output-hk/plutus/blob/9538fc9829426b2ecb0628d352e2d7af96ec8204/plutus-core/plutus-core/src/PlutusCore/Data.hs#L139-L155 if ix < 7 { PlutusData::Constr(Constr { diff --git a/crates/uplc/src/machine/runtime.rs b/crates/uplc/src/machine/runtime.rs index 124212a8..c212ec96 100644 --- a/crates/uplc/src/machine/runtime.rs +++ b/crates/uplc/src/machine/runtime.rs @@ -881,7 +881,7 @@ impl DefaultFunction { }) .collect(); - let value = Value::data(PlutusData::Array(data_list)); + let value = Value::data(Data::list(data_list)); Ok(value) } diff --git a/crates/uplc/src/parser.rs b/crates/uplc/src/parser.rs index 24c96e64..0fe887d9 100644 --- a/crates/uplc/src/parser.rs +++ b/crates/uplc/src/parser.rs @@ -1,5 +1,5 @@ use crate::{ - ast::{Constant, Name, Program, Term, Type}, + ast::{Constant, Data, Name, Program, Term, Type}, builtins::DefaultFunction, machine::{runtime::Compressable, value::to_pallas_bigint}, }; @@ -239,7 +239,7 @@ peg::parser! { rule data() -> PlutusData = _* "Constr" _+ t:decimal() _+ fs:plutus_list() {? - Ok(crate::ast::Data::constr( + Ok(Data::constr( u64::try_from(t).or(Err("tag"))?, fs, )) @@ -247,7 +247,7 @@ peg::parser! { / _* "Map" _+ kvps:plutus_key_value_pairs() { PlutusData::Map(pallas_codec::utils::KeyValuePairs::Def(kvps)) } - / _* "List" _+ ls:plutus_list() { PlutusData::Array(ls) } + / _* "List" _+ ls:plutus_list() { Data::list(ls) } / _* "I" _+ n:big_number() { PlutusData::BigInt(to_pallas_bigint(&n)) } / _* "B" _+ "#" i:ident()* {? Ok(PlutusData::BoundedBytes( diff --git a/crates/uplc/src/tx.rs b/crates/uplc/src/tx.rs index 068da3a9..8caa902c 100644 --- a/crates/uplc/src/tx.rs +++ b/crates/uplc/src/tx.rs @@ -5,7 +5,10 @@ use crate::{ }; use error::Error; use pallas_primitives::{ - conway::{CostMdls, MintedTx, Redeemer, TransactionInput, TransactionOutput}, + conway::{ + CostModels, ExUnits, MintedTx, Redeemer, Redeemers, RedeemersKey, TransactionInput, + TransactionOutput, + }, Fragment, }; use pallas_traverse::{Era, MultiEraTx}; @@ -28,7 +31,7 @@ pub mod to_plutus_data; pub fn eval_phase_two( tx: &MintedTx, utxos: &[ResolvedInput], - cost_mdls: Option<&CostMdls>, + cost_mdls: Option<&CostModels>, initial_budget: Option<&ExBudget>, slot_config: &SlotConfig, run_phase_one: bool, @@ -49,12 +52,12 @@ pub fn eval_phase_two( let mut remaining_budget = *initial_budget.unwrap_or(&ExBudget::default()); - for (redeemer_key, redeemer_value) in rs.iter() { + for (key, data, ex_units) in iter_redeemers(rs) { let redeemer = Redeemer { - tag: redeemer_key.tag, - index: redeemer_key.index, - data: redeemer_value.data.clone(), - ex_units: redeemer_value.ex_units, + tag: key.tag, + index: key.index, + data: data.clone(), + ex_units, }; with_redeemer(&redeemer); @@ -100,7 +103,9 @@ pub fn eval_phase_two_raw( .or_else(|_| MultiEraTx::decode_for_era(Era::Babbage, tx_bytes)) .or_else(|_| MultiEraTx::decode_for_era(Era::Alonzo, tx_bytes))?; - let cost_mdls = cost_mdls_bytes.map(CostMdls::decode_fragment).transpose()?; + let cost_mdls = cost_mdls_bytes + .map(CostModels::decode_fragment) + .transpose()?; let budget = ExBudget { cpu: initial_budget.0 as i64, @@ -161,7 +166,7 @@ pub fn apply_params_to_script( let mut buffer = Vec::new(); let mut program = Program::::from_cbor(plutus_script_bytes, &mut buffer)?; - for param in params { + for param in params.to_vec() { program = program.apply_data(param); } @@ -170,3 +175,31 @@ pub fn apply_params_to_script( Err(_) => Err(Error::ApplyParamsError), } } + +pub fn iter_redeemers( + redeemers: &Redeemers, +) -> impl Iterator { + match redeemers { + Redeemers::List(rs) => Box::new(rs.iter().map(|r| { + ( + RedeemersKey { + tag: r.tag, + index: r.index, + }, + &r.data, + r.ex_units, + ) + })), + Redeemers::Map(kv) => Box::new(kv.iter().map(|(k, v)| { + ( + RedeemersKey { + tag: k.tag, + index: k.index, + }, + &v.data, + v.ex_units, + ) + })) + as Box>, + } +} diff --git a/crates/uplc/src/tx/eval.rs b/crates/uplc/src/tx/eval.rs index c02771c4..f9adf3b2 100644 --- a/crates/uplc/src/tx/eval.rs +++ b/crates/uplc/src/tx/eval.rs @@ -13,7 +13,7 @@ use crate::{ PlutusData, }; use pallas_codec::utils::Bytes; -use pallas_primitives::conway::{CostMdls, CostModel, ExUnits, Language, MintedTx, Redeemer}; +use pallas_primitives::conway::{CostModel, CostModels, ExUnits, Language, MintedTx, Redeemer}; pub fn eval_redeemer( tx: &MintedTx, @@ -21,7 +21,7 @@ pub fn eval_redeemer( slot_config: &SlotConfig, redeemer: &Redeemer, lookup_table: &DataLookupTable, - cost_mdls_opt: Option<&CostMdls>, + cost_mdls_opt: Option<&CostModels>, initial_budget: &ExBudget, ) -> Result { fn do_eval_redeemer( diff --git a/crates/uplc/src/tx/phase_one.rs b/crates/uplc/src/tx/phase_one.rs index 2f0282bd..6a201b89 100644 --- a/crates/uplc/src/tx/phase_one.rs +++ b/crates/uplc/src/tx/phase_one.rs @@ -7,8 +7,8 @@ use itertools::Itertools; use pallas_addresses::{Address, ScriptHash, ShelleyPaymentPart, StakePayload}; use pallas_codec::utils::Nullable; use pallas_primitives::conway::{ - Certificate, GovAction, MintedTx, PolicyId, RedeemerTag, RedeemersKey, RewardAccount, - StakeCredential, TransactionOutput, Voter, + Certificate, GovAction, MintedTx, PolicyId, RedeemerTag, Redeemers, RedeemersKey, + RewardAccount, StakeCredential, TransactionOutput, Voter, }; use std::collections::HashMap; @@ -92,7 +92,7 @@ pub fn scripts_needed(tx: &MintedTx, utxos: &[ResolvedInput]) -> Result Result { + Certificate::StakeDeregistration(StakeCredential::ScriptHash(h)) + | Certificate::UnReg(StakeCredential::ScriptHash(h), _) + | Certificate::VoteDeleg(StakeCredential::ScriptHash(h), _) + | Certificate::VoteRegDeleg(StakeCredential::ScriptHash(h), _, _) + | Certificate::StakeVoteDeleg(StakeCredential::ScriptHash(h), _, _) + | Certificate::StakeRegDeleg(StakeCredential::ScriptHash(h), _, _) + | Certificate::StakeVoteRegDeleg(StakeCredential::ScriptHash(h), _, _, _) + | Certificate::RegDRepCert(StakeCredential::ScriptHash(h), _, _) + | Certificate::UnRegDRepCert(StakeCredential::ScriptHash(h), _) + | Certificate::UpdateDRepCert(StakeCredential::ScriptHash(h), _) + | Certificate::AuthCommitteeHot(StakeCredential::ScriptHash(h), _) + | Certificate::ResignCommitteeCold(StakeCredential::ScriptHash(h), _) + | Certificate::StakeDelegation(StakeCredential::ScriptHash(h), _) => { Some((ScriptPurpose::Certifying(ix, cert.clone()), *h)) } @@ -222,11 +222,26 @@ pub fn has_exact_set_of_redeemers( } } - let wits_redeemer_keys: Vec<&RedeemersKey> = tx + let wits_redeemer_keys: Vec = tx .transaction_witness_set .redeemer .as_deref() - .map(|m| m.iter().map(|(k, _)| k).collect()) + .map(|m| match m { + Redeemers::List(rs) => rs + .iter() + .map(|r| RedeemersKey { + index: r.index, + tag: r.tag, + }) + .collect(), + Redeemers::Map(kv) => kv + .iter() + .map(|(k, _)| RedeemersKey { + index: k.index, + tag: k.tag, + }) + .collect(), + }) .unwrap_or_default(); let needed_redeemer_keys: Vec = @@ -234,7 +249,7 @@ pub fn has_exact_set_of_redeemers( let missing: Vec<_> = redeemers_needed .into_iter() - .filter(|x| !wits_redeemer_keys.contains(&&x.0)) + .filter(|x| !wits_redeemer_keys.contains(&x.0)) .map(|x| { format!( "{}[{:?}] -> {}", @@ -321,7 +336,7 @@ fn build_redeemer_key( for (idx, x) in reward_accounts.iter().enumerate() { let cred = match Address::from_bytes(x).unwrap() { Address::Stake(a) => match a.payload() { - StakePayload::Script(sh) => Some(StakeCredential::Scripthash(*sh)), + StakePayload::Script(sh) => Some(StakeCredential::ScriptHash(*sh)), StakePayload::Stake(_) => None, }, _ => return Err(Error::BadWithdrawalAddress), diff --git a/crates/uplc/src/tx/script_context.rs b/crates/uplc/src/tx/script_context.rs index 804e76bc..3eb9cace 100644 --- a/crates/uplc/src/tx/script_context.rs +++ b/crates/uplc/src/tx/script_context.rs @@ -1,4 +1,5 @@ use super::{to_plutus_data::MintValue, Error}; +use crate::tx::iter_redeemers; use itertools::Itertools; use pallas_addresses::{Address, Network, StakePayload}; use pallas_codec::utils::{ @@ -10,10 +11,10 @@ use pallas_primitives::{ conway::{ AddrKeyhash, Certificate, Coin, DatumHash, DatumOption, GovAction, GovActionId, Mint, MintedTransactionBody, MintedTransactionOutput, MintedTx, MintedWitnessSet, NativeScript, - PlutusData, PlutusV1Script, PlutusV2Script, PlutusV3Script, PolicyId, - PostAlonzoTransactionOutput, ProposalProcedure, PseudoDatumOption, PseudoScript, Redeemer, - RedeemerTag, RedeemersKey, RequiredSigners, RewardAccount, ScriptHash, StakeCredential, - TransactionInput, TransactionOutput, Value, Voter, VotingProcedure, + PlutusData, PlutusScript, PolicyId, PostAlonzoTransactionOutput, ProposalProcedure, + PseudoDatumOption, PseudoScript, Redeemer, RedeemerTag, RedeemersKey, RequiredSigners, + RewardAccount, ScriptHash, StakeCredential, TransactionInput, TransactionOutput, Value, + Voter, VotingProcedure, }, }; use pallas_traverse::{ComputeHash, OriginalHash}; @@ -77,9 +78,9 @@ impl ScriptPurpose { #[derive(Debug, PartialEq, Clone)] pub enum ScriptVersion { Native(NativeScript), - V1(PlutusV1Script), - V2(PlutusV2Script), - V3(PlutusV3Script), + V1(PlutusScript<1>), + V2(PlutusScript<2>), + V3(PlutusScript<3>), } pub struct DataLookupTable { @@ -400,7 +401,7 @@ impl TxInfo { | TxInfo::V2(TxInfoV2 { ref redeemers, .. }) => redeemers .iter() .find_map(move |(purpose, some_redeemer)| { - if redeemer == some_redeemer { + if redeemer.tag == some_redeemer.tag && redeemer.index == some_redeemer.index { Some(purpose.clone()) } else { None @@ -414,7 +415,7 @@ impl TxInfo { TxInfo::V3(TxInfoV3 { ref redeemers, .. }) => redeemers .iter() .find_map(move |(purpose, some_redeemer)| { - if redeemer == some_redeemer { + if redeemer.tag == some_redeemer.tag && redeemer.index == some_redeemer.index { Some(purpose.clone()) } else { None @@ -702,24 +703,24 @@ pub fn get_data_info(witness_set: &MintedWitnessSet) -> Vec<(DatumHash, PlutusDa pub fn get_redeemers_info<'a>( witness_set: &'a MintedWitnessSet, - to_script_purpose: impl Fn(&'a RedeemersKey) -> Result, + to_script_purpose: impl Fn(RedeemersKey) -> Result + 'a, ) -> Result, Error> { Ok(KeyValuePairs::from( witness_set .redeemer .as_deref() .map(|m| { - m.iter() - .sorted_by(|a, b| sort_redeemers(&a.0, &b.0)) - .map(|(redeemer_key, redeemer_value)| { + iter_redeemers(m) + .sorted_by(|(a, _, _), (b, _, _)| sort_redeemers(a, b)) + .map(|(key, data, ex_units)| { let redeemer = Redeemer { - tag: redeemer_key.tag, - index: redeemer_key.index, - data: redeemer_value.data.clone(), - ex_units: redeemer_value.ex_units, + tag: key.tag, + index: key.index, + data: data.clone(), + ex_units, }; - to_script_purpose(redeemer_key).map(|purpose| (purpose, redeemer)) + to_script_purpose(key).map(|purpose| (purpose, redeemer)) }) .collect::, _>>() }) @@ -766,8 +767,8 @@ fn script_purpose_builder<'a>( withdrawals: &'a KeyValuePairs, proposal_procedures: &'a [ProposalProcedure], votes: &'a [&'a Voter], -) -> impl Fn(&'a RedeemersKey) -> Result { - move |redeemer: &'a RedeemersKey| { +) -> impl Fn(RedeemersKey) -> Result + 'a { + move |redeemer: RedeemersKey| { let tag = redeemer.tag; let index = redeemer.index as usize; @@ -793,7 +794,7 @@ fn script_purpose_builder<'a>( .map(|(address, _)| match address { Address::Stake(stake_address) => match stake_address.payload() { StakePayload::Script(script_hash) => Ok(ScriptPurpose::Rewarding( - StakeCredential::Scripthash(*script_hash), + StakeCredential::ScriptHash(*script_hash), )), StakePayload::Stake(_) => Err(Error::NonScriptWithdrawal), }, @@ -885,7 +886,7 @@ pub fn find_script( | Certificate::AuthCommitteeHot(stake_credential, _) | Certificate::ResignCommitteeCold(stake_credential, _) | Certificate::StakeDelegation(stake_credential, _) => match stake_credential { - StakeCredential::Scripthash(hash) => Ok(hash), + StakeCredential::ScriptHash(hash) => Ok(hash), _ => Err(Error::NonScriptStakeCredential), }, Certificate::StakeRegistration { .. } diff --git a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_certificates.snap b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_certificates.snap index e59033d1..11d76405 100644 --- a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_certificates.snap +++ b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_certificates.snap @@ -6,1861 +6,1837 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Array( + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + Array( + Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, ), ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], ), ), ), - ), - ], + ], + ), ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - ], - ), - Array( - [], - ), - Array( - [], - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, - }, - ), - ), - ), - Map( - Def( - [], - ), - ), - Array( - [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 1280, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], - ), - ), - BoundedBytes( - BoundedBytes( - [ - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 1281, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1337, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], ), - ), - ], - }, + }, + ), + ], ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], - ), - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 124, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], - ), - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3000000, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 124, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3000000, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 124, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], - ), - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3000000, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 1282, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - ], - ), - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 1283, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 125, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3000000, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 127, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3000000, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 126, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 155, - 36, - 50, - 64, - 70, - 84, - 67, - 147, - 68, - 62, - 31, - 179, - 92, - 139, - 114, - 195, - 195, - 158, - 24, - 165, - 22, - 169, - 93, - 245, - 246, - 101, - 65, - 1, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], - ), - ), - ], - }, - ), - ], - }, - ), - ], - ), - Map( - Def( - [], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Array( - [], - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 124, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 20, }, ), - ), + ], ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ + }, + ), + ], + ), + ), + Array( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, + ), + ), + ), + Map( + Def( + [], + ), + ), + Array( + Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 1280, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), + ), + BoundedBytes( + BoundedBytes( + [ + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 1281, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1337, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 124, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), + ), + ], + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3000000, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 124, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3000000, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 124, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3000000, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 1282, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 1283, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 125, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3000000, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 127, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3000000, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 126, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( [ @@ -1896,13 +1872,15 @@ Constr( ), ), ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( [ @@ -1938,232 +1916,452 @@ Constr( ), ), ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + ), + Map( + Def( + [], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), }, ), ], - }, - ), - ], - }, + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - Map( - Def( - [], - ), - ), - BoundedBytes( - BoundedBytes( - [ - 128, - 191, - 104, - 206, - 210, - 197, - 11, - 135, - 52, - 252, - 140, - 235, - 208, - 160, - 73, - 225, - 110, - 83, - 210, - 254, - 94, - 199, - 228, - 40, - 34, - 240, - 124, - 38, - 60, - 237, - 152, - 171, - ], - ), - ), - Map( - Def( - [], - ), - ), - Array( - [], - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 10000000, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 14, - }, - ), - ), - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 124, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 20, }, ), - ), - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 155, - 36, - 50, - 64, - 70, - 84, - 67, - 147, - 68, - 62, - 31, - 179, - 92, - 139, - 114, - 195, - 195, - 158, - 24, - 165, - 22, - 169, - 93, - 245, - 246, - 101, - 65, - 1, - ], + Array( + Def( + [], + ), + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 124, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 20, + }, + ), + ), + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 155, + 36, + 50, + 64, + 70, + 84, + 67, + 147, + 68, + 62, + 31, + 179, + 92, + 139, + 114, + 195, + 195, + 158, + 24, + 165, + 22, + 169, + 93, + 245, + 246, + 101, + 65, + 1, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + Map( + Def( + [], + ), + ), + BoundedBytes( + BoundedBytes( + [ + 128, + 191, + 104, + 206, + 210, + 197, + 11, + 135, + 52, + 252, + 140, + 235, + 208, + 160, + 73, + 225, + 110, + 83, + 210, + 254, + 94, + 199, + 228, + 40, + 34, + 240, + 124, + 38, + 60, + 237, + 152, + 171, + ], + ), + ), + Map( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 10000000, + }, + ), ), ), ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 14, + }, + ), ), ), ], - }, - ), - ], - }, + ), + }, + ), + ], ), - ], - }, - ), - ], + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 124, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 20, + }, + ), + ), + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 155, + 36, + 50, + 64, + 70, + 84, + 67, + 147, + 68, + 62, + 31, + 179, + 92, + 139, + 114, + 195, + 195, + 158, + 24, + 165, + 22, + 169, + 93, + 245, + 246, + 101, + 65, + 1, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), }, ) diff --git a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_mint.snap b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_mint.snap index cb1705d4..3384c0b5 100644 --- a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_mint.snap +++ b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_mint.snap @@ -6,458 +6,65 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Array( + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + Array( + Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - ], - ), - Array( - [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - ], - ), - Array( - [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - Map( - Def( - [ - ( + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( - [], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], ), ), BigInt( @@ -465,142 +72,371 @@ Constr( Int( Int { neg: false, - val: 1000000, + val: 0, }, ), ), ), - ), - ], - ), + ], + ), + }, ), - ), - ], - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 146, - 57, - 24, - 228, - 3, - 191, - 67, - 195, - 75, - 78, - 246, - 180, - 142, - 178, - 238, - 4, - 186, - 190, - 209, - 115, - 32, - 216, - 209, - 185, - 255, - 154, - 208, - 134, - 232, - 111, - 68, - 236, - ], + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], + ], + ), }, ), ], - }, + ), ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + Array( + Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + ), + Array( + Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( [ @@ -636,25 +472,21 @@ Constr( ), ), ], - }, - ), - ], - }, + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), + }, ), Map( Def( @@ -665,952 +497,1240 @@ Constr( [], ), ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ( - BoundedBytes( - BoundedBytes( - [ - 12, - 142, - 175, - 73, - 12, - 83, - 175, - 191, - 39, - 227, - 216, - 74, - 59, - 87, - 218, - 81, - 251, - 175, - 229, - 170, - 120, - 68, - 63, - 206, - 194, - 220, - 38, - 46, - ], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( + Map( + Def( [ - 97, - 105, - 107, - 101, - 110, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ( - BoundedBytes( - BoundedBytes( - [ - 18, - 89, - 59, - 76, - 191, - 127, - 223, - 216, - 99, - 109, - 185, - 159, - 227, - 86, - 67, - 124, - 214, - 175, - 133, - 57, - 170, - 218, - 160, - 164, - 1, - 150, - 72, - 116, - ], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [ - 116, - 117, - 110, - 97, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100000000000000, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + ( BoundedBytes( BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], + [], ), ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], ), ), ), ], ), ), - ), - ( - BoundedBytes( - BoundedBytes( - [ - 12, - 142, - 175, - 73, - 12, - 83, - 175, - 191, - 39, - 227, - 216, - 74, - 59, - 87, - 218, - 81, - 251, - 175, - 229, - 170, - 120, - 68, - 63, - 206, - 194, - 220, - 38, - 46, - ], - ), - ), - Map( - Def( - [ - ( + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( [ - 99, - 97, - 114, - 100, - 97, - 110, + 146, + 57, + 24, + 228, + 3, + 191, + 67, + 195, + 75, + 78, + 246, + 180, + 142, + 178, + 238, + 4, + 186, + 190, + 209, + 115, + 32, + 216, + 209, + 185, + 255, + 154, + 208, + 134, + 232, 111, + 68, + 236, ], ), ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ( + BoundedBytes( + BoundedBytes( + [ + 12, + 142, + 175, + 73, + 12, + 83, + 175, + 191, + 39, + 227, + 216, + 74, + 59, + 87, + 218, + 81, + 251, + 175, + 229, + 170, + 120, + 68, + 63, + 206, + 194, + 220, + 38, + 46, + ], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [ + 97, + 105, + 107, + 101, + 110, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ( + BoundedBytes( + BoundedBytes( + [ + 18, + 89, + 59, + 76, + 191, + 127, + 223, + 216, + 99, + 109, + 185, + 159, + 227, + 86, + 67, + 124, + 214, + 175, + 133, + 57, + 170, + 218, + 160, + 164, + 1, + 150, + 72, + 116, + ], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [ + 116, + 117, + 110, + 97, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100000000000000, + }, + ), + ), + ), + ), + ], ), ), ), ], ), ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), }, ), Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 104, - 173, - 84, - 179, - 168, - 18, - 77, - 159, - 229, - 202, - 170, - 242, - 1, - 26, - 133, - 215, - 32, - 150, - 230, - 150, - 162, - 251, - 61, - 127, - 134, - 196, - 23, - 23, - ], + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, ), - ), - ], + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ( + BoundedBytes( + BoundedBytes( + [ + 12, + 142, + 175, + 73, + 12, + 83, + 175, + 191, + 39, + 227, + 216, + 74, + 59, + 87, + 218, + 81, + 251, + 175, + 229, + 170, + 120, + 68, + 63, + 206, + 194, + 220, + 38, + 46, + ], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [ + 99, + 97, + 114, + 100, + 97, + 110, + 111, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 104, + 173, + 84, + 179, + 168, + 18, + 77, + 159, + 229, + 202, + 170, + 242, + 1, + 26, + 133, + 215, + 32, + 150, + 230, + 150, + 162, + 251, + 61, + 127, + 134, + 196, + 23, + 23, + ], + ), + ), + ], + ), + }, + ), + ], + ), }, ), ], - }, + ), ), - ], - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, - }, - ), - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [ - 12, - 142, - 175, - 73, - 12, - 83, - 175, - 191, - 39, - 227, - 216, - 74, - 59, - 87, - 218, - 81, - 251, - 175, - 229, - 170, - 120, - 68, - 63, - 206, - 194, - 220, - 38, - 46, - ], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [ - 97, - 105, - 107, - 101, - 110, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: true, - val: 13, - }, - ), - ), - ), - ), - ( - BoundedBytes( - BoundedBytes( - [ - 99, - 97, - 114, - 100, - 97, - 110, - 111, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, - ), - ), - ), - ), - ], - ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, ), ), - ( - BoundedBytes( - BoundedBytes( - [ - 18, - 89, - 59, - 76, - 191, - 127, - 223, - 216, - 99, - 109, - 185, - 159, - 227, - 86, - 67, - 124, - 214, - 175, - 133, - 57, - 170, - 218, - 160, - 164, - 1, - 150, - 72, - 116, - ], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [ - 116, - 117, - 110, - 97, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100000000000000, - }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [ + 12, + 142, + 175, + 73, + 12, + 83, + 175, + 191, + 39, + 227, + 216, + 74, + 59, + 87, + 218, + 81, + 251, + 175, + 229, + 170, + 120, + 68, + 63, + 206, + 194, + 220, + 38, + 46, + ], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [ + 97, + 105, + 107, + 101, + 110, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: true, + val: 13, + }, + ), + ), ), ), - ), + ( + BoundedBytes( + BoundedBytes( + [ + 99, + 97, + 114, + 100, + 97, + 110, + 111, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + ), + ], ), - ], + ), ), - ), + ( + BoundedBytes( + BoundedBytes( + [ + 18, + 89, + 59, + 76, + 191, + 127, + 223, + 216, + 99, + 109, + 185, + 159, + 227, + 86, + 67, + 124, + 214, + 175, + 133, + 57, + 170, + 218, + 160, + 164, + 1, + 150, + 72, + 116, + ], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [ + 116, + 117, + 110, + 97, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100000000000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ], ), - ], - ), - ), - Array( - [], - ), - Map( - Def( - [], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + ), + Array( + Def( + [], + ), + ), + Map( + Def( + [], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [], + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), }, ), Constr( Constr { - tag: 122, + tag: 121, any_constructor: None, - fields: [], + fields: Indef( + [ + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), }, ), ], - }, + ), + }, + ), + Array( + Def( + [], ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + ), + Map( + Def( + [ + ( Constr( Constr { - tag: 123, + tag: 121, any_constructor: None, - fields: [], + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 12, + 142, + 175, + 73, + 12, + 83, + 175, + 191, + 39, + 227, + 216, + 74, + 59, + 87, + 218, + 81, + 251, + 175, + 229, + 170, + 120, + 68, + 63, + 206, + 194, + 220, + 38, + 46, + ], + ), + ), + ], + ), }, ), Constr( Constr { - tag: 122, + tag: 121, any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Array( - [], - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 12, - 142, - 175, - 73, - 12, - 83, - 175, - 191, - 39, - 227, - 216, - 74, - 59, - 87, - 218, - 81, - 251, - 175, - 229, - 170, - 120, - 68, - 63, - 206, - 194, - 220, - 38, - 46, - ], + fields: Def( + [], ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ), - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 18, - 89, - 59, - 76, - 191, - 127, - 223, - 216, - 99, - 109, - 185, - 159, - 227, - 86, - 67, - 124, - 214, - 175, - 133, - 57, - 170, - 218, - 160, - 164, - 1, - 150, - 72, - 116, - ], - ), - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, }, ), ), - ), - ), - ], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [ - 146, - 57, - 24, - 228, - 3, - 191, - 67, - 195, - 75, - 78, - 246, - 180, - 142, - 178, - 238, - 4, - 186, - 190, - 209, - 115, - 32, - 216, - 209, - 185, - 255, - 154, - 208, - 134, - 232, - 111, - 68, - 236, - ], + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 18, + 89, + 59, + 76, + 191, + 127, + 223, + 216, + 99, + 109, + 185, + 159, + 227, + 86, + 67, + 124, + 214, + 175, + 133, + 57, + 170, + 218, + 160, + 164, + 1, + 150, + 72, + 116, + ], + ), + ), + ], + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, + ), + ), + ), ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), + ], ), - ], - ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [ + 146, + 57, + 24, + 228, + 3, + 191, + 67, + 195, + 75, + 78, + 246, + 180, + 142, + 178, + 238, + 4, + 186, + 190, + 209, + 115, + 32, + 216, + 209, + 185, + 255, + 154, + 208, + 134, + 232, + 111, + 68, + 236, + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + BoundedBytes( + BoundedBytes( + [ + 231, + 87, + 152, + 94, + 72, + 228, + 58, + 149, + 161, + 133, + 221, + 186, + 8, + 200, + 20, + 188, + 32, + 248, + 28, + 182, + 133, + 68, + 172, + 147, + 122, + 155, + 153, + 46, + 78, + 108, + 56, + 160, + ], + ), + ), + Map( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], ), - BoundedBytes( - BoundedBytes( - [ - 231, - 87, - 152, - 94, - 72, - 228, - 58, - 149, - 161, - 133, - 221, - 186, - 8, - 200, - 20, - 188, - 32, - 248, - 28, - 182, - 133, - 68, - 172, - 147, - 122, - 155, - 153, - 46, - 78, - 108, - 56, - 160, - ], - ), - ), - Map( - Def( - [], - ), - ), - Array( - [], - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - BigInt( - Int( + }, + ), + BigInt( Int( - Int { - neg: false, - val: 42, - }, + Int( + Int { + neg: false, + val: 42, + }, + ), ), ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 18, - 89, - 59, - 76, - 191, - 127, - 223, - 216, - 99, - 109, - 185, - 159, - 227, - 86, - 67, - 124, - 214, - 175, - 133, - 57, - 170, - 218, - 160, - 164, - 1, - 150, - 72, - 116, - ], - ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 18, + 89, + 59, + 76, + 191, + 127, + 223, + 216, + 99, + 109, + 185, + 159, + 227, + 86, + 67, + 124, + 214, + 175, + 133, + 57, + 170, + 218, + 160, + 164, + 1, + 150, + 72, + 116, + ], + ), + ), + ], ), - ], - }, - ), - ], + }, + ), + ], + ), }, ) diff --git a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_propose_all_but_pparams.snap b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_propose_all_but_pparams.snap index 95937595..54da29f9 100644 --- a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_propose_all_but_pparams.snap +++ b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_propose_all_but_pparams.snap @@ -6,318 +6,611 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Array( + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( [ + Array( + Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + ), + Array( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, + ), + ), + ), + Map( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + Map( + Def( + [], + ), + ), Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - ], - ), - Array( - [], - ), - Array( - [], - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, - }, - ), - ), - ), - Map( - Def( - [], - ), - ), - Array( - [], - ), - Map( - Def( - [], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + fields: Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Array( - [], - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 126, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Array( + Def( + [], + ), + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 126, + any_constructor: None, + fields: Indef( + [ BigInt( Int( Int( Int { neg: false, - val: 2000000, + val: 3, }, ), ), ), Constr( Constr { - tag: 122, + tag: 121, any_constructor: None, - fields: [ + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + ], + ), + ), + ], + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 155, + 36, + 50, + 64, + 70, + 84, + 67, + 147, + 68, + 62, + 31, + 179, + 92, + 139, + 114, + 195, + 195, + 158, + 24, + 165, + 22, + 169, + 93, + 245, + 246, + 101, + 65, + 1, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + Map( + Def( + [], + ), + ), + BoundedBytes( + BoundedBytes( + [ + 100, + 76, + 84, + 18, + 140, + 45, + 90, + 9, + 167, + 181, + 207, + 31, + 83, + 63, + 250, + 186, + 198, + 73, + 117, + 34, + 75, + 214, + 232, + 246, + 68, + 61, + 41, + 50, + 186, + 97, + 252, + 205, + ], + ), + ), + Map( + Def( + [], + ), + ), + Array( + Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( [ @@ -353,13 +646,300 @@ Constr( ), ), ], - }, + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 10, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 11, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ Map( Def( [ @@ -368,42 +948,189 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BoundedBytes( + fields: Indef( + [ BoundedBytes( - [ - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - ], + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), ), - ), - ], + ], + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + ], + ), + ), + ], + ), }, ), BigInt( @@ -424,1462 +1151,909 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BoundedBytes( + fields: Indef( + [ BoundedBytes( - [ - 155, - 36, - 50, - 64, - 70, - 84, - 67, - 147, - 68, - 62, - 31, - 179, - 92, - 139, - 114, - 195, - 195, - 158, - 24, - 165, - 22, - 169, - 93, - 245, - 246, - 101, - 65, - 1, - ], + BoundedBytes( + [ + 155, + 36, + 50, + 64, + 70, + 84, + 67, + 147, + 68, + 62, + 31, + 179, + 92, + 139, + 114, + 195, + 195, + 158, + 24, + 165, + 22, + 169, + 93, + 245, + 246, + 101, + 65, + 1, + ], + ), ), - ), - ], + ], + ), }, ), ], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - Map( - Def( - [], - ), - ), - BoundedBytes( - BoundedBytes( - [ - 100, - 76, - 84, - 18, - 140, - 45, - 90, - 9, - 167, - 181, - 207, - 31, - 83, - 63, - 250, - 186, - 198, - 73, - 117, - 34, - 75, - 214, - 232, - 246, - 68, - 61, - 41, - 50, - 186, - 97, - 252, - 205, - ], - ), - ), - Map( - Def( - [], - ), - ), - Array( - [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], + ), + }, ), - ), - ], + ], + ), }, ), Constr( Constr { - tag: 122, + tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 10, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 124, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), }, ), - ), + ], ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 125, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), }, ), - ), + Array( + Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + ], + ), + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 500, + }, + ), + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 2, + }, + ), + ), + ), + ], + ), + }, + ), + ], ), - ], - }, - ), - ], + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 126, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 126, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 127, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), }, ), ], + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), }, ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 126, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BigInt( - Int( + fields: Indef( + [ + BigInt( Int( - Int { - neg: false, - val: 2000000, - }, + Int( + Int { + neg: false, + val: 2000000, + }, + ), ), ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + 34, + ], + ), + ), + ], + ), + }, ), BigInt( Int( Int( Int { neg: false, - val: 0, + val: 1000000, }, ), ), ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 11, - }, ), - ), + ], ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], - ), - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - ], - ), - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 155, - 36, - 50, - 64, - 70, - 84, - 67, - 147, - 68, - 62, - 31, - 179, - 92, - 139, - 114, - 195, - 195, - 158, - 24, - 165, - 22, - 169, - 93, - 245, - 246, - 101, - 65, - 1, - ], - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 124, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 125, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Array( - [ + ), Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - ], - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 500, - }, - ), - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 2, - }, - ), - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 126, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 126, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + fields: Indef( + [ BoundedBytes( BoundedBytes( [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, + 155, + 36, + 50, + 64, + 70, + 84, + 67, + 147, + 68, + 62, + 31, + 179, + 92, + 139, + 114, + 195, + 195, + 158, + 24, + 165, + 22, + 169, + 93, + 245, + 246, + 101, + 65, + 1, ], ), ), ], - }, - ), - ], - }, + ), + }, + ), + ], ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), + }, ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 127, - any_constructor: None, - fields: [], - }, - ), - ], + ], + ), }, ), ], ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 126, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - 34, - ], - ), - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 155, - 36, - 50, - 64, - 70, - 84, - 67, - 147, - 68, - 62, - 31, - 179, - 92, - 139, - 114, - 195, - 195, - 158, - 24, - 165, - 22, - 169, - 93, - 245, - 246, - 101, - 65, - 1, - ], - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - ], + }, + ), + ], + ), }, ) diff --git a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_propose_pparams_no_cost_models.snap b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_propose_pparams_no_cost_models.snap index 746d382d..c6f12d48 100644 --- a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_propose_pparams_no_cost_models.snap +++ b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_propose_pparams_no_cost_models.snap @@ -6,318 +6,1728 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Array( + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( [ + Array( + Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + ), + Array( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, + ), + ), + ), + Map( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + Map( + Def( + [], + ), + ), Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - ], - ), - Array( - [], - ), - Array( - [], - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, - }, - ), - ), - ), - Map( - Def( - [], - ), - ), - Array( - [], - ), - Map( - Def( - [], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + fields: Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Array( - [], - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 126, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Array( + Def( + [], + ), + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 126, + any_constructor: None, + fields: Indef( + [ BigInt( Int( Int( Int { neg: false, - val: 2000000, + val: 0, }, ), ), ), Constr( Constr { - tag: 122, + tag: 121, any_constructor: None, - fields: [ + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Map( + Def( + [ + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 44, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 155381, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 2, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 90112, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 16384, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 4, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1100, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 5, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 6, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 500000000, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 7, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 18, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 8, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 500, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 9, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 10, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 10, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 11, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 5, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 16, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 340, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 17, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 4310, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 19, + }, + ), + ), + ), + Array( + Indef( + [ + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 577, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 721, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ], + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 20, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 14000000, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 10000000000, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 21, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 62000000, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 20000000000, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 22, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 5000, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 23, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 150, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 24, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 25, + }, + ), + ), + ), + Array( + Indef( + [ + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 51, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 13, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 25, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 53, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 27, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 50, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 11, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 20, + }, + ), + ), + ), + ], + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 26, + }, + ), + ), + ), + Array( + Indef( + [ + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 5, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 4, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 5, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 4, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 27, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 7, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 28, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 146, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 29, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 6, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 30, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100000000000, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 31, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 500000000, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 32, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 20, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 33, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 15, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + ], + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 155, + 36, + 50, + 64, + 70, + 84, + 67, + 147, + 68, + 62, + 31, + 179, + 92, + 139, + 114, + 195, + 195, + 158, + 24, + 165, + 22, + 169, + 93, + 245, + 246, + 101, + 65, + 1, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + Map( + Def( + [], + ), + ), + BoundedBytes( + BoundedBytes( + [ + 168, + 138, + 155, + 248, + 175, + 81, + 234, + 115, + 139, + 242, + 18, + 254, + 32, + 78, + 94, + 242, + 253, + 5, + 49, + 44, + 153, + 93, + 173, + 30, + 193, + 148, + 220, + 220, + 90, + 160, + 119, + 55, + ], + ), + ), + Map( + Def( + [], + ), + ), + Array( + Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2000000, + }, + ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( [ @@ -353,18 +1763,22 @@ Constr( ), ), ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ Constr( Constr { tag: 122, any_constructor: None, - fields: [], + fields: Def( + [], + ), }, ), Map( @@ -580,28 +1994,30 @@ Constr( ), ), Array( - [ - BigInt( - Int( + Indef( + [ + BigInt( Int( - Int { - neg: false, - val: 3, - }, + Int( + Int { + neg: false, + val: 3, + }, + ), ), ), - ), - BigInt( - Int( + BigInt( Int( - Int { - neg: false, - val: 10, - }, + Int( + Int { + neg: false, + val: 10, + }, + ), ), ), - ), - ], + ], + ), ), ), ( @@ -616,28 +2032,30 @@ Constr( ), ), Array( - [ - BigInt( - Int( + Indef( + [ + BigInt( Int( - Int { - neg: false, - val: 3, - }, + Int( + Int { + neg: false, + val: 3, + }, + ), ), ), - ), - BigInt( - Int( + BigInt( Int( - Int { - neg: false, - val: 1000, - }, + Int( + Int { + neg: false, + val: 1000, + }, + ), ), ), - ), - ], + ], + ), ), ), ( @@ -652,28 +2070,30 @@ Constr( ), ), Array( - [ - BigInt( - Int( + Indef( + [ + BigInt( Int( - Int { - neg: false, - val: 1, - }, + Int( + Int { + neg: false, + val: 1, + }, + ), ), ), - ), - BigInt( - Int( + BigInt( Int( - Int { - neg: false, - val: 5, - }, + Int( + Int { + neg: false, + val: 5, + }, + ), ), ), - ), - ], + ], + ), ), ), ( @@ -732,56 +2152,62 @@ Constr( ), ), Array( - [ - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 577, - }, + Indef( + [ + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 577, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 721, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 721, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), ), - ), + ], ), - ], - ), - ], + ), + ], + ), ), ), ( @@ -796,28 +2222,30 @@ Constr( ), ), Array( - [ - BigInt( - Int( + Indef( + [ + BigInt( Int( - Int { - neg: false, - val: 14000000, - }, + Int( + Int { + neg: false, + val: 14000000, + }, + ), ), ), - ), - BigInt( - Int( + BigInt( Int( - Int { - neg: false, - val: 10000000000, - }, + Int( + Int { + neg: false, + val: 10000000000, + }, + ), ), ), - ), - ], + ], + ), ), ), ( @@ -832,28 +2260,30 @@ Constr( ), ), Array( - [ - BigInt( - Int( + Indef( + [ + BigInt( Int( - Int { - neg: false, - val: 62000000, - }, + Int( + Int { + neg: false, + val: 62000000, + }, + ), ), ), - ), - BigInt( - Int( + BigInt( Int( - Int { - neg: false, - val: 20000000000, - }, + Int( + Int { + neg: false, + val: 20000000000, + }, + ), ), ), - ), - ], + ], + ), ), ), ( @@ -934,128 +2364,140 @@ Constr( ), ), Array( - [ - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 51, - }, + Indef( + [ + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 51, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 13, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 13, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 25, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 25, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 53, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 53, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 27, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 27, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 50, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 50, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 11, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 11, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 20, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 20, + }, + ), + ), ), - ), + ], ), - ], - ), - ], + ), + ], + ), ), ), ( @@ -1070,248 +2512,270 @@ Constr( ), ), Array( - [ - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, + Indef( + [ + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 5, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 5, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 4, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 4, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 5, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 5, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 4, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 4, + }, + ), + ), ), - ), + ], ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), ), - ), + ], ), - ], - ), - ], + ), + ], + ), ), ), ( @@ -1458,28 +2922,30 @@ Constr( ), ), Array( - [ - BigInt( - Int( + Indef( + [ + BigInt( Int( - Int { - neg: false, - val: 15, - }, + Int( + Int { + neg: false, + val: 15, + }, + ), ), ), - ), - BigInt( - Int( + BigInt( Int( - Int { - neg: false, - val: 1, - }, + Int( + Int { + neg: false, + val: 1, + }, + ), ), ), - ), - ], + ], + ), ), ), ], @@ -1489,403 +2955,189 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BoundedBytes( + fields: Indef( + [ BoundedBytes( - [ - 155, - 36, - 50, - 64, - 70, - 84, - 67, - 147, - 68, - 62, - 31, - 179, - 92, - 139, - 114, - 195, - 195, - 158, - 24, - 165, - 22, - 169, - 93, - 245, - 246, - 101, - 65, - 1, - ], + BoundedBytes( + [ + 155, + 36, + 50, + 64, + 70, + 84, + 67, + 147, + 68, + 62, + 31, + 179, + 92, + 139, + 114, + 195, + 195, + 158, + 24, + 165, + 22, + 169, + 93, + 245, + 246, + 101, + 65, + 1, + ], + ), ), - ), - ], + ], + ), }, ), ], - }, - ), - ], - }, + ), + }, + ), + ], ), - ], - }, + }, + ), + ], + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 126, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, }, ), ), - ], - ), - ), - Map( - Def( - [], - ), - ), - BoundedBytes( - BoundedBytes( - [ - 168, - 138, - 155, - 248, - 175, - 81, - 234, - 115, - 139, - 242, - 18, - 254, - 32, - 78, - 94, - 242, - 253, - 5, - 49, - 44, - 153, - 93, - 173, - 30, - 193, - 148, - 220, - 220, - 90, - 160, - 119, - 55, - ], - ), - ), - Map( - Def( - [], - ), - ), - Array( - [ + ), Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BigInt( - Int( + fields: Indef( + [ + BigInt( Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], + Int( + Int { + neg: false, + val: 2000000, }, ), - Map( - Def( - [ - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 44, - }, - ), - ), - ), + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, - ), - ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 155381, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 2, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 90112, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 16384, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 4, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1100, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 5, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 6, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 500000000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 7, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 18, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 8, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 500, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 9, - }, - ), - ), - ), - Array( - [ + }, + ), + Map( + Def( + [ + ( BigInt( Int( Int( Int { neg: false, - val: 3, + val: 0, }, ), ), @@ -1895,63 +3147,13 @@ Constr( Int( Int { neg: false, - val: 10, + val: 44, }, ), ), ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 10, - }, - ), ), - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000, - }, - ), - ), - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 11, - }, - ), - ), - ), - Array( - [ + ( BigInt( Int( Int( @@ -1962,6 +3164,84 @@ Constr( ), ), ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 155381, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 2, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 90112, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 16384, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 4, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1100, + }, + ), + ), + ), + ), + ( BigInt( Int( Int( @@ -1972,136 +3252,24 @@ Constr( ), ), ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 16, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 340, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 17, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 4310, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 19, - }, - ), - ), - ), - Array( - [ - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 577, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 721, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ], - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 20, - }, - ), - ), - ), - Array( - [ BigInt( Int( Int( Int { neg: false, - val: 14000000, + val: 2000000, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 6, }, ), ), @@ -2111,33 +3279,19 @@ Constr( Int( Int { neg: false, - val: 10000000000, + val: 500000000, }, ), ), ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 21, - }, - ), ), - ), - Array( - [ + ( BigInt( Int( Int( Int { neg: false, - val: 62000000, + val: 7, }, ), ), @@ -2147,623 +3301,19 @@ Constr( Int( Int { neg: false, - val: 20000000000, + val: 18, }, ), ), ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 22, - }, - ), ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 5000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 23, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 150, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 24, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 25, - }, - ), - ), - ), - Array( - [ - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 51, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 13, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 25, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 53, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 27, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 50, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 11, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 20, - }, - ), - ), - ), - ], - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 26, - }, - ), - ), - ), - Array( - [ - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 5, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 4, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 5, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 4, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 27, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 7, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 28, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 146, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 29, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 6, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 30, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100000000000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 31, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 500000000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 32, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 20, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 33, - }, - ), - ), - ), - Array( - [ + ( BigInt( Int( Int( Int { neg: false, - val: 15, + val: 8, }, ), ), @@ -2773,549 +3323,133 @@ Constr( Int( Int { neg: false, - val: 1, + val: 500, }, ), ), ), - ], - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 155, - 36, - 50, - 64, - 70, - 84, - 67, - 147, - 68, - 62, - 31, - 179, - 92, - 139, - 114, - 195, - 195, - 158, - 24, - 165, - 22, - 169, - 93, - 245, - 246, - 101, - 65, - 1, - ], - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - ], - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 126, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Map( - Def( - [ - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 44, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 155381, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 2, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 90112, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 16384, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 4, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1100, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 5, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 2000000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 6, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 500000000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 7, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 18, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 8, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 500, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 9, - }, - ), - ), - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 10, - }, - ), - ), - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 10, - }, - ), - ), - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000, - }, - ), - ), - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 11, - }, - ), - ), - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 5, - }, - ), - ), - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 16, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 340, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 17, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 4310, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 19, - }, - ), - ), - ), - Array( - [ - Array( - [ + ( BigInt( Int( Int( Int { neg: false, - val: 577, + val: 9, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 10, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 10, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 11, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 5, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 16, }, ), ), @@ -3325,199 +3459,19 @@ Constr( Int( Int { neg: false, - val: 1000, + val: 340, }, ), ), ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 721, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ], - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 20, - }, - ), - ), - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 14000000, - }, - ), ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 10000000000, - }, - ), - ), - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 21, - }, - ), - ), - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 62000000, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 20000000000, - }, - ), - ), - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 22, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 5000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 23, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 150, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 24, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 25, - }, - ), - ), - ), - Array( - [ - Array( - [ + ( BigInt( Int( Int( Int { neg: false, - val: 51, + val: 17, }, ), ), @@ -3527,25 +3481,225 @@ Constr( Int( Int { neg: false, - val: 100, + val: 4310, }, ), ), ), - ], - ), - Array( - [ + ), + ( BigInt( Int( Int( Int { neg: false, - val: 13, + val: 19, }, ), ), ), + Array( + Indef( + [ + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 577, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 721, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ], + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 20, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 14000000, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 10000000000, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 21, + }, + ), + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 62000000, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 20000000000, + }, + ), + ), + ), + ], + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 22, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 5000, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 23, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 150, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 24, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + ), + ( BigInt( Int( Int( @@ -3556,34 +3710,422 @@ Constr( ), ), ), - ], - ), - Array( - [ + Array( + Indef( + [ + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 51, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 13, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 25, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 53, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 27, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 50, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 11, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 20, + }, + ), + ), + ), + ], + ), + ), + ], + ), + ), + ), + ( BigInt( Int( Int( Int { neg: false, - val: 53, + val: 26, }, ), ), ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), + Array( + Indef( + [ + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 5, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 4, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 5, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 4, + }, + ), + ), + ), + ], + ), + ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 67, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100, + }, + ), + ), + ), + ], + ), + ), + ], ), ), - ], - ), - Array( - [ + ), + ( BigInt( Int( Int( @@ -3599,21 +4141,107 @@ Constr( Int( Int { neg: false, - val: 50, + val: 7, }, ), ), ), - ], - ), - Array( - [ + ), + ( BigInt( Int( Int( Int { neg: false, - val: 11, + val: 28, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 146, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 29, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 6, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 30, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 100000000000, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 31, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 500000000, + }, + ), + ), + ), + ), + ( + BigInt( + Int( + Int( + Int { + neg: false, + val: 32, }, ), ), @@ -3628,489 +4256,105 @@ Constr( ), ), ), - ], - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 26, - }, - ), - ), - ), - Array( - [ - Array( - [ + ), + ( BigInt( Int( Int( Int { neg: false, - val: 67, + val: 33, }, ), ), ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), + Array( + Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 15, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + ], ), ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 5, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 4, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 5, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 4, - }, - ), - ), - ), - ], - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 67, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100, - }, - ), - ), - ), - ], - ), - ], - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 27, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 7, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 28, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 146, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 29, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 6, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 30, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 100000000000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 31, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 500000000, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 32, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 20, - }, - ), - ), - ), - ), - ( - BigInt( - Int( - Int( - Int { - neg: false, - val: 33, - }, - ), - ), - ), - Array( - [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 15, - }, - ), ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 155, + 36, + 50, + 64, + 70, + 84, + 67, + 147, + 68, + 62, + 31, + 179, + 92, + 139, + 114, + 195, + 195, + 158, + 24, + 165, + 22, + 169, + 93, + 245, + 246, + 101, + 65, + 1, + ], + ), ), - ), + ], ), - ], + }, ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 155, - 36, - 50, - 64, - 70, - 84, - 67, - 147, - 68, - 62, - 31, - 179, - 92, - 139, - 114, - 195, - 195, - 158, - 24, - 165, - 22, - 169, - 93, - 245, - 246, - 101, - 65, - 1, - ], - ), - ), - ], + ], + ), }, ), ], - }, - ), - ], - }, + ), + }, + ), + ], ), - ], - }, - ), - ], + }, + ), + ], + ), }, ) diff --git a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_simple_send.snap b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_simple_send.snap index 141419d6..da5a1e4d 100644 --- a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_simple_send.snap +++ b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_simple_send.snap @@ -6,278 +6,301 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Array( + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + Array( + Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( BoundedBytes( - BoundedBytes( - [ - 57, - 244, - 127, - 211, - 179, - 136, - 239, - 83, - 196, - 143, - 8, - 222, - 36, - 118, - 109, - 62, - 85, - 218, - 222, - 108, - 174, - 144, - 140, - 194, - 78, - 15, - 79, - 62, - ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, ), ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 57, + 244, + 127, + 211, + 179, + 136, + 239, + 83, + 196, + 143, + 8, + 222, + 36, + 118, + 109, + 62, + 85, + 218, + 222, + 108, + 174, + 144, + 140, + 194, + 78, + 15, + 79, + 62, + ], + ), + ), + ], + ), + }, ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000000, - }, + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000000, + }, + ), + ), + ), + ), + ], ), ), ), - ), - ], + ], + ), ), - ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], ), - ], + }, ), - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], + ], + ), }, ), ], - }, + ), ), - ], - ), - Array( - [], - ), - Array( - [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + Array( + Def( + [], + ), + ), + Array( + Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], - ), + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), + }, ), Map( Def( @@ -288,354 +311,411 @@ Constr( [], ), ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000000, - }, - ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000000, + }, + ), + ), + ), + ), + ], ), ), ), ], ), ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), }, ), ], - }, + ), ), - ], - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, - }, + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, + ), + ), ), - ), - ), - Map( - Def( - [], - ), - ), - Array( - [], - ), - Map( - Def( - [], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + Map( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + Map( + Def( + [], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Array( - [], - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], ), - ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, ), ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - Map( - Def( - [], - ), - ), - BoundedBytes( - BoundedBytes( - [ - 120, - 236, - 20, - 142, - 166, - 71, - 207, - 153, - 105, - 68, - 104, - 145, - 175, - 49, - 147, - 156, - 93, - 87, - 178, - 117, - 162, - 69, - 87, - 6, - 120, - 44, - 97, - 131, - 239, - 11, - 98, - 241, - ], - ), - ), - Map( - Def( - [], - ), - ), - Array( - [], - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), ], ), + }, + ), + Array( + Def( + [], ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), ), + ], + ), + ), + Map( + Def( + [], + ), + ), + BoundedBytes( + BoundedBytes( + [ + 120, + 236, + 20, + 142, + 166, + 71, + 207, + 153, + 105, + 68, + 104, + 145, + 175, + 49, + 147, + 156, + 93, + 87, + 178, + 117, + 162, + 69, + 87, + 6, + 120, + 44, + 97, + 131, + 239, + 11, + 98, + 241, + ], + ), + ), + Map( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], ), - ), - ], - }, + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ], - }, + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], ), - ], - }, - ), - ], + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), }, ) diff --git a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_voting.snap b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_voting.snap index 70312288..3732d201 100644 --- a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_voting.snap +++ b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_voting.snap @@ -6,90 +6,678 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Array( + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( [ + Array( + Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + ), + Array( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, + ), + ), + ), + Map( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + Map( + Def( + [], + ), + ), Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Array( + Def( + [], + ), + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 125, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 67, + 250, + 71, + 175, + 198, + 138, + 121, + 19, + 251, + 226, + 244, + 0, + 227, + 132, + 156, + 180, + 146, + 217, + 162, + 97, + 12, + 133, + 150, + 109, + 224, + 242, + 186, + 30, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, + ), + ), + ), + ], + ), + }, + ), + ), + ( + Constr( + Constr { + tag: 125, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 67, + 250, + 71, + 175, + 198, + 138, + 121, + 19, + 251, + 226, + 244, + 0, + 227, + 132, + 156, + 180, + 146, + 217, + 162, + 97, + 12, + 133, + 150, + 109, + 224, + 242, + 186, + 30, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + Map( + Def( + [], + ), + ), + BoundedBytes( + BoundedBytes( + [ + 224, + 66, + 234, + 62, + 149, + 207, + 129, + 86, + 132, + 46, + 53, + 99, + 151, + 120, + 68, + 27, + 236, + 175, + 60, + 134, + 44, + 185, + 69, + 158, + 231, + 75, + 68, + 174, + 235, + 136, + 198, + 115, + ], + ), + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 67, + 250, + 71, + 175, + 198, + 138, + 121, + 19, + 251, + 226, + 244, + 0, + 227, + 132, + 156, + 180, + 146, + 217, + 162, + 97, + 12, + 133, + 150, + 109, + 224, + 242, + 186, + 30, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), }, ), ), - ), - ], - }, + ], + ), + ), ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( [ @@ -125,1193 +713,725 @@ Constr( ), ), ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ], - ), + }, + ), + ], ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - ], - ), - Array( - [], - ), - Array( - [], - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, - }, - ), - ), - ), - Map( - Def( - [], - ), - ), - Array( - [], - ), - Map( - Def( - [], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], }, ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 152, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + ), + ( Constr( Constr { tag: 122, any_constructor: None, - fields: [], + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 67, + 250, + 71, + 175, + 198, + 138, + 121, + 19, + 251, + 226, + 244, + 0, + 227, + 132, + 156, + 180, + 146, + 217, + 162, + 97, + 12, + 133, + 150, + 109, + 224, + 242, + 186, + 30, + ], + ), + ), + ], + ), + }, + ), + ], + ), }, ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + ), + ( + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + 119, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 2, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + 136, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + ), + ( Constr( Constr { tag: 123, any_constructor: None, - fields: [], + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), }, ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + 153, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 4, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + ), + ], + ), + ), + Array( + Def( + [], + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 125, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ Constr( Constr { tag: 122, any_constructor: None, - fields: [], + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 67, + 250, + 71, + 175, + 198, + 138, + 121, + 19, + 251, + 226, + 244, + 0, + 227, + 132, + 156, + 180, + 146, + 217, + 162, + 97, + 12, + 133, + 150, + 109, + 224, + 242, + 186, + 30, + ], + ), + ), + ], + ), }, ), ], - }, - ), - ], - }, - ), - Array( - [], - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 125, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 67, - 250, - 71, - 175, - 198, - 138, - 121, - 19, - 251, - 226, - 244, - 0, - 227, - 132, - 156, - 180, - 146, - 217, - 162, - 97, - 12, - 133, - 150, - 109, - 224, - 242, - 186, - 30, - ], - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, - }, - ), - ), - ), - ], - }, - ), - ), - ( - Constr( - Constr { - tag: 125, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 67, - 250, - 71, - 175, - 198, - 138, - 121, - 19, - 251, - 226, - 244, - 0, - 227, - 132, - 156, - 180, - 146, - 217, - 162, - 97, - 12, - 133, - 150, - 109, - 224, - 242, - 186, - 30, - ], - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - Map( - Def( - [], - ), - ), - BoundedBytes( - BoundedBytes( - [ - 224, - 66, - 234, - 62, - 149, - 207, - 129, - 86, - 132, - 46, - 53, - 99, - 151, - 120, - 68, - 27, - 236, - 175, - 60, - 134, - 44, - 185, - 69, - 158, - 231, - 75, - 68, - 174, - 235, - 136, - 198, - 115, - ], - ), - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 67, - 250, - 71, - 175, - 198, - 138, - 121, - 19, - 251, - 226, - 244, - 0, - 227, - 132, - 156, - 180, - 146, - 217, - 162, - 97, - 12, - 133, - 150, - 109, - 224, - 242, - 186, - 30, - ], - ), - ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - ), - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 152, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - ), - ( - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 67, - 250, - 71, - 175, - 198, - 138, - 121, - 19, - 251, - 226, - 244, - 0, - 227, - 132, - 156, - 180, - 146, - 217, - 162, - 97, - 12, - 133, - 150, - 109, - 224, - 242, - 186, - 30, - ], - ), - ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - ), - ( - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - 119, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 2, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - ), - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - 136, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - ), - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - ), - ( - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - 153, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 4, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - ), - ], - ), - ), - Array( - [], - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, }, ), - ), + ], ), - ], - }, - ), - Constr( - Constr { - tag: 125, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 67, - 250, - 71, - 175, - 198, - 138, - 121, - 19, - 251, - 226, - 244, - 0, - 227, - 132, - 156, - 180, - 146, - 217, - 162, - 97, - 12, - 133, - 150, - 109, - 224, - 242, - 186, - 30, - ], - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - ], + }, + ), + ], + ), }, ) diff --git a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_withdraw.snap b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_withdraw.snap index 28d781a9..44f1ff3b 100644 --- a/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_withdraw.snap +++ b/crates/uplc/src/tx/snapshots/uplc__tx__script_context__tests__script_context_withdraw.snap @@ -6,361 +6,691 @@ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Array( + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + Array( + Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( BoundedBytes( - BoundedBytes( - [ - 4, - 3, - 110, - 236, - 173, - 194, - 241, - 158, - 149, - 248, - 49, - 180, - 188, - 8, - 145, - 156, - 222, - 29, - 16, - 136, - 215, - 70, - 2, - 189, - 61, - 205, - 120, - 162, - ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, ), ), - ], - }, + ), + ], ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ Constr( Constr { tag: 122, any_constructor: None, - fields: [ - BoundedBytes( + fields: Indef( + [ BoundedBytes( - [ - 4, - 3, - 110, - 236, - 173, - 194, - 241, - 158, - 149, - 248, - 49, - 180, - 188, - 8, - 145, - 156, - 222, - 29, - 16, - 136, - 215, - 70, - 2, - 189, - 61, - 205, - 120, - 162, - ], + BoundedBytes( + [ + 4, + 3, + 110, + 236, + 173, + 194, + 241, + 158, + 149, + 248, + 49, + 180, + 188, + 8, + 145, + 156, + 222, + 29, + 16, + 136, + 215, + 70, + 2, + 189, + 61, + 205, + 120, + 162, + ], + ), ), - ), - ], + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 4, + 3, + 110, + 236, + 173, + 194, + 241, + 158, + 149, + 248, + 49, + 180, + 188, + 8, + 145, + 156, + 222, + 29, + 16, + 136, + 215, + 70, + 2, + 189, + 61, + 205, + 120, + 162, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), }, ), ], - }, - ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], + ), + }, ), - ), - Map( - Def( - [ - ( - BoundedBytes( + Map( + Def( + [ + ( BoundedBytes( - [], + BoundedBytes( + [], + ), ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], ), ), ), - ), - ], + ], + ), ), - ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 4, + 3, + 110, + 236, + 173, + 194, + 241, + 158, + 149, + 248, + 49, + 180, + 188, + 8, + 145, + 156, + 222, + 29, + 16, + 136, + 215, + 70, + 2, + 189, + 61, + 205, + 120, + 162, + ], + ), + ), + ], + ), + }, + ), + ], ), - ], + }, ), - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 4, - 3, - 110, - 236, - 173, - 194, - 241, - 158, - 149, - 248, - 49, - 180, - 188, - 8, - 145, - 156, - 222, - 29, - 16, - 136, - 215, - 70, - 2, - 189, - 61, - 205, - 120, - 162, - ], - ), - ), - ], - }, - ), - ], + ], + ), }, ), ], - }, + ), ), - ], - ), - Array( - [], - ), - Array( - [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ + Array( + Def( + [], + ), + ), + Array( + Indef( + [ Constr( Constr { tag: 121, any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + 17, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2498243, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 27, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), + ), + ], + ), + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( [ @@ -396,654 +726,154 @@ Constr( ), ), ], - }, - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), + ), + }, ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 2498243, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 27, + }, + ), + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 3, + }, + ), + ), + ), + ], + ), + }, + ), + ], ), - ), + }, ), - ), - ], - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2498243, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 27, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - 17, - ], - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 2498243, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 27, - }, - ), - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 3, - }, - ), - ), - ), - ], - }, - ), - ], - }, - ), - ], - }, - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - Map( - Def( - [ - ( - BoundedBytes( - BoundedBytes( - [], - ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 1000000, - }, - ), - ), - ), - ), - ], - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 42, - }, - ), - ), - ), - Map( - Def( - [], - ), - ), - Array( - [], - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 4, - 3, - 110, - 236, - 173, - 194, - 241, - 158, - 149, - 248, - 49, - 180, - 188, - 8, - 145, - 156, - 222, - 29, - 16, - 136, - 215, - 70, - 2, - 189, - 61, - 205, - 120, - 162, - ], - ), - ), - ], - }, - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, - ), - ), - ), - ), - ], - ), - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 1596059092000, - }, - ), - ), - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ], - }, - ), - ], - }, - ), - Array( - [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - ], - ), - ), - ], - ), - Map( - Def( - [ - ( - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( - [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, ], ), - ), - BigInt( - Int( - Int( - Int { - neg: false, - val: 0, - }, + }, + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + Map( + Def( + [ + ( + BoundedBytes( + BoundedBytes( + [], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 1000000, + }, + ), + ), + ), + ), + ], + ), + ), ), - ), + ], ), - ], - }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], ), - ], - }, - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ], + }, + ), + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 42, }, ), ), - ( - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ + ), + Map( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ BoundedBytes( BoundedBytes( [ @@ -1079,158 +909,450 @@ Constr( ), ), ], - }, + ), + }, + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - ), - ], - ), - ), - Map( - Def( - [], - ), - ), - BoundedBytes( - BoundedBytes( - [ - 64, - 190, - 227, - 178, - 90, - 88, - 90, - 133, - 79, - 231, - 63, - 52, - 72, - 166, - 246, - 180, - 23, - 254, - 102, - 156, - 129, - 58, - 24, - 129, - 230, - 101, - 151, - 31, - 52, - 169, - 233, - 132, - ], - ), - ), - Map( - Def( - [], - ), - ), - Array( - [], - ), - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [ - BigInt( - Int( - Int( - Int { - neg: false, - val: 1, - }, + ), ), - ), + ], ), - ], - }, - ), - ], - }, - ), - Constr( - Constr { - tag: 121, - any_constructor: None, - fields: [], - }, - ), - Constr( - Constr { - tag: 123, - any_constructor: None, - fields: [ - Constr( - Constr { - tag: 122, - any_constructor: None, - fields: [ - BoundedBytes( - BoundedBytes( + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( [ - 4, - 3, - 110, - 236, - 173, - 194, - 241, - 158, - 149, - 248, - 49, - 180, - 188, - 8, - 145, - 156, - 222, - 29, - 16, - 136, - 215, - 70, - 2, - 189, - 61, - 205, - 120, - 162, + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 1596059092000, + }, + ), + ), + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), ], ), + }, + ), + Array( + Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + ], ), - ], - }, + ), + Map( + Def( + [ + ( + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + ], + ), + ), + BigInt( + Int( + Int( + Int { + neg: false, + val: 0, + }, + ), + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [ + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ], + ), + }, + ), + ), + ( + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 4, + 3, + 110, + 236, + 173, + 194, + 241, + 158, + 149, + 248, + 49, + 180, + 188, + 8, + 145, + 156, + 222, + 29, + 16, + 136, + 215, + 70, + 2, + 189, + 61, + 205, + 120, + 162, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + ), + ], + ), + ), + Map( + Def( + [], + ), + ), + BoundedBytes( + BoundedBytes( + [ + 64, + 190, + 227, + 178, + 90, + 88, + 90, + 133, + 79, + 231, + 63, + 52, + 72, + 166, + 246, + 180, + 23, + 254, + 102, + 156, + 129, + 58, + 24, + 129, + 230, + 101, + 151, + 31, + 52, + 169, + 233, + 132, + ], + ), + ), + Map( + Def( + [], + ), + ), + Array( + Def( + [], + ), + ), + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Indef( + [ + BigInt( + Int( + Int( + Int { + neg: false, + val: 1, + }, + ), + ), + ), + ], + ), + }, + ), + ], ), - ], - }, - ), - ], + }, + ), + Constr( + Constr { + tag: 121, + any_constructor: None, + fields: Def( + [], + ), + }, + ), + Constr( + Constr { + tag: 123, + any_constructor: None, + fields: Indef( + [ + Constr( + Constr { + tag: 122, + any_constructor: None, + fields: Indef( + [ + BoundedBytes( + BoundedBytes( + [ + 4, + 3, + 110, + 236, + 173, + 194, + 241, + 158, + 149, + 248, + 49, + 180, + 188, + 8, + 145, + 156, + 222, + 29, + 16, + 136, + 215, + 70, + 2, + 189, + 61, + 205, + 120, + 162, + ], + ), + ), + ], + ), + }, + ), + ], + ), + }, + ), + ], + ), }, ) diff --git a/crates/uplc/src/tx/tests.rs b/crates/uplc/src/tx/tests.rs index 74e5e372..d239fb6f 100644 --- a/crates/uplc/src/tx/tests.rs +++ b/crates/uplc/src/tx/tests.rs @@ -2,7 +2,7 @@ use super::{eval_phase_two, ResolvedInput, SlotConfig}; use crate::machine::cost_model::ExBudget; use pallas_codec::utils::MaybeIndefArray; use pallas_primitives::{ - conway::{CostMdls, TransactionInput, TransactionOutput}, + conway::{CostModels, TransactionInput, TransactionOutput}, Fragment, }; use pallas_traverse::{Era, MultiEraTx}; @@ -222,7 +222,7 @@ fn test_eval_0() { 20000000000, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: None, plutus_v2: Some(costs), plutus_v3: None, @@ -494,7 +494,7 @@ fn test_eval_1() { 20000000000, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: None, plutus_v2: Some(costs), plutus_v3: None, @@ -606,7 +606,7 @@ fn test_eval_2() { 31220, 32, 32696, 32, 43357, 32, 32247, 32, 38314, 32, 9462713, 1021, 10, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: Some(costs), plutus_v2: None, plutus_v3: None, @@ -876,7 +876,7 @@ fn test_eval_3() { 20000000000, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: None, plutus_v2: Some(costs), plutus_v3: None, @@ -984,7 +984,7 @@ fn test_eval_4() { 31220, 32, 32696, 32, 43357, 32, 32247, 32, 38314, 32, 9462713, 1021, 10, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: Some(costs), plutus_v2: None, plutus_v3: None, @@ -1069,7 +1069,7 @@ fn test_eval_5() { 31220, 32, 32696, 32, 43357, 32, 32247, 32, 38314, 32, 9462713, 1021, 10, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: Some(costs), plutus_v2: None, plutus_v3: None, @@ -1179,7 +1179,7 @@ fn test_eval_6() { 3345831, 1, 1, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: Some(costs), plutus_v2: None, plutus_v3: None, @@ -1289,7 +1289,7 @@ fn test_eval_7() { 3345831, 1, 1, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: Some(costs), plutus_v2: None, plutus_v3: None, @@ -1550,7 +1550,7 @@ fn test_eval_8() { 20000000000, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: None, plutus_v2: Some(costs), plutus_v3: None, @@ -1656,7 +1656,7 @@ fn eval_missing_redeemer() { 31220, 32, 32696, 32, 43357, 32, 32247, 32, 38314, 32, 9462713, 1021, 10, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: Some(costs), plutus_v2: None, plutus_v3: None, @@ -1739,7 +1739,7 @@ fn eval_extraneous_redeemer() { 31220, 32, 32696, 32, 43357, 32, 32247, 32, 38314, 32, 9462713, 1021, 10, ]; - let cost_mdl = CostMdls { + let cost_mdl = CostModels { plutus_v1: Some(costs), plutus_v2: None, plutus_v3: None, diff --git a/crates/uplc/src/tx/to_plutus_data.rs b/crates/uplc/src/tx/to_plutus_data.rs index 476a12fa..fab7cd2c 100644 --- a/crates/uplc/src/tx/to_plutus_data.rs +++ b/crates/uplc/src/tx/to_plutus_data.rs @@ -11,7 +11,8 @@ use pallas_addresses::{ Address, ShelleyDelegationPart, ShelleyPaymentPart, StakeAddress, StakePayload, }; use pallas_codec::utils::{ - AnyUInt, Bytes, Int, KeyValuePairs, NonEmptyKeyValuePairs, Nullable, PositiveCoin, + AnyUInt, Bytes, Int, KeyValuePairs, MaybeIndefArray, NonEmptyKeyValuePairs, Nullable, + PositiveCoin, }; use pallas_crypto::hash::Hash; use pallas_primitives::conway::{ @@ -28,7 +29,11 @@ fn wrap_multiple_with_constr(index: u64, data: Vec) -> PlutusData { PlutusData::Constr(Constr { tag: converted.unwrap_or(ANY_TAG), any_constructor: converted.map_or(Some(index), |_| None), - fields: data, + fields: if data.is_empty() { + MaybeIndefArray::Def(data) + } else { + MaybeIndefArray::Indef(data) + }, }) } @@ -104,7 +109,7 @@ impl ToPlutusData for Address { .to_plutus_data(), ShelleyDelegationPart::Script(script_hash) => Some(wrap_with_constr( 0, - StakeCredential::Scripthash(*script_hash).to_plutus_data(), + StakeCredential::ScriptHash(*script_hash).to_plutus_data(), )) .to_plutus_data(), ShelleyDelegationPart::Pointer(pointer) => Some(wrap_multiple_with_constr( @@ -174,7 +179,7 @@ where A: ToPlutusData, { fn to_plutus_data(&self) -> PlutusData { - PlutusData::Array(self.iter().map(|p| p.to_plutus_data()).collect()) + Data::list(self.iter().map(|p| p.to_plutus_data()).collect()) } } @@ -414,7 +419,7 @@ impl ToPlutusData for ScriptRef { impl<'a> ToPlutusData for WithOptionDatum<'a, WithZeroAdaAsset<'a, Vec>> { fn to_plutus_data(&self) -> PlutusData { - PlutusData::Array( + Data::list( self.0 .0 .iter() @@ -426,7 +431,7 @@ impl<'a> ToPlutusData for WithOptionDatum<'a, WithZeroAdaAsset<'a, Vec ToPlutusData for WithZeroAdaAsset<'a, Vec> { fn to_plutus_data(&self) -> PlutusData { - PlutusData::Array( + Data::list( self.0 .iter() .map(|p| WithZeroAdaAsset(p).to_plutus_data()) @@ -516,7 +521,7 @@ impl ToPlutusData for StakeCredential { StakeCredential::AddrKeyhash(addr_keyhas) => { wrap_with_constr(0, addr_keyhas.to_plutus_data()) } - StakeCredential::Scripthash(script_hash) => { + StakeCredential::ScriptHash(script_hash) => { wrap_with_constr(1, script_hash.to_plutus_data()) } } @@ -741,7 +746,7 @@ impl ToPlutusData for DRep { wrap_with_constr(0, StakeCredential::AddrKeyhash(*hash).to_plutus_data()) } DRep::Script(hash) => { - wrap_with_constr(0, StakeCredential::Scripthash(*hash).to_plutus_data()) + wrap_with_constr(0, StakeCredential::ScriptHash(*hash).to_plutus_data()) } DRep::Abstain => empty_constr(1), DRep::NoConfidence => empty_constr(2), @@ -798,7 +803,7 @@ impl<'a> ToPlutusData for WithOptionDatum<'a, WithZeroAdaAsset<'a, WithWrappedTransactionId<'a, Vec>>> { fn to_plutus_data(&self) -> PlutusData { - PlutusData::Array( + Data::list( self.0 .0 .0 @@ -814,7 +819,7 @@ impl<'a> ToPlutusData impl<'a> ToPlutusData for WithZeroAdaAsset<'a, WithWrappedTransactionId<'a, Vec>> { fn to_plutus_data(&self) -> PlutusData { - PlutusData::Array( + Data::list( self.0 .0 .iter() @@ -1254,13 +1259,13 @@ impl ToPlutusData for Voter { fn to_plutus_data(&self) -> PlutusData { match self { Voter::ConstitutionalCommitteeScript(hash) => { - wrap_with_constr(0, StakeCredential::Scripthash(*hash).to_plutus_data()) + wrap_with_constr(0, StakeCredential::ScriptHash(*hash).to_plutus_data()) } Voter::ConstitutionalCommitteeKey(hash) => { wrap_with_constr(0, StakeCredential::AddrKeyhash(*hash).to_plutus_data()) } Voter::DRepScript(hash) => { - wrap_with_constr(1, StakeCredential::Scripthash(*hash).to_plutus_data()) + wrap_with_constr(1, StakeCredential::ScriptHash(*hash).to_plutus_data()) } Voter::DRepKey(hash) => { wrap_with_constr(1, StakeCredential::AddrKeyhash(*hash).to_plutus_data()) diff --git a/crates/uplc/tests/pretty_tests.rs b/crates/uplc/tests/pretty_tests.rs index c1d72fa5..4e6c6c87 100644 --- a/crates/uplc/tests/pretty_tests.rs +++ b/crates/uplc/tests/pretty_tests.rs @@ -1,4 +1,5 @@ use num_bigint::ToBigInt; +use pallas_codec::utils::MaybeIndefArray; use uplc::{ ast::{Constant, Name, Term, Type}, parser::term, @@ -111,9 +112,9 @@ fn constant_data_constr() { Constant::Data(PlutusData::Constr(Constr:: { tag: 122, any_constructor: None, - fields: vec![PlutusData::BigInt(pallas_primitives::alonzo::BigInt::Int( - 2.into(), - ))], + fields: MaybeIndefArray::Indef(vec![PlutusData::BigInt( + pallas_primitives::alonzo::BigInt::Int(2.into()), + )]), })) .into(), ), @@ -145,10 +146,10 @@ fn constant_data_map() { fn constant_data_list() { round_trip( Term::::Constant( - Constant::Data(PlutusData::Array(vec![ + Constant::Data(PlutusData::Array(MaybeIndefArray::Indef(vec![ PlutusData::BigInt(pallas_primitives::alonzo::BigInt::Int(0.into())), PlutusData::BigInt(pallas_primitives::alonzo::BigInt::Int(1.into())), - ])) + ]))) .into(), ), "(con data (List [I 0, I 1]))",