diff --git a/contracts/Cargo.lock b/contracts/Cargo.lock deleted file mode 100644 index 8e21fddeb..000000000 --- a/contracts/Cargo.lock +++ /dev/null @@ -1,1046 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "aho-corasick" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] - -[[package]] -name = "array-init" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d62b7694a562cdf5a74227903507c56ab2cc8bdd1f781ed5cb4cf9c9f810bfc" - -[[package]] -name = "arrayref" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" - -[[package]] -name = "arrayvec" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" - -[[package]] -name = "autocfg" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" - -[[package]] -name = "bitvec" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" -dependencies = [ - "funty", - "radium", - "tap", - "wyz", -] - -[[package]] -name = "blake2" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" -dependencies = [ - "digest", -] - -[[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 = "byte-slice-cast" -version = "1.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" - -[[package]] -name = "cc" -version = "1.0.101" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac367972e516d45567c7eafc73d24e1c193dcf200a8d94e9db7b3d38b349572d" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "cpufeatures" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" -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 = "darling" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn 1.0.109", -] - -[[package]] -name = "darling_macro" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e" -dependencies = [ - "darling_core", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "derive_more" -version = "0.99.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.68", -] - -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer", - "crypto-common", - "subtle", -] - -[[package]] -name = "either" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" - -[[package]] -name = "env_logger" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" -dependencies = [ - "humantime", - "is-terminal", - "log", - "regex", - "termcolor", -] - -[[package]] -name = "equivalent" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" - -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[package]] -name = "funty" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" - -[[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 = "hashbrown" -version = "0.14.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" - -[[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.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" - -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - -[[package]] -name = "impl-serde" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebc88fc67028ae3db0c853baa36269d398d5f45b6982f95549ff5def78c935cd" -dependencies = [ - "serde", -] - -[[package]] -name = "impl-trait-for-tuples" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "indexmap" -version = "2.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" -dependencies = [ - "equivalent", - "hashbrown", -] - -[[package]] -name = "ink" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9fd4f77d66c94aa7f27a7cf41cd2edbc2229afe34ec475c3f32b6e8fdf561a0" -dependencies = [ - "derive_more", - "ink_env", - "ink_macro", - "ink_metadata", - "ink_prelude", - "ink_primitives", - "ink_storage", - "parity-scale-codec", -] - -[[package]] -name = "ink_allocator" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "870914970470fd77a3f42d3c5d1918b562817af127fd063ee8b1d9fbf59aa1fe" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "ink_codegen" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22d79057b2565df31a10af6510a44b161093f110c5f9c22ad02c20af9cea4c29" -dependencies = [ - "blake2", - "derive_more", - "either", - "env_logger", - "heck", - "impl-serde", - "ink_ir", - "ink_primitives", - "itertools", - "log", - "parity-scale-codec", - "proc-macro2", - "quote", - "serde", - "serde_json", - "syn 2.0.68", -] - -[[package]] -name = "ink_engine" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "722ec3a5eb557124b001c60ff8f961079f6d566af643edea579f152b15822fe5" -dependencies = [ - "blake2", - "derive_more", - "ink_primitives", - "parity-scale-codec", - "secp256k1", - "sha2", - "sha3", -] - -[[package]] -name = "ink_env" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "584e73bc0982f6f1a067bb63ebc75262f6dc54ed2a17060efa73eaba84dc9308" -dependencies = [ - "arrayref", - "blake2", - "cfg-if", - "derive_more", - "ink_allocator", - "ink_engine", - "ink_prelude", - "ink_primitives", - "ink_storage_traits", - "num-traits", - "parity-scale-codec", - "paste", - "rlibc", - "scale-decode", - "scale-encode", - "scale-info", - "secp256k1", - "sha2", - "sha3", - "static_assertions", -] - -[[package]] -name = "ink_ir" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b529c941518e8f450395fab9fe8ebba0a7acbb18778fc7e0a87f6248286ec72" -dependencies = [ - "blake2", - "either", - "itertools", - "proc-macro2", - "quote", - "syn 2.0.68", -] - -[[package]] -name = "ink_macro" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8579576c995ca9baa032584beca19155cbd63b6739570aa9da4d35a0415f4be8" -dependencies = [ - "ink_codegen", - "ink_ir", - "ink_primitives", - "parity-scale-codec", - "proc-macro2", - "quote", - "syn 2.0.68", - "synstructure", -] - -[[package]] -name = "ink_metadata" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fddff95ce3e01f42002fdaf96edda691dbccb08c9ae76d7101daa1fa634e601" -dependencies = [ - "derive_more", - "impl-serde", - "ink_prelude", - "ink_primitives", - "scale-info", - "serde", -] - -[[package]] -name = "ink_prelude" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8cfdf91d2b442f08efb34dd3780fd6fbd3d033f63b42f62684fe47534948ef6" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "ink_primitives" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6414bcad12ebf0c3abbbb192a09e4d06e22f662cf3e19545204e1b0684be12a1" -dependencies = [ - "derive_more", - "ink_prelude", - "parity-scale-codec", - "scale-decode", - "scale-encode", - "scale-info", - "xxhash-rust", -] - -[[package]] -name = "ink_storage" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd728409de235de0489f71ee2d1beb320613fdb50dda9fa1c564825f4ad06daa" -dependencies = [ - "array-init", - "cfg-if", - "derive_more", - "ink_env", - "ink_metadata", - "ink_prelude", - "ink_primitives", - "ink_storage_traits", - "parity-scale-codec", - "scale-info", -] - -[[package]] -name = "ink_storage_traits" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8dcb50f70377ac35c28d63b06383a0a3cbb79542ea4cdc5b00e3e2b3de4a549" -dependencies = [ - "ink_metadata", - "ink_prelude", - "ink_primitives", - "parity-scale-codec", - "scale-info", -] - -[[package]] -name = "is-terminal" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" -dependencies = [ - "hermit-abi", - "libc", - "windows-sys", -] - -[[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.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" - -[[package]] -name = "keccak" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" -dependencies = [ - "cpufeatures", -] - -[[package]] -name = "libc" -version = "0.2.155" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" - -[[package]] -name = "log" -version = "0.4.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" - -[[package]] -name = "memchr" -version = "2.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" - -[[package]] -name = "num-traits" -version = "0.2.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" -dependencies = [ - "autocfg", -] - -[[package]] -name = "once_cell" -version = "1.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" - -[[package]] -name = "parity-scale-codec" -version = "3.6.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "306800abfa29c7f16596b5970a588435e3d5b3149683d00c12b699cc19f895ee" -dependencies = [ - "arrayvec", - "bitvec", - "byte-slice-cast", - "impl-trait-for-tuples", - "parity-scale-codec-derive", - "serde", -] - -[[package]] -name = "parity-scale-codec-derive" -version = "3.6.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" -dependencies = [ - "proc-macro-crate 3.1.0", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "paste" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" - -[[package]] -name = "proc-macro-crate" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" -dependencies = [ - "once_cell", - "toml_edit 0.19.15", -] - -[[package]] -name = "proc-macro-crate" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" -dependencies = [ - "toml_edit 0.21.1", -] - -[[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 = "psp22" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a9bdae21c2e17b9501b2c3f8597a679cfbe2f81ec5432091bd8d4b156f66194" -dependencies = [ - "ink", - "parity-scale-codec", - "scale-info", -] - -[[package]] -name = "quote" -version = "1.0.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "radium" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" - -[[package]] -name = "regex" -version = "1.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata", - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" - -[[package]] -name = "rlibc" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc874b127765f014d792f16763a81245ab80500e2ad921ed4ee9e82481ee08fe" - -[[package]] -name = "ryu" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" - -[[package]] -name = "scale-bits" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "036575c29af9b6e4866ffb7fa055dbf623fe7a9cc159b33786de6013a6969d89" -dependencies = [ - "parity-scale-codec", - "scale-info", -] - -[[package]] -name = "scale-decode" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7789f5728e4e954aaa20cadcc370b99096fb8645fca3c9333ace44bb18f30095" -dependencies = [ - "derive_more", - "parity-scale-codec", - "scale-bits", - "scale-decode-derive", - "scale-info", - "smallvec", -] - -[[package]] -name = "scale-decode-derive" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27873eb6005868f8cc72dcfe109fae664cf51223d35387bc2f28be4c28d94c47" -dependencies = [ - "darling", - "proc-macro-crate 1.3.1", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "scale-encode" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d70cb4b29360105483fac1ed567ff95d65224a14dd275b6303ed0a654c78de5" -dependencies = [ - "derive_more", - "parity-scale-codec", - "scale-encode-derive", - "scale-info", - "smallvec", -] - -[[package]] -name = "scale-encode-derive" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "995491f110efdc6bea96d6a746140e32bfceb4ea47510750a5467295a4707a25" -dependencies = [ - "darling", - "proc-macro-crate 1.3.1", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "scale-info" -version = "2.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eca070c12893629e2cc820a9761bedf6ce1dcddc9852984d1dc734b8bd9bd024" -dependencies = [ - "bitvec", - "cfg-if", - "derive_more", - "parity-scale-codec", - "scale-info-derive", - "serde", -] - -[[package]] -name = "scale-info-derive" -version = "2.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62" -dependencies = [ - "proc-macro-crate 3.1.0", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "secp256k1" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25996b82292a7a57ed3508f052cfff8640d38d32018784acd714758b43da9c8f" -dependencies = [ - "secp256k1-sys", -] - -[[package]] -name = "secp256k1-sys" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a129b9e9efbfb223753b9163c4ab3b13cff7fd9c7f010fbac25ab4099fa07e" -dependencies = [ - "cc", -] - -[[package]] -name = "serde" -version = "1.0.203" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_derive" -version = "1.0.203" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.68", -] - -[[package]] -name = "serde_json" -version = "1.0.118" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d947f6b3163d8857ea16c4fa0dd4840d52f3041039a85decd46867eb1abef2e4" -dependencies = [ - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "sha2" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - -[[package]] -name = "sha3" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" -dependencies = [ - "digest", - "keccak", -] - -[[package]] -name = "smallvec" -version = "1.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" - -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - -[[package]] -name = "strsim" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" - -[[package]] -name = "subtle" -version = "2.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" - -[[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.68" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[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.68", -] - -[[package]] -name = "tap" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" - -[[package]] -name = "termcolor" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "toml_datetime" -version = "0.6.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4badfd56924ae69bcc9039335b2e017639ce3f9b001c393c1b2d1ef846ce2cbf" - -[[package]] -name = "toml_edit" -version = "0.19.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" -dependencies = [ - "indexmap", - "toml_datetime", - "winnow", -] - -[[package]] -name = "toml_edit" -version = "0.21.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" -dependencies = [ - "indexmap", - "toml_datetime", - "winnow", -] - -[[package]] -name = "typenum" -version = "1.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" - -[[package]] -name = "unicode-ident" -version = "1.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" - -[[package]] -name = "version_check" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" - -[[package]] -name = "winapi-util" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" -dependencies = [ - "windows-sys", -] - -[[package]] -name = "windows-sys" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" -dependencies = [ - "windows-targets", -] - -[[package]] -name = "windows-targets" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" - -[[package]] -name = "winnow" -version = "0.5.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" -dependencies = [ - "memchr", -] - -[[package]] -name = "wrapped-lld" -version = "1.0.0" -dependencies = [ - "ink", - "parity-scale-codec", - "psp22", - "scale-info", -] - -[[package]] -name = "wyz" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" -dependencies = [ - "tap", -] - -[[package]] -name = "xxhash-rust" -version = "0.8.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927da81e25be1e1a2901d59b81b37dd2efd1fc9c9345a55007f09bf5a2d3ee03" diff --git a/contracts/Cargo.toml b/contracts/Cargo.toml deleted file mode 100644 index d14b4ee42..000000000 --- a/contracts/Cargo.toml +++ /dev/null @@ -1,6 +0,0 @@ -[workspace] -resolver = "2" -members = [ - "msig_court", - "wrapped_lld", -] \ No newline at end of file diff --git a/contracts/README.md b/contracts/README.md new file mode 100644 index 000000000..c6e24d15d --- /dev/null +++ b/contracts/README.md @@ -0,0 +1,10 @@ +# Deploying contracts to production + +1. Open https://ui.use.ink/ +2. Connect to network you want to deploy to +3. Click `Add New Contract` -> `Upload New Contract Code` +4. Select deployer account +5. Give some descriptive name (this will only be stored in local browser, not public) +6. Upload `*.contract` file from the `artifacts/` directory as Contract Bundle +7. Click `Next` -> `Next` -> `Upload & Instantiate` +8. Update contract's README.md with the new address if applicable diff --git a/contracts/msig_court/Cargo.toml b/contracts/msig_court/Cargo.toml index 441599a98..0f203c213 100644 --- a/contracts/msig_court/Cargo.toml +++ b/contracts/msig_court/Cargo.toml @@ -4,6 +4,8 @@ version = "0.1.0" authors = ["[your_name] <[your_email]>"] edition = "2021" +[workspace] + [dependencies] ink = { version = "5.0.0", default-features = false } liberland-extension = { path = "../../liberland-extension/ink", default-features = false} diff --git a/contracts/msig_court/README.md b/contracts/msig_court/README.md new file mode 100644 index 000000000..9ee92be2b --- /dev/null +++ b/contracts/msig_court/README.md @@ -0,0 +1,26 @@ +# Multisig Court + +This repository contains an ink! smart contract for Liberland blockchain which acts as a simplified court for force transferring staked LLM. + +The artifacts folder contains the exact compiled binary that has been deployed, as well as all other compilation artifacts for verification purposes. + +Contract is deployed on: +* Bastiat: TBD +* Mainnet: TBD + +# Building + +Run in root of the repository (NOT in the `contracts` directory): +``` +cargo install --force --locked cargo-contract +cargo contract build --verifiable --manifest-path ./contracts/msig_court/Cargo.toml +``` + +Build output can be found in `./contracts/msig_court/target/ink`. + +# Verifying integrity + +Run in root of the repository (NOT in the `contracts` directory): +``` +cargo contract verify --contract=./contracts/msig_court/artifacts/msig_court.contract --manifest-path=./contracts/msig_court/Cargo.toml +``` diff --git a/contracts/msig_court/artifacts/msig_court.contract b/contracts/msig_court/artifacts/msig_court.contract new file mode 100644 index 000000000..6eb0809b6 --- /dev/null +++ b/contracts/msig_court/artifacts/msig_court.contract @@ -0,0 +1 @@ +{"source":{"hash":"0x579b9ae60d89317888b099d92d05fc66a62ef45115b34fe168a5810cb7db4bf0","language":"ink! 5.0.0","compiler":"rustc 1.78.0","wasm":"0x0061736d0100000001410b60027f7f0060037f7f7f0060037f7f7f017f60017f0060047f7f7f7f017f60000060047f7f7f7f0060027f7f017f60057f7f7f7f7f017f6000017f60017f017f02fc010c057365616c300c74616b655f73746f726167650004057365616c310b6765745f73746f726167650004057365616c3005696e7075740000057365616c300d6465706f7369745f6576656e740006057365616c320b7365745f73746f726167650004057365616c3110636f6e7461696e735f73746f726167650007057365616c301463616c6c5f636861696e5f657874656e73696f6e0008057365616c300b7365616c5f72657475726e0001057365616c300663616c6c65720000057365616c301176616c75655f7472616e736665727265640000057365616c300f686173685f626c616b65325f323536000103656e76066d656d6f727902010210032c2b02020202020100010301010003000000000000000000000003090002000a000503010100000000050605000616037f01418080040b7f00419081050b7f00418c81050b0711020463616c6c0032066465706c6f7900340aaa542b2b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0b6f01017f0240200020014d04402000210303402002450d02200320012d00003a0000200341016a2103200141016a2101200241016b21020c000b000b200041016b2103200141016b210103402002450d01200220036a200120026a2d00003a0000200241016b21020c000b000b20000b2501017f037f2002200346047f200005200020036a20013a0000200341016a21030c010b0b0b3f01027f0340200245044041000f0b200241016b210220012d0000210320002d00002104200141016a2101200041016a210020032004460d000b200420036b0b8c0101017f20002d00042103200041003a0004027f0240200345044041012000280200220028020422032002490d021a2001200028020022012002100b1a0c010b200120002d00053a00004101200028020022002802042203200241016b2202490d011a200141016a200028020022012002100b1a0b2000200320026b3602042000200120026a36020041000b0bd10101047f230041306b220324002003410c6a200041086a290000370200200341146a200041106a2900003702002003411c6a200041186a290000370200200341848004360200200320002900003702042003428080013702282003418c81043602242003200341246a22051011024020032802282206200328022c2200490d00200328022421042003410036022c2003200620006b3602282003200020046a3602242001200220051012200328022c220120032802284b0d00200420002003280224200110041a200341306a24000f0b000b170020002802002802002001101d200041046a200110160b2d0020012002101820010440200141057421010340200020021016200041206a2100200141206b22010d000b0b0bb40101077f230041306b2201240002402000280204220320002802082202490d00200028020021042001410036020c2001200320026b22033602082001200220046a2204360204200141003a0024200141046a2205200141246a220641011014200128020c220720012802084b0d0020052001280204200710152001410036022c200120033602282001200436022420052006101620022002200128022c6a22024b0d0020002002360208200141306a24000f0b000b4801027f024002402000280208220320026a22042003490d00200420002802044b0d00200420036b2002470d01200028020020036a20012002100b1a200020043602080f0b000b000bed0101077f230041406a22032400200341186a22044200370300200341106a22054200370300200341086a22064200370300200342003703000240200241214f0440200341386a22074200370300200341306a22084200370300200341286a220942003703002003420037032020012002200341206a100a200420072903003703002005200829030037030020062009290300370300200320032903203703000c010b200320012002100b1a0b20002003290300370000200041186a200341186a290300370000200041106a200341106a290300370000200041086a200341086a290300370000200341406b24000b0a0020012000412010140b6b01047f230041106b2201240002402000280204220320002802082202490d00200028020021042001410036020c2001200320026b3602082001200220046a3602044102200141046a101820022002200128020c6a22024b0d0020002002360208200141106a24000f0b000b7401017f230041106b2202240002402000413f4d04402001200041027410220c010b200041ffff004d0440200220004102744101723b010e20012002410e6a410210140c010b200041ffffffff034d044020004102744102722001101d0c010b20014103102220002001101d0b200241106a24000bb50101047f230041b0016b22022400200241d8006a2001101a024020022d006822034103470440200241d0006a2204200241e4006a2802003602002002200229025c37034820022802582105200241016a200241e9006a41c700100b1a20012802040440200041033a00100c020b2000200536020020002002290348370204200020033a00102000410c6a2004280200360200200041116a200241016a41c700100b1a0c010b200041033a00100b200241b0016a24000bed0302087f027e230041a0016b22022400200241086a2001101e0240024002400240024020022d000845044020022d00090e020102030b200041033a00100c040b200241106a220320011021024020022d001022044102460d00200241f0006a2205200241296a290000370300200241e8006a2206200241216a290000370300200241e0006a2207200241196a2900003703002002200229001137035820032001102120022d00104102460d00200241f8006a220820034121100b1a200128020422094110490d002001200941106b36020420012001280200220141106a360200200241186a2007290300370300200241206a2006290300370300200241286a200529030037030020022002290358370310200141086a290000210a2001290000210b200241306a20084121100b1a2000200a3703082000200b370300200020043a0010200041116a200341c100100b1a0c040b200041033a00100c030b20022001102720022802000d0120022802042104200241106a2001101c200228021041808080807847044020024180016a200241186a280200220136020020022002290210220a370378200041086a20013602002000200a370300200041023a00102000200436020c0c030b200041033a00100c020b200041033a00100c010b200041033a00100b200241a0016a24000b6401027f230041106b22022400200241046a2001101c0240200228020422034180808080784704402001280204044020004180808080783602000c020b20002002290208370204200020033602000c010b20004180808080783602000b200241106a24000bd10301037f230041406a22022400200241106a2001101e0240024020022d00100d000240024002400240024020022d0011220341037141016b0e03010203000b200341fc017141027621030c030b200220033a0025200241013a002420022001360220200241003b0114200241206a200241146a4102100f0d0320022f0114220341ff014d0d03200341027621030c020b200220033a0025200241013a00242002200136022020024100360214200241206a200241146a4104100f0d022002280214220341808004490d02200341027621030c010b200341044f0d01200241086a2001102720022802080d01200228020c2203418080808004490d010b200241146a200128020441057622042003200320044b1b10250240200304400340200128020422044120490d022001200441206b36020420012001280200220441206a360200200241286a200441086a290000370300200241306a200441106a290000370300200241386a200441186a29000037030020022004290000370320200241146a200241206a1029200341016b22030d000b0b20002002290214370200200041086a2002411c6a2802003602000c020b20004180808080783602000c010b20004180808080783602000b200241406b24000b2601017f230041106b220224002002200036020c20012002410c6a41041014200241106a24000b3c01017f200020012802042202047f2001200241016b36020420012001280200220141016a36020020012d00000520010b3a000120002002453a00000b4501017f230041106b22022400200041106a20011020200041316a200110202002200041086a290300370308200220002903003703002001200241101014200241106a24000b1400200120002d00001022200041016a200110160ba40101047f230041106b22022400200241086a2001101e41022103024020022d00080d00024020022d000922050e020000010b200128020422044120490d002001200441206b36020420012001280200220141206a36020020002001290000370001200041096a200141086a290000370000200041116a200141106a290000370000200041196a200141186a290000370000200521030b200020033a0000200241106a24000b2d01017f2000280208220220002802044904402000200241016a360208200028020020026a20013a00000f0b000b850101027f230041106b2201240020014180800136020c418c81042001410c6a1008200128020c2202418180014f2002411f4d724504402000418c81042d00003a00002000418d8104290000370001200041096a41958104290000370000200041116a419d8104290000370000200041186a41a48104290000370000200141106a24000f0b000b6102027f027e230041206b22002400200041106a22014200370300200042003703082000411036021c200041086a2000411c6a1009200028021c41114f0440000b2001290300210220002903082103200041206a2400410541042002200384501b0b4701017f02402001450440410121020c010b200141ffffff1f4d044041fc80042d00001a2001410574102822020d010b000b2000410036020820002002360204200020013602000b3601027f200141057421010340200122030440200141206b2101200020024120100e2104200041206a210020040d010b0b20034100470b4601017f20012802042202410449047f4101052001200241046b36020420012001280200220141046a3602002001280000210241000b210120002002360204200020013602000bb70101027f027f418081042d00000440418481042802000c010b3f00210141848104419081053602004180810441013a0000418881042001411074360200419081050b21010240027f4100200020016a22022001490d001a418881042802002002490440200041ffff036a220241107640002201417f460d022001411074220120024180807c716a22022001490d024188810420023602004100200020016a22022001490d011a0b41848104200236020020010b0f0b41000be20301087f200028020822022000280200460440230041206b220524000240200241016a220204404104200028020022034101742204200220022004491b2204200441044d1b220841057421022004418080802049210620052003047f2005200341057436021c2005200028020436021441010541000b360218200541086a2107200541146a2103230041106b22042400027f027f024020060440200241004e0d01410121034100210241040c030b2007410036020441010c010b027f2003280204044020032802082206450440200441086a2002103520042802082103200428020c0c020b200328020021090240200210282203450440410021030c010b200320092006100b1a0b20020c010b2004200210352004280200210320042802040b210620072003410120031b3602042006200220031b21022003450b210341080b20076a200236020020072003360200200441106a2400200528020c2102200528020845044020002008360200200020023602040c020b2002418180808078460d010b000b200541206a2400200028020821020b2000200241016a360208200028020420024105746a22002001290000370000200041086a200141086a290000370000200041106a200141106a290000370000200041186a200141186a2900003700000b1300418c81044181023b010041014102102e000b9d0101057f230041106b220124002001428080013702082001418c81043602044100200141046a2203101d024020012802082205200128020c2202490d00200128020421042001410036020c2001200520026b3602082001200220046a360204200028020c2003101d2000280204200028020820031012200128020c220020012802084b0d00200420022001280204200010041a200141106a24000f0b000bd10101057f230041306b2203240002400240200204402001280204220520012802082204490d02200128020021062003410036020c2003200520046b22053602082003200420066a22063602042002200341046a22071016200328020c220220032802084b0d0220072003280204200210152003410036022c20032005360228200320063602242007200341246a10162004200328022c6a22022004490d02200120023602080c010b200110130b20002001290200370200200041086a200141086a280200360200200341306a24000f0b000bd40101057f230041306b2203240002400240200204402001280204220520012802082204490d02200128020021062003410036020c2003200520046b22053602082003200420066a22063602042002280200200341046a22071016200328020c220220032802084b0d0220072003280204200210152003410036022c20032005360228200320063602242007200341246a10162004200328022c6a22022004490d02200120023602080c010b200110130b20002001290200370200200041086a200141086a280200360200200341306a24000f0b000b0d002000418c810420011007000b2100200041ff017141074604402001410010220f0b2001410110222000200110310b370020002d0010410247044020014100102220002001101f0f0b200141011022200028020c2001101d20002802042000280208200110120b1f01017f2001200041ff0171410647047f20014101102220000541000b10220baa1f02107f017e23004190056b2200240002400240027f0240024002400240102441ff01714105470d002000418080013602b003418c8104200041b0036a100220002802b0032201418180014f0d0020014104490d052000419081043602682000200141046b220436026c418f81042d00002103418e81042d00002102418d81042d00002105024002400240418c81042d00002201410447044020014123470440200141e800470440200141ba01460d03200141cb0147200541144772200241b50147720d0b200341b501460d040c0b0b2005411247200241e6004772200341a00147200441204972720d0a20004180016a4199810429000037030020004188016a41a181042900003703002000418f016a41a88104290000370000200041918104290000370378419081042d00002101410321050c040b20054112472002412a47722003411d47720d09410421050c030b200541eb0147200241ce004772200341a10147720d08410521050c020b200541cd0047200241c5014772200341ec0147200441204972720d0720004180016a4199810429000037030020004188016a41a181042900003703002000418f016a41a88104290000370000200041918104290000370378419081042d00002101410621050c010b200041b0036a200041e8006a101a20002d00c00322054103460d0620004180016a200041ca036a29010037030020004188016a200041d2036a2901003703002000418f016a200041d9036a290000370000200020002900b1033703f801200020002901c2033703782000200041b8036a2900003700ff0120002d00b003210220002d00c103210120004198026a200041e1036a4127100b1a0b200041186a20002900ff013700002000412a6a20004180016a290300370100200041326a20004188016a290300370100200041396a2000418f016a290000370000200020002903f80137001120002000290378370122200041c1006a20004198026a22074127100b1a200020013a0021200020053a0020200020023a00102000428080013702b4032000418c81043602b0034100200041b0036a2203101d20002802b403220420002802b8032201490d0020002802b00321022000200420016b22063602b00320022001200120026a220120031001210420002802b003220220064b2004410f4f720d00200441eb80046a2d000022044103462004411047720d0020002001360298022000200236029c0220024104490d002000200241046b36029c022000200141046a360298022001280000210620032007101c20002802b0032201418080808078460d00200028029c020d00200041216a2103200020002902b40322103c006c200041f3006a20104238883c0000200041f1006a20104228883d00002000200636027420002001360268200020104208883e006d410021022010422088a72104024002400240024002400240200541026b4100200541036b41ff01714104491b41ff017141016b0e0401020304000b2000200041e8006a220d3602784108210120004180016a200041106a220a41d800100b2108200041d8016a220c1023200028026c2004200c1026450d0820004190026a2203420037030020004188026a2205420037030020004180026a220e220622044200370300200042003703f8012000428080013702b4032000418c81043602b0032008200041b0036a2202103020002802b803220720002802b4034b0d0520002802b0032007200041f8016a100a200041cc036a22072003290300370200200041c4036a22092005290300370200200041bc036a220b2004290300370200200020002903f8013702b4032000418080043602b00320004280800137029c022000418c810436029802200220004198026a2204101120002802a002220f200028029c024b0d05200028029802200f1005417f470d062007200329030037020020092005290300370200200b2006290300370200200020002903f8013702b4032000418080043602b00320004280800137029c022000418c810436029802200220041011200028029c02220b20002802a0022207490d052000280298022109200041003602a0022000200b20076b36029c022000200720096a3602980220082004103020002802a0022208200028029c024b0d0520092007200028029802200810041a200041c8036a22092003290300370300200041c0036a220b2005290300370300200041b8036a22072006290300370300200020002903f8013703b003200241014100101020004188036a200041f0016a29000037030020004180036a200041e8016a290000370300200041f8026a200041e0016a29000037030020004198036a2006290300370300200041a0036a2005290300370300200041a8036a2003290300370300200020002900d8013703f002200020002903f801370390032004200a41d800100b1a20022004419801100b1a2000428080013702cc042000418c81043602c804200020004188046a220a3602d404200041c8046a22061017200041e4046a2204200641898004102c200041d8046a2004200041d4046a102d20002802dc04220f20002802e0042206490d0520002802d8042108200041003602ec042000200f20066b3602e8042000200620086a3602e404200a20041016200041a8046a2004101620022004103020002802ec04220420002802e8044b0d052008200620002802e4042004100320092003290300370300200b20052903003703002007200e290300370300200020002903f8013703b0032000200d200c2002103320002d0001210220002d0000450d040c080b200041cc036a200341186a290000370200200041c4036a200341106a290000370200200041bc036a200341086a290000370200200020032900003702b4032000200041e8006a3602b003200041f0046a22011023200028026c20042001102645044041012101410021050c070b200041086a200041e8006a200041f0046a200041b4036a103320002d000921054101210120002d00080d06200041b8036a200041f0006a290200370300200020002902683703b003200041b0036a102b410021010c060b230041106b220124002001418c8104360204418c810441003a000020014280808180103702082006200141046a101d200128020c2201418180014f0440000b0c090b200028026c2101230041106b22022400200241046a20041025200228020820012004410574100b1a200041b0036a220141086a200436020020012002290204370200200241106a2400230041106b220224002002418080013602082002418c810436020402402001280200418080808078460440418c81044181023b0100410221010c010b2002410136020c418c810441003a000020012802042001280208200241046a1012200228020c220141818001490d00000b0c080b200041b0036a2102230041b0026b22012400200141b8016a200341086a290000370200200141c0016a200341106a290000370200200141c8016a200341186a2900003702002001418080043602ac01200120032900003702b0012001428080013702d4012001418c81043602d001200141ac016a2200200141d0016a2205101102400240024020012802d401220720012802d8012204490d0020012802d00121062001200720046b22073602d00120062004200420066a2206200510012104200720012802d0012208492004410f4f720d00200441eb80046a2d000022044103460d0120044110470d00200120083602ac02200120063602a8022005200141a8026a2204101920012d00e00122064103460d00200141a8016a2207200141dc016a2208280200360200200120012902d4013703a00120012d00d001210c20012f00d101210920012d00d301210d200141d9006a220a200141e1016a41c700100b1a2008200341086a290000370200200141e4016a200341106a290000370200200141ec016a200341186a2900003702002001418480043602d001200120032900003702d4012001428080013702b0012001418c81043602ac0120052000101120012802b001220820012802b4012203490d0020012802ac0121052001200820036b22083602ac0120052003200320056a2205200010012103200820012802ac01220e492003410f4f720d00200341eb80046a2d00002203410347044020034110470d012001200e3602ac02200120053602a80220002004101b20012802ac012203418080808078460d01200141d0006a22002007280200360200200120012903a00137034820012902b0012110200141016a2205200a41c700100b1a20022009200d41107472410874200c72360200200220012903483702042002410c6a2000280200360200200220063a0010200241116a200541c700100b1a2002201037025c200220033602580c030b20024180808080783602580c020b000b20024180808080783602580b200141b0026a2400230041106b220124002001418080013602082001418c81043602040240418d8104027f20022802582203418180808078470440418c810441003a000041002003418080808078460d011a418d810441013a00002001410236020c2002200141046a22031030200228025c200228026020031012200128020c220141818001490d02000b418c810441013a000041010b3a0000410221010b0c070b200041a0026a20004181026a290000370300200041a8026a20004189026a290000370300200041af026a2003290000370000200020002900f9013703980220002d00f80121032007200041f0006a290200370300200020002902683703b003200041b0036a102b200221012003210241000c040b000b410121020c010b200020053a00b203200020013a00b103200041003a00b003230041106b220224002002418080013602082002418c81043602040240027f200041b0036a22032d0000450440418c810441003a000020032d00010440418d810441013a000041032102418e8104210020032d00020c020b2002410236020c418d810441003a000020032d0002200241046a102f200228020c220241818001490d02000b418c810441013a000041022102418d8104210041010b2103200020033a00000b20012002102e000b41010b2103200041ba036a200041a0026a290300370100200041c2036a200041a8026a290300370100200041c9036a200041af026a290000370000200020023a00b10320002000290398023701b203200020013a00d103200041003a00b003230041106b220124002001418080013602082001418c81043602040240027f200041b0036a22022d0000450440418c810441003a0000200241016a210020022d002122024108460440418d810441013a000020002d00002101418e8104210241030c020b2001410236020c418d810441003a00002000200141046a2200101620022000102f200128020c220041818001490d02000b41012101418c810441013a0000418d8104210241020b2100200220013a00000b20032000102e000b102a000b41002001102e000b990c02087f017e230041b0026b22042400200441cc016a200341086a290000370200200441d4016a200341106a290000370200200441dc016a200341186a2900003702002004418480043602c001200420032900003702c4012004428080013702742004418c8104360270200441c0016a2208200441f0006a2209101102402004280274220720042802782205490d00200428027021062004200720056b220736027020062005200520066a2206200910002105200720042802702207492005410f4f720d00027f0240027f200541eb80046a2d00002205410347044020054110470d04200420073602a802200420063602a4022009200441a4026a220a101b20042802702207418080808078460d0420042004290274220c3c00002004200c4208883e00012004200c4238883c00072004200c4228883d000541032004280200220b200c422088a72206200210260d011a02400240200128020c200641016a2205417f20051b4d0440200441fc006a200341086a29000037020020044184016a200341106a2900003702002004418c016a200341186a290000370200200441808004360270200420032900003702742004428080013702c4012004418c81043602c00120092008101120042802c401220720042802c8012205490d0720042802c00121062004200720056b22073602c00120062005200520066a2206200810002105200720042802c0012207492005410f4f720d07200541eb80046a2d00004110470d07200420073602a802200420063602a4022008200a101920042d00d00122054103460d07200441106a200441c8016a290000370000200420042900c10137000920042d00c0012106200441196a200441d1016a41c700100b1a200420063a0008200420053a0018200541024704402004428080013702c4012004418c81043602c001200441086a2008101f20042802c401220620042802c8012201490d0820042802c00121052004200620016b22063602c001410120052001200120056a20081006210120042802c00120064b0d084106210520010e020302080b410521052004280214220620042802104b0d022001200636020c20012004290308370200200141086a200441106a280200360200410621050c020b2004200636026c2004200b36026820042007360264200441e4006a2002102920032004280268200428026c101020044188016a200241186a29000037030020044180016a200241106a290000370300200441f8006a200241086a29000037030020044198016a200341086a290000370300200441a0016a200341106a290000370300200441a8016a200341186a290000370300200420022900003703702004200329000037039001200441c0016a2206200441f0006a41c000100b1a2004428080013702b4012004418c81043602b001200420063602bc01200441b0016a22011017200441a4026a2205200141aa8004102c20044198026a2005200441bc016a102d200428029c02220320042802a0022201490d062004280298022102200441003602ac022004200320016b3602a8022004200120026a3602a402200620051016200441e0016a2005101620042802ac02220320042802a8024b0d062002200120042802a40220031003410721050c040b410421050b200441c9016a200241086a290000370000200441d1016a200241106a290000370000200441d9016a200241186a290000370000200441e9016a200341086a290000370000200441f1016a200341106a290000370000200441f9016a200341186a290000370000200420053a00c001200420022900003700c101200420032900003700e10120044280800137029c022004418c8104360298022004200441c0016a41017222033602b00120044198026a22011017200441f0006a2207200141cb8004102c200441a4026a2007200441b0016a102d20042802a802220620042802ac022201490d0420042802a4022102200441003602782004200620016b3602742004200120026a360270200320071016200441e1016a2007101620042d00c001200710312004280278220320042802744b0d04200220012004280270200310030c020b41020b210541010c010b41000b2103200020053a0001200020033a0000200441b0026a24000f0b000b930202047f017e230041306b220024000240102441ff01714105470d00200041808001360220418c8104200041206a2203100220002802202201418180014f0d00024020014104490d00418c81042d0000419b01470d00418d81042d000041ae01470d00418e81042d0000419d01470d00200141fcff0171410446418f81042d000041de0047720d002000419481043602182000200141086b36021c4190810428020021012003200041186a101c20002802202202418080808078460d0020002000290224220437020c2000200236020820012004422088a722024b0d01200029030821042000200136022c20002002360228200020043703202003102b418c810441003b010041004102102e000b102a000b000b2801017f2001047f41fc80042d00001a200110280541010b210220002001360204200020023602000b0b82010100418080040b7a8330565cd9d620ec01543ee06c65ab4ef1af979218be448a430685daef48b40e5d6db0ede534bbb2c7011f1cba7f32fff5da1287044afbd1ab48970d7df3b42e95d91fd3ed1eb38736be01df68ed5f995c70f39b68dc231e132530b7fff5b2aa77715146774f41abb115c0100102030405060708090a0b0c0d0e","build_info":{"build_mode":"Release","cargo_contract_version":"4.1.1","rust_toolchain":"stable-x86_64-unknown-linux-gnu","wasm_opt_settings":{"keep_debug_symbols":false,"optimization_passes":"Z"}}},"contract":{"name":"msig_court","version":"0.1.0","authors":["[your_name] <[your_email]>"]},"image":"paritytech/contracts-verifiable:4.1.1","spec":{"constructors":[{"args":[{"label":"threshold","type":{"displayName":["u32"],"type":0}},{"label":"judges","type":{"displayName":["Vec"],"type":1}}],"default":false,"docs":[],"label":"new","payable":false,"returnType":{"displayName":["ink_primitives","ConstructorResult"],"type":18},"selector":"0x9bae9d5e"}],"docs":[],"environment":{"accountId":{"displayName":["AccountId"],"type":2},"balance":{"displayName":["Balance"],"type":5},"blockNumber":{"displayName":["BlockNumber"],"type":0},"chainExtension":{"displayName":["ChainExtension"],"type":35},"hash":{"displayName":["Hash"],"type":33},"maxEventTopics":4,"staticBufferSize":16384,"timestamp":{"displayName":["Timestamp"],"type":34}},"events":[{"args":[{"docs":[],"indexed":true,"label":"proposer","type":{"displayName":["AccountId"],"type":2}},{"docs":[],"indexed":false,"label":"key","type":{"displayName":["PropKey"],"type":3}},{"docs":[],"indexed":false,"label":"proposal","type":{"displayName":["Proposal"],"type":7}}],"docs":[],"label":"Proposed","module_path":"msig_court::msig_court","signature_topic":"0x543ee06c65ab4ef1af979218be448a430685daef48b40e5d6db0ede534bbb2c7"},{"args":[{"docs":[],"indexed":true,"label":"approver","type":{"displayName":["AccountId"],"type":2}},{"docs":[],"indexed":false,"label":"key","type":{"displayName":["PropKey"],"type":3}}],"docs":[],"label":"Approved","module_path":"msig_court::msig_court","signature_topic":"0x1f1cba7f32fff5da1287044afbd1ab48970d7df3b42e95d91fd3ed1eb38736be"},{"args":[{"docs":[],"indexed":true,"label":"approver","type":{"displayName":["AccountId"],"type":2}},{"docs":[],"indexed":false,"label":"key","type":{"displayName":["PropKey"],"type":3}},{"docs":[],"indexed":false,"label":"result","type":{"displayName":["Result"],"type":24}}],"docs":[],"label":"Executed","module_path":"msig_court::msig_court","signature_topic":"0xdf68ed5f995c70f39b68dc231e132530b7fff5b2aa77715146774f41abb115c0"}],"lang_error":{"displayName":["ink","LangError"],"type":19},"messages":[{"args":[{"label":"proposal","type":{"displayName":["Proposal"],"type":7}}],"default":false,"docs":[],"label":"propose","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":20},"selector":"0xcb14b5b5"},{"args":[{"label":"key","type":{"displayName":["PropKey"],"type":3}}],"default":false,"docs":[],"label":"approve","mutates":true,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":26},"selector":"0x681266a0"},{"args":[],"default":false,"docs":[],"label":"get_threshold","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":28},"selector":"0x23122a1d"},{"args":[],"default":false,"docs":[],"label":"get_judges","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":29},"selector":"0x04eb4ea1"},{"args":[{"label":"key","type":{"displayName":["PropKey"],"type":3}}],"default":false,"docs":[],"label":"get_proposal","mutates":false,"payable":false,"returnType":{"displayName":["ink","MessageResult"],"type":30},"selector":"0xba4dc5ec"}]},"storage":{"root":{"layout":{"struct":{"fields":[{"layout":{"leaf":{"key":"0x00000000","ty":0}},"name":"threshold"},{"layout":{"leaf":{"key":"0x00000000","ty":1}},"name":"judges"},{"layout":{"root":{"layout":{"enum":{"dispatchKey":"0x8330565c","name":"Proposal","variants":{"0":{"fields":[{"layout":{"struct":{"fields":[{"layout":{"enum":{"dispatchKey":"0x8330565c","name":"LLMAccount","variants":{"0":{"fields":[{"layout":{"leaf":{"key":"0x8330565c","ty":2}},"name":"0"}],"name":"Liquid"},"1":{"fields":[{"layout":{"leaf":{"key":"0x8330565c","ty":2}},"name":"0"}],"name":"Locked"}}}},"name":"from"},{"layout":{"enum":{"dispatchKey":"0x8330565c","name":"LLMAccount","variants":{"0":{"fields":[{"layout":{"leaf":{"key":"0x8330565c","ty":2}},"name":"0"}],"name":"Liquid"},"1":{"fields":[{"layout":{"leaf":{"key":"0x8330565c","ty":2}},"name":"0"}],"name":"Locked"}}}},"name":"to"},{"layout":{"leaf":{"key":"0x8330565c","ty":5}},"name":"amount"}],"name":"LLMForceTransferArguments"}},"name":"0"}],"name":"LLMForceTransfer"},"1":{"fields":[{"layout":{"leaf":{"key":"0x8330565c","ty":0}},"name":"threshold"},{"layout":{"leaf":{"key":"0x8330565c","ty":1}},"name":"judges"}],"name":"SetGovernance"}}}},"root_key":"0x8330565c","ty":6}},"name":"proposals"},{"layout":{"root":{"layout":{"leaf":{"key":"0xd9d620ec","ty":1}},"root_key":"0xd9d620ec","ty":14}},"name":"approvals"}],"name":"MsigCourt"}},"root_key":"0x00000000","ty":17}},"types":[{"id":0,"type":{"def":{"primitive":"u32"}}},{"id":1,"type":{"def":{"sequence":{"type":2}}}},{"id":2,"type":{"def":{"composite":{"fields":[{"type":3,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","AccountId"]}},{"id":3,"type":{"def":{"array":{"len":32,"type":4}}}},{"id":4,"type":{"def":{"primitive":"u8"}}},{"id":5,"type":{"def":{"primitive":"u128"}}},{"id":6,"type":{"def":{"composite":{}},"params":[{"name":"K","type":3},{"name":"V","type":7},{"name":"KeyType","type":10}],"path":["ink_storage","lazy","mapping","Mapping"]}},{"id":7,"type":{"def":{"variant":{"variants":[{"fields":[{"type":8,"typeName":"LLMForceTransferArguments"}],"index":0,"name":"LLMForceTransfer"},{"fields":[{"name":"threshold","type":0,"typeName":"u32"},{"name":"judges","type":1,"typeName":"Vec"}],"index":1,"name":"SetGovernance"}]}},"path":["msig_court","msig_court","Proposal"]}},{"id":8,"type":{"def":{"composite":{"fields":[{"name":"from","type":9,"typeName":"LLMAccount"},{"name":"to","type":9,"typeName":"LLMAccount"},{"name":"amount","type":5,"typeName":"Balance"}]}},"path":["liberland_extension","types","LLMForceTransferArguments"]}},{"id":9,"type":{"def":{"variant":{"variants":[{"fields":[{"type":2,"typeName":"AccountId"}],"index":0,"name":"Liquid"},{"fields":[{"type":2,"typeName":"AccountId"}],"index":1,"name":"Locked"}]}},"params":[{"name":"AccountId","type":2}],"path":["liberland_extension","types","LLMAccount"]}},{"id":10,"type":{"def":{"composite":{}},"params":[{"name":"L","type":11},{"name":"R","type":12}],"path":["ink_storage_traits","impls","ResolverKey"]}},{"id":11,"type":{"def":{"composite":{}},"path":["ink_storage_traits","impls","AutoKey"]}},{"id":12,"type":{"def":{"composite":{}},"params":[{"name":"ParentKey","type":13}],"path":["ink_storage_traits","impls","ManualKey"]}},{"id":13,"type":{"def":{"tuple":[]}}},{"id":14,"type":{"def":{"composite":{}},"params":[{"name":"K","type":3},{"name":"V","type":1},{"name":"KeyType","type":15}],"path":["ink_storage","lazy","mapping","Mapping"]}},{"id":15,"type":{"def":{"composite":{}},"params":[{"name":"L","type":11},{"name":"R","type":16}],"path":["ink_storage_traits","impls","ResolverKey"]}},{"id":16,"type":{"def":{"composite":{}},"params":[{"name":"ParentKey","type":13}],"path":["ink_storage_traits","impls","ManualKey"]}},{"id":17,"type":{"def":{"composite":{"fields":[{"name":"threshold","type":0,"typeName":",>>::Type"},{"name":"judges","type":1,"typeName":" as::ink::storage::traits::AutoStorableHint<::\nink::storage::traits::ManualKey<1747827666u32, ()>,>>::Type"},{"name":"proposals","type":6,"typeName":" as::ink::storage::traits::\nAutoStorableHint<::ink::storage::traits::ManualKey<1549152387u32,\n()>,>>::Type"},{"name":"approvals","type":14,"typeName":"> as::ink::storage::traits::\nAutoStorableHint<::ink::storage::traits::ManualKey<3961575129u32,\n()>,>>::Type"}]}},"path":["msig_court","msig_court","MsigCourt"]}},{"id":18,"type":{"def":{"variant":{"variants":[{"fields":[{"type":13}],"index":0,"name":"Ok"},{"fields":[{"type":19}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":13},{"name":"E","type":19}],"path":["Result"]}},{"id":19,"type":{"def":{"variant":{"variants":[{"index":1,"name":"CouldNotReadInput"}]}},"path":["ink_primitives","LangError"]}},{"id":20,"type":{"def":{"variant":{"variants":[{"fields":[{"type":21}],"index":0,"name":"Ok"},{"fields":[{"type":19}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":21},{"name":"E","type":19}],"path":["Result"]}},{"id":21,"type":{"def":{"variant":{"variants":[{"fields":[{"type":22}],"index":0,"name":"Ok"},{"fields":[{"type":25}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":22},{"name":"E","type":25}],"path":["Result"]}},{"id":22,"type":{"def":{"tuple":[3,23]}}},{"id":23,"type":{"def":{"variant":{"variants":[{"index":0,"name":"PendingApprovals"},{"fields":[{"type":24,"typeName":"Result<()>"}],"index":1,"name":"Executed"}]}},"path":["msig_court","msig_court","ProposalState"]}},{"id":24,"type":{"def":{"variant":{"variants":[{"fields":[{"type":13}],"index":0,"name":"Ok"},{"fields":[{"type":25}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":13},{"name":"E","type":25}],"path":["Result"]}},{"id":25,"type":{"def":{"variant":{"variants":[{"index":0,"name":"Unauthorized"},{"index":1,"name":"AlreadyExists"},{"index":2,"name":"NotFound"},{"index":3,"name":"AlreadyApproved"},{"index":4,"name":"CallFailed"},{"index":5,"name":"InvalidParameters"}]}},"path":["msig_court","msig_court","Error"]}},{"id":26,"type":{"def":{"variant":{"variants":[{"fields":[{"type":27}],"index":0,"name":"Ok"},{"fields":[{"type":19}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":27},{"name":"E","type":19}],"path":["Result"]}},{"id":27,"type":{"def":{"variant":{"variants":[{"fields":[{"type":23}],"index":0,"name":"Ok"},{"fields":[{"type":25}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":23},{"name":"E","type":25}],"path":["Result"]}},{"id":28,"type":{"def":{"variant":{"variants":[{"fields":[{"type":0}],"index":0,"name":"Ok"},{"fields":[{"type":19}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":0},{"name":"E","type":19}],"path":["Result"]}},{"id":29,"type":{"def":{"variant":{"variants":[{"fields":[{"type":1}],"index":0,"name":"Ok"},{"fields":[{"type":19}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":1},{"name":"E","type":19}],"path":["Result"]}},{"id":30,"type":{"def":{"variant":{"variants":[{"fields":[{"type":31}],"index":0,"name":"Ok"},{"fields":[{"type":19}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":31},{"name":"E","type":19}],"path":["Result"]}},{"id":31,"type":{"def":{"variant":{"variants":[{"index":0,"name":"None"},{"fields":[{"type":32}],"index":1,"name":"Some"}]}},"params":[{"name":"T","type":32}],"path":["Option"]}},{"id":32,"type":{"def":{"tuple":[7,1]}}},{"id":33,"type":{"def":{"composite":{"fields":[{"type":3,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","types","Hash"]}},{"id":34,"type":{"def":{"primitive":"u64"}}},{"id":35,"type":{"def":{"variant":{}},"path":["liberland_extension","Liberland"]}}],"version":5} \ No newline at end of file diff --git a/contracts/msig_court/artifacts/msig_court.json b/contracts/msig_court/artifacts/msig_court.json new file mode 100644 index 000000000..048fc4e8e --- /dev/null +++ b/contracts/msig_court/artifacts/msig_court.json @@ -0,0 +1,1466 @@ +{ + "source": { + "hash": "0x579b9ae60d89317888b099d92d05fc66a62ef45115b34fe168a5810cb7db4bf0", + "language": "ink! 5.0.0", + "compiler": "rustc 1.78.0", + "build_info": { + "build_mode": "Release", + "cargo_contract_version": "4.1.1", + "rust_toolchain": "stable-x86_64-unknown-linux-gnu", + "wasm_opt_settings": { + "keep_debug_symbols": false, + "optimization_passes": "Z" + } + } + }, + "contract": { + "name": "msig_court", + "version": "0.1.0", + "authors": [ + "[your_name] <[your_email]>" + ] + }, + "image": "paritytech/contracts-verifiable:4.1.1", + "spec": { + "constructors": [ + { + "args": [ + { + "label": "threshold", + "type": { + "displayName": [ + "u32" + ], + "type": 0 + } + }, + { + "label": "judges", + "type": { + "displayName": [ + "Vec" + ], + "type": 1 + } + } + ], + "default": false, + "docs": [], + "label": "new", + "payable": false, + "returnType": { + "displayName": [ + "ink_primitives", + "ConstructorResult" + ], + "type": 18 + }, + "selector": "0x9bae9d5e" + } + ], + "docs": [], + "environment": { + "accountId": { + "displayName": [ + "AccountId" + ], + "type": 2 + }, + "balance": { + "displayName": [ + "Balance" + ], + "type": 5 + }, + "blockNumber": { + "displayName": [ + "BlockNumber" + ], + "type": 0 + }, + "chainExtension": { + "displayName": [ + "ChainExtension" + ], + "type": 35 + }, + "hash": { + "displayName": [ + "Hash" + ], + "type": 33 + }, + "maxEventTopics": 4, + "staticBufferSize": 16384, + "timestamp": { + "displayName": [ + "Timestamp" + ], + "type": 34 + } + }, + "events": [ + { + "args": [ + { + "docs": [], + "indexed": true, + "label": "proposer", + "type": { + "displayName": [ + "AccountId" + ], + "type": 2 + } + }, + { + "docs": [], + "indexed": false, + "label": "key", + "type": { + "displayName": [ + "PropKey" + ], + "type": 3 + } + }, + { + "docs": [], + "indexed": false, + "label": "proposal", + "type": { + "displayName": [ + "Proposal" + ], + "type": 7 + } + } + ], + "docs": [], + "label": "Proposed", + "module_path": "msig_court::msig_court", + "signature_topic": "0x543ee06c65ab4ef1af979218be448a430685daef48b40e5d6db0ede534bbb2c7" + }, + { + "args": [ + { + "docs": [], + "indexed": true, + "label": "approver", + "type": { + "displayName": [ + "AccountId" + ], + "type": 2 + } + }, + { + "docs": [], + "indexed": false, + "label": "key", + "type": { + "displayName": [ + "PropKey" + ], + "type": 3 + } + } + ], + "docs": [], + "label": "Approved", + "module_path": "msig_court::msig_court", + "signature_topic": "0x1f1cba7f32fff5da1287044afbd1ab48970d7df3b42e95d91fd3ed1eb38736be" + }, + { + "args": [ + { + "docs": [], + "indexed": true, + "label": "approver", + "type": { + "displayName": [ + "AccountId" + ], + "type": 2 + } + }, + { + "docs": [], + "indexed": false, + "label": "key", + "type": { + "displayName": [ + "PropKey" + ], + "type": 3 + } + }, + { + "docs": [], + "indexed": false, + "label": "result", + "type": { + "displayName": [ + "Result" + ], + "type": 24 + } + } + ], + "docs": [], + "label": "Executed", + "module_path": "msig_court::msig_court", + "signature_topic": "0xdf68ed5f995c70f39b68dc231e132530b7fff5b2aa77715146774f41abb115c0" + } + ], + "lang_error": { + "displayName": [ + "ink", + "LangError" + ], + "type": 19 + }, + "messages": [ + { + "args": [ + { + "label": "proposal", + "type": { + "displayName": [ + "Proposal" + ], + "type": 7 + } + } + ], + "default": false, + "docs": [], + "label": "propose", + "mutates": true, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 20 + }, + "selector": "0xcb14b5b5" + }, + { + "args": [ + { + "label": "key", + "type": { + "displayName": [ + "PropKey" + ], + "type": 3 + } + } + ], + "default": false, + "docs": [], + "label": "approve", + "mutates": true, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 26 + }, + "selector": "0x681266a0" + }, + { + "args": [], + "default": false, + "docs": [], + "label": "get_threshold", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 28 + }, + "selector": "0x23122a1d" + }, + { + "args": [], + "default": false, + "docs": [], + "label": "get_judges", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 29 + }, + "selector": "0x04eb4ea1" + }, + { + "args": [ + { + "label": "key", + "type": { + "displayName": [ + "PropKey" + ], + "type": 3 + } + } + ], + "default": false, + "docs": [], + "label": "get_proposal", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "ink", + "MessageResult" + ], + "type": 30 + }, + "selector": "0xba4dc5ec" + } + ] + }, + "storage": { + "root": { + "layout": { + "struct": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 0 + } + }, + "name": "threshold" + }, + { + "layout": { + "leaf": { + "key": "0x00000000", + "ty": 1 + } + }, + "name": "judges" + }, + { + "layout": { + "root": { + "layout": { + "enum": { + "dispatchKey": "0x8330565c", + "name": "Proposal", + "variants": { + "0": { + "fields": [ + { + "layout": { + "struct": { + "fields": [ + { + "layout": { + "enum": { + "dispatchKey": "0x8330565c", + "name": "LLMAccount", + "variants": { + "0": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x8330565c", + "ty": 2 + } + }, + "name": "0" + } + ], + "name": "Liquid" + }, + "1": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x8330565c", + "ty": 2 + } + }, + "name": "0" + } + ], + "name": "Locked" + } + } + } + }, + "name": "from" + }, + { + "layout": { + "enum": { + "dispatchKey": "0x8330565c", + "name": "LLMAccount", + "variants": { + "0": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x8330565c", + "ty": 2 + } + }, + "name": "0" + } + ], + "name": "Liquid" + }, + "1": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x8330565c", + "ty": 2 + } + }, + "name": "0" + } + ], + "name": "Locked" + } + } + } + }, + "name": "to" + }, + { + "layout": { + "leaf": { + "key": "0x8330565c", + "ty": 5 + } + }, + "name": "amount" + } + ], + "name": "LLMForceTransferArguments" + } + }, + "name": "0" + } + ], + "name": "LLMForceTransfer" + }, + "1": { + "fields": [ + { + "layout": { + "leaf": { + "key": "0x8330565c", + "ty": 0 + } + }, + "name": "threshold" + }, + { + "layout": { + "leaf": { + "key": "0x8330565c", + "ty": 1 + } + }, + "name": "judges" + } + ], + "name": "SetGovernance" + } + } + } + }, + "root_key": "0x8330565c", + "ty": 6 + } + }, + "name": "proposals" + }, + { + "layout": { + "root": { + "layout": { + "leaf": { + "key": "0xd9d620ec", + "ty": 1 + } + }, + "root_key": "0xd9d620ec", + "ty": 14 + } + }, + "name": "approvals" + } + ], + "name": "MsigCourt" + } + }, + "root_key": "0x00000000", + "ty": 17 + } + }, + "types": [ + { + "id": 0, + "type": { + "def": { + "primitive": "u32" + } + } + }, + { + "id": 1, + "type": { + "def": { + "sequence": { + "type": 2 + } + } + } + }, + { + "id": 2, + "type": { + "def": { + "composite": { + "fields": [ + { + "type": 3, + "typeName": "[u8; 32]" + } + ] + } + }, + "path": [ + "ink_primitives", + "types", + "AccountId" + ] + } + }, + { + "id": 3, + "type": { + "def": { + "array": { + "len": 32, + "type": 4 + } + } + } + }, + { + "id": 4, + "type": { + "def": { + "primitive": "u8" + } + } + }, + { + "id": 5, + "type": { + "def": { + "primitive": "u128" + } + } + }, + { + "id": 6, + "type": { + "def": { + "composite": {} + }, + "params": [ + { + "name": "K", + "type": 3 + }, + { + "name": "V", + "type": 7 + }, + { + "name": "KeyType", + "type": 10 + } + ], + "path": [ + "ink_storage", + "lazy", + "mapping", + "Mapping" + ] + } + }, + { + "id": 7, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 8, + "typeName": "LLMForceTransferArguments" + } + ], + "index": 0, + "name": "LLMForceTransfer" + }, + { + "fields": [ + { + "name": "threshold", + "type": 0, + "typeName": "u32" + }, + { + "name": "judges", + "type": 1, + "typeName": "Vec" + } + ], + "index": 1, + "name": "SetGovernance" + } + ] + } + }, + "path": [ + "msig_court", + "msig_court", + "Proposal" + ] + } + }, + { + "id": 8, + "type": { + "def": { + "composite": { + "fields": [ + { + "name": "from", + "type": 9, + "typeName": "LLMAccount" + }, + { + "name": "to", + "type": 9, + "typeName": "LLMAccount" + }, + { + "name": "amount", + "type": 5, + "typeName": "Balance" + } + ] + } + }, + "path": [ + "liberland_extension", + "types", + "LLMForceTransferArguments" + ] + } + }, + { + "id": 9, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 2, + "typeName": "AccountId" + } + ], + "index": 0, + "name": "Liquid" + }, + { + "fields": [ + { + "type": 2, + "typeName": "AccountId" + } + ], + "index": 1, + "name": "Locked" + } + ] + } + }, + "params": [ + { + "name": "AccountId", + "type": 2 + } + ], + "path": [ + "liberland_extension", + "types", + "LLMAccount" + ] + } + }, + { + "id": 10, + "type": { + "def": { + "composite": {} + }, + "params": [ + { + "name": "L", + "type": 11 + }, + { + "name": "R", + "type": 12 + } + ], + "path": [ + "ink_storage_traits", + "impls", + "ResolverKey" + ] + } + }, + { + "id": 11, + "type": { + "def": { + "composite": {} + }, + "path": [ + "ink_storage_traits", + "impls", + "AutoKey" + ] + } + }, + { + "id": 12, + "type": { + "def": { + "composite": {} + }, + "params": [ + { + "name": "ParentKey", + "type": 13 + } + ], + "path": [ + "ink_storage_traits", + "impls", + "ManualKey" + ] + } + }, + { + "id": 13, + "type": { + "def": { + "tuple": [] + } + } + }, + { + "id": 14, + "type": { + "def": { + "composite": {} + }, + "params": [ + { + "name": "K", + "type": 3 + }, + { + "name": "V", + "type": 1 + }, + { + "name": "KeyType", + "type": 15 + } + ], + "path": [ + "ink_storage", + "lazy", + "mapping", + "Mapping" + ] + } + }, + { + "id": 15, + "type": { + "def": { + "composite": {} + }, + "params": [ + { + "name": "L", + "type": 11 + }, + { + "name": "R", + "type": 16 + } + ], + "path": [ + "ink_storage_traits", + "impls", + "ResolverKey" + ] + } + }, + { + "id": 16, + "type": { + "def": { + "composite": {} + }, + "params": [ + { + "name": "ParentKey", + "type": 13 + } + ], + "path": [ + "ink_storage_traits", + "impls", + "ManualKey" + ] + } + }, + { + "id": 17, + "type": { + "def": { + "composite": { + "fields": [ + { + "name": "threshold", + "type": 0, + "typeName": ",>>::Type" + }, + { + "name": "judges", + "type": 1, + "typeName": " as::ink::storage::traits::AutoStorableHint<::\nink::storage::traits::ManualKey<1747827666u32, ()>,>>::Type" + }, + { + "name": "proposals", + "type": 6, + "typeName": " as::ink::storage::traits::\nAutoStorableHint<::ink::storage::traits::ManualKey<1549152387u32,\n()>,>>::Type" + }, + { + "name": "approvals", + "type": 14, + "typeName": "> as::ink::storage::traits::\nAutoStorableHint<::ink::storage::traits::ManualKey<3961575129u32,\n()>,>>::Type" + } + ] + } + }, + "path": [ + "msig_court", + "msig_court", + "MsigCourt" + ] + } + }, + { + "id": 18, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 13 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 19 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 13 + }, + { + "name": "E", + "type": 19 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 19, + "type": { + "def": { + "variant": { + "variants": [ + { + "index": 1, + "name": "CouldNotReadInput" + } + ] + } + }, + "path": [ + "ink_primitives", + "LangError" + ] + } + }, + { + "id": 20, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 21 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 19 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 21 + }, + { + "name": "E", + "type": 19 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 21, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 22 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 25 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 22 + }, + { + "name": "E", + "type": 25 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 22, + "type": { + "def": { + "tuple": [ + 3, + 23 + ] + } + } + }, + { + "id": 23, + "type": { + "def": { + "variant": { + "variants": [ + { + "index": 0, + "name": "PendingApprovals" + }, + { + "fields": [ + { + "type": 24, + "typeName": "Result<()>" + } + ], + "index": 1, + "name": "Executed" + } + ] + } + }, + "path": [ + "msig_court", + "msig_court", + "ProposalState" + ] + } + }, + { + "id": 24, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 13 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 25 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 13 + }, + { + "name": "E", + "type": 25 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 25, + "type": { + "def": { + "variant": { + "variants": [ + { + "index": 0, + "name": "Unauthorized" + }, + { + "index": 1, + "name": "AlreadyExists" + }, + { + "index": 2, + "name": "NotFound" + }, + { + "index": 3, + "name": "AlreadyApproved" + }, + { + "index": 4, + "name": "CallFailed" + }, + { + "index": 5, + "name": "InvalidParameters" + } + ] + } + }, + "path": [ + "msig_court", + "msig_court", + "Error" + ] + } + }, + { + "id": 26, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 27 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 19 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 27 + }, + { + "name": "E", + "type": 19 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 27, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 23 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 25 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 23 + }, + { + "name": "E", + "type": 25 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 28, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 0 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 19 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 0 + }, + { + "name": "E", + "type": 19 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 29, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 1 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 19 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 1 + }, + { + "name": "E", + "type": 19 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 30, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 31 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 19 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 31 + }, + { + "name": "E", + "type": 19 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 31, + "type": { + "def": { + "variant": { + "variants": [ + { + "index": 0, + "name": "None" + }, + { + "fields": [ + { + "type": 32 + } + ], + "index": 1, + "name": "Some" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 32 + } + ], + "path": [ + "Option" + ] + } + }, + { + "id": 32, + "type": { + "def": { + "tuple": [ + 7, + 1 + ] + } + } + }, + { + "id": 33, + "type": { + "def": { + "composite": { + "fields": [ + { + "type": 3, + "typeName": "[u8; 32]" + } + ] + } + }, + "path": [ + "ink_primitives", + "types", + "Hash" + ] + } + }, + { + "id": 34, + "type": { + "def": { + "primitive": "u64" + } + } + }, + { + "id": 35, + "type": { + "def": { + "variant": {} + }, + "path": [ + "liberland_extension", + "Liberland" + ] + } + } + ], + "version": 5 +} \ No newline at end of file diff --git a/contracts/msig_court/artifacts/msig_court.wasm b/contracts/msig_court/artifacts/msig_court.wasm new file mode 100644 index 000000000..0067a91f1 Binary files /dev/null and b/contracts/msig_court/artifacts/msig_court.wasm differ diff --git a/contracts/rust-toolchain.toml b/contracts/rust-toolchain.toml deleted file mode 100644 index 039106079..000000000 --- a/contracts/rust-toolchain.toml +++ /dev/null @@ -1,5 +0,0 @@ -[toolchain] -channel = "1.78.0" -components = [ "rustfmt" ] -targets = [ "wasm32-unknown-unknown" ] -profile = "minimal" diff --git a/contracts/wrapped_lld/Cargo.toml b/contracts/wrapped_lld/Cargo.toml index 9789e7880..47187e192 100644 --- a/contracts/wrapped_lld/Cargo.toml +++ b/contracts/wrapped_lld/Cargo.toml @@ -10,6 +10,8 @@ readme = "README.md" description = "Smart contract for LLD coin wrapped as a PSP22 token" exclude = [ ".github/*" ] +[workspace] + [dependencies] ink = { version = "=4.3.0", default-features = false } diff --git a/contracts/wrapped_lld/README.md b/contracts/wrapped_lld/README.md index 018f1a306..7ea3d399a 100644 --- a/contracts/wrapped_lld/README.md +++ b/contracts/wrapped_lld/README.md @@ -10,4 +10,10 @@ Contract is deployed on: # Attribution -This contract was forked from [wAZERO](https://github.com/Cardinal-Cryptography/wAZERO) by Cardinal Cryptography. \ No newline at end of file +This contract was forked from [wAZERO](https://github.com/Cardinal-Cryptography/wAZERO) by Cardinal Cryptography. + +# Verifying integrity + +``` +cargo contract verify --contract=./artifacts/wrapped_lld.contract +``` \ No newline at end of file diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 039106079..6d7617d1a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] channel = "1.78.0" -components = [ "rustfmt" ] +components = [ "rustfmt", "clippy", "rust-src" ] targets = [ "wasm32-unknown-unknown" ] profile = "minimal"