diff --git a/.gitignore b/.gitignore index 1bc931efeb1..fcc9943e175 100644 --- a/.gitignore +++ b/.gitignore @@ -5,49 +5,22 @@ target/ **/*.rs.bk -# CARGO.LOCK - Source controlling strategy +# Lock files... # -# We have multiple workspaces/crates in this repository, with different Cargo.lock strategies. +# As of August 2024, and a change in the Rust guidance around lock files for libraries +# (see https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html), we now source control our +# Cargo.lock file. # -# First off - let's blanket ignore all Cargo.lock files, so any old/historic ones stay ignored, -# to try to limit the amount of git breakage which will occur when we start to source control -# these -!Cargo.lock - -# TYPE 1: -# - The root workspace of libraries. -# As of August 2024, and a change in the Rust guidance around lock files for libraries -# (see https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html), we now source control our -# Cargo.lock file. -# This allows our builds to be more reducible, and is a partial mitigation against supply chain attacks. -# However, this is possibly at the expense of Scrypto users who will have their own Cargo.locks. -# So we may wish to add a CI job to build against the latest versions, as per: -# https://doc.rust-lang.org/cargo/guide/continuous-integration.html#verifying-latest-dependencies -!/Cargo.lock - -# TYPE 3: -# - Examples should have their own Cargo.lock files to show good practice -!examples/**/Cargo.lock - -# TYPE 4: -# - The asset scrypto packages. These need to be built deterministically, so include a Cargo.lock (at a shared workspace layer) -!radix-engine/assets/blueprints/Cargo.lock -!radix-transaction-scenarios/assets/blueprints/Cargo.lock - -# TYPE 5: -# - Various test scrypto packages. We don't care too much about either way - but we do want CI to run without a lock, so let's git ignore these. -# Also make sure to blanket ignore all the old Cargo.locks before they moved to blueprints, to avoid developer git issues -!scrypto-test/assets/blueprints/Cargo.lock -!scrypto-test/tests/blueprints/Cargo.lock -!radix-engine-tests/assets/blueprints/Cargo.lock -!radix-clis/tests/blueprints/Cargo.lock - -# FURTHER DETAILS: -# Our CI tests ensure that libraries can build and have their tests run with an empty lock file (ie, with the latest semver -# crates available on crates.io). +# This allows our builds to be more reducible, and is a partial mitigation against supply chain attacks. +# +# We also use --locked for all CI builds to ensure these lock files are actually used. # -# In the future, we leave the option open to including more Cargo.locks for more of the repository, to speed up our local -# builds and provide a consistent set of dependencies developers can use to get-up-and-running. +# However, this is possibly at the expense of Scrypto users who will have their own Cargo.locks... +# But our Scrypto template now comes with a Cargo.lock template, which should mitigate thi need. +# +# In future, we may wish to add a CI job to build against the latest versions, as per: +# https://doc.rust-lang.org/cargo/guide/continuous-integration.html#verifying-latest-dependencies +!Cargo.lock # Flamegraph profiles flamegraph.svg diff --git a/scrypto-test/assets/README.MD b/scrypto-test/assets/README.MD new file mode 100644 index 00000000000..b1273db73af --- /dev/null +++ b/scrypto-test/assets/README.MD @@ -0,0 +1,64 @@ +## Radix Engine - Scrypto Assets + +The Test Environment is an empty scrypto component which acts as the root call-frame in the +Scrypto test runner; and we hook into it to call other things. + +It could probably be removed / replaced with something else in future. + +## Test environment assets + +The Test Environment was compiled with the v1.1.1 deterministic scrypto builder, and deployed +as part of genesis to the ledger: + +```rust +use scrypto::prelude::*; + +#[blueprint] +mod test_environment { + struct TestEnvironment {} + + impl TestEnvironment { + pub fn run() {} + } +} +``` + +The exact assets can can rebuilt with the following script, checked out against the bottlenose +version of the ledger: https://github.com/radixdlt/radixdlt-scrypto/tree/release/bottlenose + +For now, to avoid confusing automated tooling, we have deleted the `Cargo.toml` files and the +`Cargo.lock` file for these genesis assets, and just kept the `lib.rs` source files around for +reference. + +```bash +#!/bin/bash +set -e + +cd "$(dirname "$0")" + +IMAGE_NAME="radixdlt/scrypto-builder" +IMAGE_TAG="v1.1.1" +WORKSPACE_DIR="blueprints" +DESTINATION_DIR="." +for PACKAGE_NAME in "test_environment" +do + # Run scrypto build + docker run \ + --platform=linux/amd64 \ + --entrypoint=scrypto \ + -v $(realpath $WORKSPACE_DIR):/src/$WORKSPACE_DIR \ + $IMAGE_NAME:$IMAGE_TAG \ + build --path /src/$WORKSPACE_DIR/$PACKAGE_NAME + + # Copy artifacts + cp \ + $WORKSPACE_DIR/target/wasm32-unknown-unknown/release/$PACKAGE_NAME.{wasm,rpd} \ + $DESTINATION_DIR/ +done + +sha256sum *.{wasm,rpd} + +# SHA256 +# db170d2f731cf1bb391576281e7f43629d156dbd97126d9e07e990b234f42f50 test_environment.wasm +# 481b8d309110613576be6298d3126200f470a1153dbf867193bba02a49814b66 test_environment.rpd +``` \ No newline at end of file diff --git a/scrypto-test/assets/blueprints/Cargo.lock b/scrypto-test/assets/blueprints/Cargo.lock deleted file mode 100644 index 803845f9165..00000000000 --- a/scrypto-test/assets/blueprints/Cargo.lock +++ /dev/null @@ -1,808 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "autocfg" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" - -[[package]] -name = "bech32" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" - -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - -[[package]] -name = "blake2" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" -dependencies = [ - "digest 0.10.7", -] - -[[package]] -name = "block-buffer" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" -dependencies = [ - "generic-array", -] - -[[package]] -name = "block-buffer" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" -dependencies = [ - "generic-array", -] - -[[package]] -name = "blst" -version = "0.3.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c94087b935a822949d3291a9989ad2b2051ea141eda0fd4e478a75f6aa3e604b" -dependencies = [ - "cc", - "glob", - "threadpool", - "zeroize", -] - -[[package]] -name = "bnum" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e31ea183f6ee62ac8b8a8cf7feddd766317adfb13ff469de57ce033efd6a790" -dependencies = [ - "num-integer", - "num-traits", -] - -[[package]] -name = "byteorder" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" - -[[package]] -name = "cc" -version = "1.0.83" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" -dependencies = [ - "libc", -] - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "const-sha1" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d8a42181e0652c2997ae4d217f25b63c5337a52fd2279736e97b832fa0a3cff" - -[[package]] -name = "cpufeatures" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1" -dependencies = [ - "libc", -] - -[[package]] -name = "crypto-common" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" -dependencies = [ - "generic-array", - "typenum", -] - -[[package]] -name = "curve25519-dalek" -version = "3.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0" -dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core", - "subtle", - "zeroize", -] - -[[package]] -name = "digest" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" -dependencies = [ - "generic-array", -] - -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer 0.10.4", - "crypto-common", - "subtle", -] - -[[package]] -name = "ed25519" -version = "1.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" -dependencies = [ - "signature", -] - -[[package]] -name = "ed25519-dalek" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" -dependencies = [ - "curve25519-dalek", - "ed25519", - "rand", - "serde", - "sha2", - "zeroize", -] - -[[package]] -name = "either" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" - -[[package]] -name = "equivalent" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" - -[[package]] -name = "generic-array" -version = "0.14.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -dependencies = [ - "typenum", - "version_check", -] - -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "libc", - "wasi", -] - -[[package]] -name = "glob" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" - -[[package]] -name = "hashbrown" -version = "0.14.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" - -[[package]] -name = "heck" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" - -[[package]] -name = "hermit-abi" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b" - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" -dependencies = [ - "serde", -] - -[[package]] -name = "indexmap" -version = "2.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" -dependencies = [ - "equivalent", - "hashbrown", - "serde", -] - -[[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] - -[[package]] -name = "itoa" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" - -[[package]] -name = "keccak" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" -dependencies = [ - "cpufeatures", -] - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - -[[package]] -name = "libc" -version = "0.2.158" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" - -[[package]] -name = "memchr" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" - -[[package]] -name = "num-bigint" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - -[[package]] -name = "num-integer" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" -dependencies = [ - "autocfg", - "num-traits", -] - -[[package]] -name = "num-traits" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" -dependencies = [ - "autocfg", -] - -[[package]] -name = "num_cpus" -version = "1.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" -dependencies = [ - "hermit-abi", - "libc", -] - -[[package]] -name = "opaque-debug" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" - -[[package]] -name = "paste" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" - -[[package]] -name = "ppv-lite86" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" - -[[package]] -name = "proc-macro2" -version = "1.0.86" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "quote" -version = "1.0.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "radix-blueprint-schema-init" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a744eb07ded9effa0a6ab1e3d4dba1707a980ec0acb8ebeb37cdb78b373cd1" -dependencies = [ - "bitflags", - "radix-common", - "sbor", - "serde", -] - -[[package]] -name = "radix-common" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1ce97ee67264628b4651706ec6808e443fbb0ecba766824a0e94887a5b54969" -dependencies = [ - "bech32", - "blake2", - "blst", - "bnum", - "ed25519-dalek", - "hex", - "lazy_static", - "num-bigint", - "num-integer", - "num-traits", - "paste", - "radix-rust", - "radix-sbor-derive", - "sbor", - "secp256k1", - "serde", - "sha3", - "strum", - "zeroize", -] - -[[package]] -name = "radix-common-derive" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc0ac980f09b21f849aa12f2473adfa366e70829ed634f5735512532066f71ad" -dependencies = [ - "paste", - "proc-macro2", - "quote", - "radix-common", - "syn 1.0.109", -] - -[[package]] -name = "radix-engine-interface" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69a96a51e803213f13cf199c92eaafa3884292c1e66d8afc1d8aef7e15625ff0" -dependencies = [ - "bitflags", - "const-sha1", - "hex", - "lazy_static", - "paste", - "radix-blueprint-schema-init", - "radix-common", - "radix-common-derive", - "radix-rust", - "regex", - "sbor", - "serde", - "serde_json", - "strum", -] - -[[package]] -name = "radix-rust" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6010fd7ebd7c2d3a3d270525c54a0dcb43fbaf3447fb32b42a0bcc4326109c64" -dependencies = [ - "indexmap", - "serde", -] - -[[package]] -name = "radix-sbor-derive" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cc92b5760b129af15be9a82fe2e8118aa851da81b22c8a12d56ab494f071321" -dependencies = [ - "proc-macro2", - "quote", - "sbor-derive-common", - "syn 1.0.109", -] - -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom", - "libc", - "rand_chacha", - "rand_core", - "rand_hc", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core", -] - -[[package]] -name = "regex" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81bc1d4caf89fac26a70747fe603c130093b53c773888797a6329091246d651a" -dependencies = [ - "regex-automata", - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed1ceff11a1dddaee50c9dc8e4938bd106e9d89ae372f192311e7da498e3b69" -dependencies = [ - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ea92a5b6195c6ef2a0295ea818b312502c6fc94dde986c5553242e18fd4ce2" - -[[package]] -name = "rustversion" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" - -[[package]] -name = "ryu" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" - -[[package]] -name = "sbor" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17d72c7d255b90198cf83c4cc4907021a927f484586939d8d50bdcd045287bde" -dependencies = [ - "const-sha1", - "hex", - "lazy_static", - "paste", - "radix-rust", - "sbor-derive", - "serde", -] - -[[package]] -name = "sbor-derive" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a51a6bd2e7849a2a8826a473e83a9a995011af21892acee89e62ce93f0d7c42" -dependencies = [ - "proc-macro2", - "sbor-derive-common", - "syn 1.0.109", -] - -[[package]] -name = "sbor-derive-common" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02f1209a1d8c81d724c45afc06e41aa4e64a18b389e8cdece53da61bad1c1620" -dependencies = [ - "const-sha1", - "itertools", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "scrypto" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc8a64aa6af83ed0dfc588a278c54138d9e7d855cf7b3a22287c5239a964285e" -dependencies = [ - "bech32", - "const-sha1", - "hex", - "num-bigint", - "num-traits", - "paste", - "radix-blueprint-schema-init", - "radix-common", - "radix-engine-interface", - "radix-rust", - "sbor", - "scrypto-derive", - "strum", -] - -[[package]] -name = "scrypto-derive" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c369a0c3f292e4704bd71d47c80a2d6162b1e0212e9c34f130634ee29e58c0ed" -dependencies = [ - "proc-macro2", - "quote", - "radix-blueprint-schema-init", - "radix-common", - "regex", - "sbor", - "serde", - "serde_json", - "syn 1.0.109", -] - -[[package]] -name = "secp256k1" -version = "0.28.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d24b59d129cdadea20aea4fb2352fa053712e5d713eee47d700cd4b2bc002f10" -dependencies = [ - "secp256k1-sys", -] - -[[package]] -name = "secp256k1-sys" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5d1746aae42c19d583c3c1a8c646bfad910498e2051c551a7f2e3c0c9fbb7eb" -dependencies = [ - "cc", -] - -[[package]] -name = "serde" -version = "1.0.209" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99fce0ffe7310761ca6bf9faf5115afbc19688edd00171d81b1bb1b116c63e09" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_derive" -version = "1.0.209" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5831b979fd7b5439637af1752d535ff49f4860c0f341d1baeb6faf0f4242170" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.76", -] - -[[package]] -name = "serde_json" -version = "1.0.127" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8043c06d9f82bd7271361ed64f415fe5e12a77fdb52e573e7f06a516dea329ad" -dependencies = [ - "itoa", - "memchr", - "ryu", - "serde", -] - -[[package]] -name = "sha2" -version = "0.9.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" -dependencies = [ - "block-buffer 0.9.0", - "cfg-if", - "cpufeatures", - "digest 0.9.0", - "opaque-debug", -] - -[[package]] -name = "sha3" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" -dependencies = [ - "digest 0.10.7", - "keccak", -] - -[[package]] -name = "signature" -version = "1.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" - -[[package]] -name = "strum" -version = "0.24.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" -dependencies = [ - "strum_macros", -] - -[[package]] -name = "strum_macros" -version = "0.24.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" -dependencies = [ - "heck", - "proc-macro2", - "quote", - "rustversion", - "syn 1.0.109", -] - -[[package]] -name = "subtle" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" - -[[package]] -name = "syn" -version = "1.0.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "syn" -version = "2.0.76" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578e081a14e0cefc3279b0472138c513f37b41a08d5a3cca9b6e4e8ceb6cd525" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "test_environment" -version = "1.0.0" -dependencies = [ - "sbor", - "scrypto", -] - -[[package]] -name = "threadpool" -version = "1.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa" -dependencies = [ - "num_cpus", -] - -[[package]] -name = "typenum" -version = "1.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" - -[[package]] -name = "unicode-ident" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" - -[[package]] -name = "version_check" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" - -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - -[[package]] -name = "zeroize" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd" -dependencies = [ - "zeroize_derive", -] - -[[package]] -name = "zeroize_derive" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.76", -] diff --git a/scrypto-test/assets/blueprints/Cargo.toml b/scrypto-test/assets/blueprints/Cargo.toml deleted file mode 100644 index 4f38ec81efb..00000000000 --- a/scrypto-test/assets/blueprints/Cargo.toml +++ /dev/null @@ -1,13 +0,0 @@ -[workspace] -members = [ - "test_environment" -] -resolver = "2" - -[profile.release] -opt-level = 'z' # Optimize for size. -lto = true # Enable Link Time Optimization. -codegen-units = 1 # Reduce number of codegen units to increase optimizations. -panic = 'abort' # Abort on panic. -strip = true # Strip the symbols. -overflow-checks = true # Panic in the case of an overflow. diff --git a/scrypto-test/assets/blueprints/test_environment/Cargo.toml b/scrypto-test/assets/blueprints/test_environment/Cargo.toml deleted file mode 100644 index db951034927..00000000000 --- a/scrypto-test/assets/blueprints/test_environment/Cargo.toml +++ /dev/null @@ -1,11 +0,0 @@ -[package] -name = "test_environment" -version = "1.0.0" -edition = "2021" - -[dependencies] -sbor = { version = "1.2.0-dev" } -scrypto = { version = "1.2.0-dev" } - -[lib] -crate-type = ["cdylib", "lib"] \ No newline at end of file diff --git a/scrypto-test/assets/blueprints/test_environment/src/lib.rs b/scrypto-test/assets/blueprints/test_environment/src/lib.rs deleted file mode 100644 index bd56ad5f7d3..00000000000 --- a/scrypto-test/assets/blueprints/test_environment/src/lib.rs +++ /dev/null @@ -1,10 +0,0 @@ -use scrypto::prelude::*; - -#[blueprint] -mod test_environment { - struct TestEnvironment {} - - impl TestEnvironment { - pub fn run() {} - } -} diff --git a/scrypto-test/assets/build.sh b/scrypto-test/assets/build.sh deleted file mode 100755 index d71029e813d..00000000000 --- a/scrypto-test/assets/build.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -set -e - -cd "$(dirname "$0")" - -IMAGE_NAME="radixdlt/scrypto-builder" -IMAGE_TAG="v1.1.1" -WORKSPACE_DIR="blueprints" -DESTINATION_DIR="." -for PACKAGE_NAME in "test_environment" -do - # Run scrypto build - docker run \ - --platform=linux/amd64 \ - --entrypoint=scrypto \ - -v $(realpath $WORKSPACE_DIR):/src/$WORKSPACE_DIR \ - $IMAGE_NAME:$IMAGE_TAG \ - build --path /src/$WORKSPACE_DIR/$PACKAGE_NAME - - # Copy artifacts - cp \ - $WORKSPACE_DIR/target/wasm32-unknown-unknown/release/$PACKAGE_NAME.{wasm,rpd} \ - $DESTINATION_DIR/ -done - -sha256sum *.{wasm,rpd} - -# SHA256 -# db170d2f731cf1bb391576281e7f43629d156dbd97126d9e07e990b234f42f50 test_environment.wasm -# 481b8d309110613576be6298d3126200f470a1153dbf867193bba02a49814b66 test_environment.rpd \ No newline at end of file