diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2c4c849..cda30a3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,14 +12,14 @@ yarn install ### Installing Anchor CLI -Use `avm` to install the Anchor CLI. All programs currently use Anchor version `0.30.0`. +Use `avm` to install the Anchor CLI. All programs currently use Anchor version `0.30.1`. ```bash -cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.0 avm --locked +cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 avm --locked avm install latest avm use latest anchor --version -# Should output: anchor-cli 0.30.0 +# Should output: anchor-cli 0.30.1 ``` ### Available Commands diff --git a/Cargo.lock b/Cargo.lock index e8da40c..4094f2f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -44,7 +44,7 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" dependencies = [ - "getrandom 0.2.14", + "getrandom 0.2.15", "once_cell", "version_check", ] @@ -72,8 +72,9 @@ dependencies = [ [[package]] name = "anchor-attribute-access-control" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47fe28365b33e8334dd70ae2f34a43892363012fe239cf37d2ee91693575b1f8" dependencies = [ "anchor-syn", "proc-macro2", @@ -83,8 +84,9 @@ dependencies = [ [[package]] name = "anchor-attribute-account" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c288d496168268d198d9b53ee9f4f9d260a55ba4df9877ea1d4486ad6109e0f" dependencies = [ "anchor-syn", "bs58 0.5.1", @@ -95,8 +97,9 @@ dependencies = [ [[package]] name = "anchor-attribute-constant" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49b77b6948d0eeaaa129ce79eea5bbbb9937375a9241d909ca8fb9e006bb6e90" dependencies = [ "anchor-syn", "quote", @@ -105,8 +108,9 @@ dependencies = [ [[package]] name = "anchor-attribute-error" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d20bb569c5a557c86101b944721d865e1fd0a4c67c381d31a44a84f07f84828" dependencies = [ "anchor-syn", "quote", @@ -115,8 +119,9 @@ dependencies = [ [[package]] name = "anchor-attribute-event" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cebd8d0671a3a9dc3160c48598d652c34c77de6be4d44345b8b514323284d57" dependencies = [ "anchor-syn", "proc-macro2", @@ -126,8 +131,9 @@ dependencies = [ [[package]] name = "anchor-attribute-program" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efb2a5eb0860e661ab31aff7bb5e0288357b176380e985bade4ccb395981b42d" dependencies = [ "anchor-lang-idl", "anchor-syn", @@ -142,8 +148,9 @@ dependencies = [ [[package]] name = "anchor-derive-accounts" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04368b5abef4266250ca8d1d12f4dff860242681e4ec22b885dcfe354fd35aa1" dependencies = [ "anchor-syn", "quote", @@ -152,11 +159,12 @@ dependencies = [ [[package]] name = "anchor-derive-serde" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0bb0e0911ad4a70cab880cdd6287fe1e880a1a9d8e4e6defa8e9044b9796a6c" dependencies = [ "anchor-syn", - "borsh-derive-internal 0.10.3", + "borsh-derive-internal 0.9.3", "proc-macro2", "quote", "syn 1.0.109", @@ -164,8 +172,9 @@ dependencies = [ [[package]] name = "anchor-derive-space" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ef415ff156dc82e9ecb943189b0cb241b3a6bfc26a180234dc21bd3ef3ce0cb" dependencies = [ "proc-macro2", "quote", @@ -174,8 +183,9 @@ dependencies = [ [[package]] name = "anchor-lang" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6620c9486d9d36a4389cab5e37dc34a42ed0bfaa62e6a75a2999ce98f8f2e373" dependencies = [ "anchor-attribute-access-control", "anchor-attribute-account", @@ -190,29 +200,43 @@ dependencies = [ "arrayref", "base64 0.21.7", "bincode", - "borsh 0.10.3", + "borsh 0.9.3", "bytemuck", - "getrandom 0.2.14", + "getrandom 0.2.15", "solana-program", "thiserror", ] [[package]] name = "anchor-lang-idl" -version = "0.1.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31cf97b4e6f7d6144a05e435660fcf757dbc3446d38d0e2b851d11ed13625bba" dependencies = [ - "anchor-syn", + "anchor-lang-idl-spec", "anyhow", + "heck", "regex", "serde", "serde_json", + "sha2 0.10.8", +] + +[[package]] +name = "anchor-lang-idl-spec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bdf143115440fe621bdac3a29a1f7472e09f6cd82b2aa569429a0c13f103838" +dependencies = [ + "anyhow", + "serde", ] [[package]] name = "anchor-spl" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04bd077c34449319a1e4e0bc21cea572960c9ae0d0fefda0dd7c52fcc3c647a3" dependencies = [ "anchor-lang", "spl-associated-token-account", @@ -225,8 +249,9 @@ dependencies = [ [[package]] name = "anchor-syn" -version = "0.30.0" -source = "git+https://github.com/coral-xyz/anchor#bcf3862ef758755e4a93bc381227bc97fe5afbf9" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f99daacb53b55cfd37ce14d6c9905929721137fd4c67bbab44a19802aecb622f" dependencies = [ "anyhow", "bs58 0.5.1", @@ -243,9 +268,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.82" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519" +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "ark-bn254" @@ -395,9 +420,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "base64" @@ -422,15 +447,9 @@ dependencies = [ [[package]] name = "bitflags" -version = "1.3.2" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - -[[package]] -name = "bitflags" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" dependencies = [ "serde", ] @@ -500,16 +519,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4114279215a005bc675e386011e594e1d9b800918cea18fcadadcce864a2046b" dependencies = [ "borsh-derive 0.10.3", - "hashbrown 0.13.2", + "hashbrown 0.11.2", ] [[package]] name = "borsh" -version = "1.4.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0901fc8eb0aca4c83be0106d6f2db17d86a08dfc2c25f0e84464bf381158add6" +checksum = "a6362ed55def622cddc70a4746a68554d7b687713770de539e59a739b249f8ed" dependencies = [ - "borsh-derive 1.4.0", + "borsh-derive 1.5.1", "cfg_aliases", ] @@ -541,15 +560,15 @@ dependencies = [ [[package]] name = "borsh-derive" -version = "1.4.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51670c3aa053938b0ee3bd67c3817e471e626151131b934038e83c5bf8de48f5" +checksum = "c3ef8005764f53cd4dca619f5bf64cafd4664dada50ece25e4d81de54c80cc0b" dependencies = [ "once_cell", "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", "syn_derive", ] @@ -630,22 +649,22 @@ dependencies = [ [[package]] name = "bytemuck" -version = "1.15.0" +version = "1.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d6d68c57235a3a081186990eca2867354726650f42f7516ca50c28d6281fd15" +checksum = "b236fc92302c97ed75b38da1f4917b5cdda4984745740f153a5d3059e48d725e" dependencies = [ "bytemuck_derive", ] [[package]] name = "bytemuck_derive" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4da9a32f3fed317401fa3c862968128267c3106685286e15d5aaa3d7389c2f60" +checksum = "1ee891b04274a59bd38b412188e24b849617b2e45a0fd8d057deb63e7403761b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -661,17 +680,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a98356df42a2eb1bd8f1793ae4ee4de48e384dd974ce5eac8eee802edb7492be" dependencies = [ "serde", - "toml 0.8.12", + "toml 0.8.14", ] [[package]] name = "cc" -version = "1.0.94" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17f6e324229dc011159fcc089755d1e2e216a90d43a7dea6853ca740b84f35e7" +checksum = "96c51067fd44124faa7f870b4b1c969379ad32b2ba805aa959430ceaa384f695" dependencies = [ "jobserver", "libc", + "once_cell", ] [[package]] @@ -682,9 +702,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cfg_aliases" -version = "0.1.1" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" @@ -760,9 +780,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.19" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] name = "crunchy" @@ -815,9 +835,9 @@ dependencies = [ [[package]] name = "darling" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54e36fcd13ed84ffdfda6f5be89b31287cbb80c439841fe69e04841435464391" +checksum = "83b2eb4d90d12bdda5ed17de686c2acb4c57914f8f921b8da7e112b5a36f3fe1" dependencies = [ "darling_core", "darling_macro", @@ -825,27 +845,27 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c2cf1c23a687a1feeb728783b993c4e1ad83d99f351801977dd809b48d0a70f" +checksum = "622687fe0bac72a04e5599029151f5796111b90f1baaa9b544d807a5e31cd120" dependencies = [ "fnv", "ident_case", "proc-macro2", "quote", "strsim", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] name = "darling_macro" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a668eda54683121533a393014d8692171709ff57a7d61f187b6e782719f8933f" +checksum = "733cabb43482b1a1b53eee8583c2b9e8684d592215ea83efd305dd31bc2f0178" dependencies = [ "darling_core", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -922,9 +942,9 @@ dependencies = [ [[package]] name = "either" -version = "1.11.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "env_logger" @@ -983,9 +1003,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "js-sys", @@ -1014,9 +1034,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.14.3" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" [[package]] name = "heck" @@ -1101,7 +1121,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", - "hashbrown 0.14.3", + "hashbrown 0.14.5", ] [[package]] @@ -1121,9 +1141,9 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jobserver" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "685a7d121ee3f65ae4fddd72b25a04bb36b6af81bc0828f7d5434c0fe60fa3a2" +checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" dependencies = [ "libc", ] @@ -1148,15 +1168,15 @@ dependencies = [ [[package]] name = "lazy_static" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.153" +version = "0.2.155" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "libsecp256k1" @@ -1220,9 +1240,9 @@ dependencies = [ [[package]] name = "lock_api" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ "autocfg", "scopeguard", @@ -1236,9 +1256,9 @@ checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "memchr" -version = "2.7.2" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "memmap2" @@ -1272,11 +1292,10 @@ dependencies = [ [[package]] name = "num-bigint" -version = "0.4.4" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" +checksum = "c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7" dependencies = [ - "autocfg", "num-integer", "num-traits", ] @@ -1289,7 +1308,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" dependencies = [ "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -1303,9 +1322,9 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.18" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ "autocfg", ] @@ -1328,7 +1347,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -1345,9 +1364,9 @@ checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" [[package]] name = "parking_lot" -version = "0.12.1" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ "lock_api", "parking_lot_core", @@ -1355,9 +1374,9 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", @@ -1368,9 +1387,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "pbkdf2" @@ -1457,9 +1476,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.81" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1597b0c024618f09a9c3b8655b7e430397a36d23fdafec26d6965e9eec3eba" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ "unicode-ident", ] @@ -1481,7 +1500,7 @@ checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -1552,7 +1571,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.14", + "getrandom 0.2.15", ] [[package]] @@ -1595,18 +1614,18 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.4.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +checksum = "c82cf8cff14456045f55ec4241383baeff27af886adb72ffb2162f99911de0fd" dependencies = [ - "bitflags 1.3.2", + "bitflags", ] [[package]] name = "regex" -version = "1.10.4" +version = "1.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" +checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" dependencies = [ "aho-corasick", "memchr", @@ -1616,9 +1635,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" +checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" dependencies = [ "aho-corasick", "memchr", @@ -1627,9 +1646,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" +checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "rustc-hash" @@ -1648,15 +1667,15 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.15" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47" +checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "ryu" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "scopeguard" @@ -1666,9 +1685,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "semver" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" @@ -1681,9 +1700,9 @@ dependencies = [ [[package]] name = "serde_bytes" -version = "0.11.14" +version = "0.11.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" +checksum = "387cc504cb06bb40a96c8e04e951fe01854cf6bc921053c954e4a606d9675c6a" dependencies = [ "serde", ] @@ -1696,14 +1715,14 @@ checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] name = "serde_json" -version = "1.0.116" +version = "1.0.118" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e17db7126d17feb94eb3fad46bf1a96b034e8aacbc2e775fe81505f8b0b2813" +checksum = "d947f6b3163d8857ea16c4fa0dd4840d52f3041039a85decd46867eb1abef2e4" dependencies = [ "itoa", "ryu", @@ -1712,9 +1731,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.5" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" +checksum = "79e674e01f999af37c49f70a6ede167a8a60b2503e56c5599532a65baa5969a0" dependencies = [ "serde", ] @@ -1738,7 +1757,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -1817,9 +1836,9 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "solana-frozen-abi" -version = "1.18.11" +version = "1.18.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b8177685ab2bc8cc8b3bf63aa1eaa0580d5af850ecefac323ca1c2473085d77" +checksum = "4867f66e9527fa44451c861c1dc6d9b2a7c7a668d7c6a297cdefbe39f4395b33" dependencies = [ "block-buffer 0.10.4", "bs58 0.4.0", @@ -1842,21 +1861,21 @@ dependencies = [ [[package]] name = "solana-frozen-abi-macro" -version = "1.18.11" +version = "1.18.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a68241cad17b74c6034a68ba4890632d409a2c886e7bead9c1e1432befdb7c9" +checksum = "168f24d97347b85f05192df58d6be3e3047a4aadc4001bc1b9e711a5ec878eea" dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] name = "solana-logger" -version = "1.18.11" +version = "1.18.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea560989ef67ba4a1a0fd62a248721f1aa5bac8fa5ede9ccf4fe9ee484ccadf" +checksum = "a0511082fc62f2d086520fff5aa1917c389d8c840930c08ad255ae05952c08a2" dependencies = [ "env_logger", "lazy_static", @@ -1865,9 +1884,9 @@ dependencies = [ [[package]] name = "solana-program" -version = "1.18.11" +version = "1.18.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bddf573103c890b4ab8f9a6641d4f969d4148bce9a451c263f4a62afa949fae" +checksum = "2bc5a636dc75e5c25651e34f7a36afc9ae60d38166687c5b0375abb580ac81a2" dependencies = [ "ark-bn254", "ark-ec", @@ -1875,11 +1894,11 @@ dependencies = [ "ark-serialize", "base64 0.21.7", "bincode", - "bitflags 2.5.0", + "bitflags", "blake3", "borsh 0.10.3", "borsh 0.9.3", - "borsh 1.4.0", + "borsh 1.5.1", "bs58 0.4.0", "bv", "bytemuck", @@ -1887,7 +1906,7 @@ dependencies = [ "console_error_panic_hook", "console_log", "curve25519-dalek", - "getrandom 0.2.14", + "getrandom 0.2.15", "itertools", "js-sys", "lazy_static", @@ -1920,15 +1939,15 @@ dependencies = [ [[package]] name = "solana-sdk" -version = "1.18.11" +version = "1.18.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08b24b06fa176209ddb2a2f8172a00b07e8a3b18229fbfc49f1eb3ce6ad11ff1" +checksum = "df43d3a1e1637397ab43cbc216a5a8f977ec8a3cc3f3ae8c3851c83a3255dbcf" dependencies = [ "assert_matches", "base64 0.21.7", "bincode", - "bitflags 2.5.0", - "borsh 1.4.0", + "bitflags", + "borsh 1.5.1", "bs58 0.4.0", "bytemuck", "byteorder", @@ -1975,15 +1994,15 @@ dependencies = [ [[package]] name = "solana-sdk-macro" -version = "1.18.11" +version = "1.18.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "869483c05f18d37d4d95a08d9e05e00a4f76a8c8349aeedeee9ba2d013cbacde" +checksum = "86c76414183a325038ff020b22c07d1e9d2da0703ddc0244acfed37ee2921d96" dependencies = [ "bs58 0.4.0", "proc-macro2", "quote", "rustversion", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -1994,9 +2013,9 @@ checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" [[package]] name = "solana-zk-token-sdk" -version = "1.18.11" +version = "1.18.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "459c27f7b954798677d8243aa53b8080cfb314ecfecbf8889a5a65c91ad11fee" +checksum = "513407f88394e437b4ff5aad892bc5bf51a655ae2401e6e63549734d3695c46f" dependencies = [ "aes-gcm-siv", "base64 0.21.7", @@ -2028,7 +2047,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2e688554bac5838217ffd1fab7845c573ff106b6336bf7d290db7c98d5a8efd" dependencies = [ "assert_matches", - "borsh 1.4.0", + "borsh 1.5.1", "num-derive", "num-traits", "solana-program", @@ -2067,7 +2086,7 @@ checksum = "07fd7858fc4ff8fb0e34090e41d7eb06a823e1057945c26d480bfc21d2338a93" dependencies = [ "quote", "spl-discriminator-syn 0.1.2", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -2078,7 +2097,7 @@ checksum = "d9e8418ea6269dcfb01c712f0444d2c75542c04448b480e87de59d2865edc750" dependencies = [ "quote", "spl-discriminator-syn 0.2.0", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -2090,7 +2109,7 @@ dependencies = [ "proc-macro2", "quote", "sha2 0.10.8", - "syn 2.0.59", + "syn 2.0.68", "thiserror", ] @@ -2103,7 +2122,7 @@ dependencies = [ "proc-macro2", "quote", "sha2 0.10.8", - "syn 2.0.59", + "syn 2.0.68", "thiserror", ] @@ -2134,11 +2153,11 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "046ce669f48cf2eca1ec518916d8725596bfb655beb1c74374cf71dc6cb773c9" dependencies = [ - "borsh 1.4.0", + "borsh 1.5.1", "bytemuck", "solana-program", "solana-zk-token-sdk", - "spl-program-error 0.4.0", + "spl-program-error 0.4.1", ] [[package]] @@ -2156,14 +2175,14 @@ dependencies = [ [[package]] name = "spl-program-error" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5528f4dfa2a905012007999526955c79162c09668c69ad3c3f2ddfbd0b2984a4" +checksum = "49065093ea91f57b9b2bd81493ff705e2ad4e64507a07dbc02b085778e02770e" dependencies = [ "num-derive", "num-traits", "solana-program", - "spl-program-error-derive 0.4.0", + "spl-program-error-derive 0.4.1", "thiserror", ] @@ -2176,19 +2195,19 @@ dependencies = [ "proc-macro2", "quote", "sha2 0.10.8", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] name = "spl-program-error-derive" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "641aa3116b1d58481e921b5d41dafc26a67bd488cb288330dbde004641764dd4" +checksum = "e6d375dd76c517836353e093c2dbb490938ff72821ab568b545fd30ab3256b3e" dependencies = [ "proc-macro2", "quote", "sha2 0.10.8", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -2229,7 +2248,7 @@ dependencies = [ "solana-program", "spl-discriminator 0.2.2", "spl-pod 0.2.2", - "spl-program-error 0.4.0", + "spl-program-error 0.4.1", "spl-type-length-value 0.4.3", ] @@ -2282,7 +2301,7 @@ dependencies = [ "solana-program", "spl-discriminator 0.2.2", "spl-pod 0.2.2", - "spl-program-error 0.4.0", + "spl-program-error 0.4.1", ] [[package]] @@ -2291,11 +2310,11 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "30179c47e93625680dabb620c6e7931bd12d62af390f447bc7beb4a3a9b5feee" dependencies = [ - "borsh 1.4.0", + "borsh 1.5.1", "solana-program", "spl-discriminator 0.2.2", "spl-pod 0.2.2", - "spl-program-error 0.4.0", + "spl-program-error 0.4.1", "spl-type-length-value 0.4.3", ] @@ -2326,7 +2345,7 @@ dependencies = [ "solana-program", "spl-discriminator 0.2.2", "spl-pod 0.2.2", - "spl-program-error 0.4.0", + "spl-program-error 0.4.1", "spl-tlv-account-resolution 0.6.3", "spl-type-length-value 0.4.3", ] @@ -2354,14 +2373,14 @@ dependencies = [ "solana-program", "spl-discriminator 0.2.2", "spl-pod 0.2.2", - "spl-program-error 0.4.0", + "spl-program-error 0.4.1", ] [[package]] name = "strsim" -version = "0.10.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "subtle" @@ -2382,9 +2401,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.59" +version = "2.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a6531ffc7b071655e4ce2e04bd464c4830bb585a61cabb96cf808f05172615a" +checksum = "901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9" dependencies = [ "proc-macro2", "quote", @@ -2400,7 +2419,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -2414,22 +2433,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.58" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297" +checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.58" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" +checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" dependencies = [ "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -2453,9 +2472,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +checksum = "c55115c6fbe2d2bef26eb09ad74bde02d8255476fc0c7b515ef09fbb35742d82" dependencies = [ "tinyvec_macros", ] @@ -2477,21 +2496,21 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.12" +version = "0.8.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3" +checksum = "6f49eb2ab21d2f26bd6db7bf383edc527a7ebaee412d17af4d40fdccd442f335" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.9", + "toml_edit 0.22.14", ] [[package]] name = "toml_datetime" -version = "0.6.5" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" +checksum = "4badfd56924ae69bcc9039335b2e017639ce3f9b001c393c1b2d1ef846ce2cbf" dependencies = [ "serde", ] @@ -2509,15 +2528,15 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.22.9" +version = "0.22.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4" +checksum = "f21c7aaf97f1bd9ca9d4f9e73b0a6c74bd5afef56f2bc931943a6e1c37e04e38" dependencies = [ "indexmap", "serde", "serde_spanned", "toml_datetime", - "winnow 0.6.6", + "winnow 0.6.13", ] [[package]] @@ -2606,7 +2625,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", "wasm-bindgen-shared", ] @@ -2628,7 +2647,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -2712,11 +2731,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" +checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" dependencies = [ - "winapi", + "windows-sys", ] [[package]] @@ -2725,15 +2744,25 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[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.48.5" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +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", @@ -2742,45 +2771,51 @@ dependencies = [ [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.5" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" +checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" [[package]] name = "windows_aarch64_msvc" -version = "0.48.5" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" +checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" [[package]] name = "windows_i686_gnu" -version = "0.48.5" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" +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.48.5" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" +checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" [[package]] name = "windows_x86_64_gnu" -version = "0.48.5" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" +checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.5" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" +checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" [[package]] name = "windows_x86_64_msvc" -version = "0.48.5" +version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" [[package]] name = "winnow" @@ -2793,31 +2828,31 @@ dependencies = [ [[package]] name = "winnow" -version = "0.6.6" +version = "0.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0c976aaaa0e1f90dbb21e9587cdaf1d9679a1cde8875c0d6bd83ab96a208352" +checksum = "59b5e5f6c299a3c7890b876a2a587f3115162487e704907d9b6cd29473052ba1" dependencies = [ "memchr", ] [[package]] name = "zerocopy" -version = "0.7.32" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" +checksum = "ae87e3fcd617500e5d106f0380cf7b77f3c6092aae37191433159dda23cfb087" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.32" +version = "0.7.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" +checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] [[package]] @@ -2837,5 +2872,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.59", + "syn 2.0.68", ] diff --git a/Cargo.toml b/Cargo.toml index e2ca419..62fad78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,12 +3,12 @@ members = ["programs/*"] resolver = "2" [workspace.dependencies] -anchor-lang = { git = "https://github.com/coral-xyz/anchor", sha = "827c986618358c177a50c22ff8eb08bae6943784", features = [ +anchor-lang = { version = "0.30.1", features = [ "init-if-needed", "interface-instructions", "allow-missing-optionals", ] } -anchor-spl = { git = "https://github.com/coral-xyz/anchor", sha = "827c986618358c177a50c22ff8eb08bae6943784" } +anchor-spl = { version = "0.30.1" } wen_new_standard = { path = "programs/wen_new_standard", features = ["cpi"] } wen_royalty_distribution = { path = "programs/wen_royalty_distribution", features = [ "cpi", diff --git a/clients/rust/wen_new_standard/Cargo.lock b/clients/rust/wen_new_standard/Cargo.lock index 6f3425e..95b6253 100644 --- a/clients/rust/wen_new_standard/Cargo.lock +++ b/clients/rust/wen_new_standard/Cargo.lock @@ -119,9 +119,9 @@ dependencies = [ [[package]] name = "anchor-attribute-access-control" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd7368e171b3a317885dc08ec0f74eed9d0ad6c726cc819593aed81440dca926" +checksum = "47fe28365b33e8334dd70ae2f34a43892363012fe239cf37d2ee91693575b1f8" dependencies = [ "anchor-syn", "proc-macro2", @@ -131,9 +131,9 @@ dependencies = [ [[package]] name = "anchor-attribute-account" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f527df85a8cba3f2bea04e46ed71b66e525ea378c7fec538aa205f4520b73e31" +checksum = "3c288d496168268d198d9b53ee9f4f9d260a55ba4df9877ea1d4486ad6109e0f" dependencies = [ "anchor-syn", "bs58 0.5.1", @@ -144,9 +144,9 @@ dependencies = [ [[package]] name = "anchor-attribute-constant" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eb1dc1845cf8636c2e046a274ca074dabd3884ac8ed11cc4ed64b7e8ef5a318" +checksum = "49b77b6948d0eeaaa129ce79eea5bbbb9937375a9241d909ca8fb9e006bb6e90" dependencies = [ "anchor-syn", "quote", @@ -155,9 +155,9 @@ dependencies = [ [[package]] name = "anchor-attribute-error" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f382e41514c59a77ffa7bb1a47df9a0359564a749b6934485c742c11962e540" +checksum = "4d20bb569c5a557c86101b944721d865e1fd0a4c67c381d31a44a84f07f84828" dependencies = [ "anchor-syn", "quote", @@ -166,9 +166,9 @@ dependencies = [ [[package]] name = "anchor-attribute-event" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "473a122aeed3f6b666438236338d2ef7833ee5fdc5688e1baa80185d61088a53" +checksum = "4cebd8d0671a3a9dc3160c48598d652c34c77de6be4d44345b8b514323284d57" dependencies = [ "anchor-syn", "proc-macro2", @@ -178,9 +178,9 @@ dependencies = [ [[package]] name = "anchor-attribute-program" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f88c7ffe2eb40aeac43ffd0d74a6671581158aedfaa0552330a2ef92fa5c889" +checksum = "efb2a5eb0860e661ab31aff7bb5e0288357b176380e985bade4ccb395981b42d" dependencies = [ "anchor-lang-idl", "anchor-syn", @@ -195,9 +195,9 @@ dependencies = [ [[package]] name = "anchor-derive-accounts" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed9b97c99dcec135aae0ff908c14bcfcd3e78cfc16a0c6f245135038f0e6d390" +checksum = "04368b5abef4266250ca8d1d12f4dff860242681e4ec22b885dcfe354fd35aa1" dependencies = [ "anchor-syn", "quote", @@ -206,9 +206,9 @@ dependencies = [ [[package]] name = "anchor-derive-serde" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbece98f6ad9c37070edc0841326c9623a249346cd74f433e7cef69b14f7f31d" +checksum = "e0bb0e0911ad4a70cab880cdd6287fe1e880a1a9d8e4e6defa8e9044b9796a6c" dependencies = [ "anchor-syn", "borsh-derive-internal 0.10.3", @@ -219,9 +219,9 @@ dependencies = [ [[package]] name = "anchor-derive-space" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8badbe2648bc99a85ee05a7a5f9512e5e2af8ffac71476a69350cb278057ac53" +checksum = "5ef415ff156dc82e9ecb943189b0cb241b3a6bfc26a180234dc21bd3ef3ce0cb" dependencies = [ "proc-macro2", "quote", @@ -230,9 +230,9 @@ dependencies = [ [[package]] name = "anchor-lang" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e41feb9c1cd9f4b0fad1c004fc8f289183f3ce27e9db38fa6e434470c716fb1e" +checksum = "6620c9486d9d36a4389cab5e37dc34a42ed0bfaa62e6a75a2999ce98f8f2e373" dependencies = [ "anchor-attribute-access-control", "anchor-attribute-account", @@ -255,20 +255,33 @@ dependencies = [ [[package]] name = "anchor-lang-idl" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b29da81eae478b1bb846749b06b8a2cb9c6f9ed26ca793b0c916793fdf36adab" +checksum = "31cf97b4e6f7d6144a05e435660fcf757dbc3446d38d0e2b851d11ed13625bba" dependencies = [ + "anchor-lang-idl-spec", "anyhow", + "heck 0.3.3", "serde", "serde_json", + "sha2 0.10.8", +] + +[[package]] +name = "anchor-lang-idl-spec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bdf143115440fe621bdac3a29a1f7472e09f6cd82b2aa569429a0c13f103838" +dependencies = [ + "anyhow", + "serde", ] [[package]] name = "anchor-syn" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac53f2378bc08e89e20c2b893c01986ffd34cfbc69a17e35bd6f754753e9fdad" +checksum = "f99daacb53b55cfd37ce14d6c9905929721137fd4c67bbab44a19802aecb622f" dependencies = [ "anyhow", "bs58 0.5.1", diff --git a/clients/rust/wen_new_standard/Cargo.toml b/clients/rust/wen_new_standard/Cargo.toml index 87d86a6..1daf842 100644 --- a/clients/rust/wen_new_standard/Cargo.toml +++ b/clients/rust/wen_new_standard/Cargo.toml @@ -20,7 +20,7 @@ test-sbf = [] serde = ["dep:serde", "dep:serde_with"] [dependencies] -anchor-lang = { version = "0.30.0", optional = true } +anchor-lang = { version = "0.30.1", optional = true } borsh = "^0.10" num-derive = "^0.3" num-traits = "^0.2" diff --git a/copy-idls.sh b/copy-idls.sh new file mode 100755 index 0000000..7bfca68 --- /dev/null +++ b/copy-idls.sh @@ -0,0 +1,6 @@ +# Only on first time +# mkdir ./idls +# cp ./target/idl/*.json ./idls + +anchor build +cp ./target/idl/*.json ./idls \ No newline at end of file diff --git a/idls/wen_new_standard.json b/idls/wen_new_standard.json new file mode 100644 index 0000000..cdc8ff0 --- /dev/null +++ b/idls/wen_new_standard.json @@ -0,0 +1,2071 @@ +{ + "address": "wns1gDLt8fgLcGhWi5MqAqgXpwEP1JftKE9eZnXS1HM", + "metadata": { + "name": "wen_new_standard", + "version": "0.4.1-alpha", + "spec": "0.1.0", + "description": "An open and composable NFT standard on Solana." + }, + "instructions": [ + { + "name": "add_metadata", + "docs": [ + "add additional metadata to mint" + ], + "discriminator": [ + 231, + 195, + 40, + 240, + 67, + 231, + 53, + 136 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "signer": true + }, + { + "name": "mint", + "writable": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [ + { + "name": "args", + "type": { + "vec": { + "defined": { + "name": "AddMetadataArgs" + } + } + } + } + ] + }, + { + "name": "add_mint_to_group", + "docs": [ + "add mint to group" + ], + "discriminator": [ + 236, + 25, + 99, + 48, + 185, + 60, + 235, + 112 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "signer": true + }, + { + "name": "group", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 103, + 114, + 111, + 117, + 112 + ] + }, + { + "kind": "account", + "path": "group.mint", + "account": "TokenGroup" + } + ] + } + }, + { + "name": "member", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 109, + 98, + 101, + 114 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "mint", + "writable": true + }, + { + "name": "manager", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [] + }, + { + "name": "add_royalties", + "docs": [ + "add royalties to mint" + ], + "discriminator": [ + 195, + 251, + 126, + 230, + 187, + 134, + 168, + 210 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "signer": true + }, + { + "name": "mint", + "writable": true + }, + { + "name": "extra_metas_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 101, + 120, + 116, + 114, + 97, + 45, + 97, + 99, + 99, + 111, + 117, + 110, + 116, + 45, + 109, + 101, + 116, + 97, + 115 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "UpdateRoyaltiesArgs" + } + } + } + ] + }, + { + "name": "approve_transfer", + "docs": [ + "approve transfer" + ], + "discriminator": [ + 198, + 217, + 247, + 150, + 208, + 60, + 169, + 244 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "writable": true, + "signer": true + }, + { + "name": "mint" + }, + { + "name": "approve_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 97, + 112, + 112, + 114, + 111, + 118, + 101, + 45, + 97, + 99, + 99, + 111, + 117, + 110, + 116 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "payment_mint" + }, + { + "name": "distribution_token_account", + "writable": true, + "optional": true + }, + { + "name": "authority_token_account", + "writable": true, + "optional": true + }, + { + "name": "distribution_account", + "writable": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "distribution_program", + "address": "diste3nXmK7ddDTs1zb6uday6j4etCa9RChD8fJ1xay" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + }, + { + "name": "payment_token_program", + "optional": true + } + ], + "args": [ + { + "name": "buy_amount", + "type": "u64" + } + ] + }, + { + "name": "burn_mint_account", + "docs": [ + "burn mint" + ], + "discriminator": [ + 60, + 58, + 247, + 183, + 185, + 54, + 114, + 131 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "user", + "signer": true + }, + { + "name": "mint", + "writable": true + }, + { + "name": "mint_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "user" + }, + { + "kind": "account", + "path": "token_program" + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "manager", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [] + }, + { + "name": "create_group_account", + "docs": [ + "Token group instructions", + "create group" + ], + "discriminator": [ + 34, + 65, + 118, + 12, + 64, + 190, + 211, + 145 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "signer": true + }, + { + "name": "receiver" + }, + { + "name": "group", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 103, + 114, + 111, + 117, + 112 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "mint", + "writable": true, + "signer": true + }, + { + "name": "mint_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "receiver" + }, + { + "kind": "account", + "path": "token_program" + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "manager", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "CreateGroupAccountArgs" + } + } + } + ] + }, + { + "name": "create_mint_account", + "docs": [ + "create mint" + ], + "discriminator": [ + 76, + 184, + 50, + 62, + 162, + 141, + 47, + 103 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "signer": true + }, + { + "name": "receiver" + }, + { + "name": "mint", + "writable": true, + "signer": true + }, + { + "name": "mint_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "receiver" + }, + { + "kind": "account", + "path": "token_program" + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "manager", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "CreateMintAccountArgs" + } + } + } + ] + }, + { + "name": "execute", + "docs": [ + "Royalty distribution + enforcement instructions", + "validate transfer" + ], + "discriminator": [ + 105, + 37, + 101, + 197, + 75, + 251, + 102, + 26 + ], + "accounts": [ + { + "name": "source_account" + }, + { + "name": "mint" + }, + { + "name": "destination_account" + }, + { + "name": "owner_delegate" + }, + { + "name": "extra_metas_account", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 101, + 120, + 116, + 114, + 97, + 45, + 97, + 99, + 99, + 111, + 117, + 110, + 116, + 45, + 109, + 101, + 116, + 97, + 115 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + } + ], + "args": [ + { + "name": "_amount", + "type": "u64" + } + ] + }, + { + "name": "freeze_mint_account", + "docs": [ + "freeze mint" + ], + "discriminator": [ + 171, + 30, + 154, + 191, + 27, + 0, + 134, + 216 + ], + "accounts": [ + { + "name": "user" + }, + { + "name": "delegate_authority", + "writable": true, + "signer": true + }, + { + "name": "mint" + }, + { + "name": "mint_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "user" + }, + { + "kind": "account", + "path": "token_program" + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "manager", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [] + }, + { + "name": "init_manager_account", + "docs": [ + "Init manager account" + ], + "discriminator": [ + 63, + 114, + 69, + 118, + 3, + 198, + 215, + 72 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "manager", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [] + }, + { + "name": "modify_royalties", + "docs": [ + "modify royalties of mint" + ], + "discriminator": [ + 199, + 95, + 20, + 107, + 136, + 161, + 93, + 137 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "signer": true + }, + { + "name": "mint", + "writable": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "UpdateRoyaltiesArgs" + } + } + } + ] + }, + { + "name": "remove_metadata", + "docs": [ + "remove additional metadata to mint" + ], + "discriminator": [ + 81, + 68, + 231, + 49, + 91, + 8, + 111, + 160 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "signer": true + }, + { + "name": "mint", + "writable": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [ + { + "name": "args", + "type": { + "vec": { + "defined": { + "name": "RemoveMetadataArgs" + } + } + } + } + ] + }, + { + "name": "remove_mint_from_group", + "docs": [ + "remove mint from group" + ], + "discriminator": [ + 231, + 224, + 145, + 240, + 192, + 4, + 204, + 218 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "signer": true + }, + { + "name": "group", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 103, + 114, + 111, + 117, + 112 + ] + }, + { + "kind": "account", + "path": "group.mint", + "account": "TokenGroup" + } + ] + } + }, + { + "name": "member", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 109, + 98, + 101, + 114 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "mint", + "writable": true, + "relations": [ + "member" + ] + }, + { + "name": "manager", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [] + }, + { + "name": "resize_approve", + "discriminator": [ + 219, + 6, + 54, + 192, + 97, + 199, + 33, + 25 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "approve_account", + "writable": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [] + }, + { + "name": "resize_group", + "discriminator": [ + 57, + 175, + 155, + 98, + 160, + 54, + 88, + 105 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "group", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 103, + 114, + 111, + 117, + 112 + ] + }, + { + "kind": "account", + "path": "group.mint", + "account": "TokenGroup" + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [] + }, + { + "name": "resize_group_member", + "discriminator": [ + 234, + 11, + 246, + 127, + 141, + 10, + 4, + 4 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "member", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 109, + 98, + 101, + 114 + ] + }, + { + "kind": "account", + "path": "member.mint", + "account": "TokenGroupMember" + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [] + }, + { + "name": "resize_manager", + "discriminator": [ + 245, + 209, + 10, + 73, + 190, + 27, + 17, + 226 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "manager", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [] + }, + { + "name": "setup_transfer_guard", + "discriminator": [ + 75, + 188, + 87, + 52, + 213, + 128, + 148, + 95 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority", + "signer": true + }, + { + "name": "mint", + "writable": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [] + }, + { + "name": "thaw_mint_account", + "docs": [ + "thaw mint" + ], + "discriminator": [ + 27, + 53, + 61, + 16, + 162, + 190, + 27, + 72 + ], + "accounts": [ + { + "name": "user" + }, + { + "name": "delegate_authority", + "writable": true, + "signer": true + }, + { + "name": "mint" + }, + { + "name": "mint_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "user" + }, + { + "kind": "account", + "path": "token_program" + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "manager", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [] + }, + { + "name": "update_bump_group", + "discriminator": [ + 110, + 194, + 69, + 42, + 28, + 143, + 198, + 175 + ], + "accounts": [ + { + "name": "signer", + "signer": true + }, + { + "name": "group", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 103, + 114, + 111, + 117, + 112 + ] + }, + { + "kind": "account", + "path": "group.mint", + "account": "TokenGroup" + } + ] + } + } + ], + "args": [] + }, + { + "name": "update_bump_group_member", + "discriminator": [ + 20, + 65, + 209, + 243, + 101, + 250, + 109, + 116 + ], + "accounts": [ + { + "name": "signer", + "signer": true + }, + { + "name": "member", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 109, + 98, + 101, + 114 + ] + }, + { + "kind": "account", + "path": "member.mint", + "account": "TokenGroupMember" + } + ] + } + } + ], + "args": [] + }, + { + "name": "update_bump_manager", + "discriminator": [ + 57, + 113, + 40, + 49, + 224, + 191, + 179, + 80 + ], + "accounts": [ + { + "name": "signer", + "signer": true + }, + { + "name": "manager", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 110, + 97, + 103, + 101, + 114 + ] + } + ] + } + } + ], + "args": [] + }, + { + "name": "update_group_account", + "docs": [ + "update group" + ], + "discriminator": [ + 153, + 106, + 174, + 53, + 133, + 171, + 207, + 52 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "authority" + }, + { + "name": "group", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 103, + 114, + 111, + 117, + 112 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "mint", + "writable": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "UpdateGroupAccountArgs" + } + } + } + ] + } + ], + "accounts": [ + { + "name": "ApproveAccount", + "discriminator": [ + 218, + 253, + 170, + 2, + 4, + 47, + 25, + 99 + ] + }, + { + "name": "Manager", + "discriminator": [ + 221, + 78, + 171, + 233, + 213, + 142, + 113, + 56 + ] + }, + { + "name": "TokenGroup", + "discriminator": [ + 184, + 107, + 4, + 187, + 196, + 55, + 142, + 134 + ] + }, + { + "name": "TokenGroupMember", + "discriminator": [ + 17, + 208, + 50, + 173, + 30, + 127, + 245, + 94 + ] + } + ], + "errors": [ + { + "code": 6000, + "name": "SizeExceedsMaxSize", + "msg": "Collection size exceeds max size." + }, + { + "code": 6001, + "name": "MaxSizeBelowCurrentSize", + "msg": "Max size cannot be reduced below current size." + }, + { + "code": 6002, + "name": "CreatorShareInvalid", + "msg": "Creators shares must add up to 100." + }, + { + "code": 6003, + "name": "MissingApproveAccount", + "msg": "Missing approve account." + }, + { + "code": 6004, + "name": "ExpiredApproveAccount", + "msg": "Approve account has expired." + }, + { + "code": 6005, + "name": "InvalidField", + "msg": "Invalid field. You cannot use a public key as a field." + }, + { + "code": 6006, + "name": "CreatorAddressInvalid", + "msg": "The Address you provided is invalid. Please provide a valid address." + }, + { + "code": 6007, + "name": "RoyaltyBasisPointsInvalid", + "msg": "Royalty basis points must be less than or equal to 10000." + } + ], + "types": [ + { + "name": "AddMetadataArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "field", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + } + }, + { + "name": "ApproveAccount", + "type": { + "kind": "struct", + "fields": [ + { + "name": "slot", + "type": "u64" + }, + { + "name": "bump", + "docs": [ + "Token PDA bump" + ], + "type": "u8" + } + ] + } + }, + { + "name": "CreateGroupAccountArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "name", + "type": "string" + }, + { + "name": "symbol", + "type": "string" + }, + { + "name": "uri", + "type": "string" + }, + { + "name": "max_size", + "type": "u32" + } + ] + } + }, + { + "name": "CreateMintAccountArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "name", + "type": "string" + }, + { + "name": "symbol", + "type": "string" + }, + { + "name": "uri", + "type": "string" + }, + { + "name": "permanent_delegate", + "type": { + "option": "pubkey" + } + } + ] + } + }, + { + "name": "CreatorWithShare", + "type": { + "kind": "struct", + "fields": [ + { + "name": "address", + "type": "pubkey" + }, + { + "name": "share", + "type": "u8" + } + ] + } + }, + { + "name": "Manager", + "docs": [ + "Data struct for a `Manager`" + ], + "type": { + "kind": "struct", + "fields": [ + { + "name": "bump", + "type": "u8" + } + ] + } + }, + { + "name": "RemoveMetadataArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "field", + "type": "string" + }, + { + "name": "value", + "type": "string" + } + ] + } + }, + { + "name": "TokenGroup", + "docs": [ + "Data struct for a `TokenGroup`" + ], + "type": { + "kind": "struct", + "fields": [ + { + "name": "update_authority", + "docs": [ + "The authority that can sign to update the group" + ], + "type": "pubkey" + }, + { + "name": "mint", + "docs": [ + "The associated mint, used to counter spoofing to be sure that group", + "belongs to a particular mint" + ], + "type": "pubkey" + }, + { + "name": "size", + "docs": [ + "The current number of group members" + ], + "type": "u32" + }, + { + "name": "max_size", + "docs": [ + "The maximum number of group members" + ], + "type": "u32" + }, + { + "name": "bump", + "docs": [ + "Token PDA bump" + ], + "type": "u8" + } + ] + } + }, + { + "name": "TokenGroupMember", + "docs": [ + "Data struct for a `TokenGroupMember`" + ], + "type": { + "kind": "struct", + "fields": [ + { + "name": "mint", + "docs": [ + "The associated mint, used to counter spoofing to be sure that member", + "belongs to a particular mint" + ], + "type": "pubkey" + }, + { + "name": "group", + "docs": [ + "The pubkey of the `TokenGroup`" + ], + "type": "pubkey" + }, + { + "name": "member_number", + "docs": [ + "The member number" + ], + "type": "u32" + }, + { + "name": "bump", + "docs": [ + "Token PDA bump" + ], + "type": "u8" + } + ] + } + }, + { + "name": "UpdateGroupAccountArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "name", + "type": "string" + }, + { + "name": "symbol", + "type": "string" + }, + { + "name": "uri", + "type": "string" + }, + { + "name": "max_size", + "type": "u32" + } + ] + } + }, + { + "name": "UpdateRoyaltiesArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "royalty_basis_points", + "type": "u16" + }, + { + "name": "creators", + "type": { + "vec": { + "defined": { + "name": "CreatorWithShare" + } + } + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/idls/wen_royalty_distribution.json b/idls/wen_royalty_distribution.json new file mode 100644 index 0000000..9cf2d6d --- /dev/null +++ b/idls/wen_royalty_distribution.json @@ -0,0 +1,400 @@ +{ + "address": "diste3nXmK7ddDTs1zb6uday6j4etCa9RChD8fJ1xay", + "metadata": { + "name": "wen_royalty_distribution", + "version": "0.2.0-alpha", + "spec": "0.1.0", + "description": "Distribution program for WNS royalties" + }, + "instructions": [ + { + "name": "claim_distribution", + "docs": [ + "Claim royalties from a distribution account." + ], + "discriminator": [ + 204, + 156, + 94, + 85, + 2, + 125, + 232, + 180 + ], + "accounts": [ + { + "name": "creator", + "writable": true, + "signer": true + }, + { + "name": "distribution", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "distribution.group_mint", + "account": "DistributionAccount" + }, + { + "kind": "account", + "path": "payment_mint" + } + ] + } + }, + { + "name": "payment_mint", + "relations": [ + "distribution" + ] + }, + { + "name": "distribution_token_account", + "writable": true, + "optional": true + }, + { + "name": "creator_token_account", + "writable": true, + "optional": true + }, + { + "name": "token_program" + } + ], + "args": [] + }, + { + "name": "initialize_distribution", + "docs": [ + "Initializes a new distribution account." + ], + "discriminator": [ + 146, + 158, + 129, + 53, + 22, + 89, + 86, + 207 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "group_mint" + }, + { + "name": "distribution_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "group_mint" + }, + { + "kind": "arg", + "path": "payment_mint" + } + ] + } + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [ + { + "name": "payment_mint", + "type": "pubkey" + } + ] + }, + { + "name": "resize_distribution", + "docs": [ + "Resize old accounts for backwards compatibility." + ], + "discriminator": [ + 60, + 253, + 192, + 57, + 144, + 54, + 12, + 221 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "distribution_account", + "writable": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [] + }, + { + "name": "update_bump_distribution", + "docs": [ + "Update bump field for a distribution account" + ], + "discriminator": [ + 24, + 65, + 213, + 232, + 23, + 92, + 6, + 41 + ], + "accounts": [ + { + "name": "signer", + "signer": true + }, + { + "name": "distribution_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "distribution_account.group_mint", + "account": "DistributionAccount" + }, + { + "kind": "account", + "path": "distribution_account.payment_mint", + "account": "DistributionAccount" + } + ] + } + } + ], + "args": [] + }, + { + "name": "update_distribution", + "docs": [ + "Update royalty amount for creators a distribution account." + ], + "discriminator": [ + 128, + 196, + 209, + 174, + 42, + 209, + 164, + 222 + ], + "accounts": [ + { + "name": "authority", + "writable": true, + "signer": true + }, + { + "name": "mint" + }, + { + "name": "payment_mint", + "relations": [ + "distribution_account" + ] + }, + { + "name": "distribution_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "distribution_account.group_mint", + "account": "DistributionAccount" + }, + { + "kind": "account", + "path": "payment_mint" + } + ] + } + }, + { + "name": "distribution_token_account", + "writable": true, + "optional": true + }, + { + "name": "authority_token_account", + "writable": true, + "optional": true + }, + { + "name": "token_program" + }, + { + "name": "payment_token_program", + "optional": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "UpdateDistributionArgs" + } + } + } + ] + } + ], + "accounts": [ + { + "name": "DistributionAccount", + "discriminator": [ + 98, + 90, + 112, + 65, + 49, + 161, + 198, + 154 + ] + } + ], + "errors": [ + { + "code": 6000, + "name": "InvalidGroupAuthority", + "msg": "Invalid Group Authority for collection account" + }, + { + "code": 6001, + "name": "InvalidCreatorPctAmount", + "msg": "Invalid creator pct amount. Must add up to 100" + }, + { + "code": 6002, + "name": "InvalidPaymentTokenAccount", + "msg": "Invalid payment token account" + }, + { + "code": 6003, + "name": "InvalidPaymentTokenProgram", + "msg": "Invalid payment token program" + }, + { + "code": 6004, + "name": "ArithmeticOverflow", + "msg": "Arithmetic overflow" + } + ], + "types": [ + { + "name": "Creator", + "type": { + "kind": "struct", + "fields": [ + { + "name": "address", + "docs": [ + "creator address" + ], + "type": "pubkey" + }, + { + "name": "claim_amount", + "docs": [ + "token amount that creator can claim" + ], + "type": "u64" + } + ] + } + }, + { + "name": "DistributionAccount", + "type": { + "kind": "struct", + "fields": [ + { + "name": "version", + "docs": [ + "distribution version" + ], + "type": "u8" + }, + { + "name": "group_mint", + "docs": [ + "group to which the distribution account belongs to" + ], + "type": "pubkey" + }, + { + "name": "payment_mint", + "docs": [ + "payment mint for the distribution account" + ], + "type": "pubkey" + }, + { + "name": "claim_data", + "type": { + "vec": { + "defined": { + "name": "Creator" + } + } + } + }, + { + "name": "bump", + "docs": [ + "PDA bump" + ], + "type": "u8" + } + ] + } + }, + { + "name": "UpdateDistributionArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "amount", + "type": "u64" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/idls/wen_transfer_guard.json b/idls/wen_transfer_guard.json new file mode 100644 index 0000000..72def91 --- /dev/null +++ b/idls/wen_transfer_guard.json @@ -0,0 +1,932 @@ +{ + "address": "LockdqYQ9X2kwtWB99ioSbxubAmEi8o9jqYwbXgrrRw", + "metadata": { + "name": "wen_transfer_guard", + "version": "0.1.0", + "spec": "0.1.0", + "description": "A generic transfer hook implementation for Token Extensions" + }, + "instructions": [ + { + "name": "create_guard", + "discriminator": [ + 251, + 254, + 17, + 198, + 219, + 218, + 154, + 99 + ], + "accounts": [ + { + "name": "guard", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 119, + 101, + 110, + 95, + 116, + 111, + 107, + 101, + 110, + 95, + 116, + 114, + 97, + 110, + 115, + 102, + 101, + 114, + 95, + 103, + 117, + 97, + 114, + 100 + ] + }, + { + "kind": "const", + "value": [ + 103, + 117, + 97, + 114, + 100, + 95, + 118, + 49 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "mint", + "writable": true, + "signer": true + }, + { + "name": "mint_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "guard_authority" + }, + { + "kind": "account", + "path": "token_program" + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "guard_authority", + "signer": true + }, + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "CreateGuardArgs" + } + } + } + ] + }, + { + "name": "execute", + "discriminator": [ + 105, + 37, + 101, + 197, + 75, + 251, + 102, + 26 + ], + "accounts": [ + { + "name": "source_account" + }, + { + "name": "mint" + }, + { + "name": "destination_account" + }, + { + "name": "owner_delegate" + }, + { + "name": "extra_metas_account", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 101, + 120, + 116, + 114, + 97, + 45, + 97, + 99, + 99, + 111, + 117, + 110, + 116, + 45, + 109, + 101, + 116, + 97, + 115 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "guard", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 119, + 101, + 110, + 95, + 116, + 111, + 107, + 101, + 110, + 95, + 116, + 114, + 97, + 110, + 115, + 102, + 101, + 114, + 95, + 103, + 117, + 97, + 114, + 100 + ] + }, + { + "kind": "const", + "value": [ + 103, + 117, + 97, + 114, + 100, + 95, + 118, + 49 + ] + }, + { + "kind": "account", + "path": "guard.mint", + "account": "GuardV1" + } + ] + } + }, + { + "name": "instruction_sysvar_account", + "address": "Sysvar1nstructions1111111111111111111111111" + } + ], + "args": [ + { + "name": "amount", + "type": "u64" + } + ] + }, + { + "name": "initialize", + "discriminator": [ + 43, + 34, + 13, + 49, + 167, + 88, + 235, + 235 + ], + "accounts": [ + { + "name": "extra_metas_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 101, + 120, + 116, + 114, + 97, + 45, + 97, + 99, + 99, + 111, + 117, + 110, + 116, + 45, + 109, + 101, + 116, + 97, + 115 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "guard", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 119, + 101, + 110, + 95, + 116, + 111, + 107, + 101, + 110, + 95, + 116, + 114, + 97, + 110, + 115, + 102, + 101, + 114, + 95, + 103, + 117, + 97, + 114, + 100 + ] + }, + { + "kind": "const", + "value": [ + 103, + 117, + 97, + 114, + 100, + 95, + 118, + 49 + ] + }, + { + "kind": "account", + "path": "guard.mint", + "account": "GuardV1" + } + ] + } + }, + { + "name": "mint" + }, + { + "name": "transfer_hook_authority", + "writable": true, + "signer": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "payer", + "writable": true, + "signer": true + } + ], + "args": [] + }, + { + "name": "update_guard", + "discriminator": [ + 51, + 38, + 175, + 180, + 25, + 249, + 39, + 24 + ], + "accounts": [ + { + "name": "guard", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 119, + 101, + 110, + 95, + 116, + 111, + 107, + 101, + 110, + 95, + 116, + 114, + 97, + 110, + 115, + 102, + 101, + 114, + 95, + 103, + 117, + 97, + 114, + 100 + ] + }, + { + "kind": "const", + "value": [ + 103, + 117, + 97, + 114, + 100, + 95, + 118, + 49 + ] + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "mint" + }, + { + "name": "token_account", + "pda": { + "seeds": [ + { + "kind": "account", + "path": "guard_authority" + }, + { + "kind": "account", + "path": "token_program" + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "guard_authority", + "signer": true + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "UpdateGuardArgs" + } + } + } + ] + } + ], + "accounts": [ + { + "name": "GuardV1", + "discriminator": [ + 185, + 149, + 156, + 78, + 245, + 108, + 172, + 68 + ] + } + ], + "errors": [ + { + "code": 6000, + "name": "CpiRuleEnforcementFailed", + "msg": "Cpi Rule Enforcement Failed" + }, + { + "code": 6001, + "name": "TransferAmountRuleEnforceFailed", + "msg": "Transfer Amount Rule Enforce Failed" + }, + { + "code": 6002, + "name": "MetadataFieldDoesNotExist", + "msg": "Metadata Field Does Not Exist" + }, + { + "code": 6003, + "name": "MetadataFieldDoesNotPass", + "msg": "Metadata Field Does Not Pass" + }, + { + "code": 6004, + "name": "GuardTokenAmountShouldBeAtLeastOne", + "msg": "Guard token amount should be at least 1" + }, + { + "code": 6005, + "name": "NotOwnedByToken2022Program", + "msg": "Not owned by token 2022 program" + }, + { + "code": 6006, + "name": "MustBeInitializedByTransferHookAuthority", + "msg": "Must be initialized by Transfer Hook Authority" + }, + { + "code": 6007, + "name": "MintAssignedTransferHookProgramIsNotThisOne", + "msg": "Mint's assigned Transfer Hook Program is not this one" + } + ], + "types": [ + { + "name": "CpiRule", + "docs": [ + "Controls which protocols can interact with the token by", + "enforcing Allow and Deny lists." + ], + "type": { + "kind": "enum", + "variants": [ + { + "name": "Allow", + "fields": [ + { + "vec": "pubkey" + } + ] + }, + { + "name": "Deny", + "fields": [ + { + "vec": "pubkey" + } + ] + } + ] + } + }, + { + "name": "CreateGuardArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "name", + "type": "string" + }, + { + "name": "symbol", + "type": "string" + }, + { + "name": "uri", + "type": "string" + }, + { + "name": "cpi_rule", + "type": { + "option": { + "defined": { + "name": "CpiRule" + } + } + } + }, + { + "name": "transfer_amount_rule", + "type": { + "option": { + "defined": { + "name": "TransferAmountRule" + } + } + } + }, + { + "name": "additional_fields_rule", + "type": { + "vec": { + "defined": { + "name": "MetadataAdditionalFieldRule" + } + } + } + } + ] + } + }, + { + "name": "GuardV1", + "type": { + "kind": "struct", + "fields": [ + { + "name": "mint", + "docs": [ + "Mint token representing the guard, do not confuse with the mint of the token being transferred." + ], + "type": "pubkey" + }, + { + "name": "bump", + "docs": [ + "Bump seed for the guard account." + ], + "type": "u8" + }, + { + "name": "cpi_rule", + "docs": [ + "CPI ruleset for the guard." + ], + "type": { + "option": { + "defined": { + "name": "CpiRule" + } + } + } + }, + { + "name": "transfer_amount_rule", + "docs": [ + "Transfer amount ruleset for the guard." + ], + "type": { + "option": { + "defined": { + "name": "TransferAmountRule" + } + } + } + }, + { + "name": "additional_fields_rule", + "docs": [ + "Additional fields ruleset for the guard." + ], + "type": { + "vec": { + "defined": { + "name": "MetadataAdditionalFieldRule" + } + } + } + } + ] + } + }, + { + "name": "MetadataAdditionalFieldRestriction", + "docs": [ + "Inner enum for the MetadataAdditionalFieldRestriction enum.", + "* Includes - The field must include one of the values in the vector.", + "* Excludes - The field must not include any of the values in the vector." + ], + "type": { + "kind": "enum", + "variants": [ + { + "name": "Includes", + "fields": [ + { + "vec": "string" + } + ] + }, + { + "name": "Excludes", + "fields": [ + { + "vec": "string" + } + ] + } + ] + } + }, + { + "name": "MetadataAdditionalFieldRule", + "docs": [ + "Enforces rules on a single additional field in the mint metadata.", + "The field must exist and the value must pass the restriction." + ], + "type": { + "kind": "struct", + "fields": [ + { + "name": "field", + "type": "string" + }, + { + "name": "value_restrictions", + "type": { + "option": { + "defined": { + "name": "MetadataAdditionalFieldRestriction" + } + } + } + } + ] + } + }, + { + "name": "TransferAmountRule", + "docs": [ + "Enforces rules on the amount of tokens being transferred.", + "The rules can be above, below, equal to, or within a range." + ], + "type": { + "kind": "enum", + "variants": [ + { + "name": "Above", + "fields": [ + "u64" + ] + }, + { + "name": "Below", + "fields": [ + "u64" + ] + }, + { + "name": "Equal", + "fields": [ + "u64" + ] + }, + { + "name": "Rang", + "fields": [ + "u64", + "u64" + ] + } + ] + } + }, + { + "name": "UpdateGuardArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "cpi_rule", + "type": { + "option": { + "defined": { + "name": "CpiRule" + } + } + } + }, + { + "name": "transfer_amount_rule", + "type": { + "option": { + "defined": { + "name": "TransferAmountRule" + } + } + } + }, + { + "name": "additional_fields_rule", + "type": { + "vec": { + "defined": { + "name": "MetadataAdditionalFieldRule" + } + } + } + } + ] + } + } + ], + "constants": [ + { + "name": "EXTRA_ACCOUNT_METAS", + "type": { + "array": [ + "u8", + 19 + ] + }, + "value": "[101, 120, 116, 114, 97, 45, 97, 99, 99, 111, 117, 110, 116, 45, 109, 101, 116, 97, 115]" + }, + { + "name": "GUARD_V1", + "type": { + "array": [ + "u8", + 8 + ] + }, + "value": "[103, 117, 97, 114, 100, 95, 118, 49]" + }, + { + "name": "WEN_TOKEN_GUARD", + "type": { + "array": [ + "u8", + 24 + ] + }, + "value": "[119, 101, 110, 95, 116, 111, 107, 101, 110, 95, 116, 114, 97, 110, 115, 102, 101, 114, 95, 103, 117, 97, 114, 100]" + } + ] +} \ No newline at end of file diff --git a/idls/wen_wns_marketplace.json b/idls/wen_wns_marketplace.json new file mode 100644 index 0000000..07c5203 --- /dev/null +++ b/idls/wen_wns_marketplace.json @@ -0,0 +1,724 @@ +{ + "address": "sALEeD9VGNquoGSXvUAKLeVbXdjiPCb3FTuTm1xSLod", + "metadata": { + "name": "wen_wns_marketplace", + "version": "0.1.0", + "spec": "0.1.0", + "description": "A minimalistic sale program demonstrating WNS and Wen distribution royalty functionalities" + }, + "instructions": [ + { + "name": "buy", + "discriminator": [ + 102, + 6, + 61, + 18, + 1, + 218, + 235, + 234 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "listing", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 114, + 107, + 101, + 116, + 112, + 108, + 97, + 99, + 101 + ] + }, + { + "kind": "const", + "value": [ + 108, + 105, + 115, + 116, + 105, + 110, + 103 + ] + }, + { + "kind": "account", + "path": "listing.seller", + "account": "Listing" + }, + { + "kind": "account", + "path": "listing.mint", + "account": "Listing" + } + ] + } + }, + { + "name": "payment_mint", + "relations": [ + "distribution" + ] + }, + { + "name": "buyer", + "writable": true, + "signer": true + }, + { + "name": "distribution", + "writable": true + }, + { + "name": "mint", + "writable": true, + "relations": [ + "listing" + ] + }, + { + "name": "seller_token_account", + "writable": true, + "relations": [ + "listing" + ] + }, + { + "name": "buyer_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "buyer" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "seller", + "writable": true, + "relations": [ + "listing" + ] + }, + { + "name": "manager" + }, + { + "name": "extra_metas_account" + }, + { + "name": "approve_account", + "writable": true + }, + { + "name": "wns_program", + "address": "wns1gDLt8fgLcGhWi5MqAqgXpwEP1JftKE9eZnXS1HM" + }, + { + "name": "distribution_program", + "address": "diste3nXmK7ddDTs1zb6uday6j4etCa9RChD8fJ1xay" + }, + { + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + }, + { + "name": "payment_token_program", + "optional": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "seller_payment_token_account", + "writable": true, + "optional": true + }, + { + "name": "buyer_payment_token_account", + "writable": true, + "optional": true + }, + { + "name": "distribution_payment_token_account", + "writable": true, + "optional": true + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "FulfillListingArgs" + } + } + } + ] + }, + { + "name": "claim_royalty", + "discriminator": [ + 10, + 75, + 29, + 207, + 114, + 170, + 28, + 108 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "creator", + "writable": true, + "signer": true + }, + { + "name": "payment_mint", + "relations": [ + "distribution" + ] + }, + { + "name": "distribution", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "distribution.group_mint", + "account": "DistributionAccount" + }, + { + "kind": "account", + "path": "payment_mint" + } + ], + "program": { + "kind": "account", + "path": "wen_distribution_program" + } + } + }, + { + "name": "wen_distribution_program", + "address": "diste3nXmK7ddDTs1zb6uday6j4etCa9RChD8fJ1xay" + }, + { + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" + }, + { + "name": "token_program" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "distribution_payment_token_account", + "writable": true, + "optional": true + }, + { + "name": "creator_payment_token_account", + "writable": true, + "optional": true + } + ], + "args": [] + }, + { + "name": "list", + "discriminator": [ + 54, + 174, + 193, + 67, + 17, + 41, + 132, + 38 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "seller", + "signer": true + }, + { + "name": "listing", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 114, + 107, + 101, + 116, + 112, + 108, + 97, + 99, + 101 + ] + }, + { + "kind": "const", + "value": [ + 108, + 105, + 115, + 116, + 105, + 110, + 103 + ] + }, + { + "kind": "account", + "path": "seller" + }, + { + "kind": "account", + "path": "mint" + } + ] + } + }, + { + "name": "mint", + "writable": true + }, + { + "name": "seller_token_account", + "writable": true + }, + { + "name": "manager" + }, + { + "name": "wns_program", + "address": "wns1gDLt8fgLcGhWi5MqAqgXpwEP1JftKE9eZnXS1HM" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "ListNFTArgs" + } + } + } + ] + }, + { + "name": "unlist", + "discriminator": [ + 185, + 125, + 20, + 193, + 209, + 44, + 13, + 224 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "seller", + "signer": true, + "relations": [ + "listing" + ] + }, + { + "name": "listing", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 97, + 114, + 107, + 101, + 116, + 112, + 108, + 97, + 99, + 101 + ] + }, + { + "kind": "const", + "value": [ + 108, + 105, + 115, + 116, + 105, + 110, + 103 + ] + }, + { + "kind": "account", + "path": "listing.seller", + "account": "Listing" + }, + { + "kind": "account", + "path": "listing.mint", + "account": "Listing" + } + ] + } + }, + { + "name": "mint", + "writable": true, + "relations": [ + "listing" + ] + }, + { + "name": "seller_token_account", + "writable": true, + "relations": [ + "listing" + ] + }, + { + "name": "manager" + }, + { + "name": "wns_program", + "address": "wns1gDLt8fgLcGhWi5MqAqgXpwEP1JftKE9eZnXS1HM" + }, + { + "name": "token_program", + "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [] + } + ], + "accounts": [ + { + "name": "DistributionAccount", + "discriminator": [ + 98, + 90, + 112, + 65, + 49, + 161, + 198, + 154 + ] + }, + { + "name": "Listing", + "discriminator": [ + 218, + 32, + 50, + 73, + 43, + 134, + 26, + 58 + ] + } + ], + "errors": [ + { + "code": 6000, + "name": "ListingAmountMismatch", + "msg": "Buy amount mismatch with listing amount" + }, + { + "code": 6001, + "name": "PaymentTokenAccountNotExistant", + "msg": "SPL Payment token account required" + }, + { + "code": 6002, + "name": "InvalidPaymentTokenAccount", + "msg": "Invalid SPL Payment token account" + }, + { + "code": 6003, + "name": "ArithmeticError", + "msg": "Arithmetic error" + } + ], + "types": [ + { + "name": "Creator", + "type": { + "kind": "struct", + "fields": [ + { + "name": "address", + "docs": [ + "creator address" + ], + "type": "pubkey" + }, + { + "name": "claim_amount", + "docs": [ + "token amount that creator can claim" + ], + "type": "u64" + } + ] + } + }, + { + "name": "DistributionAccount", + "type": { + "kind": "struct", + "fields": [ + { + "name": "version", + "docs": [ + "distribution version" + ], + "type": "u8" + }, + { + "name": "group_mint", + "docs": [ + "group to which the distribution account belongs to" + ], + "type": "pubkey" + }, + { + "name": "payment_mint", + "docs": [ + "payment mint for the distribution account" + ], + "type": "pubkey" + }, + { + "name": "claim_data", + "type": { + "vec": { + "defined": { + "name": "Creator" + } + } + } + }, + { + "name": "bump", + "docs": [ + "PDA bump" + ], + "type": "u8" + } + ] + } + }, + { + "name": "FulfillListingArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "buy_amount", + "type": "u64" + } + ] + } + }, + { + "name": "ListNFTArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "listing_amount", + "type": "u64" + }, + { + "name": "payment_mint", + "type": "pubkey" + } + ] + } + }, + { + "name": "Listing", + "type": { + "kind": "struct", + "fields": [ + { + "name": "bump", + "type": "u8" + }, + { + "name": "mint", + "type": "pubkey" + }, + { + "name": "payment_mint", + "type": "pubkey" + }, + { + "name": "seller", + "type": "pubkey" + }, + { + "name": "seller_token_account", + "type": "pubkey" + }, + { + "name": "listing_amount", + "type": "u64" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 13e3df8..5033242 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "url": "https://github.com/wen-community/wen-program-library.git" }, "dependencies": { - "@coral-xyz/anchor": "^0.30.0", + "@coral-xyz/anchor": "^0.30.1", "@solana/spl-token": "^0.4.6", "@solana/spl-token-metadata": "^0.1.4" }, diff --git a/programs/wen_new_standard/Cargo.lock b/programs/wen_new_standard/Cargo.lock index a966ccc..a03828a 100644 --- a/programs/wen_new_standard/Cargo.lock +++ b/programs/wen_new_standard/Cargo.lock @@ -72,7 +72,7 @@ dependencies = [ [[package]] name = "anchor-attribute-access-control" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd7368e171b3a317885dc08ec0f74eed9d0ad6c726cc819593aed81440dca926" dependencies = [ @@ -84,7 +84,7 @@ dependencies = [ [[package]] name = "anchor-attribute-account" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f527df85a8cba3f2bea04e46ed71b66e525ea378c7fec538aa205f4520b73e31" dependencies = [ @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "anchor-attribute-constant" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3eb1dc1845cf8636c2e046a274ca074dabd3884ac8ed11cc4ed64b7e8ef5a318" dependencies = [ @@ -108,7 +108,7 @@ dependencies = [ [[package]] name = "anchor-attribute-error" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f382e41514c59a77ffa7bb1a47df9a0359564a749b6934485c742c11962e540" dependencies = [ @@ -119,7 +119,7 @@ dependencies = [ [[package]] name = "anchor-attribute-event" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "473a122aeed3f6b666438236338d2ef7833ee5fdc5688e1baa80185d61088a53" dependencies = [ @@ -131,7 +131,7 @@ dependencies = [ [[package]] name = "anchor-attribute-program" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f88c7ffe2eb40aeac43ffd0d74a6671581158aedfaa0552330a2ef92fa5c889" dependencies = [ @@ -148,7 +148,7 @@ dependencies = [ [[package]] name = "anchor-derive-accounts" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed9b97c99dcec135aae0ff908c14bcfcd3e78cfc16a0c6f245135038f0e6d390" dependencies = [ @@ -159,7 +159,7 @@ dependencies = [ [[package]] name = "anchor-derive-serde" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbece98f6ad9c37070edc0841326c9623a249346cd74f433e7cef69b14f7f31d" dependencies = [ @@ -172,7 +172,7 @@ dependencies = [ [[package]] name = "anchor-derive-space" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8badbe2648bc99a85ee05a7a5f9512e5e2af8ffac71476a69350cb278057ac53" dependencies = [ @@ -183,7 +183,7 @@ dependencies = [ [[package]] name = "anchor-lang" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e41feb9c1cd9f4b0fad1c004fc8f289183f3ce27e9db38fa6e434470c716fb1e" dependencies = [ @@ -222,7 +222,7 @@ dependencies = [ [[package]] name = "anchor-spl" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dcee54a30b27ea8317ca647759b5d9701a8c7caaaa0c922c6d3c306a7278a7a" dependencies = [ @@ -237,7 +237,7 @@ dependencies = [ [[package]] name = "anchor-syn" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac53f2378bc08e89e20c2b893c01986ffd34cfbc69a17e35bd6f754753e9fdad" dependencies = [ diff --git a/programs/wen_new_standard/src/instructions/mod.rs b/programs/wen_new_standard/src/instructions/mod.rs index 395b50c..e33d2e7 100644 --- a/programs/wen_new_standard/src/instructions/mod.rs +++ b/programs/wen_new_standard/src/instructions/mod.rs @@ -4,6 +4,7 @@ pub mod manager; pub mod mint; pub mod resize; pub mod royalty; +pub mod transfer_guard; pub use bump::*; pub use group::*; @@ -11,3 +12,4 @@ pub use manager::*; pub use mint::*; pub use resize::*; pub use royalty::*; +pub use transfer_guard::*; diff --git a/programs/wen_new_standard/src/instructions/transfer_guard/mod.rs b/programs/wen_new_standard/src/instructions/transfer_guard/mod.rs new file mode 100644 index 0000000..9b02a26 --- /dev/null +++ b/programs/wen_new_standard/src/instructions/transfer_guard/mod.rs @@ -0,0 +1,3 @@ +pub mod setup; + +pub use setup::*; diff --git a/programs/wen_new_standard/src/instructions/transfer_guard/setup.rs b/programs/wen_new_standard/src/instructions/transfer_guard/setup.rs new file mode 100644 index 0000000..27e1654 --- /dev/null +++ b/programs/wen_new_standard/src/instructions/transfer_guard/setup.rs @@ -0,0 +1,82 @@ +use anchor_lang::prelude::*; +use anchor_spl::{ + token_2022::Token2022, + token_interface::{transfer_hook_update, Mint, TransferHookUpdate}, +}; + +use crate::wen_transfer_guard::{self, program::WenTransferGuard}; + +#[derive(Accounts)] +pub struct SetupTransferGuard<'info> { + #[account(mut)] + pub payer: Signer<'info>, + #[account()] + pub transfer_hook_authority: Signer<'info>, + #[account( + mut, + mint::token_program = token_program, + )] + pub mint: Box>, + + /// CHECK: Passed as mutable here but it's actually initialized by the transfer guard program + #[account( + mut, + seeds = [wen_transfer_guard::constants::EXTRA_ACCOUNT_METAS.as_ref(), mint.key().as_ref()], + seeds::program = wen_transfer_guard_program, + bump, + )] + pub extra_metas_account: UncheckedAccount<'info>, + + /// NOTE: Passing seeds here to ease anchor-generated clients. + #[account( + seeds = [ + wen_transfer_guard::constants::WEN_TOKEN_GUARD.as_ref(), + wen_transfer_guard::constants::GUARD_V1.as_ref(), + guard.mint.as_ref() + ], + bump = guard.bump, + seeds::program = wen_transfer_guard_program + )] + pub guard: Account<'info, wen_transfer_guard::accounts::GuardV1>, + + pub wen_transfer_guard_program: Program<'info, WenTransferGuard>, + pub system_program: Program<'info, System>, + pub token_program: Program<'info, Token2022>, +} + +impl SetupTransferGuard<'_> { + fn update_transfer_hook_program_id(&self) -> Result<()> { + transfer_hook_update( + CpiContext::new( + self.token_program.to_account_info(), + TransferHookUpdate { + token_program_id: self.token_program.to_account_info(), + mint: self.mint.to_account_info(), + authority: self.transfer_hook_authority.to_account_info(), + }, + ), + Some(WenTransferGuard::id()), + )?; + Ok(()) + } + + fn initialize(&self) -> Result<()> { + wen_transfer_guard::cpi::initialize(CpiContext::new( + self.wen_transfer_guard_program.to_account_info(), + wen_transfer_guard::cpi::accounts::Initialize { + extra_metas_account: self.extra_metas_account.to_account_info(), + guard: self.guard.to_account_info(), + mint: self.mint.to_account_info(), + payer: self.payer.to_account_info(), + transfer_hook_authority: self.transfer_hook_authority.to_account_info(), + system_program: self.system_program.to_account_info(), + }, + )) + } +} + +pub fn handler(ctx: Context) -> Result<()> { + ctx.accounts.update_transfer_hook_program_id()?; + ctx.accounts.initialize()?; + Ok(()) +} diff --git a/programs/wen_new_standard/src/lib.rs b/programs/wen_new_standard/src/lib.rs index 5c506ee..dceddba 100644 --- a/programs/wen_new_standard/src/lib.rs +++ b/programs/wen_new_standard/src/lib.rs @@ -13,6 +13,7 @@ pub use state::*; pub use utils::*; declare_id!("wns1gDLt8fgLcGhWi5MqAqgXpwEP1JftKE9eZnXS1HM"); +declare_program!(wen_transfer_guard); #[program] pub mod wen_new_standard { @@ -145,4 +146,12 @@ pub mod wen_new_standard { instructions::bump::group_member::handler(ctx) } /**/ + + /* Transfer guard */ + + pub fn setup_transfer_guard(ctx: Context) -> Result<()> { + instructions::transfer_guard::setup::handler(ctx) + } + + /**/ } diff --git a/programs/wen_royalty_distribution/Cargo.lock b/programs/wen_royalty_distribution/Cargo.lock index 753dfa7..71b5b8d 100644 --- a/programs/wen_royalty_distribution/Cargo.lock +++ b/programs/wen_royalty_distribution/Cargo.lock @@ -72,7 +72,7 @@ dependencies = [ [[package]] name = "anchor-attribute-access-control" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd7368e171b3a317885dc08ec0f74eed9d0ad6c726cc819593aed81440dca926" dependencies = [ @@ -84,7 +84,7 @@ dependencies = [ [[package]] name = "anchor-attribute-account" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f527df85a8cba3f2bea04e46ed71b66e525ea378c7fec538aa205f4520b73e31" dependencies = [ @@ -97,7 +97,7 @@ dependencies = [ [[package]] name = "anchor-attribute-constant" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3eb1dc1845cf8636c2e046a274ca074dabd3884ac8ed11cc4ed64b7e8ef5a318" dependencies = [ @@ -108,7 +108,7 @@ dependencies = [ [[package]] name = "anchor-attribute-error" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f382e41514c59a77ffa7bb1a47df9a0359564a749b6934485c742c11962e540" dependencies = [ @@ -119,7 +119,7 @@ dependencies = [ [[package]] name = "anchor-attribute-event" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "473a122aeed3f6b666438236338d2ef7833ee5fdc5688e1baa80185d61088a53" dependencies = [ @@ -131,7 +131,7 @@ dependencies = [ [[package]] name = "anchor-attribute-program" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f88c7ffe2eb40aeac43ffd0d74a6671581158aedfaa0552330a2ef92fa5c889" dependencies = [ @@ -148,7 +148,7 @@ dependencies = [ [[package]] name = "anchor-derive-accounts" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed9b97c99dcec135aae0ff908c14bcfcd3e78cfc16a0c6f245135038f0e6d390" dependencies = [ @@ -159,7 +159,7 @@ dependencies = [ [[package]] name = "anchor-derive-serde" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbece98f6ad9c37070edc0841326c9623a249346cd74f433e7cef69b14f7f31d" dependencies = [ @@ -172,7 +172,7 @@ dependencies = [ [[package]] name = "anchor-derive-space" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8badbe2648bc99a85ee05a7a5f9512e5e2af8ffac71476a69350cb278057ac53" dependencies = [ @@ -183,7 +183,7 @@ dependencies = [ [[package]] name = "anchor-lang" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e41feb9c1cd9f4b0fad1c004fc8f289183f3ce27e9db38fa6e434470c716fb1e" dependencies = [ @@ -222,7 +222,7 @@ dependencies = [ [[package]] name = "anchor-spl" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dcee54a30b27ea8317ca647759b5d9701a8c7caaaa0c922c6d3c306a7278a7a" dependencies = [ @@ -237,7 +237,7 @@ dependencies = [ [[package]] name = "anchor-syn" -version = "0.30.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac53f2378bc08e89e20c2b893c01986ffd34cfbc69a17e35bd6f754753e9fdad" dependencies = [ diff --git a/scripts/package-lock.json b/scripts/package-lock.json index 0ff50ea..0a618d2 100644 --- a/scripts/package-lock.json +++ b/scripts/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@coral-xyz/anchor": "^0.30.0", + "@coral-xyz/anchor": "^0.30.1", "bs58": "^5.0.0", "dotenv": "16.4.5", "fs-extra": "^11.2.0" @@ -20,13 +20,15 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", + "ts-node": "^10.9.2", "typescript": "^4.3.5" } }, "node_modules/@babel/runtime": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.5.tgz", - "integrity": "sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz", + "integrity": "sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==", + "license": "MIT", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -35,11 +37,13 @@ } }, "node_modules/@coral-xyz/anchor": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/@coral-xyz/anchor/-/anchor-0.30.0.tgz", - "integrity": "sha512-qreDh5ztiRHVnCbJ+RS70NJ6aSTPBYDAgFeQ7Z5QvaT5DcDIhNyt4onOciVz2ieIE1XWePOJDDu9SbNvPGBkvQ==", + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/anchor/-/anchor-0.30.1.tgz", + "integrity": "sha512-gDXFoF5oHgpriXAaLpxyWBHdCs8Awgf/gLHIo6crv7Aqm937CNdY+x+6hoj7QR5vaJV7MxWSQ0NGFzL3kPbWEQ==", + "license": "(MIT OR Apache-2.0)", "dependencies": { - "@coral-xyz/borsh": "^0.30.0", + "@coral-xyz/anchor-errors": "^0.30.1", + "@coral-xyz/borsh": "^0.30.1", "@noble/hashes": "^1.3.1", "@solana/web3.js": "^1.68.0", "bn.js": "^5.1.2", @@ -58,6 +62,15 @@ "node": ">=11" } }, + "node_modules/@coral-xyz/anchor-errors": { + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/anchor-errors/-/anchor-errors-0.30.1.tgz", + "integrity": "sha512-9Mkradf5yS5xiLWrl9WrpjqOrAV+/W2RQHDlbnAZBivoGpOs1ECjoDCkVk4aRG8ZdiFiB8zQEVlxf+8fKkmSfQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=10" + } + }, "node_modules/@coral-xyz/anchor/node_modules/base-x": { "version": "3.0.9", "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", @@ -75,9 +88,10 @@ } }, "node_modules/@coral-xyz/borsh": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.30.0.tgz", - "integrity": "sha512-OrcV+7N10cChhgDRUxM4iEIuwxUHHs52XD85R8cFCUqE0vbLYrcoPPPs+VF6kZ9DhdJGVW2I6DHJOp5TykyZog==", + "version": "0.30.1", + "resolved": "https://registry.npmjs.org/@coral-xyz/borsh/-/borsh-0.30.1.tgz", + "integrity": "sha512-aaxswpPrCFKl8vZTbxLssA2RvwX2zmKLlRCIktJOwW+VpVwYtXRtlWiIP+c2pPRKneiTiWCN2GEMSH9j1zTlWQ==", + "license": "Apache-2.0", "dependencies": { "bn.js": "^5.1.2", "buffer-layout": "^1.2.0" @@ -89,10 +103,52 @@ "@solana/web3.js": "^1.68.0" } }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "node_modules/@noble/curves": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.0.tgz", "integrity": "sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==", + "license": "MIT", "dependencies": { "@noble/hashes": "1.4.0" }, @@ -104,6 +160,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "license": "MIT", "engines": { "node": ">= 16" }, @@ -115,6 +172,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/@solana/buffer-layout/-/buffer-layout-4.0.1.tgz", "integrity": "sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==", + "license": "MIT", "dependencies": { "buffer": "~6.0.3" }, @@ -123,11 +181,12 @@ } }, "node_modules/@solana/web3.js": { - "version": "1.91.8", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.91.8.tgz", - "integrity": "sha512-USa6OS1jbh8zOapRJ/CBZImZ8Xb7AJjROZl5adql9TpOoBN9BUzyyouS5oPuZHft7S7eB8uJPuXWYjMi6BHgOw==", + "version": "1.93.2", + "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.93.2.tgz", + "integrity": "sha512-U8GlrvjfheJTFNavJHb2v/CnpzoqbGKaShLJGf1cELeFUlweUrfYXc9YFX0tw8Icb4ll48vDxt/zEPQOQ29+kw==", + "license": "MIT", "dependencies": { - "@babel/runtime": "^7.24.5", + "@babel/runtime": "^7.24.7", "@noble/curves": "^1.4.0", "@noble/hashes": "^1.4.0", "@solana/buffer-layout": "^4.0.1", @@ -140,14 +199,15 @@ "fast-stable-stringify": "^1.0.0", "jayson": "^4.1.0", "node-fetch": "^2.7.0", - "rpc-websockets": "^7.11.0", - "superstruct": "^0.14.2" + "rpc-websockets": "^9.0.2", + "superstruct": "^1.0.4" } }, "node_modules/@solana/web3.js/node_modules/base-x": { "version": "3.0.9", "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", + "license": "MIT", "dependencies": { "safe-buffer": "^5.0.1" } @@ -156,14 +216,56 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "license": "MIT", "dependencies": { "base-x": "^3.0.2" } }, "node_modules/@solana/web3.js/node_modules/superstruct": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", - "integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==" + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.4.tgz", + "integrity": "sha512-7JpaAoX2NGyoFlI9NBh66BQXGONc+uE+MRS5i2iOBKuS4e+ccgMDjATgZldkah+33DakBxDHiss9kvUcGAO8UQ==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@swc/helpers": { + "version": "0.5.11", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.11.tgz", + "integrity": "sha512-YNlnKRWF2sVojTpIyzwou9XoTNbzbzONwRhOoniEioF1AtaitTvVZblaQRrAzChWQ1bLYyYSWzM18y4WwgzJ+A==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true, + "license": "MIT" }, "node_modules/@types/bn.js": { "version": "5.1.5", @@ -184,6 +286,7 @@ "version": "3.4.38", "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -238,10 +341,17 @@ "undici-types": "~5.26.4" } }, + "node_modules/@types/uuid": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz", + "integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==", + "license": "MIT" + }, "node_modules/@types/ws": { "version": "7.4.7", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-7.4.7.tgz", "integrity": "sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==", + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -252,10 +362,37 @@ "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", "dev": true }, + "node_modules/acorn": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.0.tgz", + "integrity": "sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.3", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.3.tgz", + "integrity": "sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/agentkeepalive": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", + "license": "MIT", "dependencies": { "humanize-ms": "^1.2.1" }, @@ -309,6 +446,13 @@ "node": ">= 8" } }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true, + "license": "MIT" + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -320,6 +464,7 @@ "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -361,13 +506,15 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/bigint-buffer": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/bigint-buffer/-/bigint-buffer-1.1.5.tgz", "integrity": "sha512-trfYco6AoZ+rKhKnxA0hgX0HAbVP/s808/EuDSe2JDzUnCp/xAsli35Orvk67UrTEcwuxZqYZDmfA2RXJgxVvA==", "hasInstallScript": true, + "license": "Apache-2.0", "dependencies": { "bindings": "^1.3.0" }, @@ -391,6 +538,7 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "license": "MIT", "dependencies": { "file-uri-to-path": "1.0.0" } @@ -398,12 +546,14 @@ "node_modules/bn.js": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", + "license": "MIT" }, "node_modules/borsh": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/borsh/-/borsh-0.7.0.tgz", "integrity": "sha512-CLCsZGIBCFnPtkNnieW/a8wmreDmfUtjU2m9yHrzPXIlNbqVs0AQrSatSG6vdNYUqdc83tkQi2eHfF98ubzQLA==", + "license": "Apache-2.0", "dependencies": { "bn.js": "^5.2.0", "bs58": "^4.0.0", @@ -414,6 +564,7 @@ "version": "3.0.9", "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", + "license": "MIT", "dependencies": { "safe-buffer": "^5.0.1" } @@ -422,6 +573,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "license": "MIT", "dependencies": { "base-x": "^3.0.2" } @@ -480,6 +632,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" @@ -489,12 +642,14 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/buffer-layout": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/buffer-layout/-/buffer-layout-1.2.2.tgz", "integrity": "sha512-kWSuLN694+KTk8SrYvCqwP2WcgQjoRCiF5b4QDvkkz8EmgD+aWAIceGFKMIAdmF/pH+vpgNV3d3kAKorcdAmWA==", + "license": "MIT", "engines": { "node": ">=4.5" } @@ -504,6 +659,7 @@ "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz", "integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==", "hasInstallScript": true, + "license": "MIT", "optional": true, "dependencies": { "node-gyp-build": "^4.3.0" @@ -640,7 +796,8 @@ "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "license": "MIT" }, "node_modules/concat-map": { "version": "0.0.1", @@ -648,6 +805,13 @@ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true, + "license": "MIT" + }, "node_modules/cross-fetch": { "version": "3.1.8", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", @@ -718,6 +882,7 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz", "integrity": "sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==", + "license": "MIT", "engines": { "node": ">=10" }, @@ -763,12 +928,14 @@ "node_modules/es6-promise": { "version": "4.2.8", "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "license": "MIT" }, "node_modules/es6-promisify": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", + "license": "MIT", "dependencies": { "es6-promise": "^4.0.3" } @@ -797,7 +964,8 @@ "node_modules/eventemitter3": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "license": "MIT" }, "node_modules/eyes": { "version": "0.1.8", @@ -810,12 +978,14 @@ "node_modules/fast-stable-stringify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fast-stable-stringify/-/fast-stable-stringify-1.0.0.tgz", - "integrity": "sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==" + "integrity": "sha512-wpYMUmFu5f00Sm0cj2pfivpmawLZ0NKdviQ4w9zJeR8JVtOpOxHmLaJuj0vxvGqMJQWyP/COUkF75/57OKyRag==", + "license": "MIT" }, "node_modules/file-uri-to-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "license": "MIT" }, "node_modules/fill-range": { "version": "7.0.1", @@ -985,6 +1155,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "license": "MIT", "dependencies": { "ms": "^2.0.0" } @@ -1006,7 +1177,8 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "BSD-3-Clause" }, "node_modules/inflight": { "version": "1.0.6", @@ -1106,6 +1278,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==", + "license": "MIT", "peerDependencies": { "ws": "*" } @@ -1114,6 +1287,7 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/jayson/-/jayson-4.1.0.tgz", "integrity": "sha512-R6JlbyLN53Mjku329XoRT2zJAE6ZgOQ8f91ucYdMCD4nkGCF9kZSrcGXpHIU4jeKj58zUZke2p+cdQchU7Ly7A==", + "license": "MIT", "dependencies": { "@types/connect": "^3.4.33", "@types/node": "^12.12.54", @@ -1138,7 +1312,8 @@ "node_modules/jayson/node_modules/@types/node": { "version": "12.20.55", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", + "license": "MIT" }, "node_modules/js-yaml": { "version": "4.1.0", @@ -1155,7 +1330,8 @@ "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "license": "ISC" }, "node_modules/json5": { "version": "1.0.2", @@ -1187,12 +1363,14 @@ "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", "engines": [ "node >= 0.2.0" - ] + ], + "license": "MIT" }, "node_modules/JSONStream": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "license": "(MIT OR Apache-2.0)", "dependencies": { "jsonparse": "^1.2.0", "through": ">=2.2.7 <3" @@ -1284,6 +1462,7 @@ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", "dev": true, + "license": "MIT", "dependencies": { "minimist": "^1.2.6" }, @@ -1383,6 +1562,7 @@ "version": "4.8.1", "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.1.tgz", "integrity": "sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==", + "license": "MIT", "optional": true, "bin": { "node-gyp-build": "bin.js", @@ -1521,7 +1701,8 @@ "node_modules/regenerator-runtime": { "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "license": "MIT" }, "node_modules/require-directory": { "version": "2.1.1", @@ -1533,11 +1714,16 @@ } }, "node_modules/rpc-websockets": { - "version": "7.11.0", - "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.11.0.tgz", - "integrity": "sha512-IkLYjayPv6Io8C/TdCL5gwgzd1hFz2vmBZrjMw/SPEXo51ETOhnzgS4Qy5GWi2JQN7HKHa66J3+2mv0fgNh/7w==", - "dependencies": { - "eventemitter3": "^4.0.7", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-9.0.2.tgz", + "integrity": "sha512-YzggvfItxMY3Lwuax5rC18inhbjJv9Py7JXRHxTIi94JOLrqBsSsUUc5bbl5W6c11tXhdfpDPK0KzBhoGe8jjw==", + "license": "LGPL-3.0-only", + "dependencies": { + "@swc/helpers": "^0.5.11", + "@types/uuid": "^8.3.4", + "@types/ws": "^8.2.2", + "buffer": "^6.0.3", + "eventemitter3": "^5.0.1", "uuid": "^8.3.2", "ws": "^8.5.0" }, @@ -1550,10 +1736,26 @@ "utf-8-validate": "^5.0.2" } }, + "node_modules/rpc-websockets/node_modules/@types/ws": { + "version": "8.5.10", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.10.tgz", + "integrity": "sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/rpc-websockets/node_modules/eventemitter3": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", + "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", + "license": "MIT" + }, "node_modules/rpc-websockets/node_modules/ws": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.0.tgz", - "integrity": "sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -1612,6 +1814,7 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -1621,6 +1824,7 @@ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -1702,7 +1906,8 @@ "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "license": "MIT" }, "node_modules/to-regex-range": { "version": "5.0.1", @@ -1747,11 +1952,22 @@ "mocha": "^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X" } }, - "node_modules/ts-node": { + "node_modules/ts-mocha/node_modules/diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/ts-mocha/node_modules/ts-node": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz", "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==", "dev": true, + "license": "MIT", "dependencies": { "arrify": "^1.0.0", "buffer-from": "^1.1.0", @@ -1769,11 +1985,66 @@ "node": ">=4.2.0" } }, + "node_modules/ts-mocha/node_modules/yn": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", + "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, "node_modules/ts-node/node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } @@ -1836,6 +2107,7 @@ "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", "hasInstallScript": true, + "license": "MIT", "optional": true, "dependencies": { "node-gyp-build": "^4.3.0" @@ -1848,10 +2120,18 @@ "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true, + "license": "MIT" + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -1911,9 +2191,10 @@ "dev": true }, "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "license": "MIT", "engines": { "node": ">=8.3.0" }, @@ -1982,12 +2263,13 @@ } }, "node_modules/yn": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", - "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true, + "license": "MIT", "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/yocto-queue": { diff --git a/scripts/package.json b/scripts/package.json index 7645a68..49e1fe7 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -8,7 +8,7 @@ "audit": "ts-node src/audit.ts" }, "dependencies": { - "@coral-xyz/anchor": "^0.30.0", + "@coral-xyz/anchor": "^0.30.1", "bs58": "^5.0.0", "fs-extra": "^11.2.0", "dotenv": "16.4.5" diff --git a/yarn.lock b/yarn.lock index 6db6b51..6c6ab06 100644 --- a/yarn.lock +++ b/yarn.lock @@ -196,12 +196,18 @@ "@types/semver" "^7.5.5" semver "^7.5.2" -"@coral-xyz/anchor@^0.30.0": - version "0.30.0" - resolved "https://registry.yarnpkg.com/@coral-xyz/anchor/-/anchor-0.30.0.tgz#52acdba504b0008f1026d3a4bbbcb2d4feb5c69e" - integrity sha512-qreDh5ztiRHVnCbJ+RS70NJ6aSTPBYDAgFeQ7Z5QvaT5DcDIhNyt4onOciVz2ieIE1XWePOJDDu9SbNvPGBkvQ== - dependencies: - "@coral-xyz/borsh" "^0.30.0" +"@coral-xyz/anchor-errors@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@coral-xyz/anchor-errors/-/anchor-errors-0.30.1.tgz#bdfd3a353131345244546876eb4afc0e125bec30" + integrity sha512-9Mkradf5yS5xiLWrl9WrpjqOrAV+/W2RQHDlbnAZBivoGpOs1ECjoDCkVk4aRG8ZdiFiB8zQEVlxf+8fKkmSfQ== + +"@coral-xyz/anchor@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@coral-xyz/anchor/-/anchor-0.30.1.tgz#17f3e9134c28cd0ea83574c6bab4e410bcecec5d" + integrity sha512-gDXFoF5oHgpriXAaLpxyWBHdCs8Awgf/gLHIo6crv7Aqm937CNdY+x+6hoj7QR5vaJV7MxWSQ0NGFzL3kPbWEQ== + dependencies: + "@coral-xyz/anchor-errors" "^0.30.1" + "@coral-xyz/borsh" "^0.30.1" "@noble/hashes" "^1.3.1" "@solana/web3.js" "^1.68.0" bn.js "^5.1.2" @@ -216,10 +222,10 @@ superstruct "^0.15.4" toml "^3.0.0" -"@coral-xyz/borsh@^0.30.0": - version "0.30.0" - resolved "https://registry.yarnpkg.com/@coral-xyz/borsh/-/borsh-0.30.0.tgz#3e6f23e944ef6c89f2c9cbead383358752ac5e73" - integrity sha512-OrcV+7N10cChhgDRUxM4iEIuwxUHHs52XD85R8cFCUqE0vbLYrcoPPPs+VF6kZ9DhdJGVW2I6DHJOp5TykyZog== +"@coral-xyz/borsh@^0.30.1": + version "0.30.1" + resolved "https://registry.yarnpkg.com/@coral-xyz/borsh/-/borsh-0.30.1.tgz#869d8833abe65685c72e9199b8688477a4f6b0e3" + integrity sha512-aaxswpPrCFKl8vZTbxLssA2RvwX2zmKLlRCIktJOwW+VpVwYtXRtlWiIP+c2pPRKneiTiWCN2GEMSH9j1zTlWQ== dependencies: bn.js "^5.1.2" buffer-layout "^1.2.0"