diff --git a/artifacts/demo_chain_specs/polkadot.json b/artifacts/demo_chain_specs/polkadot.json index 984506f6bc..4b437d8f43 100644 --- a/artifacts/demo_chain_specs/polkadot.json +++ b/artifacts/demo_chain_specs/polkadot.json @@ -32,7 +32,9 @@ "/dns/dot-bootnode.stakeworld.io/tcp/30311/ws/p2p/12D3KooWAb5MyC1UJiEQJk4Hg4B2Vi3AJdqSUhTGYUqSnEqCFMFg", "/dns/dot-bootnode.stakeworld.io/tcp/30312/wss/p2p/12D3KooWAb5MyC1UJiEQJk4Hg4B2Vi3AJdqSUhTGYUqSnEqCFMFg", "/dns/dot14.rotko.net/tcp/35214/wss/p2p/12D3KooWPyEvPEXghnMC67Gff6PuZiSvfx3fmziKiPZcGStZ5xff", - "/dns/dot14.rotko.net/tcp/33214/p2p/12D3KooWPyEvPEXghnMC67Gff6PuZiSvfx3fmziKiPZcGStZ5xff" + "/dns/dot14.rotko.net/tcp/33214/p2p/12D3KooWPyEvPEXghnMC67Gff6PuZiSvfx3fmziKiPZcGStZ5xff", + "/dns/ibp-boot-polkadot.luckyfriday.io/tcp/30333/p2p/12D3KooWEjk6QXrZJ26fLpaajisJGHiz6WiQsR8k7mkM9GmWKnRZ", + "/dns/ibp-boot-polkadot.luckyfriday.io/tcp/30334/wss/p2p/12D3KooWEjk6QXrZJ26fLpaajisJGHiz6WiQsR8k7mkM9GmWKnRZ" ], "chainType": "Live", "forkBlocks": null, @@ -41,10 +43,10 @@ }, "id": "polkadot", "lightSyncState": { - "babeEpochChanges": "0x044736295f5ace57cb8f84fd667e8ed439db12f470d45736d046f67f54bccaada2b69c16010153bae41000000000b3c3e41000000000046646627e2646c3b728990fc968ec647c2170e66b55fbe48365e54557ae43756916a6160101b3c3e4100000000013cde41000000000086441c5d73eef491062ed18d31770e3f8a95eba0a9e78b407d28c706c6f06332775af16010113cde4100000000073d6e41000000000007494065a1f61226b66736add1b00a214e14611c3f78e1ab4d3e0d9c69ae732f875af16010113cde4100000000073d6e410000000000000104736295f5ace57cb8f84fd667e8ed439db12f470d45736d046f67f54bccaada2b69c160101da1d00000000000053bae410000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b92001000000000000003ae9dfa8b24faaf16407328ff38a89b25fc7c673c44f9de3de0c011233d4226d01000000000000009e47382505cd1a803bdbe7803d36a61413e58697bd9396ce1607c89a48d1e051010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000ae40860237c8f606dfb6974046eaa6b6b96f8d0aef56fbe3ce4865f66646bd260100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f3548943901000000000000003a80d898638dccd4aaa472e7948e7394969cc443335c494159948915c097c036010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae6036820010000000000000078c88041bbca9b2bebd62fde7c46f4dc5e55d8877a113d063a6b525dfd6f7f2a01000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb120100000000000000723f3865d97a772459da8942cbb4757164f1fe7485cbcefb4b206e157ee5ed0201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc56010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000000e164f314984e9a172a3a1526d853ff70bd11f3c596f17accbbebe2f7820833c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000098faca5e78664fd082bf47f0079de33a5021415c8f5f912941e651a0b7071d1f0100000000000000ca6e63cec4c0801ecd740073da08be68b9cf4c7ff76b740fb6a522a63e838b5a010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d0100000000000000e2f4efaa91da8465ac7d109cd80be5c02b9ba7a0603ff372cd77824de17f6c4201000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a0100000000000000dc68569b46a09aebabe8fc4452e293fac635e4a2889739809b32e4e2303e3f71010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf7101000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e1201000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d120010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e660100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad614010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a010000000000000072183c2429e4966be5cb14c9cb84d6e4092b4e55d8ebe2534cbfa179b6f85325010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d0526280100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d87081320100000000000000421f3fea780f04810915479b2b72ba55591d1db37a425cae170548a50127f83001000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000d08dade453078ef481107714d602bafaa5f1247ec053c3fb62fa8ce53c1df4700100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000b47377c358164a12a68a76035ac0479022018f5e9a3fd8fc915b265f92b74d4a010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c0100000000000000c01b5bef9653fd67a8b11907f4c2a9b12cb24237768ad9188330794e9242a723010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a520100000000000000783134a08ea27221e873043cd0ee52a9f79c2eb14d5cd25afed24d7c82cb2246010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e0100000000000000343d27f7f66355f47054ee18bfe7df92bdd8b1aaf9391ba3b8b022905f95f94e0100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d4540100000000000000941f291e924d50ffa173fb0a86b37e11915b06910a54d418b0a20998d0303a6901000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c01000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000dcbaae9e44c778fd2914d5940c24033575b5b0ef13d0157a667e4a52d9e719070100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b590100000000000000ce323186d64f267b11e6dd0bef533ae85d282b40f90e38eef37f191a7927663f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c0100000000000000dc5dac973975ef5f4edef722e9727d0c05a73e4e45f7e524a8d216d2a691a6710100000000000000a0887bd2c2058519096e8dcebf495f2ef274490994e969063f72a41b3fab80720100000000000000d2838a30fd86f5f19aa80481630ecd0ee0fe5aa565ea15786f37a22a87cc1b7d01000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b25101000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000c09be470dab56a2b45b94ba6dac8ed9d515f1d3785cb4eacab40d0a80aa42b1c01000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a0100000000000000526e1fca7613776cab9c7b4ef9b4577b35adbac416c48529b6058a5f9d133210010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d7101000000000000009c576fccaf2ffb4885a0ac8ed7ba0b80ee5fd060856fb9f80bdd3219e5d7800d010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000607fc085eaca16b6a51e44ac9f61a689e869efe15b4da37be15b78c17b193b0301000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a0100000000000000824792c3ed55b88805009230d67bd8059eb9958dc23900e4b1a6efe61dc0e96b01000000000000008c73f71ea9e64834a5e048824978864a96c5c600f42f8a7350dd10ac088ecd2101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc13620100000000000000502c19c77976b8cb0c47b08cd465a75bd7d25734fac0048342c697501533ee2101000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000524c4d2a0ab6f9687123f9c8a9ab4fe2c70f9fc3b1863b4fde16f4dfaddc7d570100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d26273010000000000000000e2ef06613c993996e6eddf381c0f035659593515d10d664fb6bc1002bb921a0100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce007601000000000000001049c5c0f0493537f48c6b122d697f28cf8ea36ab772591ae875da8aae1198520100000000000000bc3bf978ea283cf493b43928b605309be31def9d4a1daf47788017ac61c7c81b0100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a7010220100000000000000c2041cb909e2a314df816d3234a893c1d387f4d4f9a4379d11400963b134a753010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa390100000000000000484b6b8012254027636d95e66c5ea7ee68dbdf9ef6ad3c2fc00cfe5c39fdaf7c010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000e816e2e76f7ccbdefdfd484aa8b5f904d293ae8694e21a92990da54f17e244090100000000000000c664c419396f160467b184251d893f1a1d468e0d230691dd0123d60d446c5b6201000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c660100000000000000ce60d2c987bbeeaceff8463484b717ce80cbcf3d8f8b2102e95effc88000d95d010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000060edf92540ed4cbb944b399cabc91a7b9641bfd553bae0479b442f9d5bc7c2101000000000000002abc6a5d748978a4023c3597c49178db2349ea6af5a9b61783095af8e427027c010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000121f9d8ba85d89e3c6f9a0fedcdfc9b05cc40a6d3324eff6e8a58aec5f5259050100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000e20f692ef4d1cdecf74a65aed29a64a001ca7a83f01f8440c5725ccaa8fb8e2f01000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a01000000000000000c68512e2e5dca7783df908fa702dce48d67a439655fe52de6d29cb07890445a010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe083721560010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000078fb9f8411552c70290a09cdc6a0e235c74364d37204ec06ab62a4d45201233e010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a547dfc28e6730b12b365a1cb7dbca5199e04d75aeb07c7b5da4b0245daff5d0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b490100000000000000163a52c9bc0e859d814e742b7b5c8ad8e9c603d3d1f2b896256df27320290f050100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd130100000000000000f6d56c6aaa5121b6a63f13af233d5233b608d53eb7f789a3db3749a4cea2f34f010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d6401000000000000008e0b3a52dae8c17703f7093d386f5fd8fb1c35a585e7830ca06fa84ba489f2610100000000000000b4e86264fd55571f5016e82a1eeba2476b1d0349fdd175d2443ea30bee0b5207010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec1720100000000000000bec182c65eec6dbc4d89c474a6f6fc6cb6853946eacfc93762cc3616ecd3c47f0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000aa92f32eab7cb844bfce67787d5921e9eb63368577d9c46e9c276dbd2288064c0100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f01000000000000000a43fe86fb05c4f76c85474f9867e987d7f894b0f7fdba0b85c323c3103d3b4a0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a0100000000000000126a7f10393da0379401ed5fc6945ed0cc3a795c2a192b0bbc3708d24ada404401000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd932571210100000000000000aa8727e4b0a95c761b5f2506159a25195d3efca5dafa334f871c3cf262fcc56e01000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000001a8de0dd57069c2986c48b25cd40c13d2acb62fad487a82f4f13738e34418c1f01000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c0853010000000000000048970bde717a65371534a2b878995c8bc6c230d556035fa003da1c523092332a01000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000002234e01370aa10159040ac893ffebe3eb28540b8eebe03f5ca658b20866de36e0100000000000000bc3bebcbf6142977fdbe8492bd2c5947a16d38925d56f09db1ef164b608b912601000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000aac332418d8cd5cc9a903a06cbc8f639d32b32163713dd60d065b949abf83679010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e2101000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000662f5ccb0a265c7438d4166b72c2d0106b74f928e995dcd24004c67ad715217e0100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca92734468720100000000000000f7cff79458978cd2bff24aae8998623a56cd921ea318c40201b4fe2cd3fb781601000000000000000400000000000000026441c5d73eef491062ed18d31770e3f8a95eba0a9e78b407d28c706c6f06332775af160101dc1d00000000000013cde410000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b92001000000000000003ae9dfa8b24faaf16407328ff38a89b25fc7c673c44f9de3de0c011233d4226d0100000000000000e84529a1a5d90df032f8a38981b1e973b2551ffd11eba49d54e278499708473201000000000000009e47382505cd1a803bdbe7803d36a61413e58697bd9396ce1607c89a48d1e0510100000000000000e07446ce5f2219527928039f41b43de71567e0d247a53064b32a1732a9bab306010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000ae40860237c8f606dfb6974046eaa6b6b96f8d0aef56fbe3ce4865f66646bd260100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f3548943901000000000000003a80d898638dccd4aaa472e7948e7394969cc443335c494159948915c097c036010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae6036820010000000000000078c88041bbca9b2bebd62fde7c46f4dc5e55d8877a113d063a6b525dfd6f7f2a01000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb120100000000000000723f3865d97a772459da8942cbb4757164f1fe7485cbcefb4b206e157ee5ed0201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc56010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000000e164f314984e9a172a3a1526d853ff70bd11f3c596f17accbbebe2f7820833c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000098faca5e78664fd082bf47f0079de33a5021415c8f5f912941e651a0b7071d1f0100000000000000ca6e63cec4c0801ecd740073da08be68b9cf4c7ff76b740fb6a522a63e838b5a010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d0100000000000000e2f4efaa91da8465ac7d109cd80be5c02b9ba7a0603ff372cd77824de17f6c4201000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf7101000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e1201000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d12001000000000000004052e492aef88954afd9666ecb54ef5303a87394cb0690610841955f3dab1175010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e660100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad614010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a010000000000000072183c2429e4966be5cb14c9cb84d6e4092b4e55d8ebe2534cbfa179b6f85325010000000000000062d976890a75034b16ddf5c2cfe9e50620782336e19159bb0a11b585b5920f71010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d0526280100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d87081320100000000000000421f3fea780f04810915479b2b72ba55591d1db37a425cae170548a50127f83001000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000b47377c358164a12a68a76035ac0479022018f5e9a3fd8fc915b265f92b74d4a010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c0100000000000000c01b5bef9653fd67a8b11907f4c2a9b12cb24237768ad9188330794e9242a723010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a52010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e0100000000000000343d27f7f66355f47054ee18bfe7df92bdd8b1aaf9391ba3b8b022905f95f94e0100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000ea7a085eb85651e30b4420daeb2935d87931349e62728f7329b46755d424c2320100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d4540100000000000000941f291e924d50ffa173fb0a86b37e11915b06910a54d418b0a20998d0303a6901000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c01000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b590100000000000000ce323186d64f267b11e6dd0bef533ae85d282b40f90e38eef37f191a7927663f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c0100000000000000a0887bd2c2058519096e8dcebf495f2ef274490994e969063f72a41b3fab80720100000000000000d2838a30fd86f5f19aa80481630ecd0ee0fe5aa565ea15786f37a22a87cc1b7d01000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b2510100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c5792501000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000c09be470dab56a2b45b94ba6dac8ed9d515f1d3785cb4eacab40d0a80aa42b1c01000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a0100000000000000526e1fca7613776cab9c7b4ef9b4577b35adbac416c48529b6058a5f9d133210010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d71010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000607fc085eaca16b6a51e44ac9f61a689e869efe15b4da37be15b78c17b193b0301000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a0100000000000000824792c3ed55b88805009230d67bd8059eb9958dc23900e4b1a6efe61dc0e96b01000000000000008c73f71ea9e64834a5e048824978864a96c5c600f42f8a7350dd10ac088ecd2101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000008c6d9a2bb472764af439b9dd83d68dd0a0c1a77fbf1025a0e6bbfa3e9c8e857401000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc136201000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000524c4d2a0ab6f9687123f9c8a9ab4fe2c70f9fc3b1863b4fde16f4dfaddc7d570100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d26273010000000000000000e2ef06613c993996e6eddf381c0f035659593515d10d664fb6bc1002bb921a0100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000bc3bf978ea283cf493b43928b605309be31def9d4a1daf47788017ac61c7c81b0100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a7010220100000000000000c2041cb909e2a314df816d3234a893c1d387f4d4f9a4379d11400963b134a753010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa390100000000000000484b6b8012254027636d95e66c5ea7ee68dbdf9ef6ad3c2fc00cfe5c39fdaf7c010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000e816e2e76f7ccbdefdfd484aa8b5f904d293ae8694e21a92990da54f17e244090100000000000000c664c419396f160467b184251d893f1a1d468e0d230691dd0123d60d446c5b6201000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c660100000000000000ce60d2c987bbeeaceff8463484b717ce80cbcf3d8f8b2102e95effc88000d95d010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000060edf92540ed4cbb944b399cabc91a7b9641bfd553bae0479b442f9d5bc7c2101000000000000002abc6a5d748978a4023c3597c49178db2349ea6af5a9b61783095af8e427027c010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000e20f692ef4d1cdecf74a65aed29a64a001ca7a83f01f8440c5725ccaa8fb8e2f01000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe083721560010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a547dfc28e6730b12b365a1cb7dbca5199e04d75aeb07c7b5da4b0245daff5d0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b490100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd13010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d6401000000000000008e0b3a52dae8c17703f7093d386f5fd8fb1c35a585e7830ca06fa84ba489f2610100000000000000b4e86264fd55571f5016e82a1eeba2476b1d0349fdd175d2443ea30bee0b5207010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec17201000000000000006ac767a27a7c0d66cc9493e93dc9d37a114b8a05ef7ee4b22db346661446e6280100000000000000bec182c65eec6dbc4d89c474a6f6fc6cb6853946eacfc93762cc3616ecd3c47f0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c01000000000000006cb06d06d7955ca5e61897e7f2c4576469e09185f010d96e9bcc84533d1a036b010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000aa92f32eab7cb844bfce67787d5921e9eb63368577d9c46e9c276dbd2288064c0100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f0100000000000000d80eba00fd45442e9305434d637564baed7a12136c89734e4ca850db419f0c3a01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f01000000000000000a43fe86fb05c4f76c85474f9867e987d7f894b0f7fdba0b85c323c3103d3b4a0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a01000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd932571210100000000000000aa8727e4b0a95c761b5f2506159a25195d3efca5dafa334f871c3cf262fcc56e01000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000001a8de0dd57069c2986c48b25cd40c13d2acb62fad487a82f4f13738e34418c1f01000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c0853010000000000000048970bde717a65371534a2b878995c8bc6c230d556035fa003da1c523092332a01000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000006edcddd44823f4f48b53a4172c3bbe239842ac1e663eeb0222fd715d050d7a5101000000000000002234e01370aa10159040ac893ffebe3eb28540b8eebe03f5ca658b20866de36e0100000000000000bc3bebcbf6142977fdbe8492bd2c5947a16d38925d56f09db1ef164b608b912601000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000aac332418d8cd5cc9a903a06cbc8f639d32b32163713dd60d065b949abf8367901000000000000007011cf9db6405d2a4b0ffe11b6a6f9de0c8919d0f70e980d6c6e221e98590e0a010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e21010000000000000038ab6c4b18e1c86176cf53301ea990f1cdddcdc3f2c3e0f8dde126fa59f60b2f01000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000dc9fce160b2cd9c97257b75c861d32348337de685c69042659eec13a0055b4500100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000662f5ccb0a265c7438d4166b72c2d0106b74f928e995dcd24004c67ad715217e0100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca9273446872010000000000000049e7432ee40ede3d43ba6ed37822ac124d32bd6605844c728e889df99472bc1501000000000000000400000000000000026646627e2646c3b728990fc968ec647c2170e66b55fbe48365e54557ae43756916a6160101db1d000000000000b3c3e410000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b92001000000000000003ae9dfa8b24faaf16407328ff38a89b25fc7c673c44f9de3de0c011233d4226d01000000000000009e47382505cd1a803bdbe7803d36a61413e58697bd9396ce1607c89a48d1e051010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000ae40860237c8f606dfb6974046eaa6b6b96f8d0aef56fbe3ce4865f66646bd260100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f3548943901000000000000003a80d898638dccd4aaa472e7948e7394969cc443335c494159948915c097c036010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae6036820010000000000000078c88041bbca9b2bebd62fde7c46f4dc5e55d8877a113d063a6b525dfd6f7f2a01000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb120100000000000000723f3865d97a772459da8942cbb4757164f1fe7485cbcefb4b206e157ee5ed0201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc56010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000000e164f314984e9a172a3a1526d853ff70bd11f3c596f17accbbebe2f7820833c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000098faca5e78664fd082bf47f0079de33a5021415c8f5f912941e651a0b7071d1f0100000000000000ca6e63cec4c0801ecd740073da08be68b9cf4c7ff76b740fb6a522a63e838b5a010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d0100000000000000e2f4efaa91da8465ac7d109cd80be5c02b9ba7a0603ff372cd77824de17f6c4201000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a0100000000000000dc68569b46a09aebabe8fc4452e293fac635e4a2889739809b32e4e2303e3f71010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf7101000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e1201000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d120010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e660100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad614010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a010000000000000072183c2429e4966be5cb14c9cb84d6e4092b4e55d8ebe2534cbfa179b6f85325010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d0526280100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d87081320100000000000000421f3fea780f04810915479b2b72ba55591d1db37a425cae170548a50127f83001000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000d08dade453078ef481107714d602bafaa5f1247ec053c3fb62fa8ce53c1df4700100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000b47377c358164a12a68a76035ac0479022018f5e9a3fd8fc915b265f92b74d4a010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c0100000000000000c01b5bef9653fd67a8b11907f4c2a9b12cb24237768ad9188330794e9242a723010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a520100000000000000783134a08ea27221e873043cd0ee52a9f79c2eb14d5cd25afed24d7c82cb2246010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e0100000000000000343d27f7f66355f47054ee18bfe7df92bdd8b1aaf9391ba3b8b022905f95f94e0100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d4540100000000000000941f291e924d50ffa173fb0a86b37e11915b06910a54d418b0a20998d0303a6901000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c01000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000dcbaae9e44c778fd2914d5940c24033575b5b0ef13d0157a667e4a52d9e719070100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b590100000000000000ce323186d64f267b11e6dd0bef533ae85d282b40f90e38eef37f191a7927663f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c0100000000000000dc5dac973975ef5f4edef722e9727d0c05a73e4e45f7e524a8d216d2a691a6710100000000000000a0887bd2c2058519096e8dcebf495f2ef274490994e969063f72a41b3fab80720100000000000000d2838a30fd86f5f19aa80481630ecd0ee0fe5aa565ea15786f37a22a87cc1b7d01000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b25101000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000c09be470dab56a2b45b94ba6dac8ed9d515f1d3785cb4eacab40d0a80aa42b1c01000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a0100000000000000526e1fca7613776cab9c7b4ef9b4577b35adbac416c48529b6058a5f9d133210010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d7101000000000000009c576fccaf2ffb4885a0ac8ed7ba0b80ee5fd060856fb9f80bdd3219e5d7800d010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000607fc085eaca16b6a51e44ac9f61a689e869efe15b4da37be15b78c17b193b0301000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a0100000000000000824792c3ed55b88805009230d67bd8059eb9958dc23900e4b1a6efe61dc0e96b01000000000000008c73f71ea9e64834a5e048824978864a96c5c600f42f8a7350dd10ac088ecd2101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc13620100000000000000502c19c77976b8cb0c47b08cd465a75bd7d25734fac0048342c697501533ee2101000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000524c4d2a0ab6f9687123f9c8a9ab4fe2c70f9fc3b1863b4fde16f4dfaddc7d570100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d26273010000000000000000e2ef06613c993996e6eddf381c0f035659593515d10d664fb6bc1002bb921a0100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce007601000000000000001049c5c0f0493537f48c6b122d697f28cf8ea36ab772591ae875da8aae1198520100000000000000bc3bf978ea283cf493b43928b605309be31def9d4a1daf47788017ac61c7c81b0100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a7010220100000000000000c2041cb909e2a314df816d3234a893c1d387f4d4f9a4379d11400963b134a753010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa390100000000000000484b6b8012254027636d95e66c5ea7ee68dbdf9ef6ad3c2fc00cfe5c39fdaf7c010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000e816e2e76f7ccbdefdfd484aa8b5f904d293ae8694e21a92990da54f17e244090100000000000000c664c419396f160467b184251d893f1a1d468e0d230691dd0123d60d446c5b6201000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c660100000000000000ce60d2c987bbeeaceff8463484b717ce80cbcf3d8f8b2102e95effc88000d95d010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000060edf92540ed4cbb944b399cabc91a7b9641bfd553bae0479b442f9d5bc7c2101000000000000002abc6a5d748978a4023c3597c49178db2349ea6af5a9b61783095af8e427027c010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000121f9d8ba85d89e3c6f9a0fedcdfc9b05cc40a6d3324eff6e8a58aec5f5259050100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000e20f692ef4d1cdecf74a65aed29a64a001ca7a83f01f8440c5725ccaa8fb8e2f01000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a01000000000000000c68512e2e5dca7783df908fa702dce48d67a439655fe52de6d29cb07890445a010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe083721560010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000078fb9f8411552c70290a09cdc6a0e235c74364d37204ec06ab62a4d45201233e010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a547dfc28e6730b12b365a1cb7dbca5199e04d75aeb07c7b5da4b0245daff5d0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b490100000000000000163a52c9bc0e859d814e742b7b5c8ad8e9c603d3d1f2b896256df27320290f050100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd130100000000000000f6d56c6aaa5121b6a63f13af233d5233b608d53eb7f789a3db3749a4cea2f34f010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d6401000000000000008e0b3a52dae8c17703f7093d386f5fd8fb1c35a585e7830ca06fa84ba489f2610100000000000000b4e86264fd55571f5016e82a1eeba2476b1d0349fdd175d2443ea30bee0b5207010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec1720100000000000000bec182c65eec6dbc4d89c474a6f6fc6cb6853946eacfc93762cc3616ecd3c47f0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000aa92f32eab7cb844bfce67787d5921e9eb63368577d9c46e9c276dbd2288064c0100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f01000000000000000a43fe86fb05c4f76c85474f9867e987d7f894b0f7fdba0b85c323c3103d3b4a0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a0100000000000000126a7f10393da0379401ed5fc6945ed0cc3a795c2a192b0bbc3708d24ada404401000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd932571210100000000000000aa8727e4b0a95c761b5f2506159a25195d3efca5dafa334f871c3cf262fcc56e01000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000001a8de0dd57069c2986c48b25cd40c13d2acb62fad487a82f4f13738e34418c1f01000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c0853010000000000000048970bde717a65371534a2b878995c8bc6c230d556035fa003da1c523092332a01000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000002234e01370aa10159040ac893ffebe3eb28540b8eebe03f5ca658b20866de36e0100000000000000bc3bebcbf6142977fdbe8492bd2c5947a16d38925d56f09db1ef164b608b912601000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000aac332418d8cd5cc9a903a06cbc8f639d32b32163713dd60d065b949abf83679010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e2101000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000662f5ccb0a265c7438d4166b72c2d0106b74f928e995dcd24004c67ad715217e0100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca92734468720100000000000000f4751bb25e58daf18770161b19fc3c544f5b5d3986275612bfaeba70d882887101000000000000000400000000000000027494065a1f61226b66736add1b00a214e14611c3f78e1ab4d3e0d9c69ae732f875af160101dc1d00000000000013cde410000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec2145417501000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b92001000000000000003ae9dfa8b24faaf16407328ff38a89b25fc7c673c44f9de3de0c011233d4226d0100000000000000e84529a1a5d90df032f8a38981b1e973b2551ffd11eba49d54e278499708473201000000000000009e47382505cd1a803bdbe7803d36a61413e58697bd9396ce1607c89a48d1e0510100000000000000e07446ce5f2219527928039f41b43de71567e0d247a53064b32a1732a9bab306010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f160100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000ae40860237c8f606dfb6974046eaa6b6b96f8d0aef56fbe3ce4865f66646bd260100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f3548943901000000000000003a80d898638dccd4aaa472e7948e7394969cc443335c494159948915c097c036010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f77480801000000000000002049288b4dbfb741109778c602f9308daf2e31b3b66e9aa550065e73c6787d7c0100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae6036820010000000000000078c88041bbca9b2bebd62fde7c46f4dc5e55d8877a113d063a6b525dfd6f7f2a01000000000000002e85d3d2c07aaf1c0a5f63f544c34b87cfa90a98c4f6167e86cee0b74a20cb120100000000000000723f3865d97a772459da8942cbb4757164f1fe7485cbcefb4b206e157ee5ed0201000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b01000000000000001822493200c35242a149070784dca5e7012a8a52b61cd218ec7d65e469e8cc56010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000000e164f314984e9a172a3a1526d853ff70bd11f3c596f17accbbebe2f7820833c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000098faca5e78664fd082bf47f0079de33a5021415c8f5f912941e651a0b7071d1f0100000000000000ca6e63cec4c0801ecd740073da08be68b9cf4c7ff76b740fb6a522a63e838b5a010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d0100000000000000e2f4efaa91da8465ac7d109cd80be5c02b9ba7a0603ff372cd77824de17f6c4201000000000000000ef6f09a9e310abb5c57dd7050a94d56d766772b80789b997cbb40f3b40f625d0100000000000000a88864a0dc9e292aa7cc8eddaa8dd8b6be2a4bc7e8f290023c6604e5c4ad1a7a010000000000000034ffee048e511f4187a6f40339650ec60a3d99ac5a1158ae162c5729b59d51740100000000000000be7c58318c49ff328d53a6d67830a8a046a41f5124824d3ce2e72cc9965ef57e0100000000000000b06e3ee1ea6420fb73ebd502988420f51b977a83074e1aa5daf0121f4a8b6b1e01000000000000003843abe933fa3ce63f3a5e422e13ec05dc9c0e8f150b93a0fa97f1b193cfba2d01000000000000009cdd57a06bd22d104d539527a19033620becff73dd267f0c2f9f13bc37b0d32c0100000000000000e020b5e946e4c6b0603ceac71b44c330fa7d9cb3e79791ebe1e16bedbb9c71000100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000009e9f565a8cb6e8f2154a9833735930a04003505856c3743a0f71afe64c7acf7101000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000f23d1b22d1b03c9fb6eb203c85761fe429a60c38d6591d215e873d62f5d2e4010100000000000000283a77cab50b96f99a8e8287c1488ebbcf31fc3daa953ffa99ac16db982f1e1201000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d12001000000000000004052e492aef88954afd9666ecb54ef5303a87394cb0690610841955f3dab1175010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e660100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad614010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a010000000000000072183c2429e4966be5cb14c9cb84d6e4092b4e55d8ebe2534cbfa179b6f85325010000000000000062d976890a75034b16ddf5c2cfe9e50620782336e19159bb0a11b585b5920f71010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d0526280100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d87081320100000000000000421f3fea780f04810915479b2b72ba55591d1db37a425cae170548a50127f83001000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000b47377c358164a12a68a76035ac0479022018f5e9a3fd8fc915b265f92b74d4a010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c0100000000000000c01b5bef9653fd67a8b11907f4c2a9b12cb24237768ad9188330794e9242a723010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a52010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e0100000000000000343d27f7f66355f47054ee18bfe7df92bdd8b1aaf9391ba3b8b022905f95f94e0100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000ea7a085eb85651e30b4420daeb2935d87931349e62728f7329b46755d424c2320100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d4540100000000000000941f291e924d50ffa173fb0a86b37e11915b06910a54d418b0a20998d0303a6901000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001e825121b8beecb30e9962a555ce06b9e2c65fcf3b0023178556330d565bcb4c01000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b590100000000000000ce323186d64f267b11e6dd0bef533ae85d282b40f90e38eef37f191a7927663f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c0100000000000000a0887bd2c2058519096e8dcebf495f2ef274490994e969063f72a41b3fab80720100000000000000d2838a30fd86f5f19aa80481630ecd0ee0fe5aa565ea15786f37a22a87cc1b7d01000000000000009acfd215519f40156749868afc8d56e015759f71cf183fe68382e8c02c75b2510100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c5792501000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000c09be470dab56a2b45b94ba6dac8ed9d515f1d3785cb4eacab40d0a80aa42b1c01000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a0100000000000000526e1fca7613776cab9c7b4ef9b4577b35adbac416c48529b6058a5f9d133210010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d71010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000607fc085eaca16b6a51e44ac9f61a689e869efe15b4da37be15b78c17b193b0301000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a0100000000000000824792c3ed55b88805009230d67bd8059eb9958dc23900e4b1a6efe61dc0e96b01000000000000008c73f71ea9e64834a5e048824978864a96c5c600f42f8a7350dd10ac088ecd2101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000008c6d9a2bb472764af439b9dd83d68dd0a0c1a77fbf1025a0e6bbfa3e9c8e857401000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc136201000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca22010000000000000092239fbae2557ff2ea3952c962e478e6ac2a5b3e3cfffb0eb40e8d41860ab0470100000000000000524c4d2a0ab6f9687123f9c8a9ab4fe2c70f9fc3b1863b4fde16f4dfaddc7d570100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d26273010000000000000000e2ef06613c993996e6eddf381c0f035659593515d10d664fb6bc1002bb921a0100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef3876760100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000bc3bf978ea283cf493b43928b605309be31def9d4a1daf47788017ac61c7c81b0100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000b6ed5b0c17ca7560c71f1778694741009d3da979309617f0bb992084019e25290100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a7010220100000000000000c2041cb909e2a314df816d3234a893c1d387f4d4f9a4379d11400963b134a753010000000000000028702457fd7ea52bb88284bfcd721493ceae3ea984492a1b82c55efa1b62fa390100000000000000484b6b8012254027636d95e66c5ea7ee68dbdf9ef6ad3c2fc00cfe5c39fdaf7c010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000e816e2e76f7ccbdefdfd484aa8b5f904d293ae8694e21a92990da54f17e244090100000000000000c664c419396f160467b184251d893f1a1d468e0d230691dd0123d60d446c5b6201000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c660100000000000000ce60d2c987bbeeaceff8463484b717ce80cbcf3d8f8b2102e95effc88000d95d010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000060edf92540ed4cbb944b399cabc91a7b9641bfd553bae0479b442f9d5bc7c2101000000000000002abc6a5d748978a4023c3597c49178db2349ea6af5a9b61783095af8e427027c010000000000000094d89cb8df2b03c76d41a6521e5803d6f98e204e1839b9ea747dc7e253d35b7f010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000e20f692ef4d1cdecf74a65aed29a64a001ca7a83f01f8440c5725ccaa8fb8e2f01000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe083721560010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a547dfc28e6730b12b365a1cb7dbca5199e04d75aeb07c7b5da4b0245daff5d0100000000000000bc62cca37518b73aa22efed6a88147f84af5db7b82ef7671d9bbf03c76d22b490100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd13010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d6401000000000000008e0b3a52dae8c17703f7093d386f5fd8fb1c35a585e7830ca06fa84ba489f2610100000000000000b4e86264fd55571f5016e82a1eeba2476b1d0349fdd175d2443ea30bee0b5207010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec17201000000000000006ac767a27a7c0d66cc9493e93dc9d37a114b8a05ef7ee4b22db346661446e6280100000000000000bec182c65eec6dbc4d89c474a6f6fc6cb6853946eacfc93762cc3616ecd3c47f0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c01000000000000006cb06d06d7955ca5e61897e7f2c4576469e09185f010d96e9bcc84533d1a036b010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe20010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000aa92f32eab7cb844bfce67787d5921e9eb63368577d9c46e9c276dbd2288064c0100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f0100000000000000d80eba00fd45442e9305434d637564baed7a12136c89734e4ca850db419f0c3a01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f01000000000000000a43fe86fb05c4f76c85474f9867e987d7f894b0f7fdba0b85c323c3103d3b4a0100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a01000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa350201000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd932571210100000000000000aa8727e4b0a95c761b5f2506159a25195d3efca5dafa334f871c3cf262fcc56e01000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000001a8de0dd57069c2986c48b25cd40c13d2acb62fad487a82f4f13738e34418c1f01000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c0853010000000000000048970bde717a65371534a2b878995c8bc6c230d556035fa003da1c523092332a01000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000006edcddd44823f4f48b53a4172c3bbe239842ac1e663eeb0222fd715d050d7a5101000000000000002234e01370aa10159040ac893ffebe3eb28540b8eebe03f5ca658b20866de36e0100000000000000bc3bebcbf6142977fdbe8492bd2c5947a16d38925d56f09db1ef164b608b912601000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c28674601000000000000009265e7be28a8f56a974027b630bc37703b7ef21b1b1e4253c54d605f4d10da1e010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e1720100000000000000aac332418d8cd5cc9a903a06cbc8f639d32b32163713dd60d065b949abf8367901000000000000007011cf9db6405d2a4b0ffe11b6a6f9de0c8919d0f70e980d6c6e221e98590e0a010000000000000058efa50da673a8c3b5799e278ae7d32f9eee340947f793f44348ba17e25a885f0100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e21010000000000000038ab6c4b18e1c86176cf53301ea990f1cdddcdc3f2c3e0f8dde126fa59f60b2f01000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000dc9fce160b2cd9c97257b75c861d32348337de685c69042659eec13a0055b4500100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000662f5ccb0a265c7438d4166b72c2d0106b74f928e995dcd24004c67ad715217e0100000000000000723f8c9d81d0874cd4130cb58587c90ef454174e9d6d9dec11279a553caf00430100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000547c6a159db6eb46da71179d0d15dad5691617fc7f3c6a672864655997035c2d010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca9273446872010000000000000049e7432ee40ede3d43ba6ed37822ac124d32bd6605844c728e889df99472bc150100000000000000040000000000000002", - "babeFinalizedBlockWeight": 4559738, - "finalizedBlockHeader": "0xd77079fcf54a7a83fb2b75b24bc4c7b8a776c50c5a6ca04fcf5eba857e2a7f5052c05a04443844f2007aff2b5c8afe4731e735126f337ad52776ffd32f586da47451186fd49b29a11d724d4a7e0eba71b2c74ce1f9fe5958264219cf8ec4160346bc6b12080642414245b501036200000052c4e410000000009a76cf5448916664e377946b2cdf61f1afdc50feae99314db4a62b2ecd5fb24c501e3f442fc8eb763a2fe20657380d5e43c7b8223b90137aeafca12dfe65cd01a3c5a3977a9f1d929cd0855d15aa6f8a5d304ad7f1745bcc857e6e69d0a0e9020542414245010186408d036b3647c440fec22006c5386f1eef56c4fb9314e8bcea8bd26c681f04f8910b1bb3332e0bd2ce3b2cb16a3a9cbf53cb7b1c1152b0693ac90b268eca89", - "grandpaAuthoritySet": "0xa5042f8da08bb2421ef844015c3b2ea23464fc66a9dcb4a2215fe0241f892d19afc50100000000000000fff437ff18629bf1490e5c9b3ec6f1515d46bb9b2aeaa6e39e36611f2479b50d01000000000000000334021ff54e46fb7da4bd257cf113519a0c7ee4a2251b66fe48466fed5853520100000000000000d95f04dc8ea4ac05deea7077457f0406fdd152bd03a7480e7d0de0983b959d3c010000000000000047f940bc985355be7187c709ded2b689b66d69e61e293a507f1d4f90bdbeceee01000000000000004a3fc0fe1020c7f460c7bd23d0b657c03368552b2f0a12d80a1c406fd066e0db01000000000000009b992b5e9b99eb2cd3b2b648d6db81ed722a2feb4938d998b58dcb5d159fadfa0100000000000000aee9de3938173700b3e3f4fbf2b200ae296173a0854157f40de2598dd4cad8f10100000000000000e0b1aae640bfbed119730710c584be65ef59abb3e9ee5dc8a754751e1ba163960100000000000000495a0370e02aadf1beff005feceb521a1d9bb0d85e7fe58658b97ec988fb996c0100000000000000b61e9b13e849779be8f5378a670d61991875d8e091f359384d7be73d02d506930100000000000000426b2be4596a759a15028d84e08c5c56440e6cede68d088f47c671cc3387c3e6010000000000000070ba6e5985990ba1b1392713236f1b50df750f10f744cc6eb95fa7c5cfbc687601000000000000005b27660cd4c375f2654c6d923b29fd8abbab7e96ee040c79598be14f832f56ca010000000000000057ae0c85ebaf333a6ec3251f577cab910cce072f238d1e50046322b83bbc0dd5010000000000000072c09c9e2dc9ab20a65cf70e951352f554442514ba2ac7063966ea7bbe3e6cf001000000000000000139b946b46bee4c61be50c986f2a9ef2e76917644e2ecd842c59d61a94ee612010000000000000019a9d56ea35496122fc44fcb5c29d27fbb43520556d6f8d97753767aaa0f228e01000000000000007cd50f6921fade39653f847bddd48360668004225081a6a3ad7997f78debd34c010000000000000053a51c848834661c92e74b3c2492b8de2591f914ab75345d70e61c79be9699d70100000000000000a5b094ae7c156592baa68ce18dab6368d5b665e9a0f07dfc5f54f58309e086c1010000000000000053352e16d2a27fb3525d5d8750d6ad7f46b303a45e434a409ac727d5cb80432b01000000000000008c54298c6f8704498112ecb24f64f7a28ed2289ec573620b0d1e5a9a44f5fa78010000000000000041ef4a31eb7dc1e01f4630604e1908e644d7cdee3f66a60f98d6d59605326f8b010000000000000097743d6364cdb6c4790cd37c4c2ab5fbc6c65e8bb606625e70a6ee04ed1650d9010000000000000008cc1d6c743da905511a39a6f0a68809a6bc32f8ac25e53bb2d6aca4f493fc9b0100000000000000c9dc00c6a757495c50092362d5c70d2a971ae1da4eb67c9da9f4367c9d408c1d0100000000000000049cb09a86d544249f9e11cf6c348bc0561600343ebee89d1c90bbef3d13e517010000000000000086c42c0f6b8f7c06f9ce823eeecf7cf0371bb5b97f3c7af63872f8bbfb353abd0100000000000000d04d64a07f144638f20f081de122b88fed0cc8bda57e4810e7afb38036dd8bbf0100000000000000f26945a8a64032a1defa76e720a99649125b55751b6088205e7acab901de670b0100000000000000684768723f0efc2001562c3b2156b987601ae9431f8aaa6f4199649cba487aea01000000000000005cba2c6f569da1edc3778308da406f266aa53140381dbb3f14f22909ba6e30040100000000000000c9a741ab82126c4d4eaa6a758cfc1209bbd7b29330e89ccd97fb62ae567c8d4301000000000000009b94bc45bf79bb33f70430c82880456cd7bd5fb3ea131c1b26d493d01c5fe7100100000000000000ce8d085d4b0a9502a680280ecc162bd33533a5ebada62f3be19427542189cb5a0100000000000000a1a9debad5e4afb076cf293c2c797f0b5901ffdb8bd01611235e762411a0db3901000000000000006f4855725ebb9eced957bae43ffa7d30657ce7d06b251ce20e2218bcf929e40501000000000000007c10f10bd6eb9c1201b52c6025545fcbc310432781bbe02629b5cc9e5fdd229a0100000000000000b046cf7d24d49b720b28dd2476b36c157262208fb065c077b1b94db1e9ffa6050100000000000000749556da4a259bc1f0b8ea8e3726c2251656b92205c30b635ec9f42038f8defb01000000000000000ce4d93e25fa5302f4b059456f680047f87be428ae88579e0b862502b5ceed600100000000000000c1758f7cbffeb844419bc494a9dc65fb394259f01e9bf23789a75acc29d7d9620100000000000000c1c1ff5f66fefb5c0849e3b2333411d1f7e9dd4888600e334e7a33623f15fa360100000000000000fe240e80ff8a48a77947b394979cf361017cd906ddaab637d72cf72e729d79bf010000000000000006854c73f5703242d31d2576ac2297c93f0b5dc16ade0097c59d5dc0faa43c550100000000000000c650b1a6b34347bd80ed06b48aa4ae1a33adaa507e8ac23bf6c6b94223b63b9d01000000000000008aabd4f6d7ecec7a749c83fc7be33f3b4818cca6f93a4927b4964900df9454e50100000000000000b9186b95c90d2d00a31e7c68066bd37d73408271762604e3608e2f2c983f830901000000000000003948bfd09bbbc2fe6ac5dfe53146e32df50828eecf7b2b18cdcff8dc385cbd7501000000000000001ba602a293ccdb7a77042fb486c6e010d48b13dff2bef0a26c53637312aac7f70100000000000000ba8180cbc0dceb098ee6b22fe89978bf92ebf196a280470b1501bc2138ec02c70100000000000000f6373ec61f3d99dfcd0bcc6a2b5ddb7e9c8a7d8e5777aa58bc2ac949315dee250100000000000000dc1427d14e83926d22f6be25d1bd39cbc82a194f5e9373ecae644f156ae9c62e010000000000000003d105a30087d96b5f0684f6ded76f826b01dab61e4136e1d851a24f0088b5ed010000000000000020d4e595c50bb9558dad9be6a8784492bbbfc754b9c5fae17edf4f8a84e8b47101000000000000006ba031ff146af5199eeb335a4a9c2fd487685a489e1a154ba1d012e965fdd5ba0100000000000000608f61824d3ae16d443cd0fec15c18590c890d4105e9402cad8743fb423e52b401000000000000000ccee96768f9b1d29d5bd9e63afd2be78a90cc89d19653ff1910cb36000b48530100000000000000818a546c630b881c2161588866965649678cda0f4110cccc3533d0f20e5e41200100000000000000088f8736e1cf2ea3d102f0a96ccf51222b8aa1f93d8e42947892f4395cb5477c0100000000000000c3ff25a1743a9df92af4ccd9a7aed5cbc90f64fd538c3df0a9539128f596526701000000000000004e3fb8c16ad624c1852777456805e5352d0221269de66949c95da4076206b35a01000000000000007ad55381f9de00220678c95a19489640fc61331e2a40d927e3d833555575c6fc010000000000000069a6c84df1d25f855b91040e113a5557da8a89d80644ae7bf8d0ba416ab89b6d0100000000000000cb92ffeace78dbafe6fbf275741b4b38657fb81590712aa0bca7877931f6ad39010000000000000007727680e6caac998c03e3702c7f84e558b592dd76ab2a49cdd3dae16e7e853f0100000000000000e78c36a9d8b145c42c879754a79dde433fa2496c55d6d9f00ae577c6b1ff4dfe0100000000000000f8eb309ab851e8f98aa4bd68138a67dc4a435331598079969053a5325b874a51010000000000000059bba625d971d505a9c7d7c2f3ad69203e69e3e5e1fc1e4905fae7703fa19e030100000000000000ba95f5d0e987305bb794dfeae69d7dd6a7987aa66cd7c9d42aca15e9160ec6a1010000000000000016278af083f6d261762f8a97b6a09ff83e2f5927ce26c2e48f3c7e771dc7e6950100000000000000c49e3cd2c701bb845963c2870dcca12ed070c3f67ffc20144327a93aa6e896ec010000000000000082a1428bcd525a2e77b8f5fb89c73e5fe1261e96e93b383dd2d66767c855c8f001000000000000002dad5b2212ee688f2eeb9ca1fb6a90574f006dc1c6680ac3a8523363a248940b0100000000000000be0a28e5615d9ce3b866b5cf0babf6a7f0e6de06119463382e715b47c89853e40100000000000000b7c13f1239888cda5c8e6ac9ea10675df17633368906e66a487f91ddd3268ca601000000000000007509d9697cb54f627f47b25e80f46f5d1bf483a9cab5f52df69e1a8f612e486f0100000000000000f3b1c0e43606bd49bc84e403db685b577e898b5f7c5db9052bdc3dacf38dc7ad01000000000000008a2b50acd1a4955fc814bf6720c7427902a6ce709f3a2d7c17c55b67f6f1c06301000000000000003a511828c0cdc0fd257387843fdbf6f19d5ca1ef1c29ec7e971fc9f1195eb60c0100000000000000ee5605c1a9ed9484a70b8a591339830f24530eefc4599a7c6188a78896908e2c010000000000000039dbc464cdd3a095627527d2c7cdfa40444369c636578a7e1129c3109ead35260100000000000000d1c146d2429a5a827660008721c7a880e71f44feaa3dc75524c1a9281bac48cd0100000000000000e4b2cffd0b9cacfc500050b27ecae3c55b9b51bd9a416d62605118c8ad4fb09f0100000000000000b28ba3f09e3521f7d09f0098c6743bc218ee2970068adfa5d908d9d06e627ae50100000000000000f6d74de7b39455519a5d6480c8f12c93fc7a4cfc9af39154fc60857a39ad888b010000000000000099f58256a4a5d6cf5d99f0cdebbcbe1477db461457647631cd21ca7f3120da6001000000000000002bb7b11dfe79a12110b0370510ef20d40ba8a563f517310f8bf37cf7f0403de40100000000000000b71a15131dd5df7c4fdc0b13abdd27488d2becdeacb8a42a227dd90ce92057f2010000000000000040533a786cd0be9618126633512666b1b1b9ab3b436fa653c93e2f65da9c196b0100000000000000be95095d93298171c6fb8a1847adfa173d127e13f53482dcb694f891d68f0c58010000000000000085b714accac0654ba57fac59b626dd35802269d2c1d995cea7c335cb05a88f7f01000000000000006a5f902cdeda2c2161d16bd21d586720c08c0bbb7b463d9c59147338d26a8a960100000000000000bbad19c54e41fe818395f38b2771d4f83813441596016c9a01afd591c2bee87b0100000000000000f459c0d1b1e42bf6c6f976b70e15e2842d753200ce2f901a7cf1b8c9bfb10c0401000000000000009c11e35911f023df6e4d218e53412ab4e4a20c17961d63ba381c913b51f394c00100000000000000ac61d1b7ba7b5731e691f8293c6338ef8e909f97d7eb94c0e7874e17afb0ea5b0100000000000000ffcca343512faeffe1cb3a8a7ce62fa4ee0c7f6a5f3e5ac883482846e132813d0100000000000000fd4ae377dbe850ae5bdd50c71831ccf889ede1785d4011f20e3ca6edf0b93900010000000000000037483029302a84623f0a8db165fbed905b0a4fc25e7cfb56e975a0e98336a59b010000000000000053b5918f72e73f92f32b578d1b602f0cc554d98bee8c4e131ef0ac7a63399fb40100000000000000f9908ae5581496061d7e62b966463ac3fe3b52c4dffbffe4d565d4eb3b8b6dd00100000000000000c7d9cab0fb88dccd0cf4abbf5df9d7f36a3de439c5070c599d397e74133bdfed0100000000000000866fe4ae134938ccf4c5caf01358881c75cfde473b0bb8a2623cc231db2ea3b901000000000000005d202a011f023dfaa6713f16bfd4409dde8bfe594abd59e2be32484c73b979820100000000000000756dd17b3ef4077e4df06f9ce7eaa98fa7dd158f1cba596567f0b89cc12544270100000000000000fc555c014d927fe7838e840609916b9af5d93892ce6f394398858286802b8c6101000000000000006727561447ed474ff4e15645b952a37fa5008d4e694d4853bb55594fa34c4f340100000000000000ec295fb809e22c332aa36a57afe05f2c093b2d13e52b0971d8265c5514e4e9690100000000000000efb5f1e4c4ba37f8c159d452d897c607a58518b8355a8454620b3e3ccc3271230100000000000000f71fca8770328d06e9a45e650e5f58c15feb8ec77ca2dce397490bedfa37db4801000000000000008c3dbd5a1b928cb51e918452191e5328b0f6e8de0259517831a90b02dba3e6110100000000000000aa6fd06015b8309ea9103f4b0e29bfa7e21ab5bb1431c3a76433f591c739f8380100000000000000a892342c56149812a43e98c82b6a3dfee7eff384d9b6d832002ea63838f64900010000000000000005b78368482b0584326a9c0176949523c03ab1446a8aa021701aa9837ccf04fc010000000000000023f07bcb8dade90cefd08732183d5fe32b89ad8a4f84987b9e4e7e767c2587560100000000000000be6b59cb464fadec4e0b22a9f12857ba5cf7a14c4f9551439d36305d582dd7fb0100000000000000035c917f27530f3f99142c77541cbc6ac4f27fd49008c0371e54640ec3b49dfe0100000000000000f916634f9fd7e54374e30ac6b722ad1793c13cb2d5f2ad38769eaca2f79d414b01000000000000007ba967a2dae0d8839cf44710591db994d18e53b25ec6d0f861da0037c4a4366a0100000000000000acc5d703d7819d7993784e6ce107cd4c5625954d3baab0bcc07afe7d8c473a2201000000000000004d4a140145f83598fc5a3839260723176f643ae286ff7b2fc460b897fb050a4501000000000000007d3011d58467b4677391062477ccc42adf126de1587287ea7f1af3510817840c01000000000000007e15c89cc954f1ddd6a5f2e9f482c1143f5b7b4ba406ed1264fd25a999f223f20100000000000000442fc5263e255282e1dd5fc8e56c3e72c18648243da370fbad832275de9abc5c0100000000000000d0b4aada93fb3d0b358e8d59f8914f5987acbc6f5b4f3e12a1ed8d962eded82701000000000000004f950be5bf61958a0ae6e6a036b85b33ba838de8bd5508b558cbe2602d341168010000000000000082e6b6bf1f275c59fbde0dad91393ae690d5e644d11d23898a9ccfdda025920a01000000000000004659b8114500937a2db0c810e194610c582865305e141d04e52ee989b80edd87010000000000000074b60dfb12745236ba9dc8f925efa21482b50c870c567638ba3240a05fe363d90100000000000000d761043f405069ac01285f1ff258450aac675f08d906b1ae0a1ce54eabcb36d901000000000000005047f4a799401d6a39e92c7331147b38b421ea59f96d87426c294c660d1ba3d10100000000000000147e7434965c27c972446e97a5f2e8c92e3031858a7d576ce5187eed4e6434d70100000000000000423e84653aad03ac3c5a6eba17239343a6856a514bf898ed61822f67f2bdcfcd0100000000000000d3b3d9703a265a51a137b9de348587c645a168981ef3e01c9dc482856751b8ef0100000000000000cfb9f7f1fcf903a51af729ed1647aee928630e148990309f9dc9f3b14b114b760100000000000000a2ee8d9c22eba97998d63854409d99c87b21d079f5c888d863a81d41d6abf0110100000000000000d14a779884de1b2fbf079b8e47e8c0edb1c29e282996899a4eab5aaf1f4f41130100000000000000c2344c6fb787621295335b6b5acbab9531199901492d41e13a64dfb2927f83be0100000000000000da0ea9347962105f4b59f4fd04a85b0493736dd9afddb20829771816bdc3ca6301000000000000004c51b84496e533a7f1bb2b806f3733a7f0a48543976d0a4e5410e831f93e041701000000000000009c39dae41fdfa2e72ce57a6c899b01edf5d1aa421d429ba86d4d1741c58317590100000000000000615d64d17a182504db609d14dc6a45a109817cfaaad1608b4c48382bee48d3780100000000000000155763a153e0c02b2eef1d8a9cd8a50a9eaac9d3af7ad1e559b1e2320b521e1c01000000000000005208fe27477acbc6750d0caa831c0b26801c58eca046a6cf9d4143f85d877e8301000000000000004242378110faf2970e19fa227955307e8fe2d055824a2aa3ca2600b933ceb63a010000000000000025ebbb2a00126545bbedf00318a78b6e61a0b52c81e30231ff45bd32e311472f01000000000000003773b05d2e2660498c8d407a1d6223423c26aa08b9b3656af94d78b861fba22f0100000000000000be177f23c0065f9135b057181534bbf09c5f9daecce6c99aa2e9267202fc4f900100000000000000500a9e1ea37636c24ebf4e32668897dae936eef42b6da49027f606d4f24a7e96010000000000000039712f967c4e06d284d6da4735cf2823c1f770674b668f7bc896071c3fd41eda010000000000000046f540d46498b7e5c53d650c28a682f61a769919fe3a3554114cde720c05ebea01000000000000009a5df54f5051a3f41be540c0eb233df31dd82a3acb755a3b42eafb6ca47b06d201000000000000004df6e4d7da2c11ddb9153c714699f9ab625bbcd5e8e38f1cdeee567dc04abc610100000000000000d9b96ab14d54cf0093b00b5bb592a6ea6036f844bf7eaa3b5181d0764e1724b901000000000000009cfeed14dd2f96550a0e7edebd9c9a8c8b1d8f7efdd1abca01987654239f3c860100000000000000fd2fe2f117d597b29474a740ec767fe51cec93544d00e34269b78ddb31225f3b0100000000000000a74ff082093aff29e9a0d9adeb6e6df264b39c15ef1a82bf942e8ba76872bac40100000000000000a9413b5f6af8458b220e467cfa30ec635e0690a843bae76b0c25a387238e45c701000000000000008404cabeb0674765bb77af690fa838ba28fa2045d602994a89f07680f4851c83010000000000000006b9e740c0a0e1f8fd31717438d5918ed8680eaccb70fdc9511931ce0d164ae50100000000000000b8cf76a8082d518016ea5588be57b64e156ed23b0f72248975522c23d15ef16101000000000000002565e04c6e0b665fac87f8238bee74837f8f621ed63409f3838d263603400a980100000000000000c2e6a39d423f82b034e5370932f02653ee45254ced3ec2094640508e3d04d91b0100000000000000d0071dcdd61d5f4df542a2978fc2acd51996ab0abccddf4d64732fc7b83c073101000000000000002a38a4dcdffc571d547ee3e59121fdd378335df7c65877f983f0957cdc9824130100000000000000606f8c9ce630a1ce30fc7b7108fae524bc47bbbb2c838a985d9a651be4fa03450100000000000000620c78305072857b43dadced80ebc057dbfc82b58c14c7b63372ef02140867650100000000000000baf0112f613aa6fff341d67decad56d1c5744a3ebb8e3577e82febbf3535b3fe01000000000000004dc2e72680dbf0156818114fa34d3591f8e6948df25a128e191190c66f6ac35301000000000000001ebe41ca4cd399901ffe5f6f52642630820500e4a96cbef4c80c560cae38d2c601000000000000000442cfb3cd38604b2a5251638e9fa7ee6b05968c731f393b78a6604e0072b09f01000000000000007af0706d921a331b5c1f957a8d1decf15aa0e3377a80d72107693afd8614ef8f0100000000000000f5e2c973d4ccbdd36d8ed4e3dae75d3b50002cc1c74eb0a1fe29ef1ef8e3f0cc01000000000000003ded8aac5210831cbcc4d0cf1f96f2c711afc90a6f6f35a4ffb766be1dfbaee30100000000000000258f23d60623fcb1d699a35f79776a9e81e979150ba5098dcc8e3a69a407ff9a0100000000000000f56f5b3de4f46bcde88569888783fd60646806795807edb1e04ec3dff85ff3e10100000000000000b1f748c87b12edf7242b4719cfe68e6761acaa4329beee538d6ff740941d3cd301000000000000008b35aa0d212e4032ede352d5426696c260c9ecffa632a2e14e6a6629a6c9f637010000000000000072341ca1eb3a0fd4e790318b51ace114315573d5355c9d5336e39382ba0642560100000000000000a79cd2241bd68004641baac25c1900da3a9e6d83101aea3ef2a58d78c657272f0100000000000000b14911cb101f45b88c437a36bd82a5f8641b1c55052060ea46ea2baea570e8bf0100000000000000b66e24ea84d5e02a7b2b58e20bbf17a0f2a19c4654bf8b07669ba3b9fc4a468101000000000000003c1dcee818434058b7de26ee874ade21bd1149185d6dcba1f67048b931ec3dda01000000000000009d31c78ebe9664e2bd8ba41cddcd9c5b9fb0cc6f8be0a2e5b91f6bcf66a5c7530100000000000000290be52ae5259f3e8bd0cdf454004607867a97c1db86d0c9ff16c8c83625bc830100000000000000c91199db47b7591bf1a928534cdbd3e5979a0d09d6a464f2a9607ec444bd8a9701000000000000005e0fad9f1e6837994babd7d55b2d4079af785ec48568cd1c4efd60ea28162e8e01000000000000004c43a374e6b3e6f7d6c5a6b8518ae0d0d232a1c46d63af8fbc800045a14cbe93010000000000000029a6535bac723c2f711e590c67f0bd60843cf7888eebca46025ae57f5ca1d9290100000000000000b5f8f28250bc934f684d57ce969bc3171e5a92085ea3fc4f5cbd3616cb4c7c63010000000000000022edc626e6c76166af032395ade8b874ac872074c72e3e6a70c8f668993d19e80100000000000000ee73c2912d35fe8d3f5bd51303d89bbd8500cd12b3a17594ab3e9ac4cee922200100000000000000ccc84b255e5e73b971f2e71d1903b5ef9bd6d0965ff3ce29c517c875bd7ab65701000000000000001babed13d56d28fdb937b07bce846689584099575382c273f7e425f822c8159f01000000000000003e6d39376bea51b81c57d4a308938c6552bea5433d6bed9f1ac3896cacbdc70d01000000000000004ace071bafa32176b1e916d9454f099b9306a2ad9efd86418bd83cd048935fec0100000000000000ac0ef45b1c0f242a4aeb0ef03a9c0d9e3ae2a4bee8cb4c35f0293bac4331e76501000000000000006bed5c36442ab221e4d825e3ef41e30bddd8bb3847153706d69d851e186092c101000000000000001887f7937a8ca4ec67ceaedebfad3d307b10f416219de1ed4f8646409eab730a0100000000000000b3772cbf76b589acf34786c7882bde8fbe77fd6474543ee882fdce09e50892410100000000000000e1c1327187f940cd73d5afb676b4b28399109aa6a6c3868707df1dc3d62a83820100000000000000ee40b85aa515fdbe6e559f815edc7ec1e321e0d152dd54258382ba31b54e447a010000000000000090517dbf339bac4cd01fcad403dd0803cb67a9b15bf024ce038eea2c7f2423040100000000000000c2eb94269c5e5d2ab9a1a300387358679640763b053aca99ba5c1c9083ee717f0100000000000000316bafdefb60951da2738d6c9c2ef1866d139b34b5eab6944d6bae754dd3fb1101000000000000007a92827270cfa82f16145a44f9bdd9ff5038ef1b665dd520a2e61db9749094960100000000000000ebb1834a568ea7653bc66f394937a0aa4f2f617118d2161e2c11c0d7d2febb9d0100000000000000fd2d8b8e265ca440581956a7e36b57eba685631193bc4fe0a2b638887ca5cc0b0100000000000000b6d7ac98d6667fe8f4a186ef12a66b017df05a54e11b45d3f2967cb3d6b6827f0100000000000000e5f305cd6d930d41209036f066a86d3724aad2f388d354ac4979cc763c220a5601000000000000007ef02c62a02f0c18581cfb8ab7c2dcdff34e36a453a3700c568d61fdf9c8a7b4010000000000000045e03689170b9fc027db927a99842e2c13f9fcbd875a74e2b54a2663f3c23dfc010000000000000098a6defcfeb3dfca36ec46eb373734627a2c395cdd2d886046a11788ed6467af01000000000000007a03c321222b7f7b34946e44850798fee20b9112a64e3950398cce19064b8723010000000000000035db4f9ab121f213b695b982f50c47ac04a14c54214e831ed1bbef7b9542310c01000000000000009bbc024bfe4f072b94735afda064dc3c7da2b4bc0c50cfad44722543583a372e0100000000000000496826b538d97906e14d417b48598d7d591a483ab5f4c6786cd0b96239c2f4cf0100000000000000ef27d1d5573e6419ffcc7c4372668105118256b810ab2e2dbb5e7d8280ee94250100000000000000ed3f97f83ee7799c4aeba9f40bd18134c862c1a30875fc1e038cd27bae3a739a01000000000000001e8548bd6c863891e2d9dd01c56e5e28355dc309f568cacce63d6ea61010b8700100000000000000348e8bacc2d40191a6a00e137c745a422ff8fb03148d2ff9cad75efbb7a670140100000000000000bfcc366ce0bfebc76ac157ed0814e2516786e48eb1a3313b5fe37283e9cf2c5a0100000000000000cafe2356af019d8b5f39c949b3dee71dd5356eb2655d819f485d0244e55b9fcd0100000000000000352738b28d7612806e53cb994ae9d0c04c29e66e74142b374149e9362d98070c0100000000000000efb31c5039e45fda750af5d2ea31b3210a407b168adec8f98db1f3dbc4cd94380100000000000000e2d564796e2660ba1bf553a21581f82116f775002a0dc0f26439f54c660fd84d01000000000000003732b4c704a4568eeced68b4347500bf3e5be27d612ff5382aea88100995ce1d0100000000000000bff74b6ff5ccdce9a659408871d486511938422a6e550fe0669ccd739f8010810100000000000000c149ee2bb1be4395301442de3b032c8596afa5588e1125258a172f837e8f0aa0010000000000000070603976fe118b79a53a29d112718649d8061b2a326a2809897ec904687df7a401000000000000002ff9330a8c344ad3adf4d97db014a2d0891d4dd69f5c8369dad3e0b25566173e01000000000000002667b3cc3064ffdc71758c12f2966407cdb1ac70e2cf972d547c688fd59080880100000000000000e01d6eda8094e949bfbb05c819b509a12eb662a414b822f841d9555d58e1ce760100000000000000c3576342cbf99792896ee5329b04ff2eee2fc2bb6d53c5c03d52c8957ee793fb0100000000000000de186294778cc927cb2a24ade9ad165956f3586979f1ac5f3b4a16edd2674339010000000000000043a9a2915f377cd4943f602be38c3bd6ef39e91562c09f18fb672884b4bf8eab010000000000000059dadf17dc0f84c1c334e6a815a04bdfcd0988a3f3bcb713c66ae29e17276cc60100000000000000297dc7cf28b3d40a42c5e8faac876bf7227c670e6e031dd0e0537f4fb70e6fbe01000000000000000909c1eff97923f6bd47e6ec8b5dc163b32d5b675a3b13138d3599e5cc77ab9f0100000000000000a5f788e86ee2d311357b7aa4a128f063fa4ee36958baf10304c10bde7421aa2c0100000000000000290321d793b7dcb12ad148c2438bb60821bd938b7e9164a0c3d0fc82987f8b630100000000000000f7bdbb5c598784ba157940b08b5c5aa967d0f3faf60da28b915650eb39afe47c01000000000000003bb30832d06cdd3e081afef0cf2b7770bfe81dc58081d1886443e4e4547da8a101000000000000002832b59000d2027d2bf57fdb40da04bd8aac1498923397517181cc487a92815201000000000000006c3829859c7b27da7f0528e6281a406cf713971a03fa4dbb4ea973ee33f7f3170100000000000000677358fc648638cbd854d2a009dd39b8508dd3047d0c5f13bb403a64d053ad030100000000000000645b81dc1769e34a815cc5682abd3c3b3ea60afa9705a5ff2908ad354b0f9ca4010000000000000073dce1727ec50c50366378cd389246e19543d900d7e9dab8e323d04cf5b202a701000000000000002ada479e1fde7211de15900ed29035f6f07506cdbadc4c232aab96d62006b9de0100000000000000ee1a56541083b083f1a13b5f8aa4042a098de2cec4c43f3250baaba8f03a52ea0100000000000000e2cc4424464983ada824bbef5aaa8995e80ef1017c15ef3b13902599841637ba01000000000000005246164c02e9e6bfb7a2dbf7ba8a5440a189f8048373678f5b1085f217464c050100000000000000dea69c3badff9b8d7571cb6c538cd099544da7460a19e1b8651c5c530a6dd53c01000000000000001889f1b031fa7d64c4b480a17cd2941be2c02681bca397c93607091f37bf5ee1010000000000000005062bede97a45c6e1c6b593675ee07ce969fae45136cc2b2afc6e705a77f4700100000000000000fd734da3c98d7d56f8b9cc92f389350f3b6de2fb5917d338fee9fd961978e2a30100000000000000dc6e03f650e4304ca8d1598dde8d4faf45891987bfc49ef785ace47c4c0b5573010000000000000084845f99ad8fe89b7aa136c30b71b791015e8801b1d42cbf9841a0b90e723aad0100000000000000ee145c84de0c536f9d5a7472fe520b20c036ebb714d5b4d51ff913b7cd69caae01000000000000008c258b4ca16dfb8e5afde4cf40fecf115307798117b4860475511b3b5d5615840100000000000000ea8c8bec277832ff4f31396f76d6117026cf73407bce46de9ccfd17c686ca11701000000000000000e7bc96895730726225e47e31c742fd44d3936f31ecd32658c694fc11df25224010000000000000016de137c03756dfabe67ce17e70158cf3d0ad00622b4ad02ed5ff16631f1c97901000000000000008873eb6d260a77ad37a779b9d6c87eabde1fb0be17ddfbd8c8bef64200cdf0db01000000000000003f6aeb3ed0d67d71ee11a1c2e1ed66da77abd8cc8c0f4d995d64fe4ec873684701000000000000006375ae0c1bf2b0388e16971715fd68c31ed179f38947531c165f0da2c3fe7667010000000000000012aa455c35356255f9ba286193962f3bc23f7fff565c1995ac21015bd946fe6e0100000000000000447a00c24ddef95382f0fce94aec3aefb0e8f0cb1a635bfb05faa030d63c1130010000000000000047ede3eca5f6c8f0a51f2d36d7d1c236aab07a8b2aaa6ab08c8ccf8d87ce3dd1010000000000000054c3e0cec10a6cade078942e7f79b242fc4a2eb1988eeb0ee6d92c8653a29c960100000000000000a5d172126aadfe80d2b711776674d61df5a1cd1a0129761fb2d2de58ed9d48a001000000000000006b5487e03da258c7c92add43a1b5a99a0b40f8316e758585150877bb6fe88b320100000000000000af470f2d66661e59ad85302877ba095309d859cea3d5086c5c184030c8f5bdf301000000000000009a0ea02dca493accceb975732f31c9d249d4c90ff1ca0bd86cbe00f1728146b401000000000000004485615186ae8ad33aff337594a7f8325d3a50201ee04320fb1dd2eab9643d1601000000000000002b07c366c1ed899a2ac9722b76e092828714a8177368e51ca05ec05c565866b30100000000000000e81206b483fdcf1fe42145f27d1efb8178a57ee24b196285374037da2a53b32301000000000000001ac44a1e32a5aabcb2bd23d6586da06e7d97d49a36cd670acaee574df1b912210100000000000000ff568b8e0dbe74604c6d04b5de6f2df03b343bea074c4495c6a10e511ba473d9010000000000000056563474f25233f9c2297766972922fd80f4dba402594c9ce82af58a9d0f9d07010000000000000085cf5e7395cdb93f9c9ba72075847443f040f22f440f0e868fbb5de594642dee01000000000000003a4bfd825ccd308def4a61bac80c579db42b02ea5f1a0768656a326e83a0dd880100000000000000db106e27c5b78f1a0d19e0abb47b4666c54906c5539c8596b43d36dc885e927a0100000000000000b5e0d0ae74b0ac76c0195fecca9660a241920ba97cdc5a247c7e941ee1f5407c010000000000000040d167daa1c3ef5c6b1982223618d955926af5b7670f6c1e732f4493fcd349ed0100000000000000f33b53556f28f27d250585317cd57a18f37c5d5f2b3c1bd00a0c91ea54f1636f0100000000000000e056900cabddb471de9e1846d7efdddd8b5ad400b02fc54b4402ba725c78bf9a010000000000000080629b67e7b2d6f57e9da3cb29cc8463a65d125039628124784f944b94c29e88010000000000000079f73931b31ce353119fb4063412e844b16cb3eb92e592ebd822a8c2130355480100000000000000b7d7f71a55b0e39262ab8d33e88e308d0ff39a79eae810ac8ec9cb8e37151fde010000000000000030afa9ef79458f844a27a3881655b6eafb90b3912737f1bcddb95e78eb098c1d010000000000000095885aaa49faca9622ac9eab12f2efa509361511039934ffeff93eb948eb517d010000000000000031a46e639e57d1a11119b17f76617a35b3606d206fb5c3e87710f464f7a57de50100000000000000c222ba3fffec09b85f1992db2dcaeaa48205903219789369855e347fd188144b010000000000000012c277c98d0593ec3d0f9d01e8ce08f67813197b67fe96d2be7c5ba6481515df01000000000000009606000000000000000114b0160100591a00000000000000002904050001000000000000002a0d050002000000000000002f16050003000000000000008e1f05000400000000000000ee28050005000000000000004d32050006000000000000009d3b05000700000000000000fd44050008000000000000005c4e05000900000000000000b75705000a00000000000000176105000b00000000000000766a05000c00000000000000d67305000d00000000000000357d05000e00000000000000958605000f00000000000000f58f0500100000000000000055990500110000000000000095a205001200000000000000d8ab050013000000000000000db50500140000000000000024da05001500000000000000aaec05001600000000000000f4f5050017000000000000003bff050018000000000000008b0806001900000000000000992406001a00000000000000f92d06001b000000000000000d4a06001c00000000000000685306001d00000000000000b65c06001e00000000000000f76506001f00000000000000308b060020000000000000007b940600210000000000000025a70600220000000000000033c3060023000000000000007fcc06002400000000000000c3d50600250000000000000011df060026000000000000005ae806002700000000000000a0f106002800000000000000410407002900000000000000880d07002a000000000000001b3c07002b00000000000000764507002c00000000000000357407002d00000000000000239907002e000000000000006fa207002f00000000000000c3ab070030000000000000006abe07003100000000000000bdc7070032000000000000000fd107003300000000000000b2e3070034000000000000000aed07003500000000000000971b080036000000000000009d24080037000000000000009c4008003800000000000000255308003900000000000000735c08003a000000000000000c6f08003b00000000000000048b08003c00000000000000589408003d00000000000000d3c208003e00000000000000e4de08003f000000000000003fe808004000000000000000f7fa08004100000000000000aa0d09004200000000000000153309004300000000000000fc6a090044000000000000003e74090045000000000000009a7d0900460000000000000000a30900470000000000000014db0900480000000000000020130a004900000000000000791c0a004a00000000000000364b0a004b0000000000000043830a004c00000000000000e5950a004d0000000000000045bb0a004e0000000000000059f30a004f000000000000000e060b005000000000000000812b0b005100000000000000dc340b005200000000000000ef500b005300000000000000a3630b005400000000000000b69b0b005500000000000000c7d30b005600000000000000dd0b0c005700000000000000f3430c005800000000000000087c0c00590000000000000052b30c005a0000000000000060eb0c005b00000000000000baf40c005c0000000000000072230d005d00000000000000805b0d005e000000000000007e930d005f000000000000007ccb0d00600000000000000076030e006100000000000000793b0e00620000000000000088730e00630000000000000092ab0e00640000000000000083e30e006500000000000000731b0f00660000000000000079530f006700000000000000748b0f0068000000000000001fc30f006900000000000000d0fa0f006a00000000000000633210006b00000000000000826a10006c0000000000000028a210006d0000000000000005b310006e0000000000000055d810006f000000000000004810110070000000000000006548110071000000000000008e8011007200000000000000bfb811007300000000000000bbf011007400000000000000e828120075000000000000001561120076000000000000003b991200770000000000000058d112007800000000000000770913007900000000000000944113007a00000000000000c07913007b00000000000000e7b113007c000000000000000cea13007d0000000000000067f313007e00000000000000d31814007f000000000000002e22140080000000000000008c2b14008100000000000000545a14008200000000000000ad63140083000000000000000e89140084000000000000006892140085000000000000008dca14008600000000000000b00215008700000000000000d03a15008800000000000000f3721500890000000000000015ab15008a000000000000003be315008b000000000000005d1b16008c00000000000000855316008d00000000000000b18b16008e00000000000000d3c316008f00000000000000e9fb16009000000000000000073417009100000000000000bf4617009200000000000000286c1700930000000000000029a41700940000000000000041dc17009500000000000000591418009600000000000000bf3918009700000000000000704c18009800000000000000948418009900000000000000f28d18009a00000000000000bcbc18009b00000000000000e4f418009c000000000000000b2d19009d000000000000002c6519009e00000000000000896e19009f00000000000000519d1900a00000000000000075d51900a100000000000000920d1a00a200000000000000ec161a00a300000000000000b6451a00a400000000000000887d1a00a50000000000000077b51a00a600000000000000cdbe1a00a70000000000000070ed1a00a80000000000000083091b00a9000000000000004e251b00aa00000000000000fe371b00ab00000000000000065d1b00ac000000000000005f661b00ad00000000000000bd6f1b00ae00000000000000de941b00af00000000000000fecc1b00b0000000000000001f041c00b1000000000000000c321c00b2000000000000002f3b1c00b3000000000000002e721c00b4000000000000000ca01c00b50000000000000044a91c00b60000000000000022e11c00b70000000000000044191d00b8000000000000000c481d00b9000000000000006b511d00ba000000000000008b891d00bb00000000000000a5c11d00bc0000000000000053f91d00bd00000000000000ff301e00be00000000000000054d1e00bf0000000000000002691e00c000000000000000d1a01e00c100000000000000c5d81e00c200000000000000cf101f00c30000000000000083481f00c400000000000000af801f00c500000000000000d0b81f00c600000000000000f0f01f00c7000000000000001b292000c80000000000000039612000c90000000000000054992000ca000000000000004fd12000cb000000000000004c092100cc00000000000000031c2100cd000000000000006d412100ce00000000000000cc4a2100cf0000000000000098792100d000000000000000c4b12100d100000000000000eee92100d20000000000000011222200d300000000000000325a2200d40000000000000055922200d50000000000000075ca2200d6000000000000008f022300d700000000000000b13a2300d800000000000000cd722300d90000000000000078852300da00000000000000ce8e2300db00000000000000bdaa2300dc00000000000000abe22300dd0000000000000012112400de00000000000000501a2400df0000000000000045512400e000000000000000a1882400e1000000000000005fc02400e20000000000000013f82400e30000000000000007302500e40000000000000013682500e500000000000000c37a2500e600000000000000a8962500e700000000000000fb9f2500e80000000000000000d82500e90000000000000019102600ea000000000000002b482600eb0000000000000028802600ec000000000000002eb82600ed0000000000000044d42600ee0000000000000058f02600ef00000000000000b3f92600f00000000000000065282700f10000000000000057602700f20000000000000064982700f3000000000000008dd02700f400000000000000a7ec2700f500000000000000b9082800f600000000000000e0402800f700000000000000f6782800f80000000000000019b12800f90000000000000040e92800fa000000000000006c212900fb00000000000000a0592900fc00000000000000107f2900fd00000000000000bc912900fe00000000000000eac92900ff00000000000000fd012a000001000000000000ff1d2a0001010000000000000c3a2a0002010000000000002b722a00030100000000000005aa2a000401000000000000fce12a0005010000000000004ceb2a000601000000000000e0fd2a000701000000000000c3192b000801000000000000be512b0009010000000000000a772b000a01000000000000ae892b000b01000000000000b0a52b000c01000000000000abc12b000d010000000000009bf92b000e0100000000000093312c000f0100000000000087692c00100100000000000075a12c00110100000000000074d92c00120100000000000089112d00130100000000000099492d001401000000000000b0812d001501000000000000c3b92d001601000000000000d1f12d001701000000000000d6292e001801000000000000e9612e001901000000000000ea992e001a01000000000000efd12e001b01000000000000f8092f001c01000000000000f0412f001d01000000000000e9792f001e0100000000000036832f001f01000000000000b2b12f002001000000000000a9cd2f00210100000000000094e92f0022010000000000007121300023010000000000003b5930002401000000000000089130002501000000000000599a30002601000000000000f6c830002701000000000000e30031002801000000000000c03831002901000000000000a17031002a01000000000000f27931002b010000000000007fa831002c010000000000005de031002d01000000000000aae931002e01000000000000441832002f01000000000000295032003001000000000000fe8732003101000000000000aa9a3200320100000000000010c0320033010000000000003af8320034010000000000005f303300350100000000000059683300360100000000000078a0330037010000000000009bd833003801000000000000cb1034003901000000000000f44834003a010000000000001c8134003b0100000000000044b934003c0100000000000055f134003d010000000000009dfa34003e01000000000000302935003f01000000000000c6573500400100000000000023613500410100000000000053993500420100000000000080d135004301000000000000560036004401000000000000b10936004501000000000000ce4136004601000000000000037a3600470100000000000031b2360048010000000000005fea360049010000000000007b2237004a01000000000000995a37004b01000000000000f56337004c01000000000000c69237004d01000000000000feca37004e01000000000000340338004f01000000000000683b380050010000000000009e7338005101000000000000c9ab38005201000000000000dcc7380053010000000000003cd138005401000000000000f8e338005501000000000000b0f6380056010000000000001c1c390057010000000000007a2539005801000000000000da2e39005901000000000000525439005a01000000000000878c39005b01000000000000bbc439005c01000000000000f3fc39005d0100000000000028353a005e010000000000005f6d3a005f0100000000000098a53a006001000000000000cedd3a0061010000000000000c163b006201000000000000404e3b00630100000000000019853b006401000000000000608e3b006501000000000000b8973b0066010000000000000fa13b006701000000000000a7b33b006801000000000000fabc3b00690100000000000049c63b006a010000000000009ccf3b006b01000000000000eed83b006c01000000000000c1f43b006d0100000000000014fe3b006e0100000000000066073c006f01000000000000b7103c0070010000000000009e2c3c007101000000000000ee353c00720100000000000094483c007301000000000000e0513c0074010000000000007c643c0075010000000000001d773c0076010000000000004b9c3c00770100000000000010d43c007801000000000000d80b3d0079010000000000001a153d007a0100000000000053433d007b01000000000000ea553d007c01000000000000225f3d007d0100000000000072683d007e01000000000000b4713d007f01000000000000fb7a3d0080010000000000007a8d3d008101000000000000b8963d00820100000000000006a03d00830100000000000088b23d008401000000000000c8bb3d0085010000000000000bc53d0086010000000000001dea3d008701000000000000e9053e008801000000000000b5213e0089010000000000003b343e008a01000000000000843d3e008b010000000000005e593e008c010000000000001f913e008d0100000000000065c83e008e010000000000006bed3e008f01000000000000a9f63e009001000000000000f6ff3e009101000000000000c1373f0092010000000000005c4a3f0093010000000000003b663f009401000000000000856f3f009501000000000000cf783f0096010000000000003ea73f009701000000000000ccde3f0098010000000000008516400099010000000000001e2940009a010000000000006e4e40009b01000000000000c35740009c010000000000009b8640009d01000000000000cebe40009e0100000000000001f740009f01000000000000372f4100a00100000000000097384100a10100000000000070674100a201000000000000a99f4100a30100000000000065b24100a401000000000000ddd74100a50100000000000096ea4100a6010000000000000b104200a70100000000000044484200a8010000000000009c514200a9010000000000003b804200aa0100000000000051b84200ab010000000000006fd44200ac010000000000005ef04200ad01000000000000b9f94200ae010000000000006a284300af0100000000000078604300b00100000000000077984300b101000000000000abd04300b20100000000000064e34300b30100000000000072ff4300b401000000000000d2084400b50100000000000008414400b6010000000000002e794400b7010000000000005eb14400b8010000000000007de94400b9010000000000009e214500ba010000000000005d344500bb01000000000000d0594500bc0100000000000006924500bd010000000000001aca4500be010000000000004a024600bf01000000000000603a4600c00100000000000084724600c101000000000000abaa4600c20100000000000047bd4600c3010000000000009ec64600c401000000000000a0e24600c5010000000000005df54600c601000000000000bf1a4700c701000000000000d1524700c8010000000000007f814700c901000000000000dd8a4700ca0100000000000039944700cb01000000000000f2c24700cc0100000000000010fb4700cd01000000000000d5294800ce010000000000002c334800cf01000000000000f9614800d001000000000000596b4800d10100000000000078874800d2010000000000008da34800d301000000000000aadb4800d401000000000000c6134900d501000000000000eb4b4900d601000000000000e7834900d701000000000000f9bb4900d801000000000000b6ce4900d9010000000000001bf44900da010000000000004a2c4a00db0100000000000066644a00dc010000000000002f7d4a00dd0100000000000019994a00de01000000000000c0ab4a00df01000000000000aec74a00e001000000000000fed04a00e101000000000000bbff4a00e20100000000000019094b00e301000000000000902e4b00e40100000000000041414b00e50100000000000010704b00e6010000000000006e794b00e7010000000000002b8c4b00e80100000000000094b14b00e901000000000000a4e94b00ea01000000000000d4214c00eb01000000000000d7594c00ec01000000000000e8914c00ed0100000000000004ae4c00ee01000000000000ebc94c00ef0100000000000014024d00f001000000000000fe394d00f1010000000000000a724d00f201000000000000667b4d00f30100000000000013aa4d00f40100000000000031c64d00f50100000000000037e24d00f6010000000000004afe4d00f7010000000000002c1a4e00f801000000000000ea2c4e00f90100000000000049364e00fa010000000000004e524e00fb01000000000000628a4e00fc0100000000000079a64e00fd010000000000001ab94e00fe0100000000000079c24e00ff0100000000000094de4e000002000000000000aafa4e00010200000000000059324f00020200000000000004654f000302000000000000ff764f0004020000000000000d804f0005020000000000007e924f000602000000000000c29b4f000702000000000000f4d34f000802000000000000160c50000902000000000000504450000a02000000000000877c50000b02000000000000b6b450000c02000000000000e7ec50000d0200000000000046f650000e02000000000000b61b51000f020000000000001625510010020000000000004f5d510011020000000000000f7051001202000000000000889551001302000000000000b5cd5100140200000000000014d751001502000000000000e605520016020000000000001f3e5200170200000000000053765200180200000000000089ae52001902000000000000e8b752001a02000000000000b7e652001b0200000000000074f952001c02000000000000e81e53001d020000000000001a5753001e02000000000000558f53001f020000000000008ac753002002000000000000b9ff53002102000000000000f13754002202000000000000277054002302000000000000418c54002402000000000000d1a354002502000000000000d9c8540026020000000000007edb54002702000000000000b81355002802000000000000e34b55002902000000000000c58355002a02000000000000d6bb55002b0200000000000007f455002c02000000000000c30656002d020000000000002c2c56002e020000000000005d6456002f020000000000008f9c56003002000000000000c9d456003102000000000000070d570032020000000000004345570033020000000000007a7d570034020000000000007d99570035020000000000009ab557003602000000000000b4ed57003702000000000000f225580038020000000000002f5e580039020000000000006b9658003a02000000000000a6ce58003b02000000000000e30659003c02000000000000183f59003d02000000000000517759003e02000000000000ad8059003f020000000000008baf59004002000000000000e9b859004102000000000000c5e75900420200000000000002205a0043020000000000003f585a0044020000000000007c905a004502000000000000bcc85a004602000000000000f1005b004702000000000000111d5b00480200000000000030395b0049020000000000006f715b004a02000000000000aca95b004b02000000000000e9e15b004c02000000000000251a5c004d0200000000000060525c004e020000000000009f8a5c004f02000000000000dbc25c00500200000000000019fb5c00510200000000000058335d005202000000000000956b5d005302000000000000c7a35d005402000000000000f7db5d00550200000000000031145e0056020000000000006f4c5e005702000000000000a7845e005802000000000000e0bc5e0059020000000000003fc65e005a020000000000001cf55e005b02000000000000582d5f005c0200000000000093655f005d02000000000000cf9d5f005e0200000000000005d65f005f02000000000000440e600060020000000000008346600061020000000000006a7e6000620200000000000056b46000630200000000000000ec60006402000000000000a72361006502000000000000e25b61006602000000000000f293610067020000000000001bcc61006802000000000000dade61006902000000000000590462006a02000000000000963c62006b02000000000000cc7462006c020000000000008c8762006d02000000000000ffac62006e020000000000003ae562006f02000000000000731d63007002000000000000b05563007102000000000000e98d630072020000000000001dc6630073020000000000005dfe63007402000000000000993664007502000000000000d86e6400760200000000000017a76400770200000000000051df640078020000000000008a1765007902000000000000c34f65007a02000000000000018865007b020000000000003ec065007c020000000000007af865007d02000000000000b63066007e02000000000000f06866007f0200000000000004a16600800200000000000041d966008102000000000000711167008202000000000000ac4967008302000000000000de8167008402000000000000f8b967008502000000000000b8cc6700860200000000000035f2670087020000000000006e2a680088020000000000001c3d680089020000000000007f6268008a02000000000000ba9a68008b02000000000000f3d268008c02000000000000310b69008d02000000000000704369008e02000000000000ae7b69008f02000000000000eeb3690090020000000000002bec6900910200000000000065246a009202000000000000a45c6a009302000000000000e0946a0094020000000000001dcd6a009502000000000000dbdf6a00960200000000000059056b00970200000000000018186b009802000000000000923d6b009902000000000000b0756b009a02000000000000e6ad6b009b0200000000000021e66b009c020000000000005e1e6c009d0200000000000096566c009e02000000000000d28e6c009f020000000000000ac76c00a00200000000000047ff6c00a10200000000000077376d00a202000000000000876f6d00a3020000000000000fa76d00a40200000000000059dc6d00a50200000000000022146e00a602000000000000464c6e00a70200000000000071846e00a802000000000000eea96e00a902000000000000aabc6e00aa0200000000000085eb6e00ab02000000000000e4f46e00ac020000000000001c2d6f00ad02000000000000da3f6f00ae0200000000000053656f00af020000000000008c9d6f00b002000000000000c4d56f00b102000000000000d90d7000b202000000000000d7457000b302000000000000f67d7000b402000000000000deb57000b502000000000000b2ed7000b602000000000000a9257100b702000000000000975d7100b802000000000000338c7100b9020000000000007e957100ba0200000000000068b17100bb0200000000000050cd7100bc020000000000001c057200bd02000000000000610e7200be02000000000000c13c7200bf020000000000006b747200c0020000000000005aac7200c10200000000000032e47200c202000000000000dcf67200c302000000000000321c7300c4020000000000002b547300c5020000000000007d8b7300c60200000000000020c37300c702000000000000cefa7300c8020000000000003c327400c9020000000000009b697400ca02000000000000eda07400cb0200000000000056d87400cc0200000000000090107500cd02000000000000ad2c7500ce020000000000000b367500cf02000000000000c7487500d002000000000000fe807500d10200000000000039b97500d20200000000000073f17500d30200000000000030047600d4020000000000004b207600d502000000000000a9297600d60200000000000006337600d702000000000000d3617600d80200000000000090747600d902000000000000089a7600da020000000000002fd27600db020000000000001a0a7700dc0200000000000022427700dd02000000000000007a7700de02000000000000d2b17700df02000000000000f8e97700e0020000000000002b227800e102000000000000635a7800e202000000000000a0927800e302000000000000daca7800e40200000000000011037900e502000000000000483b7900e60200000000000085737900e702000000000000b1ab7900e802000000000000dae37900e902000000000000121c7a00ea0200000000000049547a00eb02000000000000878c7a00ec02000000000000bfc47a00ed02000000000000edfc7a00ee0200000000000026357b00ef02000000000000606d7b00f0020000000000009da57b00f102000000000000cddd7b00f20200000000000006167c00f3020000000000003f4e7c00f402000000000000fb607c00f50200000000000077867c00f602000000000000b4be7c00f70200000000000014c87c00f802000000000000e0f67c00f9020000000000001b2f7d00fa0200000000000058677d00fb02000000000000959f7d00fc02000000000000d2d77d00fd02000000000000ec0f7e00fe0200000000000025487e00ff020000000000005f807e0000030000000000009ab87e000103000000000000d3f07e000203000000000000ee0c7f0003030000000000000a297f000403000000000000c53b7f00050300000000000043617f0006030000000000007b997f000703000000000000b9d17f000803000000000000f20980000903000000000000284280000a030000000000005e7a80000b0300000000000099b280000c03000000000000d2ea80000d03000000000000082381000e030000000000003e5b81000f030000000000007b9381001003000000000000b8cb81001103000000000000f30382001203000000000000313c82001303000000000000697482001403000000000000a6ac82001503000000000000c4c882001603000000000000e0e482001703000000000000ff00830018030000000000001e1d83001903000000000000dd2f83001a030000000000005b5583001b03000000000000988d83001c03000000000000d5c583001d0300000000000010fe83001e030000000000004e3684001f03000000000000826e84002003000000000000bba684002103000000000000f5de840022030000000000006f0485002303000000000000cc0d850024030000000000002c1785002503000000000000ea2985002603000000000000634f850027030000000000007e6b850028030000000000009a878500290300000000000017ad85002a03000000000000d2bf85002b0300000000000031c985002c030000000000000ef885002d030000000000004a3086002e03000000000000866886002f03000000000000bea086003003000000000000f2d8860031030000000000002a1187003203000000000000871a870033030000000000006449870034030000000000001d5c87003503000000000000998187003603000000000000cfb987003703000000000000eed5870038030000000000000cf2870039030000000000004a2a88003a03000000000000a83388003b03000000000000826288003c03000000000000b69a88003d03000000000000efd288003e030000000000002d0b89003f030000000000004d27890040030000000000006c4389004103000000000000ab7b89004203000000000000eab38900430300000000000028ec8900440300000000000068248a004503000000000000a05c8a004603000000000000b4948a004703000000000000f4cc8a00480300000000000030058b0049030000000000006f3d8b004a030000000000008e598b004b03000000000000ae758b004c03000000000000ecad8b004d0300000000000028e68b004e03000000000000331e8c004f030000000000004f568c0050030000000000008e8e8c005103000000000000c7c68c00520300000000000005ff8c00530300000000000041378d005403000000000000746f8d005503000000000000a4a78d00560300000000000064ba8d005703000000000000e4df8d0058030000000000000a188e00590300000000000023508e005a0300000000000027888e005b03000000000000d89a8e005c0300000000000043c08e005d0300000000000082f88e005e03000000000000c0308f005f03000000000000ff688f0060030000000000001ba18f00610300000000000059d98f006203000000000000981190006303000000000000d64990006403000000000000f56590006503000000000000158290006603000000000000758b9000670300000000000053ba9000680300000000000092f290006903000000000000d22a91006a03000000000000106391006b03000000000000489b91006c03000000000000a2a491006d030000000000001bd391006e03000000000000530992006f03000000000000d32e9200700300000000000090419200710300000000000074799200720300000000000094b19200730300000000000072e092007403000000000000d2e992007503000000000000b21893007603000000000000122293007703000000000000445a93007803000000000000739293007903000000000000f3b793007a03000000000000abca93007b030000000000005ddd93007c03000000000000c40294007d03000000000000e13a94007e03000000000000217394007f0300000000000059ab9400800300000000000090e394008103000000000000c31b95008203000000000000ea53950083030000000000009866950084030000000000000b8c9500850300000000000046c49500860300000000000057fc950087030000000000008f3496008803000000000000cf6c960089030000000000000ba596008a0300000000000045dd96008b03000000000000a3e696008c03000000000000801597008d03000000000000bc4d97008e03000000000000f78597008f030000000000002ebe9700900300000000000030f6970091030000000000005a2e98009203000000000000956698009303000000000000d49e9800940300000000000014d7980095030000000000003b0f990096030000000000006c4799009703000000000000ac7f9900980300000000000078b79900990300000000000026ca99009a030000000000007cef99009b0300000000000085279a009c03000000000000be5f9a009d03000000000000fd979a009e03000000000000b9aa9a009f0300000000000022d09a00a0030000000000003dec9a00a10300000000000058089b00a20300000000000074249b00a3030000000000008b409b00a403000000000000e4499b00a50300000000000038789b00a60300000000000076819b00a703000000000000e4af9b00a803000000000000b7e79b00a903000000000000731f9c00aa03000000000000a6289c00ab030000000000002f3b9c00ac0300000000000012579c00ad030000000000005d609c00ae03000000000000cb8e9c00af0300000000000057a19c00b00300000000000086c69c00b1030000000000005afe9c00b20300000000000002369d00b303000000000000bc6d9d00b40300000000000099a59d00b5030000000000004edd9d00b603000000000000db149e00b703000000000000e0399e00b803000000000000724c9e00b9030000000000002a849e00ba03000000000000ee9f9e00bb03000000000000d1bb9e00bc030000000000007df39e00bd03000000000000f02a9f00be030000000000006a629f00bf03000000000000ff999f00c0030000000000002ed19f00c1030000000000004608a000c203000000000000893fa000c303000000000000a476a000c403000000000000dfada000c5030000000000001cb7a000c6030000000000003ce5a000c703000000000000921ca100c8030000000000008c53a100c903000000000000988aa100ca0300000000000010a6a100cb03000000000000a0c1a100cc03000000000000e5d3a100cd0300000000000072f8a100ce030000000000007c2fa200cf030000000000003766a200d003000000000000389da200d10300000000000056a6a200d203000000000000a9b8a200d303000000000000cac1a200d4030000000000001ad4a200d503000000000000200ba300d6030000000000002714a300d703000000000000bc41a300d8030000000000006778a300d9030000000000000aafa300da0300000000000046dca300db0300000000000065e5a300dc03000000000000a81ba400dd03000000000000d72da400de030000000000002352a400df030000000000006288a400e003000000000000c1bea400e103000000000000f8f4a400e203000000000000212ba500e3030000000000003f61a500e403000000000000656aa500e503000000000000e497a500e60300000000000040cea500e703000000000000b204a600e803000000000000fc3aa600e9030000000000009471a600ea0300000000000037a8a600eb030000000000001adfa600ec03000000000000ea0ca700ed030000000000000e16a700ee030000000000005228a700ef030000000000007d31a700f003000000000000034da700f1030000000000002084a700f2030000000000004a8da700f303000000000000a99fa700f403000000000000f6baa700f503000000000000c1f1a700f603000000000000be28a800f703000000000000a65fa800f8030000000000003e7ba800f903000000000000c296a800fa03000000000000c3cda800fb03000000000000d504a900fc03000000000000f83ba900fd030000000000005f73a900fe03000000000000ceaaa900ff030000000000000bb4a900000400000000000005e2a90001040000000000005e19aa000204000000000000c12baa0003040000000000008e50aa000404000000000000fd62aa0005040000000000008175aa000604000000000000fa87aa0007040000000000002f91aa0008040000000000005dbfaa000904000000000000a3c8aa000a04000000000000e5f6aa000b04000000000000e41bab000c040000000000005b2eab000d04000000000000e765ab000e040000000000004c9dab000f0400000000000085a6ab001004000000000000b8d4ab001104000000000000fdddab0012040000000000003b0cac001304000000000000d043ac001404000000000000827bac001504000000000000b8a0ac0016040000000000005bb3ac00170400000000000029ebac0018040000000000006af4ac0019040000000000000e07ad001a04000000000000f422ad001b04000000000000432cad001c040000000000009935ad001d04000000000000ee3ead001e04000000000000d55aad001f04000000000000bd76ad002004000000000000a592ad00210400000000000076caad002204000000000000f6dcad002304000000000000e001ae0024040000000000004f39ae0025040000000000001371ae0026040000000000005f7aae002704000000000000fc8cae002804000000000000cda8ae0029040000000000005ebbae002a0400000000000081e0ae002b040000000000004f18af002c040000000000001e50af002d04000000000000e687af002e04000000000000a0bfaf002f040000000000005ff7af003004000000000000042fb0003104000000000000da66b00032040000000000009a9eb000330400000000000063d6b0003404000000000000300eb1003504000000000000da45b10036040000000000009a7db100370400000000000050b5b100380400000000000029edb1003904000000000000971bb2003a04000000000000e024b2003b04000000000000995cb2003c040000000000006694b2003d0400000000000048b0b2003e040000000000002eccb2003f0400000000000075d5b200400400000000000008e8b2004104000000000000e703b3004204000000000000ce1fb3004304000000000000b63bb30044040000000000000d45b30045040000000000009f57b30046040000000000007573b3004704000000000000c67cb30048040000000000003aabb3004904000000000000e4e2b3004a04000000000000651ab4004b04000000000000f951b4004c040000000000009389b4004d0400000000000025c1b4004e04000000000000f6f8b4004f04000000000000241eb5005004000000000000b130b50051040000000000007068b500520400000000000040a0b5005304000000000000ecd7b50054040000000000000510b60055040000000000003e48b60056040000000000007a80b6005704000000000000b7b8b6005804000000000000f3f0b60059040000000000002f29b7005a04000000000000ae4eb7005b040000000000006861b7005c04000000000000a599b7005d04000000000000ded1b7005e040000000000005cf7b7005f04000000000000160ab80060040000000000005042b8006104000000000000964bb8006204000000000000687ab8006304000000000000a6b2b800640400000000000066c5b8006504000000000000e5eab80066040000000000000423b90067040000000000003f5bb90068040000000000005d77b90069040000000000007b93b9006a04000000000000b7cbb9006b04000000000000ef03ba006c04000000000000133cba006d040000000000003358ba006e040000000000005174ba006f0400000000000042acba0070040000000000006ce4ba007104000000000000a21cbb007204000000000000e054bb007304000000000000405ebb0074040000000000001b8dbb0075040000000000002ec5bb0076040000000000006dfdbb007704000000000000a435bc007804000000000000d06dbc0079040000000000000ca6bc007a040000000000004adebc007b040000000000008716bd007c04000000000000c34ebd007d04000000000000fc86bd007e040000000000003bbfbd007f040000000000007af7bd008004000000000000d500be008104000000000000b32fbe008204000000000000ea67be00830400000000000027a0be00840400000000000065d8be008504000000000000a410bf008604000000000000dd48bf0087040000000000003b52bf0088040000000000001881bf0089040000000000008fb8bf008a04000000000000cbc1bf008b04000000000000f8efbf008c040000000000007602c0008d040000000000008327c0008e04000000000000075fc0008f040000000000005d96c000900400000000000009cec00091040000000000003b06c10092040000000000002d3ec10093040000000000006476c10094040000000000007aaec1009504000000000000b9e6c1009604000000000000ef1ec20097040000000000002c57c2009804000000000000698fc20099040000000000008cc7c2009a040000000000009effc2009b04000000000000da37c3009c04000000000000ee6fc3009d0400000000000029a8c3009e0400000000000067e0c3009f04000000000000240fc400a0040000000000008218c400a104000000000000b150c400a204000000000000c088c400a304000000000000d2c0c400a404000000000000f6f8c400a5040000000000001231c500a604000000000000d143c500a7040000000000004d69c500a80400000000000089a1c500a904000000000000c4d9c500aa040000000000000112c600ab040000000000005c1bc600ac040000000000003a4ac600ad040000000000007482c600ae04000000000000abbac600af04000000000000e4f2c600b0040000000000001d2bc700b1040000000000002e47c700b2040000000000004863c700b304000000000000687fc700b404000000000000829bc700b5040000000000009bd3c700b604000000000000d80bc800b7040000000000001144c800b804000000000000704dc800b904000000000000d056c800ba040000000000004e7cc800bb0400000000000080b4c800bc04000000000000b1ecc800bd040000000000009808c900be040000000000008d24c900bf04000000000000c75cc900c004000000000000df94c900c104000000000000feb0c900c2040000000000001dcdc900c3040000000000004605ca00c4040000000000006e3dca00c5040000000000009e75ca00c604000000000000029bca00c704000000000000aeadca00c8040000000000008adcca00c904000000000000eae5ca00ca04000000000000251ecb00cb04000000000000fa55cb00cc04000000000000778ccb00cd04000000000000eec3cb00ce0400000000000005fccb00cf040000000000004134cc00d004000000000000716ccc00d10400000000000096a4cc00d204000000000000d3dccc00d30400000000000086efcc00d4040000000000000215cd00d504000000000000ac27cd00d604000000000000264dcd00d7040000000000008656cd00d8040000000000006385cd00d9040000000000003bb4cd00da0400000000000099bdcd00db04000000000000d8f5cd00dc04000000000000172ece00dd040000000000005366ce00de04000000000000909ece00df04000000000000b7d6ce00e00400000000000068e9ce00e104000000000000cc0ecf00e2040000000000000547cf00e304000000000000427fcf00e40400000000000079b7cf00e504000000000000b8efcf00e604000000000000f427d000e7040000000000000b60d000e8040000000000004698d000e90400000000000083d0d000ea04000000000000c008d100eb04000000000000fa40d100ec040000000000003679d100ed0400000000000073b1d100ee0400000000000087cdd100ef04000000000000a6e9d100f004000000000000e521d200f1040000000000001e5ad200f2040000000000005692d200f30400000000000092cad200f40400000000000052ddd200f504000000000000ce02d300f604000000000000e13ad300f7040000000000003444d300f804000000000000dc56d300f904000000000000ef72d300fa040000000000004d7cd300fb0400000000000024abd300fc04000000000000a1d0d300fd040000000000005be3d300fe04000000000000901bd400ff04000000000000ce53d40000050000000000000a8cd40001050000000000003ac4d40002050000000000004ae0d400030500000000000069fcd4000405000000000000a134d50005050000000000006047d5000605000000000000de6cd50007050000000000001ba5d500080500000000000058ddd50009050000000000009415d6000a05000000000000d24dd6000b05000000000000f085d6000c050000000000001ebed6000d05000000000000fbecd6000e050000000000005bf6d6000f050000000000008b2ed7001005000000000000c566d7001105000000000000029fd700120500000000000036d7d70013050000000000006f0fd80014050000000000009f47d8001505000000000000c97fd8001605000000000000e4b7d80017050000000000001ff0d80018050000000000005928d90019050000000000009560d9001a050000000000005473d9001b05000000000000718fd9001c05000000000000d198d9001d0500000000000031a2d9001e050000000000000fd1d9001f05000000000000cfe3d90020050000000000004f09da0021050000000000008941da002205000000000000b979da002305000000000000edb1da00240500000000000047bbda00250500000000000054d7da00260500000000000007eada00270500000000000067f3da0028050000000000003a22db0029050000000000005e5adb002a050000000000007892db002b05000000000000b0cadb002c05000000000000e702dc002d05000000000000183bdc002e050000000000007644dc002f050000000000002773dc003005000000000000dd85dc0031050000000000004dabdc00320500000000000086e3dc003305000000000000bb1bdd003405000000000000944add003505000000000000f453dd003605000000000000ad66dd003705000000000000298cdd00380500000000000060c4dd0039050000000000009cfcdd003a05000000000000fa05de003b05000000000000d734de003c05000000000000b56cde003d0500000000000045a4de003e05000000000000a1d2de003f05000000000000e4dbde0040050000000000002fe5de0041050000000000003c05df004205000000000000d81adf004305000000000000d636df0044050000000000002840df004505000000000000d252df004605000000000000cf6edf004705000000000000a9a6df004805000000000000eeafdf00490500000000000047b9df004a05000000000000b1dedf004b050000000000000de8df004c050000000000006e0de0004d05000000000000cb16e0004e05000000000000d84ee0004f050000000000007886e0005005000000000000b3bee0005105000000000000c3f6e0005205000000000000fe2ee10053050000000000002c67e1005405000000000000e679e1005505000000000000a68ce1005605000000000000629fe10057050000000000009bd7e10058050000000000005806e2005905000000000000b10fe2005a05000000000000e647e2005b050000000000001880e2005c050000000000007689e2005d050000000000004cb8e2005e050000000000007ef0e2005f05000000000000b228e3006005000000000000e760e30061050000000000002499e300620500000000000060d1e30063050000000000009c09e4006405000000000000d441e4006505000000000000334be40066050000000000000a7ae4006705000000000000e0a8e400680500000000000040b2e40069050000000000006feae4006a05000000000000a022e5006b05000000000000de5ae5006c050000000000001a93e5006d0500000000000055cbe5006e050000000000000bdee5006f050000000000008203e6007005000000000000db0ce6007105000000000000b53be6007205000000000000f073e60073050000000000004e7de60074050000000000002cace60075050000000000008cb5e60076050000000000006be4e6007705000000000000a51ce7007805000000000000dc54e7007905000000000000168de7007a050000000000004ac5e7007b0500000000000057fde7007c050000000000009335e8007d05000000000000d06de8007e050000000000002e77e8007f0500000000000004a6e80080050000000000003fdee80081050000000000007b16e9008205000000000000b74ee9008305000000000000e886e900840500000000000015bfe900850500000000000046f7e9008605000000000000602fea0087050000000000000442ea0088050000000000005a4bea0089050000000000006a67ea008a05000000000000889fea008b05000000000000daa8ea008c0500000000000079d7ea008d050000000000009f0feb008e050000000000005c22eb008f050000000000001c35eb009005000000000000d847eb0091050000000000000e80eb0092050000000000003eb8eb00930500000000000076f0eb009405000000000000ad28ec009505000000000000e660ec0096050000000000002399ec00970500000000000060d1ec0098050000000000009e09ed0099050000000000005e1ced009a05000000000000da41ed009b050000000000009654ed009c050000000000005567ed009d05000000000000127aed009e050000000000004ab2ed009f0500000000000082eaed00a005000000000000e1f3ed00a105000000000000bd22ee00a205000000000000fa5aee00a3050000000000003493ee00a405000000000000929cee00a50500000000000070cbee00a605000000000000ac03ef00a705000000000000eb3bef00a805000000000000fb73ef00a905000000000000feabef00aa05000000000000bebeef00ab0500000000000038e4ef00ac050000000000004e1cf000ad050000000000008854f000ae05000000000000958cf000af05000000000000c5c4f000b005000000000000fffcf000b1050000000000002e35f100b205000000000000de47f100b305000000000000466df100b4050000000000005da5f100b50500000000000094ddf100b605000000000000c115f200b705000000000000fa4df200b8050000000000002d86f200b90500000000000067bef200ba05000000000000a0f6f200bb05000000000000b52ef300bc050000000000003254f300bd05000000000000ef66f300be05000000000000239ff300bf0500000000000032d7f300c005000000000000dde9f300c1050000000000001e0ff400c2050000000000004f47f400c3050000000000008d7ff400c4050000000000006bb7f400c5050000000000009beff400c605000000000000c927f500c705000000000000ff5ff500c8050000000000003198f500c90500000000000063d0f500ca050000000000008908f600cb05000000000000c240f600cc050000000000001d66f600cd05000000000000ca78f600ce05000000000000fbb0f600cf0500000000000031e9f600d0050000000000006021f700d1050000000000009e59f700d205000000000000d891f700d3050000000000000acaf700d4050000000000004402f800d5050000000000007b3af800d605000000000000fa5ff800d705000000000000b672f800d805000000000000ebaaf800d90500000000000048b4f800da0500000000000024e3f800db05000000000000601bf900dc050000000000009753f900dd05000000000000ac8bf900de05000000000000e3c3f900df050000000000001cfcf900e0050000000000005934fa00e105000000000000936cfa00e205000000000000a7a4fa00e305000000000000dfdcfa00e4050000000000001a15fb00e5050000000000004d4dfb00e605000000000000a656fb00e7050000000000007b85fb00e805000000000000a2bdfb00e905000000000000dff5fb00ea050000000000005f1bfc00eb050000000000001e2efc00ec050000000000005266fc00ed050000000000000c79fc00ee05000000000000cc8bfc00ef050000000000002995fc00f005000000000000899efc00f105000000000000c1d6fc00f2050000000000007ee9fc00f3050000000000003dfcfc00f405000000000000f00efd00f5050000000000004c18fd00f6050000000000001a47fd00f7050000000000004a7ffd00f80500000000000086b7fd00f905000000000000beeffd00fa050000000000001ef9fd00fb05000000000000ee27fe00fc050000000000000944fe00fd050000000000002560fe00fe05000000000000307cfe00ff050000000000002798fe000006000000000000e2aafe00010600000000000042b4fe0002060000000000005dd0fe0003060000000000009a08ff000406000000000000ca40ff000506000000000000244aff000606000000000000f278ff0007060000000000002db1ff00080600000000000063e9ff000906000000000000712100010a06000000000000313400010b060000000000004c5000010c06000000000000ac5900010d06000000000000b49100010e06000000000000e3c900010f06000000000000f60101011006000000000000103a010111060000000000003056010112060000000000004c720101130600000000000084aa01011406000000000000c2e201011506000000000000fe1a02011606000000000000235302011706000000000000618b020118060000000000009dc3020119060000000000005ad602011a06000000000000badf02011b06000000000000d7fb02011c06000000000000370503011d06000000000000f71703011e06000000000000133403011f06000000000000516c03012006000000000000107f030121060000000000008da403012206000000000000cadc03012306000000000000f81404012406000000000000324d0401250600000000000070850401260600000000000080bd040127060000000000008bf504012806000000000000842d05012906000000000000d73605012a060000000000008b6505012b06000000000000c19d05012c06000000000000f9d505012d060000000000002e0e06012e06000000000000664606012f060000000000009d7e06013006000000000000d7b60601310600000000000011ef06013206000000000000442707013306000000000000725f07013406000000000000af9707013506000000000000e7cf070136060000000000001f0808013706000000000000372408013806000000000000544008013906000000000000917808013a06000000000000c8b008013b0600000000000001e908013c060000000000000f2109013d06000000000000085909013e06000000000000a99009013f06000000000000b5c809014006000000000000c5000a014106000000000000d2380a01420600000000000006710a014306000000000000f5a80a0144060000000000002be10a01450600000000000012190b01460600000000000048510b01470600000000000086890b014806000000000000e5920b014906000000000000c4c10b014a0600000000000000fa0b014b060000000000001d320c014c060000000000000b6a0c014d06000000000000c5980c014e060000000000001aa20c014f06000000000000d7d00c0150060000000000002dda0c01510600000000000069120d015206000000000000a44a0d015306000000000000df820d0154060000000000001dbb0d01550600000000000055f30d015606000000000000852b0e01570600000000000083630e015806000000000000c39b0e0159060000000000001ba50e015a060000000000007bae0e015b06000000000000f7d30e015c06000000000000afe60e015d06000000000000290c0f015e0600000000000065440f015f06000000000000db690f016006000000000000977c0f016106000000000000d2b40f016206000000000000ecec0f016306000000000000062510016406000000000000ea5c10016506000000000000f49410016606000000000000ffcc100167060000000000005ed610016806000000000000d6fb10016906000000000000340511016a06000000000000613d11016b060000000000008b7511016c06000000000000919111016d06000000000000abad11016e06000000000000e0e511016f060000000000001d1e120170060000000000005556120171060000000000006c8e120172060000000000008aaa12017306000000000000a3c612017406000000000000bdfe12017506000000000000f83613017606000000000000126f130177060000000000006c9413017806000000000000c99d1301790600000000000029a713017a060000000000005bdf13017b06000000000000b8e813017c0600000000000016f213017d060000000000008d1714017e06000000000000ec2014017f06000000000000a43314018006000000000000bc4f14018106000000000000d58714018206000000000000919a1401830600000000000005c0140184060000000000005fc914018506000000000000f8f714018606000000000000a10a15018706000000000000fa1315018806000000000000561d15018906000000000000fa2f15018a06000000000000513915018b06000000000000aa4215018c06000000000000106815018d060000000000002f8415018e060000000000004ba015018f060000000000002cbc15019006000000000000ccce1501910600000000000019d81501920600000000000076e11501930600000000000033101601940600000000000066481601950600000000000099801601" + "babeEpochChanges": "0x04730e03871051bdf14a8ed73e969f10c96dba8cd181337b079aa3c55041ba2a60e69325010173c7f31000000000d3d0f31000000000041b5d277db504491c3d206933787f91b2b8f3811b43140ef83d7fb7d30556f923329d250101d3d0f3100000000033daf3100000000004fb527c1b098806164a226dbb0ac26345b6ca917c7ff9eaa587ca7af763b5327682a625010133daf3100000000093e3f3100000000000000c1b5d277db504491c3d206933787f91b2b8f3811b43140ef83d7fb7d30556f923329d250101761f000000000000d3d0f310000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec214541750100000000000000aefdfe84e2eccbc6e76bd2b22c10a22da54f6e28fe0246e938efc1053fd6882701000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b9200100000000000000c681c1acaa82eddba6e394ddc9a2fd1af34418448d544c34966a31c837667f2801000000000000002a6ba1e8879539c7f62f3259a13839cf7e6b1a120a606d1d1dd36727f625a860010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f1601000000000000005c3c0ee6b14e470076fdbe43274d6025a3812a5bd4844bd0d689f90ed07df610010000000000000060f472588bedcbf6b27b576dcf2ac751e412b377a39fa82bc2b79f72ac9373140100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000e07afc6e4b429df62183d1e1c417703cf8467e0f1bc61f7e33954d8336c7a9350100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f35489439010000000000000024d917b35ee19a72512caea1dbf92fa75f5ac2c247c4a0184d330f477c750543010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f7748080100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae60368200100000000000000a8e470f2339e3ed0da456780dd9207e9c6a02459238ec3057a6ade01fd6cd60a01000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000e2e75c3624bb65df0df32ad086813b763becca3b7cd1966982705c055f62775a0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000005c0494412a296a92296160ac510697d97288753829a5e9d02eafb5f101e60f5101000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d01000000000000009a6223b8a7aac3a28f958d9f6c6abf55f87a38cd22fa563d6327a4d86da7b64d01000000000000006ca924ff8f8e69b8ea54dc988c67fbfc1d955f357f01e5ff4b8362ad7d756c3701000000000000009e280c8deea88069fe5118eefbb994d01373ff5dc213a65d06e6873b528f6c2f01000000000000002834c706b030a82a81ec43e2faf26a7d00392e1d8f2de8b7a876183ab612cb180100000000000000d0189a530b4048501596c4530054fe89f017360402da0ac197a8100ac693b06e01000000000000000aaa5fa196c5c2583c1cec2aa1c991b582fd819d8bd74e91ab76da894c4a0e3b010000000000000006ced0dafbe316bc507cfa57f506a58ad57ba7a69a8291ef87e8f0f5dceff6040100000000000000364360b4881f0f2831a226a422c79348776d43a2365dd636dea05a09381f8c2e01000000000000009092f9e937617716876caae2eee008bd44b0d0ed3f3af47073dcab55fcb1d5740100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000c665d82a27136f294df943ffa86053c5aefeca16630abc81c12943e1aebcec3401000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d1200100000000000000a811dfe216e8a8baba58d8df3d7616be1edddd7d4822ed774615ac7ee32bd6100100000000000000e41b3ecad757b0a5ecbc6b29691681df25b3d2b5f1ea325b648e607a5d76cf08010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e6601000000000000004e5b37f3ecd0fb3131aba488083c145d60b924ef98b286a0066e0ded309e886b0100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad6140100000000000000946071eab9c0fa1de9be2ad3c18041f1326faab41d84d9daf9f89c0daf9c0f00010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a0100000000000000faa52c51af82fe8fcdde5ffa213721a8395acf22e30bbd2aa420626571e6183d010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d052628010000000000000028e972febaf463f22d1108053e7c26ccde1e6018d7c302985bc227557e0a663b010000000000000094eda7bd615726b2637768ca6515ad1a966a7e60cb558c1da3dd07fee3ed7c410100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d8708132010000000000000080413d2894759b53a03874bf96ffcb66117e4a08ad7f159c008f2b3b6cfcbb4701000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000f2e49b313ed23755c61ca69aaae54996c4b15e8ef882056b33c440bc7c6976170100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000902741c83009936926e687f91a203fc2bb0dea691895ef4dfd1d85d86f408c7c010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a5201000000000000002853991fa905fb1577072536945202ada12be4f8ed73f5859115738ad4b2bc61010000000000000098cd0a4eae6f560a9e760f8b806b36861b805798b4ee0ada29f6841855d51d030100000000000000584bf60b8b17ddaf70f87f371bd2b425a3637e05c1b75469f45ea85717063b69010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e01000000000000004614e49182a3039f08145e4f1ce84cecf8e4ea2646d4e103a8e01f098bb7ef070100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d45401000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b59010000000000000028e4892cc64dd60cc05ddd4fa7db8f2fec2cac8f3b117e438bb884d1dd44e578010000000000000020778d1b86af98ab30d7adea5f3a4f215d6d4a9fdc892d8999275b2c311fb05f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c010000000000000086cca25ca588d995ba36f447a87ee00073a24190e8335247875e1bb25823f8450100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c5792501000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000608b753074d6a1fd8e099224a7495f61e3db2cb91e1e88553113057a5f49533301000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d710100000000000000cc8ed5325a954248c36a4247253fe635d71cbbcb65be07f2ff51570acb55c12e010000000000000030cf1406264edf4df924abd500365e92c08e105f269842298be35d54fa67f701010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000e682cc2e71eeebb447a353fdf541b2ce7f9920ea1ad2d832bc35e3b49169bb6901000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000dac9ac99a034e57ae0f558ad981c1b12243c08cb140c483ba5dce6878ddab74d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a010000000000000046d6f6331c4776c946073cfb18164ac2b7b0ab2836711373465794ef4a6d3c2f01000000000000009e5b6a03be0ed1cb27d61340f02efd1a285cf73519dead55195f001ffa274d4101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc13620100000000000000a6cfacf0aff2d5c6e8eadf71f397a64f2863e5f0b8793e3068aebd5b3030e13101000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca220100000000000000e6e897a3011883adfe5d7c58e45c769c806277a5d8bb7aa36e232297b747b04f0100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d262730100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef38767601000000000000001e9c3192d1c2e7e1d5aa731c1bd3ffac1b55bfff1cc1beb0745a6b54b4b32b180100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000b8a51609827d3b5283567a63d2585b896a64cdeae91803154a419cb6febac0090100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a701022010000000000000096a550a5b080ba4f333c58a9f4113a664c6e335dfdbfa227bb6f4808351c045b0100000000000000343a9649237a3b9ed165df5a8b6655996a9920091530b4896b0edfa3afefa60e0100000000000000ca9919b307ac6204475ff029334863d464042fdb84da988119b6392d5862cc78010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000005330f74dbf024dccb42c34e008d84a5d5d8ee33603029b4176ad6579bc504f010000000000000060868aebd495f442d029a4a0eeab5285bf7ccc82988417429030dfeb4080fe3401000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c66010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000b45837a3683c303ef060d8126c919a1d13fe45b84c42ba393ce99eb28a9f70480100000000000000105cd6ed1f55fde42f7c82d0667316a4f1e26e9e53d96f540e5aff8905897b5c010000000000000088b3ccf1680a221f1ae9f8879fa7963262ab735078ded24cc2fb209f9188031b01000000000000000884c85734b971a88cd94d86d3c62fdf163256a0387e15e2d36d8f25523a7748010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ccb5a9652f3be5d85fcab3d0b8c2eae27519ae2f7befa40c34b89751bbcce40001000000000000005258f48e31bc89f5d53ea6a12eea9698f8e72c6068ac1588100d8632bc674d1e0100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000121f9d8ba85d89e3c6f9a0fedcdfc9b05cc40a6d3324eff6e8a58aec5f5259050100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000727c079c499f0ce88218e4cbaf1c4013bb81d6edf19e1cc9b540465e486ea13a0100000000000000e29a6620c92975dd4d41e2f0e01ee85f4f36569ff1e7d66434227d47ffc6787401000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a01000000000000000c68512e2e5dca7783df908fa702dce48d67a439655fe52de6d29cb07890445a0100000000000000b60ce4c500ac9859bf4a3ad89aa03f37e4b25b33da50fd825ba53dcb222c9f45010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe08372156001000000000000001e2543674c697ffa09657ce9f9c4b610e46da5d73124410b327e6ba5d432263c010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a09f648a1583e14379a3a2543bb6d67201cae1ac2cc90f351f58d5574e02f6201000000000000000e21a03fbe9885a475c4875f3f912c8703945e99cd2a85f75258fda7b6022b7c0100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd13010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d640100000000000000fab301ce05079af0f67a042f807cb17a770c0e1a2ceb3d956d569b44625df87d010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec172010000000000000012af78070e965616e16ab8cdceb871c02e09b180e3f0a69083419196c9ec665d0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000000e99696f88e19e20d306ad6f8afb760f16c34a1e7bfe6cd70848e2d55cd2463401000000000000001e23aea69748f8f1d4f9fbe21694942fb42df344e3e314c4a017a4026ac0d31101000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe200100000000000000f2060145fed18a41469c808b9c9f489ab28bdd327529621512b7077add309d1e010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000036ff2156d388346076b08a5c89aa760b714eb1bd293e2f3e4c4f35049cca9372010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000004a94c2cfca7b8fa67f6b25c0be6f0a010d2943072df572d6488b28adf3bc2a5e01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f0100000000000000ec19137bec15ab7c3cd7625e029b026746f6a90d28bf28cfd61457c40a8f26660100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a01000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000b08365edcdd4d34a08e76edcb6a883a99eb396bcff3534f65a5c722e6d15fe020100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa35020100000000000000829242cb6073a371f746be7fa3db5096cd961b97f2302df7d751e6aa684e9e4d0100000000000000323ea0d991d4c7d350b729341b1b51df1e2868c152ce97feaf11c38fabb50f2e0100000000000000b454ae69192dd1225c9f2dc8ca0ce26eff7e778c24e83230d975f266f23c853401000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd9325712101000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c085301000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000006edcddd44823f4f48b53a4172c3bbe239842ac1e663eeb0222fd715d050d7a5101000000000000009a62ccaeef1677fa3fde2e172bcea58f695a34304ccf5594b74fc7a7ce9fdd0001000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c286746010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e17201000000000000005cf9e506e47672dd81188ac6eb1f4663ef21002e3b99689c772a21d52cdae5530100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e210100000000000000fa2b11bf5823233f9811719bc222d1a99fe1ed274ff1761aec90b89be97c945c010000000000000038ab6c4b18e1c86176cf53301ea990f1cdddcdc3f2c3e0f8dde126fa59f60b2f0100000000000000f4cc42dcba1dab471c0a5ec670cdea14b3b644b83f57465a19dd95d33cd52a6601000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000e0ee8ff76b364ad2ccc3e82e69cd700c0895607a449c5af3745bb3018a184322010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca92734468720100000000000000c46110c7c4c9d403403219ef9113a5110d3a6fd9c9341bd5b02f31093b7f5ba00100000000000000040000000000000002730e03871051bdf14a8ed73e969f10c96dba8cd181337b079aa3c55041ba2a60e693250101751f00000000000073c7f310000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec214541750100000000000000aefdfe84e2eccbc6e76bd2b22c10a22da54f6e28fe0246e938efc1053fd6882701000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b9200100000000000000c681c1acaa82eddba6e394ddc9a2fd1af34418448d544c34966a31c837667f2801000000000000002a6ba1e8879539c7f62f3259a13839cf7e6b1a120a606d1d1dd36727f625a860010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f1601000000000000005c3c0ee6b14e470076fdbe43274d6025a3812a5bd4844bd0d689f90ed07df610010000000000000060f472588bedcbf6b27b576dcf2ac751e412b377a39fa82bc2b79f72ac9373140100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000e07afc6e4b429df62183d1e1c417703cf8467e0f1bc61f7e33954d8336c7a9350100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f35489439010000000000000024d917b35ee19a72512caea1dbf92fa75f5ac2c247c4a0184d330f477c750543010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f7748080100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae60368200100000000000000a8e470f2339e3ed0da456780dd9207e9c6a02459238ec3057a6ade01fd6cd60a01000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000e2e75c3624bb65df0df32ad086813b763becca3b7cd1966982705c055f62775a0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000005c0494412a296a92296160ac510697d97288753829a5e9d02eafb5f101e60f5101000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d01000000000000009a6223b8a7aac3a28f958d9f6c6abf55f87a38cd22fa563d6327a4d86da7b64d01000000000000006ca924ff8f8e69b8ea54dc988c67fbfc1d955f357f01e5ff4b8362ad7d756c3701000000000000009e280c8deea88069fe5118eefbb994d01373ff5dc213a65d06e6873b528f6c2f01000000000000002834c706b030a82a81ec43e2faf26a7d00392e1d8f2de8b7a876183ab612cb180100000000000000d0189a530b4048501596c4530054fe89f017360402da0ac197a8100ac693b06e01000000000000000aaa5fa196c5c2583c1cec2aa1c991b582fd819d8bd74e91ab76da894c4a0e3b010000000000000006ced0dafbe316bc507cfa57f506a58ad57ba7a69a8291ef87e8f0f5dceff6040100000000000000364360b4881f0f2831a226a422c79348776d43a2365dd636dea05a09381f8c2e01000000000000009092f9e937617716876caae2eee008bd44b0d0ed3f3af47073dcab55fcb1d5740100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000c665d82a27136f294df943ffa86053c5aefeca16630abc81c12943e1aebcec3401000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d1200100000000000000a811dfe216e8a8baba58d8df3d7616be1edddd7d4822ed774615ac7ee32bd6100100000000000000e41b3ecad757b0a5ecbc6b29691681df25b3d2b5f1ea325b648e607a5d76cf08010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e6601000000000000004e5b37f3ecd0fb3131aba488083c145d60b924ef98b286a0066e0ded309e886b0100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad6140100000000000000946071eab9c0fa1de9be2ad3c18041f1326faab41d84d9daf9f89c0daf9c0f00010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a0100000000000000faa52c51af82fe8fcdde5ffa213721a8395acf22e30bbd2aa420626571e6183d010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d052628010000000000000028e972febaf463f22d1108053e7c26ccde1e6018d7c302985bc227557e0a663b010000000000000094eda7bd615726b2637768ca6515ad1a966a7e60cb558c1da3dd07fee3ed7c410100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d8708132010000000000000080413d2894759b53a03874bf96ffcb66117e4a08ad7f159c008f2b3b6cfcbb4701000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000f2e49b313ed23755c61ca69aaae54996c4b15e8ef882056b33c440bc7c6976170100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000902741c83009936926e687f91a203fc2bb0dea691895ef4dfd1d85d86f408c7c010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a5201000000000000002853991fa905fb1577072536945202ada12be4f8ed73f5859115738ad4b2bc61010000000000000098cd0a4eae6f560a9e760f8b806b36861b805798b4ee0ada29f6841855d51d030100000000000000584bf60b8b17ddaf70f87f371bd2b425a3637e05c1b75469f45ea85717063b69010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e01000000000000004614e49182a3039f08145e4f1ce84cecf8e4ea2646d4e103a8e01f098bb7ef070100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d45401000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b59010000000000000028e4892cc64dd60cc05ddd4fa7db8f2fec2cac8f3b117e438bb884d1dd44e578010000000000000020778d1b86af98ab30d7adea5f3a4f215d6d4a9fdc892d8999275b2c311fb05f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c010000000000000086cca25ca588d995ba36f447a87ee00073a24190e8335247875e1bb25823f8450100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c5792501000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000608b753074d6a1fd8e099224a7495f61e3db2cb91e1e88553113057a5f49533301000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d710100000000000000cc8ed5325a954248c36a4247253fe635d71cbbcb65be07f2ff51570acb55c12e010000000000000030cf1406264edf4df924abd500365e92c08e105f269842298be35d54fa67f701010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000e682cc2e71eeebb447a353fdf541b2ce7f9920ea1ad2d832bc35e3b49169bb6901000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000dac9ac99a034e57ae0f558ad981c1b12243c08cb140c483ba5dce6878ddab74d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a010000000000000046d6f6331c4776c946073cfb18164ac2b7b0ab2836711373465794ef4a6d3c2f01000000000000009e5b6a03be0ed1cb27d61340f02efd1a285cf73519dead55195f001ffa274d4101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc13620100000000000000a6cfacf0aff2d5c6e8eadf71f397a64f2863e5f0b8793e3068aebd5b3030e13101000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca220100000000000000e6e897a3011883adfe5d7c58e45c769c806277a5d8bb7aa36e232297b747b04f0100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d262730100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef38767601000000000000001e9c3192d1c2e7e1d5aa731c1bd3ffac1b55bfff1cc1beb0745a6b54b4b32b180100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000b8a51609827d3b5283567a63d2585b896a64cdeae91803154a419cb6febac0090100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a701022010000000000000096a550a5b080ba4f333c58a9f4113a664c6e335dfdbfa227bb6f4808351c045b0100000000000000343a9649237a3b9ed165df5a8b6655996a9920091530b4896b0edfa3afefa60e0100000000000000ca9919b307ac6204475ff029334863d464042fdb84da988119b6392d5862cc78010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000005330f74dbf024dccb42c34e008d84a5d5d8ee33603029b4176ad6579bc504f010000000000000060868aebd495f442d029a4a0eeab5285bf7ccc82988417429030dfeb4080fe3401000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c66010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000b45837a3683c303ef060d8126c919a1d13fe45b84c42ba393ce99eb28a9f70480100000000000000105cd6ed1f55fde42f7c82d0667316a4f1e26e9e53d96f540e5aff8905897b5c010000000000000088b3ccf1680a221f1ae9f8879fa7963262ab735078ded24cc2fb209f9188031b01000000000000000884c85734b971a88cd94d86d3c62fdf163256a0387e15e2d36d8f25523a7748010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ccb5a9652f3be5d85fcab3d0b8c2eae27519ae2f7befa40c34b89751bbcce40001000000000000005258f48e31bc89f5d53ea6a12eea9698f8e72c6068ac1588100d8632bc674d1e0100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000121f9d8ba85d89e3c6f9a0fedcdfc9b05cc40a6d3324eff6e8a58aec5f5259050100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000727c079c499f0ce88218e4cbaf1c4013bb81d6edf19e1cc9b540465e486ea13a0100000000000000e29a6620c92975dd4d41e2f0e01ee85f4f36569ff1e7d66434227d47ffc6787401000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a01000000000000000c68512e2e5dca7783df908fa702dce48d67a439655fe52de6d29cb07890445a0100000000000000b60ce4c500ac9859bf4a3ad89aa03f37e4b25b33da50fd825ba53dcb222c9f45010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe08372156001000000000000001e2543674c697ffa09657ce9f9c4b610e46da5d73124410b327e6ba5d432263c010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a09f648a1583e14379a3a2543bb6d67201cae1ac2cc90f351f58d5574e02f6201000000000000000e21a03fbe9885a475c4875f3f912c8703945e99cd2a85f75258fda7b6022b7c0100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd13010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d640100000000000000fab301ce05079af0f67a042f807cb17a770c0e1a2ceb3d956d569b44625df87d010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec172010000000000000012af78070e965616e16ab8cdceb871c02e09b180e3f0a69083419196c9ec665d0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000000e99696f88e19e20d306ad6f8afb760f16c34a1e7bfe6cd70848e2d55cd2463401000000000000001e23aea69748f8f1d4f9fbe21694942fb42df344e3e314c4a017a4026ac0d31101000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe200100000000000000f2060145fed18a41469c808b9c9f489ab28bdd327529621512b7077add309d1e010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000036ff2156d388346076b08a5c89aa760b714eb1bd293e2f3e4c4f35049cca9372010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000004a94c2cfca7b8fa67f6b25c0be6f0a010d2943072df572d6488b28adf3bc2a5e01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f0100000000000000ec19137bec15ab7c3cd7625e029b026746f6a90d28bf28cfd61457c40a8f26660100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a01000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000b08365edcdd4d34a08e76edcb6a883a99eb396bcff3534f65a5c722e6d15fe020100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa35020100000000000000829242cb6073a371f746be7fa3db5096cd961b97f2302df7d751e6aa684e9e4d0100000000000000323ea0d991d4c7d350b729341b1b51df1e2868c152ce97feaf11c38fabb50f2e0100000000000000b454ae69192dd1225c9f2dc8ca0ce26eff7e778c24e83230d975f266f23c853401000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd9325712101000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c085301000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000006edcddd44823f4f48b53a4172c3bbe239842ac1e663eeb0222fd715d050d7a5101000000000000009a62ccaeef1677fa3fde2e172bcea58f695a34304ccf5594b74fc7a7ce9fdd0001000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c286746010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e17201000000000000005cf9e506e47672dd81188ac6eb1f4663ef21002e3b99689c772a21d52cdae5530100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e210100000000000000fa2b11bf5823233f9811719bc222d1a99fe1ed274ff1761aec90b89be97c945c010000000000000038ab6c4b18e1c86176cf53301ea990f1cdddcdc3f2c3e0f8dde126fa59f60b2f0100000000000000f4cc42dcba1dab471c0a5ec670cdea14b3b644b83f57465a19dd95d33cd52a6601000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000e0ee8ff76b364ad2ccc3e82e69cd700c0895607a449c5af3745bb3018a184322010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca92734468720100000000000000f16f400ccfdcad3c4e772a7515a51c86fd204f2dfba18dfa1f0d4e3560aad64f0100000000000000040000000000000002fb527c1b098806164a226dbb0ac26345b6ca917c7ff9eaa587ca7af763b5327682a6250101771f00000000000033daf310000000006009000000000000a50474a0fc84f72a4a9b8493379b7dfc59ca58a261a2e94997600d14b6b444c1475901000000000000009c40155989f6072e82caba245d7db7e40a60f866b403257976b89aba6be2b55b010000000000000014b0a3a620f70ada506d6ef1b7ab099219f2f05689523af7eebc81f9ba258e6001000000000000007067d4c5b492b11e2052a2bb0b4f729a52b3667afbca7dfefa863011254b5272010000000000000072ab87b654d80294c876cbefb534b3344c2f64159b015b89221331ec214541750100000000000000aefdfe84e2eccbc6e76bd2b22c10a22da54f6e28fe0246e938efc1053fd6882701000000000000008008c1b7061a2402634fc15d3849e2913863beb9f55024bc8cc7fa7d6e397817010000000000000024a51a9bdb67213626d1b52bd8dbc0e9b94ea88ea417aa17b56212d1cea3e1780100000000000000488d520146f681678e9d229f5e29354edf65e521246b28a4175c0502e060b9200100000000000000c681c1acaa82eddba6e394ddc9a2fd1af34418448d544c34966a31c837667f2801000000000000002a6ba1e8879539c7f62f3259a13839cf7e6b1a120a606d1d1dd36727f625a860010000000000000020352ba0565811731625a8001d26f5d899e5856dedd0f9c6bc3bec2995704e5b01000000000000009cb389c209afbebda2b12113e0266b3d30f46e2a91aaf4451c193d640288357101000000000000004c9886e2e62ee92a6778d6a7928052732044b64fa61969cd8e37f3f7e3406f7201000000000000000c78c9dfc0033ff87657c56b7ab8cec4d1249be2de18729f743f385343af0f1601000000000000005c3c0ee6b14e470076fdbe43274d6025a3812a5bd4844bd0d689f90ed07df610010000000000000060f472588bedcbf6b27b576dcf2ac751e412b377a39fa82bc2b79f72ac9373140100000000000000002e496e564f088a075525d2f9155aadd1a7eb017fa36f9e16096e9db7e169330100000000000000e07afc6e4b429df62183d1e1c417703cf8467e0f1bc61f7e33954d8336c7a9350100000000000000f6dddaaaa53b57763610037753656b591d90fa81efbadcabbeddf7378c23602701000000000000003e69835397599a4bf081775f9f42f0f4ee686d67c9af8eacc4a733fdcdb0290b0100000000000000c48c594bb4e173544a0379055b65d995af53256f653d04f2cf4fdf8f35489439010000000000000024d917b35ee19a72512caea1dbf92fa75f5ac2c247c4a0184d330f477c750543010000000000000000b84e6e296de1009aeca95ee09bc5173aec6e91b1145b247d69e477588789720100000000000000466c0e97d043a4b0f4c3ac4849e11f901e9b31b28f8b3e40b7cdb0ba7f7748080100000000000000e67c524e443cda4cd27dfcce70488a5d23a93c8c46a5e83ef5a69eff3a02fa5a010000000000000024a57db63b380456d56d561d8a9da6db13d298045c9672bc4086a2e0a567d55c01000000000000006c50859d9dde209012eb3868c1a3a6e80ae8fa528ace9df68e92dbbae60368200100000000000000a8e470f2339e3ed0da456780dd9207e9c6a02459238ec3057a6ade01fd6cd60a01000000000000007c5f58a83f8101943c089dba3ab906c07811e853444aa58dbcc986c4095fbe7c01000000000000005494142902284943201b7cf610306e8665eeeec87c014d607175c3f50f76103b010000000000000072ed7192625403acef94aa9189f9f179deb89e60478816ca96c79b742f757e750100000000000000d8f30bc2ee88e69f60d0278998414c80f4a130b8e1738e873bcd14ef31e58d36010000000000000042e377034ce6b2a582bfd66c465252ab10ce790e4f0d3bbe99a42ff86b29965c01000000000000007e91ca522b14cbb71b45348c699b7d65c3198516ee771079b672ee3d7cfc577501000000000000004e2753547f6ec0a896bcbc55b9eeab875e8019acdeb10b979210af63f24c4b74010000000000000042e7851b82d8b7722b9eeb5eead57b21bf533fd25acb10542a52889376fc3920010000000000000028ce9c093ac772f56acb8dfe8b33a3966d4b8699bd41814117352d397195bd5f010000000000000042ad4ba7e8a60af1abcee04fdd82ad02b24f1e2535bdb1abcdde886efbf0fc4301000000000000006ec27dfa7ac9d35eb002c55d3e4d56b4df928dd5c44323ac228305741c9e09360100000000000000b89cbc83a386d6f5d4fed93289ee50fdf69d77369ca0c9a8b962554e3fc0d37e0100000000000000e61da4eefdd14434952c58dd1943f7f63185d03321ccc8835e4216badd16fc19010000000000000012a64d79e44f1adb33c85c4f2bdfcd8d8b38a34d984604f39289c9a7624a442d0100000000000000e2e75c3624bb65df0df32ad086813b763becca3b7cd1966982705c055f62775a0100000000000000a20797f3a8669a909adb22a3aee2844dba82d231cc33f5d9be0e2c533cb82a670100000000000000e297620b731b4958e3c6aa06611c6aa5a45f7e116362d64954a0a330d2a98f330100000000000000dc1274e0689c7a3eac31b41ce352719529e65c01f26999f74ce17c9905fce87401000000000000000e5e5f8e89cd8d58ef83abddd3d1c2079691dec4f6965af70436e84411c31f3901000000000000005c0494412a296a92296160ac510697d97288753829a5e9d02eafb5f101e60f5101000000000000007c21799f6143fa837a8c18bebe3368d60f4e009b114f61490b54e6344034040d01000000000000009a6223b8a7aac3a28f958d9f6c6abf55f87a38cd22fa563d6327a4d86da7b64d01000000000000006ca924ff8f8e69b8ea54dc988c67fbfc1d955f357f01e5ff4b8362ad7d756c3701000000000000009e280c8deea88069fe5118eefbb994d01373ff5dc213a65d06e6873b528f6c2f01000000000000002834c706b030a82a81ec43e2faf26a7d00392e1d8f2de8b7a876183ab612cb180100000000000000d0189a530b4048501596c4530054fe89f017360402da0ac197a8100ac693b06e01000000000000000aaa5fa196c5c2583c1cec2aa1c991b582fd819d8bd74e91ab76da894c4a0e3b010000000000000006ced0dafbe316bc507cfa57f506a58ad57ba7a69a8291ef87e8f0f5dceff6040100000000000000364360b4881f0f2831a226a422c79348776d43a2365dd636dea05a09381f8c2e01000000000000009092f9e937617716876caae2eee008bd44b0d0ed3f3af47073dcab55fcb1d5740100000000000000a86c7bdf11794e554439b09f9f294c8e0abaebf447c7bc54419434b8b95f864901000000000000005a63824687de4f60534ee18a430396b95263f75a077655c751bc2045ca2ec84d010000000000000042e4c41a899dfb238649e5b17dc232c2699353635d60e6a3bdcd71f9b82cda300100000000000000c665d82a27136f294df943ffa86053c5aefeca16630abc81c12943e1aebcec3401000000000000007c3526dc5579f1ef841101b573c655c20f4346fa4a6b0b6ed773d147c3ad6d7f0100000000000000ee579514d7f544fc9fb8d6383ed7d109ee98a411bb4b0b45b9354b0f73fed9720100000000000000e8308668e9f16683cc739791a6dd530b819f45e4ade2113ee2f27eed1c51d1200100000000000000a811dfe216e8a8baba58d8df3d7616be1edddd7d4822ed774615ac7ee32bd6100100000000000000e41b3ecad757b0a5ecbc6b29691681df25b3d2b5f1ea325b648e607a5d76cf08010000000000000026d421de2e7251020ac2f8b8c7e348aa904dcaf0b6d5d73fa0113b476f7dd9030100000000000000bc56c07cea21bcbbe058aedd2ced9fb4757caead55f96bda9bed1c9669c32b640100000000000000ec56243ac035f65b377444e20bc8fa7e3e75242a59b5ffa5f44270f451315f2b01000000000000006ccf2ce8e149999a7bb996faa65194e60aeb7bcd1937c787f886fe979fb49e6601000000000000004e5b37f3ecd0fb3131aba488083c145d60b924ef98b286a0066e0ded309e886b0100000000000000c0e36251f9ce24d6fe429ecf14bc9599285e3e27c0a541d5ac0ad1902d7ad6140100000000000000946071eab9c0fa1de9be2ad3c18041f1326faab41d84d9daf9f89c0daf9c0f00010000000000000082b820c5bee8ee77e35203dab387f3434b8502e5f1c35dfb2ad15b5c89d47b3c01000000000000005620922a6765fd47abc96615ef5b8b8575f18aaf8507f6afb86129bc1080994f0100000000000000b4b145ce385b4a3d83f2daac46a61874f80e58c468dd624acc09a558be02c27d0100000000000000b288a9832e07bef83c5a8ca72c5a5583b321672ba7c6cdd44a971f855d32d95c0100000000000000d04077347325618eb5cef03729a157b910fac54ec7e344e65b6945fb9fbbeb3b0100000000000000fe3b55d17e25c44a3568885d9d37276df81fa5225d9d73ee67321c7826581b5a0100000000000000faa52c51af82fe8fcdde5ffa213721a8395acf22e30bbd2aa420626571e6183d010000000000000040a2527ffa7d30d788eca127d435c8b5aa48972cda538b9a1627a57e85c8fa190100000000000000844b691aa95ff9a15b50f5e5f4f0e582db6621326cf18d7533f55bc27549497a01000000000000009c1863aefa0b4d5f3d48275769ad0ed04e1428db9694d83b9bb8b5d833f1b41101000000000000007c4b93d862704aad434ab3dc2cbef824df738c5dbe1ba7b34daa38b2aabf7c360100000000000000ae272f5ae4e197a1fc8e670d3aa7bcab325a39d1653b5440bb7593788d052628010000000000000028e972febaf463f22d1108053e7c26ccde1e6018d7c302985bc227557e0a663b010000000000000094eda7bd615726b2637768ca6515ad1a966a7e60cb558c1da3dd07fee3ed7c410100000000000000261ac3229b4bb7a376c37f17e287b2eb596d3b478370b722b6b41443d8708132010000000000000080413d2894759b53a03874bf96ffcb66117e4a08ad7f159c008f2b3b6cfcbb4701000000000000001a36d936f4692ac8387ac0ca1f051970ae480271e39fc134436b86b8ec83b25d010000000000000026d7422872cbf4d4918046f240a13a37219a272f4326b3f3bd1249829bbcd12b0100000000000000be6106f9217a1847af66de9510fdfb40514409556506ddc1c1a897818434125b0100000000000000e03dd3bbb140ffa44e0cc0e1846967b03aecccac78f6e2e0a1fd3ac0d34f554a0100000000000000f2e49b313ed23755c61ca69aaae54996c4b15e8ef882056b33c440bc7c6976170100000000000000c02283aab385e82cd28d831cd1ba21381597e0ed3b193f6aa22d7588434c24160100000000000000ae2e94f092fbcfe263519f950b5ade09c474258a4e0d5e62570d02b3f71d85480100000000000000902741c83009936926e687f91a203fc2bb0dea691895ef4dfd1d85d86f408c7c010000000000000088b8e0da91c48fd9bf94ca5ed7fb74797a037e626c98ac18cd76360ccd6ac11c010000000000000086c1922e4ed392d72e0fbc0ee28e7ec0a8ba2b33470330a606cec9a159a79626010000000000000036465f4be77147914969ea78f8e39610310679011dfbb6137dab12e18a687a5201000000000000002853991fa905fb1577072536945202ada12be4f8ed73f5859115738ad4b2bc61010000000000000098cd0a4eae6f560a9e760f8b806b36861b805798b4ee0ada29f6841855d51d030100000000000000584bf60b8b17ddaf70f87f371bd2b425a3637e05c1b75469f45ea85717063b69010000000000000004ba7eb24012b133b20a8021b603a1483c4a5b9ad3415a4d7ca2b1ad625719550100000000000000202e3405e49bb882f1d49efc4a4adc5b62dcc96ec18346a48aad5a510c189b5001000000000000005c39533cbb607f1f52d82356d267a56399045e0d7b7e95887cfd8ec13173db2e01000000000000004614e49182a3039f08145e4f1ce84cecf8e4ea2646d4e103a8e01f098bb7ef070100000000000000ea6acde5149e930af7bc3b17b7f0bdcf12dfd3dc3437f774f823bbeef420a97201000000000000006e7a78e9fdfe275f3e000382ba30452729970578258839db6c0fc568e20b351501000000000000004e1b48e67c1e62e46add39fa523b956946228ea0f08bd9d20ced798cfc9a0f5b0100000000000000faa6ae896c2d1040e495acbdcd8d90a02ccb17ba6e507efa2f7deacb3b28466e0100000000000000402a67126cd160c84edcb39374164f3a39aec59ae72cb66dd9fbd1e9891aa27c010000000000000014e2f25dd3376eb7978d413c14322704a2ff3d9c0c2971acdcdf9720c2c13d6b010000000000000014cf97e739cfd033c2828f25ad3f15e8f6ef62ba97dd74164e77e61eb85454260100000000000000a07f151db53097c2da9dac4b2e0f194931a677a3ba99df0f3976e34409fd64760100000000000000c63dfd97609d6fbdd6300bb957b3feba86755bbd5a36d6b4ca40bea6a1b2517001000000000000004cc9ff5edb36e361b088b0eff52fc6e6559c1169ff87ccdb62503bceab7c74450100000000000000fcd5f4c4fe11f20ad99dc8345b7dc5600caba5d5b7d3f499c3253c095152d45401000000000000005eac8ac37c95fc11921839550a30ef071bbc80fb10ea1482cc67818e184d544a0100000000000000ea2b17bd1b69a7b442dd000db0f12f0bd4bf7a87a540427986bd32f3d3bd555801000000000000001682c3264fc0b2a36eff3a5864cdacfe726bf5972ca8f4c5cad6f18bd450d23e0100000000000000d412fb5e47b946e69918a6391ac30283949ba6d99c491d78fc5014aaa2144b59010000000000000028e4892cc64dd60cc05ddd4fa7db8f2fec2cac8f3b117e438bb884d1dd44e578010000000000000020778d1b86af98ab30d7adea5f3a4f215d6d4a9fdc892d8999275b2c311fb05f0100000000000000b48cf50a4f94e83450a791d6de965c3e8127c1c915208f2b85df4c3a84b2042f0100000000000000c60a9f5f89ea3a56499bcd39bac7e038c25f5b7720d873fdc12b68d2531eb650010000000000000040b77fd8fcabe868dc7f2a08bf14c67e4d433886c3cd3738d1b0b9c649bafc230100000000000000b013a8307c3572f939c1a9759a832f35babc847cc022588903572c8def43267d0100000000000000cef0feb2602582b96fec882181d34bd5504645c544c983b1a962188239eed90a0100000000000000b633c47d126eceb0e36d788370ebaa179b0c7a3a21cf5f1421bfac40c895ed3c010000000000000086cca25ca588d995ba36f447a87ee00073a24190e8335247875e1bb25823f8450100000000000000de5f9f5ad3209502cf429630c2038b8818b6f8ce5685c2730077349802c5792501000000000000005ce79c3ad8a0e1806e863f0858c28a81408d19870a62ac0316b3e6345cbb5f7601000000000000001cbfaf2b91ee79c6288ad01dd5787070b34d5e1b8253a1765904eaa7d0b93f020100000000000000b672ee2f0f9183585ac4875368a0defda6d3c81927fbfc34bbacc7481058cb4b010000000000000036a547b4aca95274437f3876bec0447f775eacd01b09d95869390d326a596d450100000000000000608b753074d6a1fd8e099224a7495f61e3db2cb91e1e88553113057a5f49533301000000000000007878535e43226cf81c42183db4bbef4b1eed2a460f6cd423c03af9e86674647a010000000000000052c9327ca5c1ca830f8ff712d813a8cdc2a8be122f16bf0d1d9e77b7a9789372010000000000000026f2af62a2f0d847e3d2cccc93ec7f98c80a7b6d1bcca4cf1c4a6fc7f81775010100000000000000407e78f505ae833a2eaea113245bf6a5ef6abd0db66141f770cd6cd7a7e75d710100000000000000cc8ed5325a954248c36a4247253fe635d71cbbcb65be07f2ff51570acb55c12e010000000000000030cf1406264edf4df924abd500365e92c08e105f269842298be35d54fa67f701010000000000000078c91c4ee02089ea86612f66d6022a0cbd54afe470a162a72036611623924f6d01000000000000000481a58bfdafecabbc96bd170a0ec04cc35100f1f928cca3ecc63b3639e476790100000000000000e682cc2e71eeebb447a353fdf541b2ce7f9920ea1ad2d832bc35e3b49169bb6901000000000000008ec5856a5fd17617c0af76efea16a87d0c5e769eaad39e91c40dac93fb067d5d0100000000000000dac9ac99a034e57ae0f558ad981c1b12243c08cb140c483ba5dce6878ddab74d0100000000000000e4be18b8f5905bc41fe3cba2e5350d405e76036328042ae7edfbb6b6a9b43d5a010000000000000046d6f6331c4776c946073cfb18164ac2b7b0ab2836711373465794ef4a6d3c2f01000000000000009e5b6a03be0ed1cb27d61340f02efd1a285cf73519dead55195f001ffa274d4101000000000000004ed5f55ec45727a57e2d8d6914f6d2acffb17b9515d347ba045067502a0b14020100000000000000507e2aa1a2409b289b89c80f7ccb129e91a32e8d44c98723f8a97307f54a2d0601000000000000002a0fda136ae348db338b87bed349145a94ce091227774b0542e533a83d1ba455010000000000000078d986932e680d7bebce126a5aedae3e11ba0f4e28c03d63a491e8bcbd05ad2201000000000000007c552599ae2d251c1fb693009a0f904e41e59183027af5adfb8bba4133fc13620100000000000000a6cfacf0aff2d5c6e8eadf71f397a64f2863e5f0b8793e3068aebd5b3030e13101000000000000006a5607bc375d7ac0908e7643ea2e89dbe42f4f805c2fb6e2a22d0385c1232b310100000000000000f4ccdf83d734edcc568462572abaf32d22ac7faf8000195e02273d1c9665430801000000000000007eb2b0b6adbe5a5bad38f46db207f94c896d419661f4ab8f21e302a543df9b11010000000000000048ce0aba6f1554e139568b4d2358d6cca9bc291d3600787cc3e732291002ca220100000000000000e6e897a3011883adfe5d7c58e45c769c806277a5d8bb7aa36e232297b747b04f0100000000000000469d81e8b43725a64da6b1ce10eb53eebe1aaebb9703f75ed452e12f45d262730100000000000000c4c5fe47a568c2fe4876eafd5e0093dcc31b450eb87bfe58397dfae2a590d465010000000000000044c47763e8f2f1675b480c01304c4da58c8d276b5ecee722e45d17afdc3d391d01000000000000001cc40fa83cd0a4431aa63315b55c669370a4037756089f3402a9021e2d8066640100000000000000742c0a1ea78a09c7454b48897bfde87bf4959b89c898623c8eeace7af714147d01000000000000007873ecedbae63dfbe5594da935e52c14dbd0e131b12879d573b9c002c6e5c4400100000000000000fc53d15453457faadc5540c5853f54324eec395d3647fbf99d5e6e97ef38767601000000000000001e9c3192d1c2e7e1d5aa731c1bd3ffac1b55bfff1cc1beb0745a6b54b4b32b180100000000000000fca464b97dee2e318ad8d4516fd606a5401f5d15467110112a3326ef96ce00760100000000000000b8a51609827d3b5283567a63d2585b896a64cdeae91803154a419cb6febac0090100000000000000864cbd281011a154d93d0320865ad67ae442bf0985f0ec220e2c7db4b09599310100000000000000cebdabff22e607a75aa8db1bf875511a563200cce3f089972aca719649b6e1760100000000000000382fb32d7c8868ce3765e9ccfb462c04071a3d70cab3382c796a9115ab0c310301000000000000008a6dbf87f769167b4eb982f63b946f96a1f223b6a6f2789183fec09581b8e906010000000000000056927fdc8bff2063e108fe1b05bbde2f6219bda7d8663fafcf3d2976c72153590100000000000000b027ae418b6c79d9f3a2b05df499d3aaecfb327e6b9d7995a022dc5265ed76180100000000000000eed7e8e8a64dfa89c548a31c1b9fec7af5aef4dbbdb26997b2ddca72d4f8790c0100000000000000fa49d3457520dd98ca1489b78354d7d30a9bdf2181140072ebda1c3dc3371e450100000000000000a811cc491bb3487d5e604dcf6dca3bf529437162f3b8cfb8514ffab16809ff600100000000000000fe2848018ac215f72f551e58dd2d065d99b788b5a7aa59b9f9fe47a5bdbc046d0100000000000000d2fb72b7c3d020239ba45289122d0ae3fb560d01d0cb3caec01efa0c8701d45e0100000000000000f853a1534a3af56217661420536dd7bea0db6f6db843d8fead77c308ed7dcc7c010000000000000052a0f4ee4ffddedc5b9fd2154ca213cf3f49df94f4b5c36c2d8f877f5a701022010000000000000096a550a5b080ba4f333c58a9f4113a664c6e335dfdbfa227bb6f4808351c045b0100000000000000343a9649237a3b9ed165df5a8b6655996a9920091530b4896b0edfa3afefa60e0100000000000000ca9919b307ac6204475ff029334863d464042fdb84da988119b6392d5862cc78010000000000000002e12aee8fa547e191b4395503c28d4b14650c1dc03c698d73f4cd30f03de90201000000000000004050f1025e1481eedf4d787eb4232123b271e5196dcd8670d754836297d0da720100000000000000005330f74dbf024dccb42c34e008d84a5d5d8ee33603029b4176ad6579bc504f010000000000000060868aebd495f442d029a4a0eeab5285bf7ccc82988417429030dfeb4080fe3401000000000000006ef86d4533f47ffd133c63b9575c17234309ab6e16f487ae7cd8914169183c66010000000000000056606b6532cdbf27358fd067d61c2a65e4b3e8934c266a857320ff18e5c7654c0100000000000000b45837a3683c303ef060d8126c919a1d13fe45b84c42ba393ce99eb28a9f70480100000000000000105cd6ed1f55fde42f7c82d0667316a4f1e26e9e53d96f540e5aff8905897b5c010000000000000088b3ccf1680a221f1ae9f8879fa7963262ab735078ded24cc2fb209f9188031b01000000000000000884c85734b971a88cd94d86d3c62fdf163256a0387e15e2d36d8f25523a7748010000000000000050f5f5863f99e896975813fda8768c72ff25fb54e25385a4263d1ff9a19152500100000000000000ccb5a9652f3be5d85fcab3d0b8c2eae27519ae2f7befa40c34b89751bbcce40001000000000000005258f48e31bc89f5d53ea6a12eea9698f8e72c6068ac1588100d8632bc674d1e0100000000000000ecf0297bddebd3d766ea7def2bac79ad6eb650fabdcd029b99cb1649ff7dc8150100000000000000121f9d8ba85d89e3c6f9a0fedcdfc9b05cc40a6d3324eff6e8a58aec5f5259050100000000000000540926fefa2d0424fd451bfca39a01c0e1a3fc811406e127d1dbfdc6cf9e9770010000000000000038c9a0897d9caff03a308d2120bbe892974ae8cb05f1cfe8b97259f0ac2e85290100000000000000727c079c499f0ce88218e4cbaf1c4013bb81d6edf19e1cc9b540465e486ea13a0100000000000000e29a6620c92975dd4d41e2f0e01ee85f4f36569ff1e7d66434227d47ffc6787401000000000000003491cc113ef8fe1165bb10e65cbb461955f92f8f0d82f2dcfe6664430dab853601000000000000009a53749c83cc06460148d884f1ea5b71897466b237cf16baa45395d78ce48c1a010000000000000064615e1323ea003b7c5a63ba2c8bed2023103458eeee7cf45244580d3ca59b6a01000000000000000c68512e2e5dca7783df908fa702dce48d67a439655fe52de6d29cb07890445a0100000000000000b60ce4c500ac9859bf4a3ad89aa03f37e4b25b33da50fd825ba53dcb222c9f45010000000000000088fa8bb07ebce99964718c65d0d6f1b091ef2f4d4cdf7b94a22c42c007ecd706010000000000000048afb25f7981cc67a66853ec05675d83a2d99e6318a6a7a135ed2916cb70a26e01000000000000008a0e2d0af87ffb812f6e6ec229d02056e812cc4f5f5743cc638a7d3f279f0153010000000000000002a4b2935b657f9ec563642ab0f34e223ef594cc70c856b9bd70fbe08372156001000000000000001e2543674c697ffa09657ce9f9c4b610e46da5d73124410b327e6ba5d432263c010000000000000092e5bb9d0906f768dbdde0696b78e493cc78dc1f68789575b24f0b962799b51e01000000000000001ab9d2c814ed7a719ef2aa94dcf4db8aaa0315a59d4b5699e86656a6ee9ac5610100000000000000b63f9ab3a147d76614bfb688751f79fb9a120d40af7ba3bb123c1957b91a411d010000000000000010e37a12fc6ed768d1a2d33c8abc6db675381dfe69c832abb77d9ba2341b3c4a01000000000000004a09f648a1583e14379a3a2543bb6d67201cae1ac2cc90f351f58d5574e02f6201000000000000000e21a03fbe9885a475c4875f3f912c8703945e99cd2a85f75258fda7b6022b7c0100000000000000fa1b0afc9ce9e9742c4825890f6d93bb87bd199e55e86ce66ba7c34ce43e273e0100000000000000e063e31ccdf34c3372902f92ec915f213538370658d9272f9ba6d8d6943ccd13010000000000000042c56bdb09d52942b0fedb07045113a641e2fd64a428b1fa608b5adff9ff4d640100000000000000fab301ce05079af0f67a042f807cb17a770c0e1a2ceb3d956d569b44625df87d010000000000000086ccdecaccbf1a58049c55793916611cb8749edf93085bb764e77636357ec172010000000000000012af78070e965616e16ab8cdceb871c02e09b180e3f0a69083419196c9ec665d0100000000000000f29cb4064a1cc3a79da2c9a9f336053cc69d50bcc737257ca2f071c37030510a01000000000000000e99696f88e19e20d306ad6f8afb760f16c34a1e7bfe6cd70848e2d55cd2463401000000000000001e23aea69748f8f1d4f9fbe21694942fb42df344e3e314c4a017a4026ac0d31101000000000000003e07b075219fc7ace8dc3bf3a06f5dc12aa9c7e45fe30244d2284bcfb1e6ee1901000000000000002271d61469f9f1e5a0832af7de453015b89979fd740526080116295f4a4a516d0100000000000000645077cf303943059891df150649d1d828052ea4249bf50ca3b6d29c6ef1984c010000000000000022376791bf19fefac611324d27bc6acb4b7f7eec713c186adbeda5a1e1b88f340100000000000000bc8f93a45201992fa9d04355095d03adeb5ff1aea206425eae4f902ffd47fe200100000000000000f2060145fed18a41469c808b9c9f489ab28bdd327529621512b7077add309d1e010000000000000034caa67978c1a5280b5f58196edcdb5c864b02d0fd40af9c6e6b9716f3fb12680100000000000000fecb15325d9baf603112dd397d2e83d3694414f529d75c4b639c7e775b979b14010000000000000028052d0b965ed862b7861aa7f3f91fe52ff8b0f795ff476c7e0a7aa42e7993300100000000000000ea03f9dc29ae9b7a053c12b6079664592d2cf46a30b43edbb2d2d980223deb11010000000000000036ff2156d388346076b08a5c89aa760b714eb1bd293e2f3e4c4f35049cca9372010000000000000092cca18f264bdcfc19e5c01515ea9d61a0bf0b4e46b2bcae372a428b9dc35e390100000000000000e0b770b1bcf7deb030ee75d5bad6ec1ebfe06ded0fc406a8520a9650fe83233001000000000000003c8330f5d7f34fbec333663bab066cbac4403f892df7659b1c118c185c4f16220100000000000000b20050395fc81aa60508e362f02c75faebe3e4909c7a23721182ce791bb701130100000000000000526fdfd1d78345a1b2843d392122962cf89a4f157af2a3d0c99607f506175115010000000000000008e80cc5ada5e557a1cea3658402bc83f9892b5c4e112b6e157e6e7d3663c47b0100000000000000a6730d04d45ee4e7e25d3f7b80b4e2ac12a6644a4128127fbe97e97a1d690d69010000000000000068147c36d367eb1a203b303c65ab3d32fe777cabbca8d39e08ffcfd624b3614d0100000000000000b6ad9df8c32a78e9481e75f484fd0b740554276c026736f0dbac0987db0885670100000000000000ea82745d9978e47fc6bb25fc01383aad42aeee65662b6af304474f0e4101b06f01000000000000004a94c2cfca7b8fa67f6b25c0be6f0a010d2943072df572d6488b28adf3bc2a5e01000000000000000a6a0f8136fafe5c2e096704e37d12b47a1e46151489a23eb1713b37769fdf780100000000000000f25d3265659fca9d24ca877823644f1223714b0167d0a676cf3c9c447173d12f0100000000000000c4687b6d8e527d1ad3be71f2b242bed92eac25b159d9e142e6922ace2dfe5f2101000000000000009ab493c4c8007f49a3e7d1e9f1aef39b39cd66a496e90486e62664725c6ba06f01000000000000009ea2cb3e6c59685087e59d6d45fdccdd5e6fd4f77fd90b4749f65113e23f086f0100000000000000ec19137bec15ab7c3cd7625e029b026746f6a90d28bf28cfd61457c40a8f26660100000000000000cc60431feaf7f1bf42d805f0c12a1978ca9b3ec0a21397a71ecfc2bb7d52d20a01000000000000004a7791775365fadbb61f37a0d2f6d298c0c7c3a4c9402821ec909972fd5f8a4c01000000000000001827754b7465edb9bf4ce981bdd3a33057f9450fc895e39654dbd51c3ab9835a01000000000000005ee252f56786ec8e512d233a09c3bbda21d0bd3a6ed7e8e8c0fe035dfe7989330100000000000000b08365edcdd4d34a08e76edcb6a883a99eb396bcff3534f65a5c722e6d15fe020100000000000000e0d28dc9623e77eeff6b0aee79793b3a00cf8b1c46fb79c8e6ff8cfeecc4af120100000000000000d0106f6fb9b008052da3223c389525681d9b6e4fdb73a4078f7f1949bfaa35020100000000000000829242cb6073a371f746be7fa3db5096cd961b97f2302df7d751e6aa684e9e4d0100000000000000323ea0d991d4c7d350b729341b1b51df1e2868c152ce97feaf11c38fabb50f2e0100000000000000b454ae69192dd1225c9f2dc8ca0ce26eff7e778c24e83230d975f266f23c853401000000000000001e1f47deab3e4083f7d353b746b719a9f5aaee3ae2cf6b37a4d710f95d489a6101000000000000006638aad1c437c5f2f2ab4c46b786db51bb8c7e6af2ee745934811712f8d83e0601000000000000009e3b3214afe654cf851be9e564e72f834168ff65ce346ac54024cdcd9325712101000000000000005e7f927ca4edf203d65f682fae546d8d43913b253dad434800df66be1f0768520100000000000000c88d83d7927e1c1dff61de6b8321ee64746d983173bfb3a03c3d4789ae3f202701000000000000008ca0a873b2685dde8c4792832cabe50ea5a1f8a9a661a336689859319b66ba620100000000000000102ed4107066f497e13d3c484a9fa60e506587e19541069dd4555a91d63f27040100000000000000d27da69172c428ddb80272e6fc6ec90985ee281b45f933e5bad65184bc3b5d0201000000000000003afb6b0dac3a05453f125943b8a26269202d297b991e054ca851fa68bb4c085301000000000000000c3292b5065b7b78a2de5f4fe397fff21df37c0ff7eef94c5fc4397f760e6e4601000000000000006edcddd44823f4f48b53a4172c3bbe239842ac1e663eeb0222fd715d050d7a5101000000000000009a62ccaeef1677fa3fde2e172bcea58f695a34304ccf5594b74fc7a7ce9fdd0001000000000000004616ac86f0d45899eed3f1246dc5744858a694a92b0abd9f10e52dfc9c286746010000000000000046b14e55053a02087c957664d32fdcae6ba1c96051239191c63df564d784e17201000000000000005cf9e506e47672dd81188ac6eb1f4663ef21002e3b99689c772a21d52cdae5530100000000000000e6a08fa6af54d2308215f4a62d554dd5b82deaec8ba22a2e6ebade7202ab9e210100000000000000fa2b11bf5823233f9811719bc222d1a99fe1ed274ff1761aec90b89be97c945c010000000000000038ab6c4b18e1c86176cf53301ea990f1cdddcdc3f2c3e0f8dde126fa59f60b2f0100000000000000f4cc42dcba1dab471c0a5ec670cdea14b3b644b83f57465a19dd95d33cd52a6601000000000000009c4d874baeccbb19733cf93f6ffb2f44d9b9f5191ead84f3550c7b767a75061f0100000000000000b41546275611fa185c88c7016e909222b3a757b476316766a72729d074d8e92b0100000000000000a49dbb103be9a66d67ad5c0d11032866488f39d0a106de579d913dc7099a09260100000000000000309ab613bea03c4431f7602c937f5a4d17e2102db6fc7f77e32f7a245041b90c0100000000000000e0ee8ff76b364ad2ccc3e82e69cd700c0895607a449c5af3745bb3018a184322010000000000000040884e6b9876fe866d109aae2a5a6f1a18bfe3655ec9c1fee848ca92734468720100000000000000593c5a531e1d65dad4c880ef8a4e1c0885a65ce8d7be103f2dbdae6ab94d7c080100000000000000040000000000000002", + "babeFinalizedBlockWeight": 4805051, + "finalizedBlockHeader": "0xe2278346ef5cc38c99f3c7b5d04d3061b74771a52957d3c4a54e63dd25c6739ebea096047df7213ddbd238a5119f3d853e047ad4cc4243dfaa6a24680554edaece50c501c127086eeac2e10186f910e962d68b37be64a891466bc376e90c4cc75ba6c2f9080642414245b501032f00000082d2f31000000000e846025a14aa22c1eea03e8a9cd1fe0f1bf8e2d70bdda937e0e6e5b98bcea202d3265ef8990eed0dda5639c2544332fda25bb1d7321c661734d459170c6c5e07bf7b11404ca0631b2d74beb676038445fe7f25d3a5012aabbff416d470a9c30805424142450101a2f9293b5590e98b4655f2d7738846499c6f7b4ace86ee65d6209f0e78a0d07d4985f28a127871208047ead48cdc03768997fdcecaefc6c1522eb3d717338585", + "grandpaAuthoritySet": "0xa5042f8da08bb2421ef844015c3b2ea23464fc66a9dcb4a2215fe0241f892d19afc50100000000000000fff437ff18629bf1490e5c9b3ec6f1515d46bb9b2aeaa6e39e36611f2479b50d01000000000000000334021ff54e46fb7da4bd257cf113519a0c7ee4a2251b66fe48466fed5853520100000000000000d95f04dc8ea4ac05deea7077457f0406fdd152bd03a7480e7d0de0983b959d3c010000000000000047f940bc985355be7187c709ded2b689b66d69e61e293a507f1d4f90bdbeceee0100000000000000763f1ff372a4b513da9b15c8a751f856186569e42b163b7425933e6530c770f001000000000000004a3fc0fe1020c7f460c7bd23d0b657c03368552b2f0a12d80a1c406fd066e0db01000000000000009b992b5e9b99eb2cd3b2b648d6db81ed722a2feb4938d998b58dcb5d159fadfa0100000000000000aee9de3938173700b3e3f4fbf2b200ae296173a0854157f40de2598dd4cad8f10100000000000000243f110deac5efe8e963d794eb8706a1895ae1942523ab0fe9e1623515b7dea80100000000000000ce97495b417105a218b349383935254aab24e8b9438c448a544630630f05c4a80100000000000000b61e9b13e849779be8f5378a670d61991875d8e091f359384d7be73d02d506930100000000000000426b2be4596a759a15028d84e08c5c56440e6cede68d088f47c671cc3387c3e6010000000000000070ba6e5985990ba1b1392713236f1b50df750f10f744cc6eb95fa7c5cfbc687601000000000000005b27660cd4c375f2654c6d923b29fd8abbab7e96ee040c79598be14f832f56ca010000000000000061e3c03d77ffd8a2ff3e1f46508d853317a6c50badaf5be11b880cc6fd00df9c0100000000000000577f3db377f6b69115658f17f32323071b8e0c67695057353d0ad9ad2d8eea1a010000000000000057ae0c85ebaf333a6ec3251f577cab910cce072f238d1e50046322b83bbc0dd50100000000000000a15896b8bbf01f757f120813bc2e78b21388eea66db4b0dc2e1afeabd3d46dc001000000000000000139b946b46bee4c61be50c986f2a9ef2e76917644e2ecd842c59d61a94ee612010000000000000019a9d56ea35496122fc44fcb5c29d27fbb43520556d6f8d97753767aaa0f228e01000000000000007cd50f6921fade39653f847bddd48360668004225081a6a3ad7997f78debd34c0100000000000000f1578b8007e34ba6b1c4c480a8249758eaa356a6e5b1be0efbe5c35e802fe3cf0100000000000000a5b094ae7c156592baa68ce18dab6368d5b665e9a0f07dfc5f54f58309e086c1010000000000000053352e16d2a27fb3525d5d8750d6ad7f46b303a45e434a409ac727d5cb80432b010000000000000041ef4a31eb7dc1e01f4630604e1908e644d7cdee3f66a60f98d6d59605326f8b010000000000000097743d6364cdb6c4790cd37c4c2ab5fbc6c65e8bb606625e70a6ee04ed1650d9010000000000000008cc1d6c743da905511a39a6f0a68809a6bc32f8ac25e53bb2d6aca4f493fc9b0100000000000000acd71d4269b3ba2a9de822d494c4d841708e1519c08de41d7fc6153eaf48da810100000000000000d04d64a07f144638f20f081de122b88fed0cc8bda57e4810e7afb38036dd8bbf0100000000000000f26945a8a64032a1defa76e720a99649125b55751b6088205e7acab901de670b01000000000000005cba2c6f569da1edc3778308da406f266aa53140381dbb3f14f22909ba6e30040100000000000000c9a741ab82126c4d4eaa6a758cfc1209bbd7b29330e89ccd97fb62ae567c8d4301000000000000009b94bc45bf79bb33f70430c82880456cd7bd5fb3ea131c1b26d493d01c5fe7100100000000000000a1a9debad5e4afb076cf293c2c797f0b5901ffdb8bd01611235e762411a0db3901000000000000006f4855725ebb9eced957bae43ffa7d30657ce7d06b251ce20e2218bcf929e4050100000000000000749556da4a259bc1f0b8ea8e3726c2251656b92205c30b635ec9f42038f8defb01000000000000000ce4d93e25fa5302f4b059456f680047f87be428ae88579e0b862502b5ceed600100000000000000c1758f7cbffeb844419bc494a9dc65fb394259f01e9bf23789a75acc29d7d9620100000000000000c1c1ff5f66fefb5c0849e3b2333411d1f7e9dd4888600e334e7a33623f15fa360100000000000000fe240e80ff8a48a77947b394979cf361017cd906ddaab637d72cf72e729d79bf010000000000000006854c73f5703242d31d2576ac2297c93f0b5dc16ade0097c59d5dc0faa43c550100000000000000c650b1a6b34347bd80ed06b48aa4ae1a33adaa507e8ac23bf6c6b94223b63b9d0100000000000000768045691326b21e3cdb9be908169dfa3764274b793083b72b8fef09f713f5bc01000000000000008aabd4f6d7ecec7a749c83fc7be33f3b4818cca6f93a4927b4964900df9454e50100000000000000b9186b95c90d2d00a31e7c68066bd37d73408271762604e3608e2f2c983f830901000000000000003948bfd09bbbc2fe6ac5dfe53146e32df50828eecf7b2b18cdcff8dc385cbd7501000000000000001ba602a293ccdb7a77042fb486c6e010d48b13dff2bef0a26c53637312aac7f701000000000000002385953f1ac49461b9c243159d9668b26e7322e19fff7bc18d90634f0f767ce80100000000000000ba8180cbc0dceb098ee6b22fe89978bf92ebf196a280470b1501bc2138ec02c70100000000000000070bae15860ce96e4a0cbdcc051c75e37a458c8e6c5ae59681d0ed938e588d4501000000000000003ec37919f9f43a9f85f539edfde3ceebea1b0e8279cb036641d588a9da81a6ad01000000000000005e48598ca89db19a4c279a251216d81e33f6b69e7d2ab4450968a1f9409df4a30100000000000000f510cb6c7032c9134dd3e50014ff6d391cfc91606d003fd4acd37e00f919d8350100000000000000cbd74a646a84b73518eadc73b1983dc9733839739576af9a98c698070a3a4b590100000000000000950459187f6d368ccf940574b1fad05f88aea3303858daaae072443b219410a90100000000000000d2e72b0ab02a001b2e573c0d3b78404a7d3c600c3a9fd8ef38e823cad6ed3d6601000000000000003047f8f7e9c47fda9130ccd57d5dc8d407bd89b8dcf8ecbaccf00da184c73a570100000000000000024743c39cd9e151344dc23c65ee0346132d190a224b687be5c5ae31c5e7bb0a01000000000000004e3fb8c16ad624c1852777456805e5352d0221269de66949c95da4076206b35a010000000000000069a6c84df1d25f855b91040e113a5557da8a89d80644ae7bf8d0ba416ab89b6d0100000000000000cb92ffeace78dbafe6fbf275741b4b38657fb81590712aa0bca7877931f6ad390100000000000000997b35c2de1a7ee0cd6744eea2c589ff487059544539bb099ceb6fe78150b68f0100000000000000f8eb309ab851e8f98aa4bd68138a67dc4a435331598079969053a5325b874a51010000000000000059bba625d971d505a9c7d7c2f3ad69203e69e3e5e1fc1e4905fae7703fa19e030100000000000000ba95f5d0e987305bb794dfeae69d7dd6a7987aa66cd7c9d42aca15e9160ec6a10100000000000000a9087a5d229bdb834a109b3d706603d1627646929e1c15cf302b659500ae73900100000000000000ffd82ddc49373448bed6feb0032744e20068f4e21adc4cb6d2cbf05ce73f4ce4010000000000000016278af083f6d261762f8a97b6a09ff83e2f5927ce26c2e48f3c7e771dc7e6950100000000000000c49e3cd2c701bb845963c2870dcca12ed070c3f67ffc20144327a93aa6e896ec010000000000000082a1428bcd525a2e77b8f5fb89c73e5fe1261e96e93b383dd2d66767c855c8f001000000000000002dad5b2212ee688f2eeb9ca1fb6a90574f006dc1c6680ac3a8523363a248940b010000000000000067ccabbf18c035791cee9c748bea2ca03cf72c40f5ae786f297f84fb059732620100000000000000be0a28e5615d9ce3b866b5cf0babf6a7f0e6de06119463382e715b47c89853e40100000000000000b8183b905f28b87c68c2d5b2f39f009f2ee22b47235f6c6d6cf6e63121b490300100000000000000b7c13f1239888cda5c8e6ac9ea10675df17633368906e66a487f91ddd3268ca601000000000000007509d9697cb54f627f47b25e80f46f5d1bf483a9cab5f52df69e1a8f612e486f0100000000000000f3b1c0e43606bd49bc84e403db685b577e898b5f7c5db9052bdc3dacf38dc7ad01000000000000008a2b50acd1a4955fc814bf6720c7427902a6ce709f3a2d7c17c55b67f6f1c06301000000000000003a511828c0cdc0fd257387843fdbf6f19d5ca1ef1c29ec7e971fc9f1195eb60c0100000000000000ee5605c1a9ed9484a70b8a591339830f24530eefc4599a7c6188a78896908e2c0100000000000000ad06042b85ed16ff4e46f5a68eba9ac12395366ab17c2da24b4f6747b2c8934f0100000000000000d1c146d2429a5a827660008721c7a880e71f44feaa3dc75524c1a9281bac48cd0100000000000000e4b2cffd0b9cacfc500050b27ecae3c55b9b51bd9a416d62605118c8ad4fb09f0100000000000000b28ba3f09e3521f7d09f0098c6743bc218ee2970068adfa5d908d9d06e627ae50100000000000000f6d74de7b39455519a5d6480c8f12c93fc7a4cfc9af39154fc60857a39ad888b010000000000000099f58256a4a5d6cf5d99f0cdebbcbe1477db461457647631cd21ca7f3120da600100000000000000c8be78d05f652edd0a64a5865455de36d0fadb0d91c470fd344f8de23c8a6b9c01000000000000009b027754220ebc891cd98c1919b02797fe9048fb281665141681be3d9c4633d901000000000000002bb7b11dfe79a12110b0370510ef20d40ba8a563f517310f8bf37cf7f0403de40100000000000000f86e50733ff2142e88fe5b898087b4b1d6a3250064a439097f8995069624adef010000000000000040533a786cd0be9618126633512666b1b1b9ab3b436fa653c93e2f65da9c196b0100000000000000be95095d93298171c6fb8a1847adfa173d127e13f53482dcb694f891d68f0c58010000000000000085b714accac0654ba57fac59b626dd35802269d2c1d995cea7c335cb05a88f7f01000000000000006a5f902cdeda2c2161d16bd21d586720c08c0bbb7b463d9c59147338d26a8a9601000000000000003a9d3ecc0b675f0c6ffb45637d48c61fbeeb5cc48dbd1422acb94e7dbc9f001a0100000000000000f459c0d1b1e42bf6c6f976b70e15e2842d753200ce2f901a7cf1b8c9bfb10c0401000000000000009c11e35911f023df6e4d218e53412ab4e4a20c17961d63ba381c913b51f394c001000000000000005a16e068132523621b4e714999d3d856f2728d4667ce954a68b1fd6876bd962f0100000000000000ffcca343512faeffe1cb3a8a7ce62fa4ee0c7f6a5f3e5ac883482846e132813d010000000000000037483029302a84623f0a8db165fbed905b0a4fc25e7cfb56e975a0e98336a59b010000000000000053b5918f72e73f92f32b578d1b602f0cc554d98bee8c4e131ef0ac7a63399fb40100000000000000f6537f2d54db54645229a3a1d0f7deb6020d0ac3b0eeed4b6a7c01b1a610ac09010000000000000063e935d23d285cec7b014cb7736d65b4acffc45ca589003d3231de8e6db8a8aa01000000000000006180a56305eff3231eebe895b44751f075f826684ef42a862f11e79c3e689cd30100000000000000c7d9cab0fb88dccd0cf4abbf5df9d7f36a3de439c5070c599d397e74133bdfed0100000000000000866fe4ae134938ccf4c5caf01358881c75cfde473b0bb8a2623cc231db2ea3b901000000000000005d202a011f023dfaa6713f16bfd4409dde8bfe594abd59e2be32484c73b979820100000000000000b1b8deea89385116d4d4df65b3ca8fb1fe9330eaa26fcecaedb394895ba8023b0100000000000000fc555c014d927fe7838e840609916b9af5d93892ce6f394398858286802b8c6101000000000000006727561447ed474ff4e15645b952a37fa5008d4e694d4853bb55594fa34c4f340100000000000000ec295fb809e22c332aa36a57afe05f2c093b2d13e52b0971d8265c5514e4e9690100000000000000efb5f1e4c4ba37f8c159d452d897c607a58518b8355a8454620b3e3ccc3271230100000000000000f71fca8770328d06e9a45e650e5f58c15feb8ec77ca2dce397490bedfa37db4801000000000000008c3dbd5a1b928cb51e918452191e5328b0f6e8de0259517831a90b02dba3e6110100000000000000aa6fd06015b8309ea9103f4b0e29bfa7e21ab5bb1431c3a76433f591c739f8380100000000000000a892342c56149812a43e98c82b6a3dfee7eff384d9b6d832002ea63838f64900010000000000000005b78368482b0584326a9c0176949523c03ab1446a8aa021701aa9837ccf04fc010000000000000023f07bcb8dade90cefd08732183d5fe32b89ad8a4f84987b9e4e7e767c2587560100000000000000be6b59cb464fadec4e0b22a9f12857ba5cf7a14c4f9551439d36305d582dd7fb0100000000000000f916634f9fd7e54374e30ac6b722ad1793c13cb2d5f2ad38769eaca2f79d414b01000000000000007ba967a2dae0d8839cf44710591db994d18e53b25ec6d0f861da0037c4a4366a01000000000000004d4a140145f83598fc5a3839260723176f643ae286ff7b2fc460b897fb050a4501000000000000007e15c89cc954f1ddd6a5f2e9f482c1143f5b7b4ba406ed1264fd25a999f223f20100000000000000a85dfb0dae87d6f8c9322414c43593c50e5a5ebdd1f5b24b1643efe3a5701c940100000000000000d0a196fdff4cbca9c7d8a893f9ed66d86038378d8faa1fd8543fcce60ff1cd8c0100000000000000d0b4aada93fb3d0b358e8d59f8914f5987acbc6f5b4f3e12a1ed8d962eded82701000000000000004f950be5bf61958a0ae6e6a036b85b33ba838de8bd5508b558cbe2602d341168010000000000000082e6b6bf1f275c59fbde0dad91393ae690d5e644d11d23898a9ccfdda025920a01000000000000004659b8114500937a2db0c810e194610c582865305e141d04e52ee989b80edd87010000000000000074b60dfb12745236ba9dc8f925efa21482b50c870c567638ba3240a05fe363d90100000000000000d761043f405069ac01285f1ff258450aac675f08d906b1ae0a1ce54eabcb36d90100000000000000b770208e14dc236c373cad93e19b092e9c6c7a90604d941c19ca19923d33013f0100000000000000c0444bc7cff2374b76ba49e5ce25b632b0db77f08f6c40799077ce3f5b035f3f0100000000000000cfb9f7f1fcf903a51af729ed1647aee928630e148990309f9dc9f3b14b114b760100000000000000a2ee8d9c22eba97998d63854409d99c87b21d079f5c888d863a81d41d6abf0110100000000000000d14a779884de1b2fbf079b8e47e8c0edb1c29e282996899a4eab5aaf1f4f41130100000000000000c2344c6fb787621295335b6b5acbab9531199901492d41e13a64dfb2927f83be01000000000000002ba5634557f15c4e9198d1ce0cc525e897d3fdecb0c18af8a53fe4e3384f4a1d01000000000000004c51b84496e533a7f1bb2b806f3733a7f0a48543976d0a4e5410e831f93e04170100000000000000615d64d17a182504db609d14dc6a45a109817cfaaad1608b4c48382bee48d3780100000000000000155763a153e0c02b2eef1d8a9cd8a50a9eaac9d3af7ad1e559b1e2320b521e1c01000000000000005208fe27477acbc6750d0caa831c0b26801c58eca046a6cf9d4143f85d877e830100000000000000571fda4eb67e56089cdc82bf339be34e8cf76f28a8a0f63efc98deed6629cf5d01000000000000009424502d9ef92d375847d9f43821530d38b80781e83644b07e70406db5727e1f010000000000000025ebbb2a00126545bbedf00318a78b6e61a0b52c81e30231ff45bd32e311472f01000000000000003773b05d2e2660498c8d407a1d6223423c26aa08b9b3656af94d78b861fba22f01000000000000007bbd4f800c34110b6c739ff1e8913a36ab62f25641c4bb7413cd354894b602930100000000000000500a9e1ea37636c24ebf4e32668897dae936eef42b6da49027f606d4f24a7e960100000000000000ddb8ed355e1389d3a12e9e55fb7723e89bc5020144bd832e02c47f7f672c9f14010000000000000039712f967c4e06d284d6da4735cf2823c1f770674b668f7bc896071c3fd41eda01000000000000000d4c26111d95a762e990acd0a15417be572ee390c7b9dd91f5e7ddd4a015f1bb01000000000000001e1fe4a3c9f590aff5a70b9cae569605ac78531cc10d310436fe0c306cf2e36101000000000000004df6e4d7da2c11ddb9153c714699f9ab625bbcd5e8e38f1cdeee567dc04abc610100000000000000d9b96ab14d54cf0093b00b5bb592a6ea6036f844bf7eaa3b5181d0764e1724b901000000000000009cfeed14dd2f96550a0e7edebd9c9a8c8b1d8f7efdd1abca01987654239f3c860100000000000000fd2fe2f117d597b29474a740ec767fe51cec93544d00e34269b78ddb31225f3b0100000000000000a74ff082093aff29e9a0d9adeb6e6df264b39c15ef1a82bf942e8ba76872bac401000000000000004c3b4b0a3acf902acec7f5d868f77d78b17fa4cfc5f785d393c9f3d15e04880501000000000000008404cabeb0674765bb77af690fa838ba28fa2045d602994a89f07680f4851c83010000000000000006b9e740c0a0e1f8fd31717438d5918ed8680eaccb70fdc9511931ce0d164ae50100000000000000b8cf76a8082d518016ea5588be57b64e156ed23b0f72248975522c23d15ef16101000000000000002565e04c6e0b665fac87f8238bee74837f8f621ed63409f3838d263603400a980100000000000000a4f516aea3a92e379a03a2a9f9fcc757af022ce3572b00ffff21151fda41e79601000000000000002a38a4dcdffc571d547ee3e59121fdd378335df7c65877f983f0957cdc9824130100000000000000620c78305072857b43dadced80ebc057dbfc82b58c14c7b63372ef02140867650100000000000000baf0112f613aa6fff341d67decad56d1c5744a3ebb8e3577e82febbf3535b3fe01000000000000004dc2e72680dbf0156818114fa34d3591f8e6948df25a128e191190c66f6ac35301000000000000001ebe41ca4cd399901ffe5f6f52642630820500e4a96cbef4c80c560cae38d2c601000000000000000442cfb3cd38604b2a5251638e9fa7ee6b05968c731f393b78a6604e0072b09f01000000000000007af0706d921a331b5c1f957a8d1decf15aa0e3377a80d72107693afd8614ef8f0100000000000000811038f59afeb084566271eb138b0106a8ca013f57e589d6f777bc7bb2219e760100000000000000f5e2c973d4ccbdd36d8ed4e3dae75d3b50002cc1c74eb0a1fe29ef1ef8e3f0cc0100000000000000f5df4d76a1df9b6a7940a07f23b909a0e03feaa0cc84743674678c7a1d5412760100000000000000f56f5b3de4f46bcde88569888783fd60646806795807edb1e04ec3dff85ff3e10100000000000000b1f748c87b12edf7242b4719cfe68e6761acaa4329beee538d6ff740941d3cd301000000000000008b35aa0d212e4032ede352d5426696c260c9ecffa632a2e14e6a6629a6c9f637010000000000000072341ca1eb3a0fd4e790318b51ace114315573d5355c9d5336e39382ba0642560100000000000000a79cd2241bd68004641baac25c1900da3a9e6d83101aea3ef2a58d78c657272f0100000000000000b14911cb101f45b88c437a36bd82a5f8641b1c55052060ea46ea2baea570e8bf0100000000000000b66e24ea84d5e02a7b2b58e20bbf17a0f2a19c4654bf8b07669ba3b9fc4a468101000000000000003c1dcee818434058b7de26ee874ade21bd1149185d6dcba1f67048b931ec3dda01000000000000009d31c78ebe9664e2bd8ba41cddcd9c5b9fb0cc6f8be0a2e5b91f6bcf66a5c7530100000000000000290be52ae5259f3e8bd0cdf454004607867a97c1db86d0c9ff16c8c83625bc8301000000000000005e0fad9f1e6837994babd7d55b2d4079af785ec48568cd1c4efd60ea28162e8e01000000000000004c43a374e6b3e6f7d6c5a6b8518ae0d0d232a1c46d63af8fbc800045a14cbe93010000000000000029a6535bac723c2f711e590c67f0bd60843cf7888eebca46025ae57f5ca1d92901000000000000004b3210303cc88f1495bf5a42c50dc7c51c8bc1db98bf3722b894462346e9221d01000000000000004d9b0bbfc6a294ee0492bdc595a5d8f7cf371c729c5c319a3822f0248bb4fef70100000000000000bbff79a9b92ef586f0be053cc01639b9a335ad8e2910146d070997e285007d830100000000000000ccc84b255e5e73b971f2e71d1903b5ef9bd6d0965ff3ce29c517c875bd7ab65701000000000000001babed13d56d28fdb937b07bce846689584099575382c273f7e425f822c8159f0100000000000000530f022bda69f1ea2ee55570057ca38fda313213b9c02a7c6560ee53e40b108501000000000000009bde702d9265dd3f62a8c9bd36d5e2f4e0dfb91ff812885cf2497eee667660950100000000000000ac0ef45b1c0f242a4aeb0ef03a9c0d9e3ae2a4bee8cb4c35f0293bac4331e76501000000000000001887f7937a8ca4ec67ceaedebfad3d307b10f416219de1ed4f8646409eab730a0100000000000000dfb56f8dbbc94ce17a85087b4dce709c5bd4289650c0eed35f244a21c91c1f1b010000000000000042f20843bf75f4916ade8eb2faad0ada3795b3cacd29b679f18805f2826367550100000000000000a4984d27a16bb575649bc55d16f927d12beb0b5373f8db1aac9f2f88a721628d0100000000000000be724139e9bdd099b70f7edab7d1acf0d05fa1a4ca212f5e2958d31f4272dcda010000000000000090517dbf339bac4cd01fcad403dd0803cb67a9b15bf024ce038eea2c7f24230401000000000000008dc1439b28d488419535c2fea9c821023f7bce423fa02d9f42e60c07c3d6ab560100000000000000c3150e4ca47e7bc6486f198bf0a742a18ab0871bb1efa34e82c4ce81f27926670100000000000000c2eb94269c5e5d2ab9a1a300387358679640763b053aca99ba5c1c9083ee717f0100000000000000316bafdefb60951da2738d6c9c2ef1866d139b34b5eab6944d6bae754dd3fb1101000000000000007a92827270cfa82f16145a44f9bdd9ff5038ef1b665dd520a2e61db9749094960100000000000000ebb1834a568ea7653bc66f394937a0aa4f2f617118d2161e2c11c0d7d2febb9d010000000000000054840bd4fe6fbabe28e2e1e54cebb2002e9523d2e1543b50f22dad31a07bc70001000000000000001c064eac101911f08877f54bf056204bde47dc0d04215e94abe3c19830365d350100000000000000b6d7ac98d6667fe8f4a186ef12a66b017df05a54e11b45d3f2967cb3d6b6827f0100000000000000e5f305cd6d930d41209036f066a86d3724aad2f388d354ac4979cc763c220a5601000000000000007ef02c62a02f0c18581cfb8ab7c2dcdff34e36a453a3700c568d61fdf9c8a7b4010000000000000045e03689170b9fc027db927a99842e2c13f9fcbd875a74e2b54a2663f3c23dfc0100000000000000eea623df46d1f301cf567672971c6895edf7316a5639dcee698730641950fb8b010000000000000098a6defcfeb3dfca36ec46eb373734627a2c395cdd2d886046a11788ed6467af01000000000000007a03c321222b7f7b34946e44850798fee20b9112a64e3950398cce19064b8723010000000000000035db4f9ab121f213b695b982f50c47ac04a14c54214e831ed1bbef7b9542310c01000000000000009bbc024bfe4f072b94735afda064dc3c7da2b4bc0c50cfad44722543583a372e01000000000000002b71a8a81bc2be65f3224ba3711d1bb243446d154369e209f97d8375b5fe8deb0100000000000000496826b538d97906e14d417b48598d7d591a483ab5f4c6786cd0b96239c2f4cf0100000000000000ef27d1d5573e6419ffcc7c4372668105118256b810ab2e2dbb5e7d8280ee94250100000000000000ed3f97f83ee7799c4aeba9f40bd18134c862c1a30875fc1e038cd27bae3a739a0100000000000000348e8bacc2d40191a6a00e137c745a422ff8fb03148d2ff9cad75efbb7a670140100000000000000316d5dbafd16258b7077d46a3dc32c46986a56a3eb095094d3f8fdd6acbf91cf01000000000000006a5dcdf2c3598c00d31a010dece5bf744f203856712531b07a31babcf06d09e30100000000000000efb31c5039e45fda750af5d2ea31b3210a407b168adec8f98db1f3dbc4cd94380100000000000000e2d564796e2660ba1bf553a21581f82116f775002a0dc0f26439f54c660fd84d0100000000000000bff74b6ff5ccdce9a659408871d486511938422a6e550fe0669ccd739f80108101000000000000009ac13f915431b39f99d8c0bed7e9c62d22e1e8b6daaee809920f491154ef6f8b01000000000000002ff9330a8c344ad3adf4d97db014a2d0891d4dd69f5c8369dad3e0b25566173e01000000000000008f44b6746d8d809da87915d6ec208a07ee63481d24b275c6424429e16ff4d25e0100000000000000e01d6eda8094e949bfbb05c819b509a12eb662a414b822f841d9555d58e1ce7601000000000000008fc9be34cc95e087c83cb6f86e2d2b7a22a7015558e8fcb1260740bcbd346d63010000000000000044a98b8e6c68cbd67e08808496605cc3ac081ae433398676543bde1720048e490100000000000000c3576342cbf99792896ee5329b04ff2eee2fc2bb6d53c5c03d52c8957ee793fb0100000000000000de186294778cc927cb2a24ade9ad165956f3586979f1ac5f3b4a16edd2674339010000000000000043a9a2915f377cd4943f602be38c3bd6ef39e91562c09f18fb672884b4bf8eab010000000000000059dadf17dc0f84c1c334e6a815a04bdfcd0988a3f3bcb713c66ae29e17276cc60100000000000000297dc7cf28b3d40a42c5e8faac876bf7227c670e6e031dd0e0537f4fb70e6fbe0100000000000000f442190c846bbf5764bda138c075360be77a8fcb27ad889adbffdc7b881a33f601000000000000000909c1eff97923f6bd47e6ec8b5dc163b32d5b675a3b13138d3599e5cc77ab9f0100000000000000a5f788e86ee2d311357b7aa4a128f063fa4ee36958baf10304c10bde7421aa2c0100000000000000290321d793b7dcb12ad148c2438bb60821bd938b7e9164a0c3d0fc82987f8b630100000000000000f7bdbb5c598784ba157940b08b5c5aa967d0f3faf60da28b915650eb39afe47c0100000000000000e3a73e5e042574299206b6520770553482e099d075bf00cbeb139b5f6737afed01000000000000003bb30832d06cdd3e081afef0cf2b7770bfe81dc58081d1886443e4e4547da8a101000000000000002832b59000d2027d2bf57fdb40da04bd8aac1498923397517181cc487a92815201000000000000006c3829859c7b27da7f0528e6281a406cf713971a03fa4dbb4ea973ee33f7f3170100000000000000677358fc648638cbd854d2a009dd39b8508dd3047d0c5f13bb403a64d053ad03010000000000000073dce1727ec50c50366378cd389246e19543d900d7e9dab8e323d04cf5b202a701000000000000002ada479e1fde7211de15900ed29035f6f07506cdbadc4c232aab96d62006b9de0100000000000000ee1a56541083b083f1a13b5f8aa4042a098de2cec4c43f3250baaba8f03a52ea0100000000000000e2cc4424464983ada824bbef5aaa8995e80ef1017c15ef3b13902599841637ba01000000000000005246164c02e9e6bfb7a2dbf7ba8a5440a189f8048373678f5b1085f217464c050100000000000000dea69c3badff9b8d7571cb6c538cd099544da7460a19e1b8651c5c530a6dd53c0100000000000000b73fa06a1769cf81bd238e8633bb3a54432cc70408d44cd23423d586ffd711fa01000000000000001889f1b031fa7d64c4b480a17cd2941be2c02681bca397c93607091f37bf5ee1010000000000000005062bede97a45c6e1c6b593675ee07ce969fae45136cc2b2afc6e705a77f4700100000000000000fd734da3c98d7d56f8b9cc92f389350f3b6de2fb5917d338fee9fd961978e2a30100000000000000dc6e03f650e4304ca8d1598dde8d4faf45891987bfc49ef785ace47c4c0b5573010000000000000084845f99ad8fe89b7aa136c30b71b791015e8801b1d42cbf9841a0b90e723aad010000000000000018ede59e820bcdd0ed2faf99a21bdc916d71577dd35117f90efe77b8513e631001000000000000008c258b4ca16dfb8e5afde4cf40fecf115307798117b4860475511b3b5d5615840100000000000000ea8c8bec277832ff4f31396f76d6117026cf73407bce46de9ccfd17c686ca11701000000000000000e7bc96895730726225e47e31c742fd44d3936f31ecd32658c694fc11df2522401000000000000008873eb6d260a77ad37a779b9d6c87eabde1fb0be17ddfbd8c8bef64200cdf0db0100000000000000e08a65617167ad46c5217d67de29bf79e1f8f417e0d6d8e64bed10ae13312d8401000000000000003f6aeb3ed0d67d71ee11a1c2e1ed66da77abd8cc8c0f4d995d64fe4ec873684701000000000000006375ae0c1bf2b0388e16971715fd68c31ed179f38947531c165f0da2c3fe76670100000000000000fdbe4a94cde674077ea32fa5b74acfcfad91e2e7805cd9de02029d8a21c9e0150100000000000000c3b2ed805b29b1dc615391700c3ac70419e784607d0342af760af024efb5eaf50100000000000000605f133e9452453d44d37d406f15e4e52e952460122ff6f93ce14a7db501f4b8010000000000000012aa455c35356255f9ba286193962f3bc23f7fff565c1995ac21015bd946fe6e0100000000000000447a00c24ddef95382f0fce94aec3aefb0e8f0cb1a635bfb05faa030d63c1130010000000000000047ede3eca5f6c8f0a51f2d36d7d1c236aab07a8b2aaa6ab08c8ccf8d87ce3dd10100000000000000a5d172126aadfe80d2b711776674d61df5a1cd1a0129761fb2d2de58ed9d48a001000000000000006b5487e03da258c7c92add43a1b5a99a0b40f8316e758585150877bb6fe88b3201000000000000009a0ea02dca493accceb975732f31c9d249d4c90ff1ca0bd86cbe00f1728146b401000000000000004485615186ae8ad33aff337594a7f8325d3a50201ee04320fb1dd2eab9643d1601000000000000002b07c366c1ed899a2ac9722b76e092828714a8177368e51ca05ec05c565866b30100000000000000e81206b483fdcf1fe42145f27d1efb8178a57ee24b196285374037da2a53b3230100000000000000ff568b8e0dbe74604c6d04b5de6f2df03b343bea074c4495c6a10e511ba473d90100000000000000d90c73e6188dab8ae1b0e326e668defff87ea341c3759a568e005271780722b8010000000000000032bbff551f7ed51452d264d796315e578d982e942eebb60e519ca648935d8b0c01000000000000003a4bfd825ccd308def4a61bac80c579db42b02ea5f1a0768656a326e83a0dd880100000000000000b5e0d0ae74b0ac76c0195fecca9660a241920ba97cdc5a247c7e941ee1f5407c01000000000000001450fb02aedbbfce8ec62c79767acd6b9e881390ad868d07713bb1d41d9c74b90100000000000000e056900cabddb471de9e1846d7efdddd8b5ad400b02fc54b4402ba725c78bf9a0100000000000000f1d8f202f4766a1eddc43c209636d25771988a0058ae1e16797219337771307f01000000000000001a02012d8a476cc43998b10fd5c8f5174ba2a2eedebf27fab9831c0d812b05280100000000000000572f55f118d6d1805cc98af99560c9cd159b0dc71c5c5314ac7eb9c1e3b82b56010000000000000080629b67e7b2d6f57e9da3cb29cc8463a65d125039628124784f944b94c29e88010000000000000079f73931b31ce353119fb4063412e844b16cb3eb92e592ebd822a8c213035548010000000000000095885aaa49faca9622ac9eab12f2efa509361511039934ffeff93eb948eb517d010000000000000031a46e639e57d1a11119b17f76617a35b3606d206fb5c3e87710f464f7a57de50100000000000000ed25d7114e2aef2f0e57dc2be1401a4994d8aaafb30223162634a512604a2366010000000000000012c277c98d0593ec3d0f9d01e8ce08f67813197b67fe96d2be7c5ba6481515df0100000000000000010700000000000000012fa8250100051c00000000000000002904050001000000000000002a0d050002000000000000002f16050003000000000000008e1f05000400000000000000ee28050005000000000000004d32050006000000000000009d3b05000700000000000000fd44050008000000000000005c4e05000900000000000000b75705000a00000000000000176105000b00000000000000766a05000c00000000000000d67305000d00000000000000357d05000e00000000000000958605000f00000000000000f58f0500100000000000000055990500110000000000000095a205001200000000000000d8ab050013000000000000000db50500140000000000000024da05001500000000000000aaec05001600000000000000f4f5050017000000000000003bff050018000000000000008b0806001900000000000000992406001a00000000000000f92d06001b000000000000000d4a06001c00000000000000685306001d00000000000000b65c06001e00000000000000f76506001f00000000000000308b060020000000000000007b940600210000000000000025a70600220000000000000033c3060023000000000000007fcc06002400000000000000c3d50600250000000000000011df060026000000000000005ae806002700000000000000a0f106002800000000000000410407002900000000000000880d07002a000000000000001b3c07002b00000000000000764507002c00000000000000357407002d00000000000000239907002e000000000000006fa207002f00000000000000c3ab070030000000000000006abe07003100000000000000bdc7070032000000000000000fd107003300000000000000b2e3070034000000000000000aed07003500000000000000971b080036000000000000009d24080037000000000000009c4008003800000000000000255308003900000000000000735c08003a000000000000000c6f08003b00000000000000048b08003c00000000000000589408003d00000000000000d3c208003e00000000000000e4de08003f000000000000003fe808004000000000000000f7fa08004100000000000000aa0d09004200000000000000153309004300000000000000fc6a090044000000000000003e74090045000000000000009a7d0900460000000000000000a30900470000000000000014db0900480000000000000020130a004900000000000000791c0a004a00000000000000364b0a004b0000000000000043830a004c00000000000000e5950a004d0000000000000045bb0a004e0000000000000059f30a004f000000000000000e060b005000000000000000812b0b005100000000000000dc340b005200000000000000ef500b005300000000000000a3630b005400000000000000b69b0b005500000000000000c7d30b005600000000000000dd0b0c005700000000000000f3430c005800000000000000087c0c00590000000000000052b30c005a0000000000000060eb0c005b00000000000000baf40c005c0000000000000072230d005d00000000000000805b0d005e000000000000007e930d005f000000000000007ccb0d00600000000000000076030e006100000000000000793b0e00620000000000000088730e00630000000000000092ab0e00640000000000000083e30e006500000000000000731b0f00660000000000000079530f006700000000000000748b0f0068000000000000001fc30f006900000000000000d0fa0f006a00000000000000633210006b00000000000000826a10006c0000000000000028a210006d0000000000000005b310006e0000000000000055d810006f000000000000004810110070000000000000006548110071000000000000008e8011007200000000000000bfb811007300000000000000bbf011007400000000000000e828120075000000000000001561120076000000000000003b991200770000000000000058d112007800000000000000770913007900000000000000944113007a00000000000000c07913007b00000000000000e7b113007c000000000000000cea13007d0000000000000067f313007e00000000000000d31814007f000000000000002e22140080000000000000008c2b14008100000000000000545a14008200000000000000ad63140083000000000000000e89140084000000000000006892140085000000000000008dca14008600000000000000b00215008700000000000000d03a15008800000000000000f3721500890000000000000015ab15008a000000000000003be315008b000000000000005d1b16008c00000000000000855316008d00000000000000b18b16008e00000000000000d3c316008f00000000000000e9fb16009000000000000000073417009100000000000000bf4617009200000000000000286c1700930000000000000029a41700940000000000000041dc17009500000000000000591418009600000000000000bf3918009700000000000000704c18009800000000000000948418009900000000000000f28d18009a00000000000000bcbc18009b00000000000000e4f418009c000000000000000b2d19009d000000000000002c6519009e00000000000000896e19009f00000000000000519d1900a00000000000000075d51900a100000000000000920d1a00a200000000000000ec161a00a300000000000000b6451a00a400000000000000887d1a00a50000000000000077b51a00a600000000000000cdbe1a00a70000000000000070ed1a00a80000000000000083091b00a9000000000000004e251b00aa00000000000000fe371b00ab00000000000000065d1b00ac000000000000005f661b00ad00000000000000bd6f1b00ae00000000000000de941b00af00000000000000fecc1b00b0000000000000001f041c00b1000000000000000c321c00b2000000000000002f3b1c00b3000000000000002e721c00b4000000000000000ca01c00b50000000000000044a91c00b60000000000000022e11c00b70000000000000044191d00b8000000000000000c481d00b9000000000000006b511d00ba000000000000008b891d00bb00000000000000a5c11d00bc0000000000000053f91d00bd00000000000000ff301e00be00000000000000054d1e00bf0000000000000002691e00c000000000000000d1a01e00c100000000000000c5d81e00c200000000000000cf101f00c30000000000000083481f00c400000000000000af801f00c500000000000000d0b81f00c600000000000000f0f01f00c7000000000000001b292000c80000000000000039612000c90000000000000054992000ca000000000000004fd12000cb000000000000004c092100cc00000000000000031c2100cd000000000000006d412100ce00000000000000cc4a2100cf0000000000000098792100d000000000000000c4b12100d100000000000000eee92100d20000000000000011222200d300000000000000325a2200d40000000000000055922200d50000000000000075ca2200d6000000000000008f022300d700000000000000b13a2300d800000000000000cd722300d90000000000000078852300da00000000000000ce8e2300db00000000000000bdaa2300dc00000000000000abe22300dd0000000000000012112400de00000000000000501a2400df0000000000000045512400e000000000000000a1882400e1000000000000005fc02400e20000000000000013f82400e30000000000000007302500e40000000000000013682500e500000000000000c37a2500e600000000000000a8962500e700000000000000fb9f2500e80000000000000000d82500e90000000000000019102600ea000000000000002b482600eb0000000000000028802600ec000000000000002eb82600ed0000000000000044d42600ee0000000000000058f02600ef00000000000000b3f92600f00000000000000065282700f10000000000000057602700f20000000000000064982700f3000000000000008dd02700f400000000000000a7ec2700f500000000000000b9082800f600000000000000e0402800f700000000000000f6782800f80000000000000019b12800f90000000000000040e92800fa000000000000006c212900fb00000000000000a0592900fc00000000000000107f2900fd00000000000000bc912900fe00000000000000eac92900ff00000000000000fd012a000001000000000000ff1d2a0001010000000000000c3a2a0002010000000000002b722a00030100000000000005aa2a000401000000000000fce12a0005010000000000004ceb2a000601000000000000e0fd2a000701000000000000c3192b000801000000000000be512b0009010000000000000a772b000a01000000000000ae892b000b01000000000000b0a52b000c01000000000000abc12b000d010000000000009bf92b000e0100000000000093312c000f0100000000000087692c00100100000000000075a12c00110100000000000074d92c00120100000000000089112d00130100000000000099492d001401000000000000b0812d001501000000000000c3b92d001601000000000000d1f12d001701000000000000d6292e001801000000000000e9612e001901000000000000ea992e001a01000000000000efd12e001b01000000000000f8092f001c01000000000000f0412f001d01000000000000e9792f001e0100000000000036832f001f01000000000000b2b12f002001000000000000a9cd2f00210100000000000094e92f0022010000000000007121300023010000000000003b5930002401000000000000089130002501000000000000599a30002601000000000000f6c830002701000000000000e30031002801000000000000c03831002901000000000000a17031002a01000000000000f27931002b010000000000007fa831002c010000000000005de031002d01000000000000aae931002e01000000000000441832002f01000000000000295032003001000000000000fe8732003101000000000000aa9a3200320100000000000010c0320033010000000000003af8320034010000000000005f303300350100000000000059683300360100000000000078a0330037010000000000009bd833003801000000000000cb1034003901000000000000f44834003a010000000000001c8134003b0100000000000044b934003c0100000000000055f134003d010000000000009dfa34003e01000000000000302935003f01000000000000c6573500400100000000000023613500410100000000000053993500420100000000000080d135004301000000000000560036004401000000000000b10936004501000000000000ce4136004601000000000000037a3600470100000000000031b2360048010000000000005fea360049010000000000007b2237004a01000000000000995a37004b01000000000000f56337004c01000000000000c69237004d01000000000000feca37004e01000000000000340338004f01000000000000683b380050010000000000009e7338005101000000000000c9ab38005201000000000000dcc7380053010000000000003cd138005401000000000000f8e338005501000000000000b0f6380056010000000000001c1c390057010000000000007a2539005801000000000000da2e39005901000000000000525439005a01000000000000878c39005b01000000000000bbc439005c01000000000000f3fc39005d0100000000000028353a005e010000000000005f6d3a005f0100000000000098a53a006001000000000000cedd3a0061010000000000000c163b006201000000000000404e3b00630100000000000019853b006401000000000000608e3b006501000000000000b8973b0066010000000000000fa13b006701000000000000a7b33b006801000000000000fabc3b00690100000000000049c63b006a010000000000009ccf3b006b01000000000000eed83b006c01000000000000c1f43b006d0100000000000014fe3b006e0100000000000066073c006f01000000000000b7103c0070010000000000009e2c3c007101000000000000ee353c00720100000000000094483c007301000000000000e0513c0074010000000000007c643c0075010000000000001d773c0076010000000000004b9c3c00770100000000000010d43c007801000000000000d80b3d0079010000000000001a153d007a0100000000000053433d007b01000000000000ea553d007c01000000000000225f3d007d0100000000000072683d007e01000000000000b4713d007f01000000000000fb7a3d0080010000000000007a8d3d008101000000000000b8963d00820100000000000006a03d00830100000000000088b23d008401000000000000c8bb3d0085010000000000000bc53d0086010000000000001dea3d008701000000000000e9053e008801000000000000b5213e0089010000000000003b343e008a01000000000000843d3e008b010000000000005e593e008c010000000000001f913e008d0100000000000065c83e008e010000000000006bed3e008f01000000000000a9f63e009001000000000000f6ff3e009101000000000000c1373f0092010000000000005c4a3f0093010000000000003b663f009401000000000000856f3f009501000000000000cf783f0096010000000000003ea73f009701000000000000ccde3f0098010000000000008516400099010000000000001e2940009a010000000000006e4e40009b01000000000000c35740009c010000000000009b8640009d01000000000000cebe40009e0100000000000001f740009f01000000000000372f4100a00100000000000097384100a10100000000000070674100a201000000000000a99f4100a30100000000000065b24100a401000000000000ddd74100a50100000000000096ea4100a6010000000000000b104200a70100000000000044484200a8010000000000009c514200a9010000000000003b804200aa0100000000000051b84200ab010000000000006fd44200ac010000000000005ef04200ad01000000000000b9f94200ae010000000000006a284300af0100000000000078604300b00100000000000077984300b101000000000000abd04300b20100000000000064e34300b30100000000000072ff4300b401000000000000d2084400b50100000000000008414400b6010000000000002e794400b7010000000000005eb14400b8010000000000007de94400b9010000000000009e214500ba010000000000005d344500bb01000000000000d0594500bc0100000000000006924500bd010000000000001aca4500be010000000000004a024600bf01000000000000603a4600c00100000000000084724600c101000000000000abaa4600c20100000000000047bd4600c3010000000000009ec64600c401000000000000a0e24600c5010000000000005df54600c601000000000000bf1a4700c701000000000000d1524700c8010000000000007f814700c901000000000000dd8a4700ca0100000000000039944700cb01000000000000f2c24700cc0100000000000010fb4700cd01000000000000d5294800ce010000000000002c334800cf01000000000000f9614800d001000000000000596b4800d10100000000000078874800d2010000000000008da34800d301000000000000aadb4800d401000000000000c6134900d501000000000000eb4b4900d601000000000000e7834900d701000000000000f9bb4900d801000000000000b6ce4900d9010000000000001bf44900da010000000000004a2c4a00db0100000000000066644a00dc010000000000002f7d4a00dd0100000000000019994a00de01000000000000c0ab4a00df01000000000000aec74a00e001000000000000fed04a00e101000000000000bbff4a00e20100000000000019094b00e301000000000000902e4b00e40100000000000041414b00e50100000000000010704b00e6010000000000006e794b00e7010000000000002b8c4b00e80100000000000094b14b00e901000000000000a4e94b00ea01000000000000d4214c00eb01000000000000d7594c00ec01000000000000e8914c00ed0100000000000004ae4c00ee01000000000000ebc94c00ef0100000000000014024d00f001000000000000fe394d00f1010000000000000a724d00f201000000000000667b4d00f30100000000000013aa4d00f40100000000000031c64d00f50100000000000037e24d00f6010000000000004afe4d00f7010000000000002c1a4e00f801000000000000ea2c4e00f90100000000000049364e00fa010000000000004e524e00fb01000000000000628a4e00fc0100000000000079a64e00fd010000000000001ab94e00fe0100000000000079c24e00ff0100000000000094de4e000002000000000000aafa4e00010200000000000059324f00020200000000000004654f000302000000000000ff764f0004020000000000000d804f0005020000000000007e924f000602000000000000c29b4f000702000000000000f4d34f000802000000000000160c50000902000000000000504450000a02000000000000877c50000b02000000000000b6b450000c02000000000000e7ec50000d0200000000000046f650000e02000000000000b61b51000f020000000000001625510010020000000000004f5d510011020000000000000f7051001202000000000000889551001302000000000000b5cd5100140200000000000014d751001502000000000000e605520016020000000000001f3e5200170200000000000053765200180200000000000089ae52001902000000000000e8b752001a02000000000000b7e652001b0200000000000074f952001c02000000000000e81e53001d020000000000001a5753001e02000000000000558f53001f020000000000008ac753002002000000000000b9ff53002102000000000000f13754002202000000000000277054002302000000000000418c54002402000000000000d1a354002502000000000000d9c8540026020000000000007edb54002702000000000000b81355002802000000000000e34b55002902000000000000c58355002a02000000000000d6bb55002b0200000000000007f455002c02000000000000c30656002d020000000000002c2c56002e020000000000005d6456002f020000000000008f9c56003002000000000000c9d456003102000000000000070d570032020000000000004345570033020000000000007a7d570034020000000000007d99570035020000000000009ab557003602000000000000b4ed57003702000000000000f225580038020000000000002f5e580039020000000000006b9658003a02000000000000a6ce58003b02000000000000e30659003c02000000000000183f59003d02000000000000517759003e02000000000000ad8059003f020000000000008baf59004002000000000000e9b859004102000000000000c5e75900420200000000000002205a0043020000000000003f585a0044020000000000007c905a004502000000000000bcc85a004602000000000000f1005b004702000000000000111d5b00480200000000000030395b0049020000000000006f715b004a02000000000000aca95b004b02000000000000e9e15b004c02000000000000251a5c004d0200000000000060525c004e020000000000009f8a5c004f02000000000000dbc25c00500200000000000019fb5c00510200000000000058335d005202000000000000956b5d005302000000000000c7a35d005402000000000000f7db5d00550200000000000031145e0056020000000000006f4c5e005702000000000000a7845e005802000000000000e0bc5e0059020000000000003fc65e005a020000000000001cf55e005b02000000000000582d5f005c0200000000000093655f005d02000000000000cf9d5f005e0200000000000005d65f005f02000000000000440e600060020000000000008346600061020000000000006a7e6000620200000000000056b46000630200000000000000ec60006402000000000000a72361006502000000000000e25b61006602000000000000f293610067020000000000001bcc61006802000000000000dade61006902000000000000590462006a02000000000000963c62006b02000000000000cc7462006c020000000000008c8762006d02000000000000ffac62006e020000000000003ae562006f02000000000000731d63007002000000000000b05563007102000000000000e98d630072020000000000001dc6630073020000000000005dfe63007402000000000000993664007502000000000000d86e6400760200000000000017a76400770200000000000051df640078020000000000008a1765007902000000000000c34f65007a02000000000000018865007b020000000000003ec065007c020000000000007af865007d02000000000000b63066007e02000000000000f06866007f0200000000000004a16600800200000000000041d966008102000000000000711167008202000000000000ac4967008302000000000000de8167008402000000000000f8b967008502000000000000b8cc6700860200000000000035f2670087020000000000006e2a680088020000000000001c3d680089020000000000007f6268008a02000000000000ba9a68008b02000000000000f3d268008c02000000000000310b69008d02000000000000704369008e02000000000000ae7b69008f02000000000000eeb3690090020000000000002bec6900910200000000000065246a009202000000000000a45c6a009302000000000000e0946a0094020000000000001dcd6a009502000000000000dbdf6a00960200000000000059056b00970200000000000018186b009802000000000000923d6b009902000000000000b0756b009a02000000000000e6ad6b009b0200000000000021e66b009c020000000000005e1e6c009d0200000000000096566c009e02000000000000d28e6c009f020000000000000ac76c00a00200000000000047ff6c00a10200000000000077376d00a202000000000000876f6d00a3020000000000000fa76d00a40200000000000059dc6d00a50200000000000022146e00a602000000000000464c6e00a70200000000000071846e00a802000000000000eea96e00a902000000000000aabc6e00aa0200000000000085eb6e00ab02000000000000e4f46e00ac020000000000001c2d6f00ad02000000000000da3f6f00ae0200000000000053656f00af020000000000008c9d6f00b002000000000000c4d56f00b102000000000000d90d7000b202000000000000d7457000b302000000000000f67d7000b402000000000000deb57000b502000000000000b2ed7000b602000000000000a9257100b702000000000000975d7100b802000000000000338c7100b9020000000000007e957100ba0200000000000068b17100bb0200000000000050cd7100bc020000000000001c057200bd02000000000000610e7200be02000000000000c13c7200bf020000000000006b747200c0020000000000005aac7200c10200000000000032e47200c202000000000000dcf67200c302000000000000321c7300c4020000000000002b547300c5020000000000007d8b7300c60200000000000020c37300c702000000000000cefa7300c8020000000000003c327400c9020000000000009b697400ca02000000000000eda07400cb0200000000000056d87400cc0200000000000090107500cd02000000000000ad2c7500ce020000000000000b367500cf02000000000000c7487500d002000000000000fe807500d10200000000000039b97500d20200000000000073f17500d30200000000000030047600d4020000000000004b207600d502000000000000a9297600d60200000000000006337600d702000000000000d3617600d80200000000000090747600d902000000000000089a7600da020000000000002fd27600db020000000000001a0a7700dc0200000000000022427700dd02000000000000007a7700de02000000000000d2b17700df02000000000000f8e97700e0020000000000002b227800e102000000000000635a7800e202000000000000a0927800e302000000000000daca7800e40200000000000011037900e502000000000000483b7900e60200000000000085737900e702000000000000b1ab7900e802000000000000dae37900e902000000000000121c7a00ea0200000000000049547a00eb02000000000000878c7a00ec02000000000000bfc47a00ed02000000000000edfc7a00ee0200000000000026357b00ef02000000000000606d7b00f0020000000000009da57b00f102000000000000cddd7b00f20200000000000006167c00f3020000000000003f4e7c00f402000000000000fb607c00f50200000000000077867c00f602000000000000b4be7c00f70200000000000014c87c00f802000000000000e0f67c00f9020000000000001b2f7d00fa0200000000000058677d00fb02000000000000959f7d00fc02000000000000d2d77d00fd02000000000000ec0f7e00fe0200000000000025487e00ff020000000000005f807e0000030000000000009ab87e000103000000000000d3f07e000203000000000000ee0c7f0003030000000000000a297f000403000000000000c53b7f00050300000000000043617f0006030000000000007b997f000703000000000000b9d17f000803000000000000f20980000903000000000000284280000a030000000000005e7a80000b0300000000000099b280000c03000000000000d2ea80000d03000000000000082381000e030000000000003e5b81000f030000000000007b9381001003000000000000b8cb81001103000000000000f30382001203000000000000313c82001303000000000000697482001403000000000000a6ac82001503000000000000c4c882001603000000000000e0e482001703000000000000ff00830018030000000000001e1d83001903000000000000dd2f83001a030000000000005b5583001b03000000000000988d83001c03000000000000d5c583001d0300000000000010fe83001e030000000000004e3684001f03000000000000826e84002003000000000000bba684002103000000000000f5de840022030000000000006f0485002303000000000000cc0d850024030000000000002c1785002503000000000000ea2985002603000000000000634f850027030000000000007e6b850028030000000000009a878500290300000000000017ad85002a03000000000000d2bf85002b0300000000000031c985002c030000000000000ef885002d030000000000004a3086002e03000000000000866886002f03000000000000bea086003003000000000000f2d8860031030000000000002a1187003203000000000000871a870033030000000000006449870034030000000000001d5c87003503000000000000998187003603000000000000cfb987003703000000000000eed5870038030000000000000cf2870039030000000000004a2a88003a03000000000000a83388003b03000000000000826288003c03000000000000b69a88003d03000000000000efd288003e030000000000002d0b89003f030000000000004d27890040030000000000006c4389004103000000000000ab7b89004203000000000000eab38900430300000000000028ec8900440300000000000068248a004503000000000000a05c8a004603000000000000b4948a004703000000000000f4cc8a00480300000000000030058b0049030000000000006f3d8b004a030000000000008e598b004b03000000000000ae758b004c03000000000000ecad8b004d0300000000000028e68b004e03000000000000331e8c004f030000000000004f568c0050030000000000008e8e8c005103000000000000c7c68c00520300000000000005ff8c00530300000000000041378d005403000000000000746f8d005503000000000000a4a78d00560300000000000064ba8d005703000000000000e4df8d0058030000000000000a188e00590300000000000023508e005a0300000000000027888e005b03000000000000d89a8e005c0300000000000043c08e005d0300000000000082f88e005e03000000000000c0308f005f03000000000000ff688f0060030000000000001ba18f00610300000000000059d98f006203000000000000981190006303000000000000d64990006403000000000000f56590006503000000000000158290006603000000000000758b9000670300000000000053ba9000680300000000000092f290006903000000000000d22a91006a03000000000000106391006b03000000000000489b91006c03000000000000a2a491006d030000000000001bd391006e03000000000000530992006f03000000000000d32e9200700300000000000090419200710300000000000074799200720300000000000094b19200730300000000000072e092007403000000000000d2e992007503000000000000b21893007603000000000000122293007703000000000000445a93007803000000000000739293007903000000000000f3b793007a03000000000000abca93007b030000000000005ddd93007c03000000000000c40294007d03000000000000e13a94007e03000000000000217394007f0300000000000059ab9400800300000000000090e394008103000000000000c31b95008203000000000000ea53950083030000000000009866950084030000000000000b8c9500850300000000000046c49500860300000000000057fc950087030000000000008f3496008803000000000000cf6c960089030000000000000ba596008a0300000000000045dd96008b03000000000000a3e696008c03000000000000801597008d03000000000000bc4d97008e03000000000000f78597008f030000000000002ebe9700900300000000000030f6970091030000000000005a2e98009203000000000000956698009303000000000000d49e9800940300000000000014d7980095030000000000003b0f990096030000000000006c4799009703000000000000ac7f9900980300000000000078b79900990300000000000026ca99009a030000000000007cef99009b0300000000000085279a009c03000000000000be5f9a009d03000000000000fd979a009e03000000000000b9aa9a009f0300000000000022d09a00a0030000000000003dec9a00a10300000000000058089b00a20300000000000074249b00a3030000000000008b409b00a403000000000000e4499b00a50300000000000038789b00a60300000000000076819b00a703000000000000e4af9b00a803000000000000b7e79b00a903000000000000731f9c00aa03000000000000a6289c00ab030000000000002f3b9c00ac0300000000000012579c00ad030000000000005d609c00ae03000000000000cb8e9c00af0300000000000057a19c00b00300000000000086c69c00b1030000000000005afe9c00b20300000000000002369d00b303000000000000bc6d9d00b40300000000000099a59d00b5030000000000004edd9d00b603000000000000db149e00b703000000000000e0399e00b803000000000000724c9e00b9030000000000002a849e00ba03000000000000ee9f9e00bb03000000000000d1bb9e00bc030000000000007df39e00bd03000000000000f02a9f00be030000000000006a629f00bf03000000000000ff999f00c0030000000000002ed19f00c1030000000000004608a000c203000000000000893fa000c303000000000000a476a000c403000000000000dfada000c5030000000000001cb7a000c6030000000000003ce5a000c703000000000000921ca100c8030000000000008c53a100c903000000000000988aa100ca0300000000000010a6a100cb03000000000000a0c1a100cc03000000000000e5d3a100cd0300000000000072f8a100ce030000000000007c2fa200cf030000000000003766a200d003000000000000389da200d10300000000000056a6a200d203000000000000a9b8a200d303000000000000cac1a200d4030000000000001ad4a200d503000000000000200ba300d6030000000000002714a300d703000000000000bc41a300d8030000000000006778a300d9030000000000000aafa300da0300000000000046dca300db0300000000000065e5a300dc03000000000000a81ba400dd03000000000000d72da400de030000000000002352a400df030000000000006288a400e003000000000000c1bea400e103000000000000f8f4a400e203000000000000212ba500e3030000000000003f61a500e403000000000000656aa500e503000000000000e497a500e60300000000000040cea500e703000000000000b204a600e803000000000000fc3aa600e9030000000000009471a600ea0300000000000037a8a600eb030000000000001adfa600ec03000000000000ea0ca700ed030000000000000e16a700ee030000000000005228a700ef030000000000007d31a700f003000000000000034da700f1030000000000002084a700f2030000000000004a8da700f303000000000000a99fa700f403000000000000f6baa700f503000000000000c1f1a700f603000000000000be28a800f703000000000000a65fa800f8030000000000003e7ba800f903000000000000c296a800fa03000000000000c3cda800fb03000000000000d504a900fc03000000000000f83ba900fd030000000000005f73a900fe03000000000000ceaaa900ff030000000000000bb4a900000400000000000005e2a90001040000000000005e19aa000204000000000000c12baa0003040000000000008e50aa000404000000000000fd62aa0005040000000000008175aa000604000000000000fa87aa0007040000000000002f91aa0008040000000000005dbfaa000904000000000000a3c8aa000a04000000000000e5f6aa000b04000000000000e41bab000c040000000000005b2eab000d04000000000000e765ab000e040000000000004c9dab000f0400000000000085a6ab001004000000000000b8d4ab001104000000000000fdddab0012040000000000003b0cac001304000000000000d043ac001404000000000000827bac001504000000000000b8a0ac0016040000000000005bb3ac00170400000000000029ebac0018040000000000006af4ac0019040000000000000e07ad001a04000000000000f422ad001b04000000000000432cad001c040000000000009935ad001d04000000000000ee3ead001e04000000000000d55aad001f04000000000000bd76ad002004000000000000a592ad00210400000000000076caad002204000000000000f6dcad002304000000000000e001ae0024040000000000004f39ae0025040000000000001371ae0026040000000000005f7aae002704000000000000fc8cae002804000000000000cda8ae0029040000000000005ebbae002a0400000000000081e0ae002b040000000000004f18af002c040000000000001e50af002d04000000000000e687af002e04000000000000a0bfaf002f040000000000005ff7af003004000000000000042fb0003104000000000000da66b00032040000000000009a9eb000330400000000000063d6b0003404000000000000300eb1003504000000000000da45b10036040000000000009a7db100370400000000000050b5b100380400000000000029edb1003904000000000000971bb2003a04000000000000e024b2003b04000000000000995cb2003c040000000000006694b2003d0400000000000048b0b2003e040000000000002eccb2003f0400000000000075d5b200400400000000000008e8b2004104000000000000e703b3004204000000000000ce1fb3004304000000000000b63bb30044040000000000000d45b30045040000000000009f57b30046040000000000007573b3004704000000000000c67cb30048040000000000003aabb3004904000000000000e4e2b3004a04000000000000651ab4004b04000000000000f951b4004c040000000000009389b4004d0400000000000025c1b4004e04000000000000f6f8b4004f04000000000000241eb5005004000000000000b130b50051040000000000007068b500520400000000000040a0b5005304000000000000ecd7b50054040000000000000510b60055040000000000003e48b60056040000000000007a80b6005704000000000000b7b8b6005804000000000000f3f0b60059040000000000002f29b7005a04000000000000ae4eb7005b040000000000006861b7005c04000000000000a599b7005d04000000000000ded1b7005e040000000000005cf7b7005f04000000000000160ab80060040000000000005042b8006104000000000000964bb8006204000000000000687ab8006304000000000000a6b2b800640400000000000066c5b8006504000000000000e5eab80066040000000000000423b90067040000000000003f5bb90068040000000000005d77b90069040000000000007b93b9006a04000000000000b7cbb9006b04000000000000ef03ba006c04000000000000133cba006d040000000000003358ba006e040000000000005174ba006f0400000000000042acba0070040000000000006ce4ba007104000000000000a21cbb007204000000000000e054bb007304000000000000405ebb0074040000000000001b8dbb0075040000000000002ec5bb0076040000000000006dfdbb007704000000000000a435bc007804000000000000d06dbc0079040000000000000ca6bc007a040000000000004adebc007b040000000000008716bd007c04000000000000c34ebd007d04000000000000fc86bd007e040000000000003bbfbd007f040000000000007af7bd008004000000000000d500be008104000000000000b32fbe008204000000000000ea67be00830400000000000027a0be00840400000000000065d8be008504000000000000a410bf008604000000000000dd48bf0087040000000000003b52bf0088040000000000001881bf0089040000000000008fb8bf008a04000000000000cbc1bf008b04000000000000f8efbf008c040000000000007602c0008d040000000000008327c0008e04000000000000075fc0008f040000000000005d96c000900400000000000009cec00091040000000000003b06c10092040000000000002d3ec10093040000000000006476c10094040000000000007aaec1009504000000000000b9e6c1009604000000000000ef1ec20097040000000000002c57c2009804000000000000698fc20099040000000000008cc7c2009a040000000000009effc2009b04000000000000da37c3009c04000000000000ee6fc3009d0400000000000029a8c3009e0400000000000067e0c3009f04000000000000240fc400a0040000000000008218c400a104000000000000b150c400a204000000000000c088c400a304000000000000d2c0c400a404000000000000f6f8c400a5040000000000001231c500a604000000000000d143c500a7040000000000004d69c500a80400000000000089a1c500a904000000000000c4d9c500aa040000000000000112c600ab040000000000005c1bc600ac040000000000003a4ac600ad040000000000007482c600ae04000000000000abbac600af04000000000000e4f2c600b0040000000000001d2bc700b1040000000000002e47c700b2040000000000004863c700b304000000000000687fc700b404000000000000829bc700b5040000000000009bd3c700b604000000000000d80bc800b7040000000000001144c800b804000000000000704dc800b904000000000000d056c800ba040000000000004e7cc800bb0400000000000080b4c800bc04000000000000b1ecc800bd040000000000009808c900be040000000000008d24c900bf04000000000000c75cc900c004000000000000df94c900c104000000000000feb0c900c2040000000000001dcdc900c3040000000000004605ca00c4040000000000006e3dca00c5040000000000009e75ca00c604000000000000029bca00c704000000000000aeadca00c8040000000000008adcca00c904000000000000eae5ca00ca04000000000000251ecb00cb04000000000000fa55cb00cc04000000000000778ccb00cd04000000000000eec3cb00ce0400000000000005fccb00cf040000000000004134cc00d004000000000000716ccc00d10400000000000096a4cc00d204000000000000d3dccc00d30400000000000086efcc00d4040000000000000215cd00d504000000000000ac27cd00d604000000000000264dcd00d7040000000000008656cd00d8040000000000006385cd00d9040000000000003bb4cd00da0400000000000099bdcd00db04000000000000d8f5cd00dc04000000000000172ece00dd040000000000005366ce00de04000000000000909ece00df04000000000000b7d6ce00e00400000000000068e9ce00e104000000000000cc0ecf00e2040000000000000547cf00e304000000000000427fcf00e40400000000000079b7cf00e504000000000000b8efcf00e604000000000000f427d000e7040000000000000b60d000e8040000000000004698d000e90400000000000083d0d000ea04000000000000c008d100eb04000000000000fa40d100ec040000000000003679d100ed0400000000000073b1d100ee0400000000000087cdd100ef04000000000000a6e9d100f004000000000000e521d200f1040000000000001e5ad200f2040000000000005692d200f30400000000000092cad200f40400000000000052ddd200f504000000000000ce02d300f604000000000000e13ad300f7040000000000003444d300f804000000000000dc56d300f904000000000000ef72d300fa040000000000004d7cd300fb0400000000000024abd300fc04000000000000a1d0d300fd040000000000005be3d300fe04000000000000901bd400ff04000000000000ce53d40000050000000000000a8cd40001050000000000003ac4d40002050000000000004ae0d400030500000000000069fcd4000405000000000000a134d50005050000000000006047d5000605000000000000de6cd50007050000000000001ba5d500080500000000000058ddd50009050000000000009415d6000a05000000000000d24dd6000b05000000000000f085d6000c050000000000001ebed6000d05000000000000fbecd6000e050000000000005bf6d6000f050000000000008b2ed7001005000000000000c566d7001105000000000000029fd700120500000000000036d7d70013050000000000006f0fd80014050000000000009f47d8001505000000000000c97fd8001605000000000000e4b7d80017050000000000001ff0d80018050000000000005928d90019050000000000009560d9001a050000000000005473d9001b05000000000000718fd9001c05000000000000d198d9001d0500000000000031a2d9001e050000000000000fd1d9001f05000000000000cfe3d90020050000000000004f09da0021050000000000008941da002205000000000000b979da002305000000000000edb1da00240500000000000047bbda00250500000000000054d7da00260500000000000007eada00270500000000000067f3da0028050000000000003a22db0029050000000000005e5adb002a050000000000007892db002b05000000000000b0cadb002c05000000000000e702dc002d05000000000000183bdc002e050000000000007644dc002f050000000000002773dc003005000000000000dd85dc0031050000000000004dabdc00320500000000000086e3dc003305000000000000bb1bdd003405000000000000944add003505000000000000f453dd003605000000000000ad66dd003705000000000000298cdd00380500000000000060c4dd0039050000000000009cfcdd003a05000000000000fa05de003b05000000000000d734de003c05000000000000b56cde003d0500000000000045a4de003e05000000000000a1d2de003f05000000000000e4dbde0040050000000000002fe5de0041050000000000003c05df004205000000000000d81adf004305000000000000d636df0044050000000000002840df004505000000000000d252df004605000000000000cf6edf004705000000000000a9a6df004805000000000000eeafdf00490500000000000047b9df004a05000000000000b1dedf004b050000000000000de8df004c050000000000006e0de0004d05000000000000cb16e0004e05000000000000d84ee0004f050000000000007886e0005005000000000000b3bee0005105000000000000c3f6e0005205000000000000fe2ee10053050000000000002c67e1005405000000000000e679e1005505000000000000a68ce1005605000000000000629fe10057050000000000009bd7e10058050000000000005806e2005905000000000000b10fe2005a05000000000000e647e2005b050000000000001880e2005c050000000000007689e2005d050000000000004cb8e2005e050000000000007ef0e2005f05000000000000b228e3006005000000000000e760e30061050000000000002499e300620500000000000060d1e30063050000000000009c09e4006405000000000000d441e4006505000000000000334be40066050000000000000a7ae4006705000000000000e0a8e400680500000000000040b2e40069050000000000006feae4006a05000000000000a022e5006b05000000000000de5ae5006c050000000000001a93e5006d0500000000000055cbe5006e050000000000000bdee5006f050000000000008203e6007005000000000000db0ce6007105000000000000b53be6007205000000000000f073e60073050000000000004e7de60074050000000000002cace60075050000000000008cb5e60076050000000000006be4e6007705000000000000a51ce7007805000000000000dc54e7007905000000000000168de7007a050000000000004ac5e7007b0500000000000057fde7007c050000000000009335e8007d05000000000000d06de8007e050000000000002e77e8007f0500000000000004a6e80080050000000000003fdee80081050000000000007b16e9008205000000000000b74ee9008305000000000000e886e900840500000000000015bfe900850500000000000046f7e9008605000000000000602fea0087050000000000000442ea0088050000000000005a4bea0089050000000000006a67ea008a05000000000000889fea008b05000000000000daa8ea008c0500000000000079d7ea008d050000000000009f0feb008e050000000000005c22eb008f050000000000001c35eb009005000000000000d847eb0091050000000000000e80eb0092050000000000003eb8eb00930500000000000076f0eb009405000000000000ad28ec009505000000000000e660ec0096050000000000002399ec00970500000000000060d1ec0098050000000000009e09ed0099050000000000005e1ced009a05000000000000da41ed009b050000000000009654ed009c050000000000005567ed009d05000000000000127aed009e050000000000004ab2ed009f0500000000000082eaed00a005000000000000e1f3ed00a105000000000000bd22ee00a205000000000000fa5aee00a3050000000000003493ee00a405000000000000929cee00a50500000000000070cbee00a605000000000000ac03ef00a705000000000000eb3bef00a805000000000000fb73ef00a905000000000000feabef00aa05000000000000bebeef00ab0500000000000038e4ef00ac050000000000004e1cf000ad050000000000008854f000ae05000000000000958cf000af05000000000000c5c4f000b005000000000000fffcf000b1050000000000002e35f100b205000000000000de47f100b305000000000000466df100b4050000000000005da5f100b50500000000000094ddf100b605000000000000c115f200b705000000000000fa4df200b8050000000000002d86f200b90500000000000067bef200ba05000000000000a0f6f200bb05000000000000b52ef300bc050000000000003254f300bd05000000000000ef66f300be05000000000000239ff300bf0500000000000032d7f300c005000000000000dde9f300c1050000000000001e0ff400c2050000000000004f47f400c3050000000000008d7ff400c4050000000000006bb7f400c5050000000000009beff400c605000000000000c927f500c705000000000000ff5ff500c8050000000000003198f500c90500000000000063d0f500ca050000000000008908f600cb05000000000000c240f600cc050000000000001d66f600cd05000000000000ca78f600ce05000000000000fbb0f600cf0500000000000031e9f600d0050000000000006021f700d1050000000000009e59f700d205000000000000d891f700d3050000000000000acaf700d4050000000000004402f800d5050000000000007b3af800d605000000000000fa5ff800d705000000000000b672f800d805000000000000ebaaf800d90500000000000048b4f800da0500000000000024e3f800db05000000000000601bf900dc050000000000009753f900dd05000000000000ac8bf900de05000000000000e3c3f900df050000000000001cfcf900e0050000000000005934fa00e105000000000000936cfa00e205000000000000a7a4fa00e305000000000000dfdcfa00e4050000000000001a15fb00e5050000000000004d4dfb00e605000000000000a656fb00e7050000000000007b85fb00e805000000000000a2bdfb00e905000000000000dff5fb00ea050000000000005f1bfc00eb050000000000001e2efc00ec050000000000005266fc00ed050000000000000c79fc00ee05000000000000cc8bfc00ef050000000000002995fc00f005000000000000899efc00f105000000000000c1d6fc00f2050000000000007ee9fc00f3050000000000003dfcfc00f405000000000000f00efd00f5050000000000004c18fd00f6050000000000001a47fd00f7050000000000004a7ffd00f80500000000000086b7fd00f905000000000000beeffd00fa050000000000001ef9fd00fb05000000000000ee27fe00fc050000000000000944fe00fd050000000000002560fe00fe05000000000000307cfe00ff050000000000002798fe000006000000000000e2aafe00010600000000000042b4fe0002060000000000005dd0fe0003060000000000009a08ff000406000000000000ca40ff000506000000000000244aff000606000000000000f278ff0007060000000000002db1ff00080600000000000063e9ff000906000000000000712100010a06000000000000313400010b060000000000004c5000010c06000000000000ac5900010d06000000000000b49100010e06000000000000e3c900010f06000000000000f60101011006000000000000103a010111060000000000003056010112060000000000004c720101130600000000000084aa01011406000000000000c2e201011506000000000000fe1a02011606000000000000235302011706000000000000618b020118060000000000009dc3020119060000000000005ad602011a06000000000000badf02011b06000000000000d7fb02011c06000000000000370503011d06000000000000f71703011e06000000000000133403011f06000000000000516c03012006000000000000107f030121060000000000008da403012206000000000000cadc03012306000000000000f81404012406000000000000324d0401250600000000000070850401260600000000000080bd040127060000000000008bf504012806000000000000842d05012906000000000000d73605012a060000000000008b6505012b06000000000000c19d05012c06000000000000f9d505012d060000000000002e0e06012e06000000000000664606012f060000000000009d7e06013006000000000000d7b60601310600000000000011ef06013206000000000000442707013306000000000000725f07013406000000000000af9707013506000000000000e7cf070136060000000000001f0808013706000000000000372408013806000000000000544008013906000000000000917808013a06000000000000c8b008013b0600000000000001e908013c060000000000000f2109013d06000000000000085909013e06000000000000a99009013f06000000000000b5c809014006000000000000c5000a014106000000000000d2380a01420600000000000006710a014306000000000000f5a80a0144060000000000002be10a01450600000000000012190b01460600000000000048510b01470600000000000086890b014806000000000000e5920b014906000000000000c4c10b014a0600000000000000fa0b014b060000000000001d320c014c060000000000000b6a0c014d06000000000000c5980c014e060000000000001aa20c014f06000000000000d7d00c0150060000000000002dda0c01510600000000000069120d015206000000000000a44a0d015306000000000000df820d0154060000000000001dbb0d01550600000000000055f30d015606000000000000852b0e01570600000000000083630e015806000000000000c39b0e0159060000000000001ba50e015a060000000000007bae0e015b06000000000000f7d30e015c06000000000000afe60e015d06000000000000290c0f015e0600000000000065440f015f06000000000000db690f016006000000000000977c0f016106000000000000d2b40f016206000000000000ecec0f016306000000000000062510016406000000000000ea5c10016506000000000000f49410016606000000000000ffcc100167060000000000005ed610016806000000000000d6fb10016906000000000000340511016a06000000000000613d11016b060000000000008b7511016c06000000000000919111016d06000000000000abad11016e06000000000000e0e511016f060000000000001d1e120170060000000000005556120171060000000000006c8e120172060000000000008aaa12017306000000000000a3c612017406000000000000bdfe12017506000000000000f83613017606000000000000126f130177060000000000006c9413017806000000000000c99d1301790600000000000029a713017a060000000000005bdf13017b06000000000000b8e813017c0600000000000016f213017d060000000000008d1714017e06000000000000ec2014017f06000000000000a43314018006000000000000bc4f14018106000000000000d58714018206000000000000919a1401830600000000000005c0140184060000000000005fc914018506000000000000f8f714018606000000000000a10a15018706000000000000fa1315018806000000000000561d15018906000000000000fa2f15018a06000000000000513915018b06000000000000aa4215018c06000000000000106815018d060000000000002f8415018e060000000000004ba015018f060000000000002cbc15019006000000000000ccce1501910600000000000019d81501920600000000000076e115019306000000000000331016019406000000000000664816019506000000000000998016019606000000000000d5b81601970600000000000093cb16019806000000000000f3d4160199060000000000000ff116019a06000000000000cd0317019b06000000000000492917019c06000000000000a33217019d06000000000000444517019e060000000000003a6117019f06000000000000117d1701a0060000000000001c991701a10600000000000059d11701a2060000000000008c091801a306000000000000c2411801a4060000000000001e4b1801a50600000000000037671801a606000000000000f2791801a7060000000000001fb21801a806000000000000dec41801a90600000000000056ea1801aa0600000000000005fd1801ab0600000000000079221901ac06000000000000b25a1901ad06000000000000e5921901ae06000000000000f9ca1901af060000000000005df01901b00600000000000017031a01b1060000000000003a3b1a01b206000000000000e64d1a01b30600000000000044731a01b406000000000000a37c1a01b50600000000000078ab1a01b6060000000000006ee31a01b706000000000000921b1b01b806000000000000be531b01b9060000000000001d5d1b01ba06000000000000ec8b1b01bb0600000000000009c41b01bc06000000000000e5fb1b01bd06000000000000f1331c01be06000000000000ef6b1c01bf06000000000000a39a1c01c006000000000000fba31c01c106000000000000f2db1c01c206000000000000f8131d01c306000000000000df4b1d01c40600000000000075831d01c506000000000000aaa81d01c6060000000000003bbb1d01c7060000000000002fd71d01c80600000000000017f31d01c90600000000000067fc1d01ca06000000000000ad211e01cb06000000000000fb2a1e01cc0600000000000052341e01cd06000000000000da621e01ce06000000000000c87e1e01cf06000000000000b09a1e01d00600000000000089d21e01d1060000000000000fe51e01d2060000000000005fee1e01d3060000000000003b0a1f01d406000000000000f8411f01d50600000000000098541f01d606000000000000ac5d1f01d70600000000000094791f01d8060000000000006eb11f01d90600000000000038e91f01da060000000000000b212001db06000000000000e6582001dc06000000000000c8902001dd0600000000000062a32001de060000000000007ac82001df060000000000001cdb2001e0060000000000005d002101e10600000000000021382101e206000000000000f76f2101e3060000000000003d792101e406000000000000cea72101e50600000000000095df2101e6060000000000006e172201e706000000000000334f2201e80600000000000085582201e90600000000000010872201ea06000000000000eea22201eb06000000000000cbbe2201ec06000000000000a9da2201ed060000000000009ef62201ee060000000000003d092301ef06000000000000782e2301f0060000000000000c412301f1060000000000005e4a2301f20600000000000045662301f3060000000000003b822301f406000000000000299e2301f506000000000000fed52301f606000000000000990d2401f7060000000000002c202401f806000000000000173c2401f90600000000000063452401fa06000000000000fd572401fb060000000000002a7d2401fc0600000000000000b52401fd06000000000000b8ec2401fe0600000000000037242501ff06000000000000155c25010007000000000000e6932501" }, "name": "Polkadot", "properties": { diff --git a/artifacts/polkadot_metadata_full.scale b/artifacts/polkadot_metadata_full.scale index 2f58b0fd9e..ba7e12be08 100644 Binary files a/artifacts/polkadot_metadata_full.scale and b/artifacts/polkadot_metadata_full.scale differ diff --git a/artifacts/polkadot_metadata_small.scale b/artifacts/polkadot_metadata_small.scale index 1e89a0ce91..151ef828a3 100644 Binary files a/artifacts/polkadot_metadata_small.scale and b/artifacts/polkadot_metadata_small.scale differ diff --git a/artifacts/polkadot_metadata_tiny.scale b/artifacts/polkadot_metadata_tiny.scale index 7dce918539..0ce11d06bd 100644 Binary files a/artifacts/polkadot_metadata_tiny.scale and b/artifacts/polkadot_metadata_tiny.scale differ diff --git a/testing/integration-tests/src/full_client/codegen/polkadot.rs b/testing/integration-tests/src/full_client/codegen/polkadot.rs index 1e3fd1092b..00da21cd93 100644 --- a/testing/integration-tests/src/full_client/codegen/polkadot.rs +++ b/testing/integration-tests/src/full_client/codegen/polkadot.rs @@ -6,99 +6,117 @@ pub mod api { mod root_mod { pub use super::*; } - pub static PALLETS: [&str; 65usize] = [ + pub static PALLETS: [&str; 76usize] = [ "System", + "Utility", "Babe", "Timestamp", + "Authorship", "Indices", "Balances", "TransactionPayment", - "Authorship", - "Offences", - "Historical", + "AssetTxPayment", + "AssetConversionTxPayment", + "ElectionProviderMultiPhase", + "Staking", "Beefy", "Mmr", "MmrLeaf", "Session", + "Democracy", + "Council", + "TechnicalCommittee", + "Elections", + "TechnicalMembership", "Grandpa", + "Treasury", + "AssetRate", + "Contracts", + "Sudo", "ImOnline", "AuthorityDiscovery", - "Treasury", - "ConvictionVoting", - "Referenda", - "FellowshipCollective", - "FellowshipReferenda", - "Whitelist", - "Claims", - "Utility", + "Offences", + "Historical", + "RandomnessCollectiveFlip", "Identity", "Society", "Recovery", "Vesting", "Scheduler", + "Glutton", + "Preimage", "Proxy", "Multisig", - "Preimage", - "AssetRate", "Bounties", - "ChildBounties", + "Tips", + "Assets", + "PoolAssets", + "Lottery", "Nis", - "NisCounterpartBalances", - "ParachainsOrigin", - "Configuration", - "ParasShared", - "ParaInclusion", - "ParaInherent", - "ParaScheduler", - "Paras", - "Initializer", - "Dmp", - "Hrmp", - "ParaSessionInfo", - "ParasDisputes", - "ParasSlashing", - "MessageQueue", - "ParaAssignmentProvider", - "OnDemandAssignmentProvider", - "ParachainsAssignmentProvider", - "Registrar", - "Slots", - "Auctions", - "Crowdloan", - "XcmPallet", - "ParasSudoWrapper", - "AssignedSlots", - "ValidatorManager", + "Uniques", + "Nfts", + "NftFractionalization", + "Salary", + "CoreFellowship", + "TransactionStorage", + "VoterList", "StateTrieMigration", + "ChildBounties", + "Referenda", + "Remark", "RootTesting", - "Sudo", + "ConvictionVoting", + "Whitelist", + "AllianceMotion", + "Alliance", + "NominationPools", + "RankedPolls", + "RankedCollective", + "AssetConversion", + "FastUnstake", + "MessageQueue", + "Pov", + "TxPause", + "SafeMode", + "Statement", + "Broker", + "TasksExample", + "Mixnet", + "SkipFeelessPayment", ]; - pub static RUNTIME_APIS: [&str; 16usize] = [ + pub static RUNTIME_APIS: [&str; 23usize] = [ "Core", "Metadata", "BlockBuilder", "TaggedTransactionQueue", + "ValidateStatement", "OffchainWorkerApi", - "ParachainHost", - "BeefyApi", - "MmrApi", "GrandpaApi", + "NominationPoolsApi", + "StakingApi", "BabeApi", "AuthorityDiscoveryApi", - "SessionKeys", "AccountNonceApi", + "AssetsApi", + "ContractsApi", "TransactionPaymentApi", - "BeefyMmrApi", + "AssetConversionApi", + "TransactionPaymentCallApi", + "NftsApi", + "BeefyApi", + "MmrApi", + "MixnetApi", + "SessionKeys", "GenesisBuilder", ]; #[doc = r" The error type returned when there is a runtime issue."] pub type DispatchError = runtime_types::sp_runtime::DispatchError; #[doc = r" The outer event enum."] - pub type Event = runtime_types::rococo_runtime::RuntimeEvent; + pub type Event = runtime_types::kitchensink_runtime::RuntimeEvent; #[doc = r" The outer extrinsic enum."] - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; #[doc = r" The outer error enum representing the DispatchError's Module variant."] - pub type Error = runtime_types::rococo_runtime::RuntimeError; + pub type Error = runtime_types::kitchensink_runtime::RuntimeError; pub fn constants() -> ConstantsApi { ConstantsApi } @@ -131,21 +149,21 @@ pub mod api { ) -> tagged_transaction_queue::TaggedTransactionQueue { tagged_transaction_queue::TaggedTransactionQueue } + pub fn validate_statement(&self) -> validate_statement::ValidateStatement { + validate_statement::ValidateStatement + } pub fn offchain_worker_api(&self) -> offchain_worker_api::OffchainWorkerApi { offchain_worker_api::OffchainWorkerApi } - pub fn parachain_host(&self) -> parachain_host::ParachainHost { - parachain_host::ParachainHost - } - pub fn beefy_api(&self) -> beefy_api::BeefyApi { - beefy_api::BeefyApi - } - pub fn mmr_api(&self) -> mmr_api::MmrApi { - mmr_api::MmrApi - } pub fn grandpa_api(&self) -> grandpa_api::GrandpaApi { grandpa_api::GrandpaApi } + pub fn nomination_pools_api(&self) -> nomination_pools_api::NominationPoolsApi { + nomination_pools_api::NominationPoolsApi + } + pub fn staking_api(&self) -> staking_api::StakingApi { + staking_api::StakingApi + } pub fn babe_api(&self) -> babe_api::BabeApi { babe_api::BabeApi } @@ -154,19 +172,42 @@ pub mod api { ) -> authority_discovery_api::AuthorityDiscoveryApi { authority_discovery_api::AuthorityDiscoveryApi } - pub fn session_keys(&self) -> session_keys::SessionKeys { - session_keys::SessionKeys - } pub fn account_nonce_api(&self) -> account_nonce_api::AccountNonceApi { account_nonce_api::AccountNonceApi } + pub fn assets_api(&self) -> assets_api::AssetsApi { + assets_api::AssetsApi + } + pub fn contracts_api(&self) -> contracts_api::ContractsApi { + contracts_api::ContractsApi + } pub fn transaction_payment_api( &self, ) -> transaction_payment_api::TransactionPaymentApi { transaction_payment_api::TransactionPaymentApi } - pub fn beefy_mmr_api(&self) -> beefy_mmr_api::BeefyMmrApi { - beefy_mmr_api::BeefyMmrApi + pub fn asset_conversion_api(&self) -> asset_conversion_api::AssetConversionApi { + asset_conversion_api::AssetConversionApi + } + pub fn transaction_payment_call_api( + &self, + ) -> transaction_payment_call_api::TransactionPaymentCallApi { + transaction_payment_call_api::TransactionPaymentCallApi + } + pub fn nfts_api(&self) -> nfts_api::NftsApi { + nfts_api::NftsApi + } + pub fn beefy_api(&self) -> beefy_api::BeefyApi { + beefy_api::BeefyApi + } + pub fn mmr_api(&self) -> mmr_api::MmrApi { + mmr_api::MmrApi + } + pub fn mixnet_api(&self) -> mixnet_api::MixnetApi { + mixnet_api::MixnetApi + } + pub fn session_keys(&self) -> session_keys::SessionKeys { + session_keys::SessionKeys } pub fn genesis_builder(&self) -> genesis_builder::GenesisBuilder { genesis_builder::GenesisBuilder @@ -256,7 +297,7 @@ pub mod api { pub struct Version {} pub mod execute_block { use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: kitchensink_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_asset_conversion_tx_payment :: ChargeAssetTxPayment ,) > > ; pub mod output { use super::runtime_types; pub type Output = (); @@ -520,7 +561,7 @@ pub mod api { use super::runtime_types; pub mod apply_extrinsic { use super::runtime_types; - pub type Extrinsic = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; + pub type Extrinsic = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: kitchensink_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_asset_conversion_tx_payment :: ChargeAssetTxPayment ,) > ; pub mod output { use super::runtime_types; pub type Output = :: core :: result :: Result < :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; @@ -564,7 +605,7 @@ pub mod api { pub type Inherent = runtime_types::sp_inherents::InherentData; pub mod output { use super::runtime_types; - pub type Output = :: std :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; + pub type Output = :: std :: vec :: Vec < :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: kitchensink_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_asset_conversion_tx_payment :: ChargeAssetTxPayment ,) > > ; } } #[derive( @@ -582,7 +623,7 @@ pub mod api { } pub mod check_inherents { use super::runtime_types; - pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > ; + pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: kitchensink_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_asset_conversion_tx_payment :: ChargeAssetTxPayment ,) > > ; pub type Data = runtime_types::sp_inherents::InherentData; pub mod output { use super::runtime_types; @@ -651,7 +692,7 @@ pub mod api { use super::runtime_types; pub type Source = runtime_types::sp_runtime::transaction_validity::TransactionSource; - pub type Tx = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; + pub type Tx = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: kitchensink_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_asset_conversion_tx_payment :: ChargeAssetTxPayment ,) > ; pub type BlockHash = ::subxt::utils::H256; pub mod output { use super::runtime_types; @@ -675,6 +716,64 @@ pub mod api { } } } + pub mod validate_statement { + use super::root_mod; + use super::runtime_types; + #[doc = " Runtime API trait for statement validation."] + pub struct ValidateStatement; + impl ValidateStatement { + #[doc = " Validate the statement."] + pub fn validate_statement( + &self, + source: types::validate_statement::Source, + statement: types::validate_statement::Statement, + ) -> ::subxt::runtime_api::Payload< + types::ValidateStatement, + types::validate_statement::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "ValidateStatement", + "validate_statement", + types::ValidateStatement { source, statement }, + [ + 143u8, 65u8, 34u8, 84u8, 231u8, 84u8, 67u8, 246u8, 249u8, 109u8, 15u8, + 124u8, 109u8, 75u8, 167u8, 241u8, 146u8, 229u8, 99u8, 109u8, 50u8, + 35u8, 40u8, 71u8, 87u8, 36u8, 66u8, 144u8, 79u8, 81u8, 114u8, 57u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod validate_statement { + use super::runtime_types; + pub type Source = + runtime_types::sp_statement_store::runtime_api::StatementSource; + pub type Statement = runtime_types::sp_statement_store::Statement; + pub mod output { + use super::runtime_types; + pub type Output = ::core::result::Result< + runtime_types::sp_statement_store::runtime_api::ValidStatement, + runtime_types::sp_statement_store::runtime_api::InvalidStatement, + >; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidateStatement { + pub source: validate_statement::Source, + pub statement: validate_statement::Statement, + } + } + } pub mod offchain_worker_api { use super::root_mod; use super::runtime_types; @@ -727,1012 +826,138 @@ pub mod api { } } } - pub mod parachain_host { + pub mod grandpa_api { use super::root_mod; use super::runtime_types; - #[doc = " The API for querying the state of parachains on-chain."] - pub struct ParachainHost; - impl ParachainHost { - #[doc = " Get the current validators."] - pub fn validators( - &self, - ) -> ::subxt::runtime_api::Payload< - types::Validators, - types::validators::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "validators", - types::Validators {}, - [ - 56u8, 64u8, 189u8, 234u8, 85u8, 75u8, 2u8, 212u8, 192u8, 95u8, 230u8, - 201u8, 98u8, 220u8, 78u8, 20u8, 101u8, 16u8, 153u8, 192u8, 133u8, - 179u8, 217u8, 98u8, 247u8, 143u8, 104u8, 147u8, 47u8, 255u8, 111u8, - 72u8, - ], - ) - } - #[doc = " Returns the validator groups and rotation info localized based on the hypothetical child"] - #[doc = " of a block whose state this is invoked on. Note that `now` in the `GroupRotationInfo`"] - #[doc = " should be the successor of the number of the block."] - pub fn validator_groups( - &self, - ) -> ::subxt::runtime_api::Payload< - types::ValidatorGroups, - types::validator_groups::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "validator_groups", - types::ValidatorGroups {}, - [ - 89u8, 221u8, 163u8, 73u8, 194u8, 196u8, 136u8, 242u8, 249u8, 182u8, - 239u8, 251u8, 157u8, 211u8, 41u8, 58u8, 242u8, 242u8, 177u8, 145u8, - 107u8, 167u8, 193u8, 204u8, 226u8, 228u8, 82u8, 249u8, 187u8, 211u8, - 37u8, 124u8, - ], - ) - } - #[doc = " Yields information on all availability cores as relevant to the child block."] - #[doc = " Cores are either free or occupied. Free cores can have paras assigned to them."] - pub fn availability_cores( - &self, - ) -> ::subxt::runtime_api::Payload< - types::AvailabilityCores, - types::availability_cores::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "availability_cores", - types::AvailabilityCores {}, - [ - 238u8, 20u8, 188u8, 206u8, 26u8, 17u8, 72u8, 123u8, 33u8, 54u8, 66u8, - 13u8, 244u8, 246u8, 228u8, 177u8, 176u8, 251u8, 82u8, 12u8, 170u8, - 29u8, 39u8, 158u8, 16u8, 23u8, 253u8, 169u8, 117u8, 12u8, 0u8, 65u8, - ], - ) - } - #[doc = " Yields the persisted validation data for the given `ParaId` along with an assumption that"] - #[doc = " should be used if the para currently occupies a core."] + #[doc = " APIs for integrating the GRANDPA finality gadget into runtimes."] + #[doc = " This should be implemented on the runtime side."] + #[doc = ""] + #[doc = " This is primarily used for negotiating authority-set changes for the"] + #[doc = " gadget. GRANDPA uses a signaling model of changing authority sets:"] + #[doc = " changes should be signaled with a delay of N blocks, and then automatically"] + #[doc = " applied in the runtime after those N blocks have passed."] + #[doc = ""] + #[doc = " The consensus protocol will coordinate the handoff externally."] + pub struct GrandpaApi; + impl GrandpaApi { + #[doc = " Get the current GRANDPA authorities and weights. This should not change except"] + #[doc = " for when changes are scheduled and the corresponding delay has passed."] #[doc = ""] - #[doc = " Returns `None` if either the para is not registered or the assumption is `Freed`"] - #[doc = " and the para already occupies a core."] - pub fn persisted_validation_data( + #[doc = " When called at block B, it will return the set of authorities that should be"] + #[doc = " used to finalize descendants of this block (B+1, B+2, ...). The block B itself"] + #[doc = " is finalized by the authorities from block B-1."] + pub fn grandpa_authorities( &self, - para_id: types::persisted_validation_data::ParaId, - assumption: types::persisted_validation_data::Assumption, ) -> ::subxt::runtime_api::Payload< - types::PersistedValidationData, - types::persisted_validation_data::output::Output, + types::GrandpaAuthorities, + types::grandpa_authorities::output::Output, > { ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "persisted_validation_data", - types::PersistedValidationData { - para_id, - assumption, + "GrandpaApi", + "grandpa_authorities", + types::GrandpaAuthorities {}, + [ + 166u8, 76u8, 160u8, 101u8, 242u8, 145u8, 213u8, 10u8, 16u8, 130u8, + 230u8, 196u8, 125u8, 152u8, 92u8, 143u8, 119u8, 223u8, 140u8, 189u8, + 203u8, 95u8, 52u8, 105u8, 147u8, 107u8, 135u8, 228u8, 62u8, 178u8, + 128u8, 33u8, + ], + ) + } + #[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"] + #[doc = " must provide the equivocation proof and a key ownership proof"] + #[doc = " (should be obtained using `generate_key_ownership_proof`). The"] + #[doc = " extrinsic will be unsigned and should only be accepted for local"] + #[doc = " authorship (not to be broadcast to the network). This method returns"] + #[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"] + #[doc = " reporting is disabled for the given runtime (i.e. this method is"] + #[doc = " hardcoded to return `None`). Only useful in an offchain context."] + pub fn submit_report_equivocation_unsigned_extrinsic( + &self, + equivocation_proof : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof, + key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, + ) -> ::subxt::runtime_api::Payload< + types::SubmitReportEquivocationUnsignedExtrinsic, + types::submit_report_equivocation_unsigned_extrinsic::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "GrandpaApi", + "submit_report_equivocation_unsigned_extrinsic", + types::SubmitReportEquivocationUnsignedExtrinsic { + equivocation_proof, + key_owner_proof, }, [ - 119u8, 217u8, 57u8, 241u8, 70u8, 56u8, 102u8, 20u8, 98u8, 60u8, 47u8, - 78u8, 124u8, 81u8, 158u8, 254u8, 30u8, 14u8, 223u8, 195u8, 95u8, 179u8, - 228u8, 53u8, 149u8, 224u8, 62u8, 8u8, 27u8, 3u8, 100u8, 37u8, + 112u8, 94u8, 150u8, 250u8, 132u8, 127u8, 185u8, 24u8, 113u8, 62u8, + 28u8, 171u8, 83u8, 9u8, 41u8, 228u8, 92u8, 137u8, 29u8, 190u8, 214u8, + 232u8, 100u8, 66u8, 100u8, 168u8, 149u8, 122u8, 93u8, 17u8, 236u8, + 104u8, ], ) } - #[doc = " Returns the persisted validation data for the given `ParaId` along with the corresponding"] - #[doc = " validation code hash. Instead of accepting assumption about the para, matches the validation"] - #[doc = " data hash against an expected one and yields `None` if they're not equal."] - pub fn assumed_validation_data( + #[doc = " Generates a proof of key ownership for the given authority in the"] + #[doc = " given set. An example usage of this module is coupled with the"] + #[doc = " session historical module to prove that a given authority key is"] + #[doc = " tied to a given staking identity during a specific session. Proofs"] + #[doc = " of key ownership are necessary for submitting equivocation reports."] + #[doc = " NOTE: even though the API takes a `set_id` as parameter the current"] + #[doc = " implementations ignore this parameter and instead rely on this"] + #[doc = " method being called at the correct block height, i.e. any point at"] + #[doc = " which the given set id is live on-chain. Future implementations will"] + #[doc = " instead use indexed data through an offchain worker, not requiring"] + #[doc = " older states to be available."] + pub fn generate_key_ownership_proof( &self, - para_id: types::assumed_validation_data::ParaId, - expected_persisted_validation_data_hash : types :: assumed_validation_data :: ExpectedPersistedValidationDataHash, + set_id: types::generate_key_ownership_proof::SetId, + authority_id: types::generate_key_ownership_proof::AuthorityId, ) -> ::subxt::runtime_api::Payload< - types::AssumedValidationData, - types::assumed_validation_data::output::Output, + types::GenerateKeyOwnershipProof, + types::generate_key_ownership_proof::output::Output, > { ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "assumed_validation_data", - types::AssumedValidationData { - para_id, - expected_persisted_validation_data_hash, + "GrandpaApi", + "generate_key_ownership_proof", + types::GenerateKeyOwnershipProof { + set_id, + authority_id, }, [ - 37u8, 162u8, 100u8, 72u8, 19u8, 135u8, 13u8, 211u8, 51u8, 153u8, 201u8, - 97u8, 61u8, 193u8, 167u8, 118u8, 60u8, 242u8, 228u8, 81u8, 165u8, 62u8, - 191u8, 206u8, 157u8, 232u8, 62u8, 55u8, 240u8, 236u8, 76u8, 204u8, + 40u8, 126u8, 113u8, 27u8, 245u8, 45u8, 123u8, 138u8, 12u8, 3u8, 125u8, + 186u8, 151u8, 53u8, 186u8, 93u8, 13u8, 150u8, 163u8, 176u8, 206u8, + 89u8, 244u8, 127u8, 182u8, 85u8, 203u8, 41u8, 101u8, 183u8, 209u8, + 179u8, ], ) } - #[doc = " Checks if the given validation outputs pass the acceptance criteria."] - pub fn check_validation_outputs( - &self, - para_id: types::check_validation_outputs::ParaId, - outputs: types::check_validation_outputs::Outputs, - ) -> ::subxt::runtime_api::Payload< - types::CheckValidationOutputs, - types::check_validation_outputs::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "check_validation_outputs", - types::CheckValidationOutputs { para_id, outputs }, - [ - 128u8, 33u8, 213u8, 120u8, 39u8, 18u8, 135u8, 248u8, 196u8, 43u8, 0u8, - 143u8, 198u8, 64u8, 93u8, 133u8, 248u8, 206u8, 103u8, 137u8, 168u8, - 255u8, 144u8, 29u8, 121u8, 246u8, 179u8, 187u8, 83u8, 53u8, 142u8, - 82u8, - ], - ) - } - #[doc = " Returns the session index expected at a child of the block."] - #[doc = ""] - #[doc = " This can be used to instantiate a `SigningContext`."] - pub fn session_index_for_child( + #[doc = " Get current GRANDPA authority set id."] + pub fn current_set_id( &self, ) -> ::subxt::runtime_api::Payload< - types::SessionIndexForChild, - types::session_index_for_child::output::Output, + types::CurrentSetId, + types::current_set_id::output::Output, > { ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "session_index_for_child", - types::SessionIndexForChild {}, + "GrandpaApi", + "current_set_id", + types::CurrentSetId {}, [ - 135u8, 9u8, 1u8, 244u8, 174u8, 151u8, 247u8, 75u8, 226u8, 216u8, 53u8, - 78u8, 26u8, 109u8, 44u8, 77u8, 208u8, 151u8, 94u8, 212u8, 115u8, 43u8, - 118u8, 22u8, 140u8, 117u8, 15u8, 224u8, 163u8, 252u8, 90u8, 255u8, - ], - ) - } - #[doc = " Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`."] - #[doc = ""] - #[doc = " Returns `None` if either the para is not registered or the assumption is `Freed`"] - #[doc = " and the para already occupies a core."] - pub fn validation_code( - &self, - para_id: types::validation_code::ParaId, - assumption: types::validation_code::Assumption, - ) -> ::subxt::runtime_api::Payload< - types::ValidationCode, - types::validation_code::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "validation_code", - types::ValidationCode { - para_id, - assumption, - }, - [ - 231u8, 15u8, 35u8, 159u8, 96u8, 23u8, 246u8, 125u8, 78u8, 79u8, 158u8, - 116u8, 36u8, 199u8, 53u8, 61u8, 242u8, 136u8, 227u8, 174u8, 136u8, - 71u8, 143u8, 47u8, 216u8, 21u8, 225u8, 117u8, 50u8, 104u8, 161u8, - 232u8, - ], - ) - } - #[doc = " Get the receipt of a candidate pending availability. This returns `Some` for any paras"] - #[doc = " assigned to occupied cores in `availability_cores` and `None` otherwise."] - pub fn candidate_pending_availability( - &self, - para_id: types::candidate_pending_availability::ParaId, - ) -> ::subxt::runtime_api::Payload< - types::CandidatePendingAvailability, - types::candidate_pending_availability::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "candidate_pending_availability", - types::CandidatePendingAvailability { para_id }, - [ - 139u8, 185u8, 205u8, 255u8, 131u8, 180u8, 248u8, 168u8, 25u8, 124u8, - 105u8, 141u8, 59u8, 118u8, 109u8, 136u8, 103u8, 200u8, 5u8, 218u8, - 72u8, 55u8, 114u8, 89u8, 207u8, 140u8, 51u8, 86u8, 167u8, 41u8, 221u8, - 86u8, - ], - ) - } - #[doc = " Get a vector of events concerning candidates that occurred within a block."] - pub fn candidate_events( - &self, - ) -> ::subxt::runtime_api::Payload< - types::CandidateEvents, - types::candidate_events::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "candidate_events", - types::CandidateEvents {}, - [ - 101u8, 145u8, 200u8, 182u8, 213u8, 111u8, 180u8, 73u8, 14u8, 107u8, - 110u8, 145u8, 122u8, 35u8, 223u8, 219u8, 66u8, 101u8, 130u8, 255u8, - 44u8, 46u8, 50u8, 61u8, 104u8, 237u8, 34u8, 16u8, 179u8, 214u8, 115u8, - 7u8, - ], - ) - } - #[doc = " Get all the pending inbound messages in the downward message queue for a para."] - pub fn dmq_contents( - &self, - recipient: types::dmq_contents::Recipient, - ) -> ::subxt::runtime_api::Payload< - types::DmqContents, - types::dmq_contents::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "dmq_contents", - types::DmqContents { recipient }, - [ - 189u8, 11u8, 38u8, 223u8, 11u8, 108u8, 201u8, 122u8, 207u8, 7u8, 74u8, - 14u8, 247u8, 226u8, 108u8, 21u8, 213u8, 55u8, 8u8, 137u8, 211u8, 98u8, - 19u8, 11u8, 212u8, 218u8, 209u8, 63u8, 51u8, 252u8, 86u8, 53u8, - ], - ) - } - #[doc = " Get the contents of all channels addressed to the given recipient. Channels that have no"] - #[doc = " messages in them are also included."] - pub fn inbound_hrmp_channels_contents( - &self, - recipient: types::inbound_hrmp_channels_contents::Recipient, - ) -> ::subxt::runtime_api::Payload< - types::InboundHrmpChannelsContents, - types::inbound_hrmp_channels_contents::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "inbound_hrmp_channels_contents", - types::InboundHrmpChannelsContents { recipient }, - [ - 132u8, 29u8, 42u8, 39u8, 72u8, 243u8, 110u8, 43u8, 110u8, 9u8, 21u8, - 18u8, 91u8, 40u8, 231u8, 223u8, 239u8, 16u8, 110u8, 54u8, 108u8, 234u8, - 140u8, 205u8, 80u8, 221u8, 115u8, 48u8, 197u8, 248u8, 6u8, 25u8, - ], - ) - } - #[doc = " Get the validation code from its hash."] - pub fn validation_code_by_hash( - &self, - hash: types::validation_code_by_hash::Hash, - ) -> ::subxt::runtime_api::Payload< - types::ValidationCodeByHash, - types::validation_code_by_hash::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "validation_code_by_hash", - types::ValidationCodeByHash { hash }, - [ - 219u8, 250u8, 130u8, 89u8, 178u8, 234u8, 255u8, 33u8, 90u8, 78u8, 58u8, - 124u8, 141u8, 145u8, 156u8, 81u8, 184u8, 52u8, 65u8, 112u8, 35u8, - 153u8, 222u8, 23u8, 226u8, 53u8, 164u8, 22u8, 236u8, 103u8, 197u8, - 236u8, - ], - ) - } - #[doc = " Scrape dispute relevant from on-chain, backing votes and resolved disputes."] - pub fn on_chain_votes( - &self, - ) -> ::subxt::runtime_api::Payload< - types::OnChainVotes, - types::on_chain_votes::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "on_chain_votes", - types::OnChainVotes {}, - [ - 8u8, 253u8, 248u8, 13u8, 221u8, 83u8, 199u8, 65u8, 180u8, 193u8, 232u8, - 179u8, 56u8, 186u8, 72u8, 128u8, 27u8, 168u8, 177u8, 82u8, 194u8, - 139u8, 78u8, 32u8, 147u8, 67u8, 27u8, 252u8, 118u8, 60u8, 74u8, 31u8, - ], - ) - } - #[doc = " Get the session info for the given session, if stored."] - #[doc = ""] - #[doc = " NOTE: This function is only available since parachain host version 2."] - pub fn session_info( - &self, - index: types::session_info::Index, - ) -> ::subxt::runtime_api::Payload< - types::SessionInfo, - types::session_info::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "session_info", - types::SessionInfo { index }, - [ - 77u8, 115u8, 39u8, 190u8, 116u8, 250u8, 66u8, 128u8, 168u8, 24u8, - 120u8, 153u8, 111u8, 125u8, 249u8, 115u8, 112u8, 169u8, 208u8, 31u8, - 95u8, 234u8, 14u8, 242u8, 14u8, 190u8, 120u8, 171u8, 202u8, 67u8, 81u8, - 237u8, - ], - ) - } - #[doc = " Submits a PVF pre-checking statement into the transaction pool."] - #[doc = ""] - #[doc = " NOTE: This function is only available since parachain host version 2."] - pub fn submit_pvf_check_statement( - &self, - stmt: types::submit_pvf_check_statement::Stmt, - signature: types::submit_pvf_check_statement::Signature, - ) -> ::subxt::runtime_api::Payload< - types::SubmitPvfCheckStatement, - types::submit_pvf_check_statement::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "submit_pvf_check_statement", - types::SubmitPvfCheckStatement { stmt, signature }, - [ - 91u8, 138u8, 75u8, 79u8, 171u8, 224u8, 206u8, 152u8, 202u8, 131u8, - 251u8, 200u8, 75u8, 99u8, 49u8, 192u8, 175u8, 212u8, 139u8, 236u8, - 188u8, 243u8, 82u8, 62u8, 190u8, 79u8, 113u8, 23u8, 222u8, 29u8, 255u8, - 196u8, - ], - ) - } - #[doc = " Returns code hashes of PVFs that require pre-checking by validators in the active set."] - #[doc = ""] - #[doc = " NOTE: This function is only available since parachain host version 2."] - pub fn pvfs_require_precheck( - &self, - ) -> ::subxt::runtime_api::Payload< - types::PvfsRequirePrecheck, - types::pvfs_require_precheck::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "pvfs_require_precheck", - types::PvfsRequirePrecheck {}, - [ - 251u8, 162u8, 214u8, 223u8, 70u8, 67u8, 170u8, 19u8, 191u8, 37u8, - 233u8, 249u8, 89u8, 28u8, 76u8, 213u8, 194u8, 28u8, 15u8, 199u8, 167u8, - 23u8, 139u8, 220u8, 218u8, 223u8, 115u8, 4u8, 95u8, 24u8, 32u8, 29u8, - ], - ) - } - #[doc = " Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`."] - #[doc = ""] - #[doc = " NOTE: This function is only available since parachain host version 2."] - pub fn validation_code_hash( - &self, - para_id: types::validation_code_hash::ParaId, - assumption: types::validation_code_hash::Assumption, - ) -> ::subxt::runtime_api::Payload< - types::ValidationCodeHash, - types::validation_code_hash::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "validation_code_hash", - types::ValidationCodeHash { - para_id, - assumption, - }, - [ - 226u8, 142u8, 121u8, 182u8, 206u8, 180u8, 8u8, 19u8, 237u8, 84u8, - 121u8, 1u8, 126u8, 211u8, 241u8, 133u8, 195u8, 182u8, 116u8, 128u8, - 58u8, 81u8, 12u8, 68u8, 79u8, 212u8, 108u8, 178u8, 237u8, 25u8, 203u8, - 135u8, - ], - ) - } - #[doc = " Returns all onchain disputes."] - pub fn disputes( - &self, - ) -> ::subxt::runtime_api::Payload - { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "disputes", - types::Disputes {}, - [ - 183u8, 88u8, 143u8, 44u8, 138u8, 79u8, 65u8, 198u8, 42u8, 109u8, 235u8, - 152u8, 3u8, 13u8, 106u8, 189u8, 197u8, 126u8, 44u8, 161u8, 67u8, 49u8, - 163u8, 193u8, 248u8, 207u8, 1u8, 108u8, 188u8, 152u8, 87u8, 125u8, - ], - ) - } - #[doc = " Returns execution parameters for the session."] - pub fn session_executor_params( - &self, - session_index: types::session_executor_params::SessionIndex, - ) -> ::subxt::runtime_api::Payload< - types::SessionExecutorParams, - types::session_executor_params::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "session_executor_params", - types::SessionExecutorParams { session_index }, - [ - 207u8, 66u8, 10u8, 104u8, 146u8, 219u8, 75u8, 157u8, 93u8, 224u8, - 215u8, 13u8, 255u8, 62u8, 134u8, 168u8, 185u8, 101u8, 39u8, 78u8, 98u8, - 44u8, 129u8, 38u8, 48u8, 244u8, 103u8, 205u8, 66u8, 121u8, 18u8, 247u8, - ], - ) - } - #[doc = " Returns a list of validators that lost a past session dispute and need to be slashed."] - #[doc = " NOTE: This function is only available since parachain host version 5."] - pub fn unapplied_slashes( - &self, - ) -> ::subxt::runtime_api::Payload< - types::UnappliedSlashes, - types::unapplied_slashes::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "unapplied_slashes", - types::UnappliedSlashes {}, - [ - 205u8, 16u8, 246u8, 48u8, 72u8, 160u8, 7u8, 136u8, 225u8, 2u8, 209u8, - 254u8, 255u8, 115u8, 49u8, 214u8, 131u8, 22u8, 210u8, 9u8, 111u8, - 170u8, 109u8, 247u8, 110u8, 42u8, 55u8, 68u8, 85u8, 37u8, 250u8, 4u8, - ], - ) - } - #[doc = " Returns a merkle proof of a validator session key."] - #[doc = " NOTE: This function is only available since parachain host version 5."] - pub fn key_ownership_proof( - &self, - validator_id: types::key_ownership_proof::ValidatorId, - ) -> ::subxt::runtime_api::Payload< - types::KeyOwnershipProof, - types::key_ownership_proof::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "key_ownership_proof", - types::KeyOwnershipProof { validator_id }, - [ - 194u8, 237u8, 59u8, 4u8, 194u8, 235u8, 38u8, 58u8, 58u8, 221u8, 189u8, - 69u8, 254u8, 2u8, 242u8, 200u8, 86u8, 4u8, 138u8, 184u8, 198u8, 58u8, - 200u8, 34u8, 243u8, 91u8, 122u8, 35u8, 18u8, 83u8, 152u8, 191u8, - ], - ) - } - #[doc = " Submit an unsigned extrinsic to slash validators who lost a dispute about"] - #[doc = " a candidate of a past session."] - #[doc = " NOTE: This function is only available since parachain host version 5."] - pub fn submit_report_dispute_lost( - &self, - dispute_proof: types::submit_report_dispute_lost::DisputeProof, - key_ownership_proof: types::submit_report_dispute_lost::KeyOwnershipProof, - ) -> ::subxt::runtime_api::Payload< - types::SubmitReportDisputeLost, - types::submit_report_dispute_lost::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "submit_report_dispute_lost", - types::SubmitReportDisputeLost { - dispute_proof, - key_ownership_proof, - }, - [ - 98u8, 63u8, 249u8, 13u8, 163u8, 161u8, 43u8, 96u8, 75u8, 65u8, 3u8, - 116u8, 8u8, 149u8, 122u8, 190u8, 179u8, 108u8, 17u8, 22u8, 59u8, 134u8, - 43u8, 31u8, 13u8, 254u8, 21u8, 112u8, 129u8, 16u8, 5u8, 180u8, - ], - ) - } - #[doc = " Get the minimum number of backing votes for a parachain candidate."] - #[doc = " This is a staging method! Do not use on production runtimes!"] - pub fn minimum_backing_votes( - &self, - ) -> ::subxt::runtime_api::Payload< - types::MinimumBackingVotes, - types::minimum_backing_votes::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "minimum_backing_votes", - types::MinimumBackingVotes {}, - [ - 222u8, 75u8, 167u8, 245u8, 183u8, 148u8, 14u8, 92u8, 54u8, 164u8, - 239u8, 183u8, 215u8, 170u8, 133u8, 71u8, 19u8, 131u8, 104u8, 28u8, - 219u8, 237u8, 178u8, 34u8, 190u8, 151u8, 48u8, 146u8, 78u8, 17u8, 66u8, - 146u8, - ], - ) - } - #[doc = " Returns the state of parachain backing for a given para."] - pub fn para_backing_state( - &self, - _0: types::para_backing_state::Param0, - ) -> ::subxt::runtime_api::Payload< - types::ParaBackingState, - types::para_backing_state::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "para_backing_state", - types::ParaBackingState { _0 }, - [ - 26u8, 210u8, 45u8, 233u8, 133u8, 180u8, 12u8, 156u8, 59u8, 249u8, 10u8, - 38u8, 32u8, 28u8, 25u8, 30u8, 83u8, 33u8, 142u8, 21u8, 12u8, 151u8, - 182u8, 128u8, 131u8, 192u8, 240u8, 73u8, 119u8, 64u8, 254u8, 139u8, - ], - ) - } - #[doc = " Returns candidate's acceptance limitations for asynchronous backing for a relay parent."] - pub fn async_backing_params( - &self, - ) -> ::subxt::runtime_api::Payload< - types::AsyncBackingParams, - types::async_backing_params::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "async_backing_params", - types::AsyncBackingParams {}, - [ - 150u8, 157u8, 193u8, 44u8, 160u8, 18u8, 122u8, 188u8, 157u8, 84u8, - 202u8, 253u8, 55u8, 113u8, 188u8, 169u8, 216u8, 250u8, 145u8, 81u8, - 73u8, 194u8, 234u8, 237u8, 101u8, 250u8, 35u8, 52u8, 205u8, 38u8, 22u8, - 238u8, - ], - ) - } - #[doc = " Returns a list of all disabled validators at the given block."] - pub fn disabled_validators( - &self, - ) -> ::subxt::runtime_api::Payload< - types::DisabledValidators, - types::disabled_validators::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "ParachainHost", - "disabled_validators", - types::DisabledValidators {}, - [ - 121u8, 124u8, 228u8, 59u8, 10u8, 148u8, 131u8, 130u8, 221u8, 33u8, - 226u8, 13u8, 223u8, 67u8, 145u8, 39u8, 205u8, 237u8, 178u8, 249u8, - 126u8, 152u8, 65u8, 131u8, 111u8, 113u8, 194u8, 111u8, 37u8, 124u8, - 164u8, 212u8, + 42u8, 230u8, 120u8, 211u8, 156u8, 245u8, 109u8, 86u8, 100u8, 146u8, + 234u8, 205u8, 41u8, 183u8, 109u8, 42u8, 17u8, 33u8, 156u8, 25u8, 139u8, + 84u8, 101u8, 75u8, 232u8, 198u8, 87u8, 136u8, 218u8, 233u8, 103u8, + 156u8, ], ) } } pub mod types { use super::runtime_types; - pub mod validators { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::validator_app::Public, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Validators {} - pub mod validator_groups { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = ( - ::std::vec::Vec< - ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::ValidatorIndex, - >, - >, - runtime_types::polkadot_primitives::v6::GroupRotationInfo< - ::core::primitive::u32, - >, - ); - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidatorGroups {} - pub mod availability_cores { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::CoreState< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AvailabilityCores {} - pub mod persisted_validation_data { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Assumption = - runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; - pub mod output { - use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::PersistedValidationData< - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PersistedValidationData { - pub para_id: persisted_validation_data::ParaId, - pub assumption: persisted_validation_data::Assumption, - } - pub mod assumed_validation_data { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type ExpectedPersistedValidationDataHash = ::subxt::utils::H256; - pub mod output { - use super::runtime_types; - pub type Output = :: core :: option :: Option < (runtime_types :: polkadot_primitives :: v6 :: PersistedValidationData < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > ; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AssumedValidationData { - pub para_id: assumed_validation_data::ParaId, - pub expected_persisted_validation_data_hash: - assumed_validation_data::ExpectedPersistedValidationDataHash, - } - pub mod check_validation_outputs { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Outputs = runtime_types::polkadot_primitives::v6::CandidateCommitments< - ::core::primitive::u32, - >; - pub mod output { - use super::runtime_types; - pub type Output = ::core::primitive::bool; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckValidationOutputs { - pub para_id: check_validation_outputs::ParaId, - pub outputs: check_validation_outputs::Outputs, - } - pub mod session_index_for_child { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = ::core::primitive::u32; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SessionIndexForChild {} - pub mod validation_code { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Assumption = - runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; - pub mod output { - use super::runtime_types; - pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode > ; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidationCode { - pub para_id: validation_code::ParaId, - pub assumption: validation_code::Assumption, - } - pub mod candidate_pending_availability { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub mod output { - use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::CommittedCandidateReceipt< - ::subxt::utils::H256, - >, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CandidatePendingAvailability { - pub para_id: candidate_pending_availability::ParaId, - } - pub mod candidate_events { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::CandidateEvent< - ::subxt::utils::H256, - >, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CandidateEvents {} - pub mod dmq_contents { - use super::runtime_types; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub mod output { - use super::runtime_types; - pub type Output = ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< - ::core::primitive::u32, - >, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DmqContents { - pub recipient: dmq_contents::Recipient, - } - pub mod inbound_hrmp_channels_contents { - use super::runtime_types; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub mod output { - use super::runtime_types; - pub type Output = ::subxt::utils::KeyedVec< - runtime_types::polkadot_parachain_primitives::primitives::Id, - ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< - ::core::primitive::u32, - >, - >, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct InboundHrmpChannelsContents { - pub recipient: inbound_hrmp_channels_contents::Recipient, - } - pub mod validation_code_by_hash { - use super::runtime_types; - pub type Hash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - pub mod output { - use super::runtime_types; - pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode > ; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidationCodeByHash { - pub hash: validation_code_by_hash::Hash, - } - pub mod on_chain_votes { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::ScrapedOnChainVotes< - ::subxt::utils::H256, - >, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OnChainVotes {} - pub mod session_info { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub mod output { - use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::SessionInfo, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SessionInfo { - pub index: session_info::Index, - } - pub mod submit_pvf_check_statement { - use super::runtime_types; - pub type Stmt = runtime_types::polkadot_primitives::v6::PvfCheckStatement; - pub type Signature = - runtime_types::polkadot_primitives::v6::validator_app::Signature; - pub mod output { - use super::runtime_types; - pub type Output = (); - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SubmitPvfCheckStatement { - pub stmt: submit_pvf_check_statement::Stmt, - pub signature: submit_pvf_check_statement::Signature, - } - pub mod pvfs_require_precheck { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = :: std :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PvfsRequirePrecheck {} - pub mod validation_code_hash { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Assumption = - runtime_types::polkadot_primitives::v6::OccupiedCoreAssumption; - pub mod output { - use super::runtime_types; - pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidationCodeHash { - pub para_id: validation_code_hash::ParaId, - pub assumption: validation_code_hash::Assumption, - } - pub mod disputes { + pub mod grandpa_authorities { use super::runtime_types; pub mod output { use super::runtime_types; pub type Output = ::std::vec::Vec<( - ::core::primitive::u32, - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v6::DisputeState< - ::core::primitive::u32, - >, + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, )>; } } @@ -1746,80 +971,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Disputes {} - pub mod session_executor_params { + pub struct GrandpaAuthorities {} + pub mod submit_report_equivocation_unsigned_extrinsic { use super::runtime_types; - pub type SessionIndex = ::core::primitive::u32; - pub mod output { - use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SessionExecutorParams { - pub session_index: session_executor_params::SessionIndex, - } - pub mod unapplied_slashes { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = ::std::vec::Vec<( + pub type EquivocationProof = + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, ::core::primitive::u32, - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_primitives::v6::slashing::PendingSlashes, - )>; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UnappliedSlashes {} - pub mod key_ownership_proof { - use super::runtime_types; - pub type ValidatorId = - runtime_types::polkadot_primitives::v6::validator_app::Public; - pub mod output { - use super::runtime_types; - pub type Output = :: core :: option :: Option < runtime_types :: polkadot_primitives :: v6 :: slashing :: OpaqueKeyOwnershipProof > ; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct KeyOwnershipProof { - pub validator_id: key_ownership_proof::ValidatorId, - } - pub mod submit_report_dispute_lost { - use super::runtime_types; - pub type DisputeProof = - runtime_types::polkadot_primitives::v6::slashing::DisputeProof; - pub type KeyOwnershipProof = - runtime_types::polkadot_primitives::v6::slashing::OpaqueKeyOwnershipProof; + >; + pub type KeyOwnerProof = + runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option<()>; @@ -1835,12 +996,248 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SubmitReportDisputeLost { - pub dispute_proof: submit_report_dispute_lost::DisputeProof, - pub key_ownership_proof: submit_report_dispute_lost::KeyOwnershipProof, + pub struct SubmitReportEquivocationUnsignedExtrinsic { + pub equivocation_proof: + submit_report_equivocation_unsigned_extrinsic::EquivocationProof, + pub key_owner_proof: + submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, } - pub mod minimum_backing_votes { + pub mod generate_key_ownership_proof { use super::runtime_types; + pub type SetId = ::core::primitive::u64; + pub type AuthorityId = runtime_types::sp_consensus_grandpa::app::Public; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option< + runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, + >; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GenerateKeyOwnershipProof { + pub set_id: generate_key_ownership_proof::SetId, + pub authority_id: generate_key_ownership_proof::AuthorityId, + } + pub mod current_set_id { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u64; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentSetId {} + } + } + pub mod nomination_pools_api { + use super::root_mod; + use super::runtime_types; + #[doc = " Runtime api for accessing information about nomination pools."] + pub struct NominationPoolsApi; + impl NominationPoolsApi { + #[doc = " Returns the pending rewards for the member that the AccountId was given for."] + pub fn pending_rewards( + &self, + who: types::pending_rewards::Who, + ) -> ::subxt::runtime_api::Payload< + types::PendingRewards, + types::pending_rewards::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "NominationPoolsApi", + "pending_rewards", + types::PendingRewards { who }, + [ + 78u8, 79u8, 88u8, 196u8, 232u8, 243u8, 82u8, 234u8, 115u8, 130u8, + 124u8, 165u8, 217u8, 64u8, 17u8, 48u8, 245u8, 181u8, 130u8, 120u8, + 217u8, 158u8, 146u8, 242u8, 41u8, 206u8, 90u8, 201u8, 244u8, 10u8, + 137u8, 19u8, + ], + ) + } + #[doc = " Returns the equivalent balance of `points` for a given pool."] + pub fn points_to_balance( + &self, + pool_id: types::points_to_balance::PoolId, + points: types::points_to_balance::Points, + ) -> ::subxt::runtime_api::Payload< + types::PointsToBalance, + types::points_to_balance::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "NominationPoolsApi", + "points_to_balance", + types::PointsToBalance { pool_id, points }, + [ + 106u8, 191u8, 150u8, 40u8, 231u8, 8u8, 82u8, 104u8, 109u8, 105u8, 94u8, + 109u8, 38u8, 165u8, 199u8, 81u8, 37u8, 181u8, 115u8, 106u8, 52u8, + 192u8, 56u8, 255u8, 145u8, 204u8, 12u8, 241u8, 120u8, 20u8, 188u8, + 12u8, + ], + ) + } + #[doc = " Returns the equivalent points of `new_funds` for a given pool."] + pub fn balance_to_points( + &self, + pool_id: types::balance_to_points::PoolId, + new_funds: types::balance_to_points::NewFunds, + ) -> ::subxt::runtime_api::Payload< + types::BalanceToPoints, + types::balance_to_points::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "NominationPoolsApi", + "balance_to_points", + types::BalanceToPoints { pool_id, new_funds }, + [ + 5u8, 213u8, 46u8, 194u8, 117u8, 119u8, 10u8, 139u8, 191u8, 76u8, 59u8, + 81u8, 159u8, 38u8, 144u8, 176u8, 63u8, 138u8, 233u8, 138u8, 236u8, + 208u8, 113u8, 230u8, 131u8, 75u8, 67u8, 204u8, 160u8, 100u8, 198u8, + 174u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod pending_rewards { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u128; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PendingRewards { + pub who: pending_rewards::Who, + } + pub mod points_to_balance { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Points = ::core::primitive::u128; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u128; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PointsToBalance { + pub pool_id: points_to_balance::PoolId, + pub points: points_to_balance::Points, + } + pub mod balance_to_points { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type NewFunds = ::core::primitive::u128; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u128; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BalanceToPoints { + pub pool_id: balance_to_points::PoolId, + pub new_funds: balance_to_points::NewFunds, + } + } + } + pub mod staking_api { + use super::root_mod; + use super::runtime_types; + pub struct StakingApi; + impl StakingApi { + #[doc = " Returns the nominations quota for a nominator with a given balance."] + pub fn nominations_quota( + &self, + balance: types::nominations_quota::Balance, + ) -> ::subxt::runtime_api::Payload< + types::NominationsQuota, + types::nominations_quota::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "StakingApi", + "nominations_quota", + types::NominationsQuota { balance }, + [ + 221u8, 113u8, 50u8, 150u8, 51u8, 181u8, 158u8, 235u8, 25u8, 160u8, + 135u8, 47u8, 196u8, 129u8, 90u8, 137u8, 157u8, 167u8, 212u8, 104u8, + 33u8, 48u8, 83u8, 106u8, 84u8, 220u8, 62u8, 85u8, 25u8, 151u8, 189u8, + 114u8, + ], + ) + } + #[doc = " Returns the page count of exposures for a validator in a given era."] + pub fn eras_stakers_page_count( + &self, + era: types::eras_stakers_page_count::Era, + account: types::eras_stakers_page_count::Account, + ) -> ::subxt::runtime_api::Payload< + types::ErasStakersPageCount, + types::eras_stakers_page_count::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "StakingApi", + "eras_stakers_page_count", + types::ErasStakersPageCount { era, account }, + [ + 114u8, 171u8, 127u8, 33u8, 13u8, 213u8, 6u8, 199u8, 215u8, 159u8, 46u8, + 160u8, 94u8, 201u8, 179u8, 147u8, 29u8, 91u8, 4u8, 27u8, 205u8, 164u8, + 133u8, 224u8, 111u8, 41u8, 136u8, 197u8, 153u8, 42u8, 254u8, 83u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod nominations_quota { + use super::runtime_types; + pub type Balance = ::core::primitive::u128; pub mod output { use super::runtime_types; pub type Output = ::core::primitive::u32; @@ -1856,17 +1253,259 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MinimumBackingVotes {} - pub mod para_backing_state { + pub struct NominationsQuota { + pub balance: nominations_quota::Balance, + } + pub mod eras_stakers_page_count { use super::runtime_types; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Era = ::core::primitive::u32; + pub type Account = ::subxt::utils::AccountId32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u32; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ErasStakersPageCount { + pub era: eras_stakers_page_count::Era, + pub account: eras_stakers_page_count::Account, + } + } + } + pub mod babe_api { + use super::root_mod; + use super::runtime_types; + #[doc = " API necessary for block authorship with BABE."] + pub struct BabeApi; + impl BabeApi { + #[doc = " Return the configuration for BABE."] + pub fn configuration( + &self, + ) -> ::subxt::runtime_api::Payload< + types::Configuration, + types::configuration::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "configuration", + types::Configuration {}, + [ + 8u8, 81u8, 234u8, 29u8, 30u8, 198u8, 76u8, 19u8, 188u8, 198u8, 127u8, + 33u8, 141u8, 95u8, 132u8, 106u8, 31u8, 41u8, 215u8, 54u8, 240u8, 65u8, + 59u8, 160u8, 188u8, 237u8, 10u8, 143u8, 250u8, 79u8, 45u8, 161u8, + ], + ) + } + #[doc = " Returns the slot that started the current epoch."] + pub fn current_epoch_start( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CurrentEpochStart, + types::current_epoch_start::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "current_epoch_start", + types::CurrentEpochStart {}, + [ + 122u8, 125u8, 246u8, 170u8, 27u8, 50u8, 128u8, 137u8, 228u8, 62u8, + 145u8, 64u8, 65u8, 119u8, 166u8, 237u8, 115u8, 92u8, 125u8, 124u8, + 11u8, 33u8, 96u8, 88u8, 88u8, 122u8, 141u8, 137u8, 58u8, 182u8, 148u8, + 170u8, + ], + ) + } + #[doc = " Returns information regarding the current epoch."] + pub fn current_epoch( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CurrentEpoch, + types::current_epoch::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "current_epoch", + types::CurrentEpoch {}, + [ + 73u8, 171u8, 149u8, 138u8, 230u8, 95u8, 241u8, 189u8, 207u8, 145u8, + 103u8, 76u8, 79u8, 44u8, 250u8, 68u8, 238u8, 4u8, 149u8, 234u8, 165u8, + 91u8, 89u8, 228u8, 132u8, 201u8, 203u8, 98u8, 209u8, 137u8, 8u8, 63u8, + ], + ) + } + #[doc = " Returns information regarding the next epoch (which was already"] + #[doc = " previously announced)."] + pub fn next_epoch( + &self, + ) -> ::subxt::runtime_api::Payload< + types::NextEpoch, + types::next_epoch::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "next_epoch", + types::NextEpoch {}, + [ + 191u8, 124u8, 183u8, 209u8, 73u8, 171u8, 164u8, 244u8, 68u8, 239u8, + 196u8, 54u8, 188u8, 85u8, 229u8, 175u8, 29u8, 89u8, 148u8, 108u8, + 208u8, 156u8, 62u8, 193u8, 167u8, 184u8, 251u8, 245u8, 123u8, 87u8, + 19u8, 225u8, + ], + ) + } + #[doc = " Generates a proof of key ownership for the given authority in the"] + #[doc = " current epoch. An example usage of this module is coupled with the"] + #[doc = " session historical module to prove that a given authority key is"] + #[doc = " tied to a given staking identity during a specific session. Proofs"] + #[doc = " of key ownership are necessary for submitting equivocation reports."] + #[doc = " NOTE: even though the API takes a `slot` as parameter the current"] + #[doc = " implementations ignores this parameter and instead relies on this"] + #[doc = " method being called at the correct block height, i.e. any point at"] + #[doc = " which the epoch for the given slot is live on-chain. Future"] + #[doc = " implementations will instead use indexed data through an offchain"] + #[doc = " worker, not requiring older states to be available."] + pub fn generate_key_ownership_proof( + &self, + slot: types::generate_key_ownership_proof::Slot, + authority_id: types::generate_key_ownership_proof::AuthorityId, + ) -> ::subxt::runtime_api::Payload< + types::GenerateKeyOwnershipProof, + types::generate_key_ownership_proof::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "generate_key_ownership_proof", + types::GenerateKeyOwnershipProof { slot, authority_id }, + [ + 235u8, 220u8, 75u8, 20u8, 175u8, 246u8, 127u8, 176u8, 225u8, 25u8, + 240u8, 252u8, 58u8, 254u8, 153u8, 133u8, 197u8, 168u8, 19u8, 231u8, + 234u8, 173u8, 58u8, 152u8, 212u8, 123u8, 13u8, 131u8, 84u8, 221u8, + 98u8, 46u8, + ], + ) + } + #[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"] + #[doc = " must provide the equivocation proof and a key ownership proof"] + #[doc = " (should be obtained using `generate_key_ownership_proof`). The"] + #[doc = " extrinsic will be unsigned and should only be accepted for local"] + #[doc = " authorship (not to be broadcast to the network). This method returns"] + #[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"] + #[doc = " reporting is disabled for the given runtime (i.e. this method is"] + #[doc = " hardcoded to return `None`). Only useful in an offchain context."] + pub fn submit_report_equivocation_unsigned_extrinsic( + &self, + equivocation_proof : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof, + key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, + ) -> ::subxt::runtime_api::Payload< + types::SubmitReportEquivocationUnsignedExtrinsic, + types::submit_report_equivocation_unsigned_extrinsic::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "submit_report_equivocation_unsigned_extrinsic", + types::SubmitReportEquivocationUnsignedExtrinsic { + equivocation_proof, + key_owner_proof, + }, + [ + 9u8, 163u8, 149u8, 31u8, 89u8, 32u8, 224u8, 116u8, 102u8, 46u8, 10u8, + 189u8, 35u8, 166u8, 111u8, 156u8, 204u8, 80u8, 35u8, 64u8, 223u8, 3u8, + 4u8, 0u8, 97u8, 118u8, 124u8, 142u8, 224u8, 160u8, 2u8, 50u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod configuration { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_babe::BabeConfiguration; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Configuration {} + pub mod current_epoch_start { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_slots::Slot; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentEpochStart {} + pub mod current_epoch { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_babe::Epoch; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentEpoch {} + pub mod next_epoch { + use super::runtime_types; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types::sp_consensus_babe::Epoch; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NextEpoch {} + pub mod generate_key_ownership_proof { + use super::runtime_types; + pub type Slot = runtime_types::sp_consensus_slots::Slot; + pub type AuthorityId = runtime_types::sp_consensus_babe::app::Public; pub mod output { use super::runtime_types; pub type Output = ::core::option::Option< - runtime_types::polkadot_primitives::v6::async_backing::BackingState< - ::subxt::utils::H256, - ::core::primitive::u32, - >, + runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, >; } } @@ -1880,14 +1519,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ParaBackingState { - pub _0: para_backing_state::Param0, + pub struct GenerateKeyOwnershipProof { + pub slot: generate_key_ownership_proof::Slot, + pub authority_id: generate_key_ownership_proof::AuthorityId, } - pub mod async_backing_params { + pub mod submit_report_equivocation_unsigned_extrinsic { use super::runtime_types; + pub type EquivocationProof = + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u32, + >, + runtime_types::sp_consensus_babe::app::Public, + >; + pub type KeyOwnerProof = + runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof; pub mod output { use super::runtime_types; - pub type Output = runtime_types :: polkadot_primitives :: v6 :: async_backing :: AsyncBackingParams ; + pub type Output = ::core::option::Option<()>; } } #[derive( @@ -1900,13 +1549,50 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AsyncBackingParams {} - pub mod disabled_validators { + pub struct SubmitReportEquivocationUnsignedExtrinsic { + pub equivocation_proof: + submit_report_equivocation_unsigned_extrinsic::EquivocationProof, + pub key_owner_proof: + submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, + } + } + } + pub mod authority_discovery_api { + use super::root_mod; + use super::runtime_types; + #[doc = " The authority discovery api."] + #[doc = ""] + #[doc = " This api is used by the `client/authority-discovery` module to retrieve identifiers"] + #[doc = " of the current and next authority set."] + pub struct AuthorityDiscoveryApi; + impl AuthorityDiscoveryApi { + #[doc = " Retrieve authority identifiers of the current and next authority set."] + pub fn authorities( + &self, + ) -> ::subxt::runtime_api::Payload< + types::Authorities, + types::authorities::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "AuthorityDiscoveryApi", + "authorities", + types::Authorities {}, + [ + 231u8, 109u8, 175u8, 33u8, 103u8, 6u8, 157u8, 241u8, 62u8, 92u8, 246u8, + 9u8, 109u8, 137u8, 233u8, 96u8, 103u8, 59u8, 201u8, 132u8, 102u8, 32u8, + 19u8, 183u8, 106u8, 146u8, 41u8, 172u8, 147u8, 55u8, 156u8, 77u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod authorities { use super::runtime_types; pub mod output { use super::runtime_types; pub type Output = - ::std::vec::Vec; + ::std::vec::Vec; } } #[derive( @@ -1919,7 +1605,1205 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DisabledValidators {} + pub struct Authorities {} + } + } + pub mod account_nonce_api { + use super::root_mod; + use super::runtime_types; + #[doc = " The API to query account nonce."] + pub struct AccountNonceApi; + impl AccountNonceApi { + #[doc = " Get current account nonce of given `AccountId`."] + pub fn account_nonce( + &self, + account: types::account_nonce::Account, + ) -> ::subxt::runtime_api::Payload< + types::AccountNonce, + types::account_nonce::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "AccountNonceApi", + "account_nonce", + types::AccountNonce { account }, + [ + 231u8, 82u8, 7u8, 227u8, 131u8, 2u8, 215u8, 252u8, 173u8, 82u8, 11u8, + 103u8, 200u8, 25u8, 114u8, 116u8, 79u8, 229u8, 152u8, 150u8, 236u8, + 37u8, 101u8, 26u8, 220u8, 146u8, 182u8, 101u8, 73u8, 55u8, 191u8, + 171u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod account_nonce { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u32; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountNonce { + pub account: account_nonce::Account, + } + } + } + pub mod assets_api { + use super::root_mod; + use super::runtime_types; + pub struct AssetsApi; + impl AssetsApi { + #[doc = " Returns the list of `AssetId`s and corresponding balance that an `AccountId` has."] + pub fn account_balances( + &self, + account: types::account_balances::Account, + ) -> ::subxt::runtime_api::Payload< + types::AccountBalances, + types::account_balances::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "AssetsApi", + "account_balances", + types::AccountBalances { account }, + [ + 15u8, 233u8, 252u8, 152u8, 14u8, 46u8, 220u8, 50u8, 101u8, 86u8, 163u8, + 194u8, 252u8, 112u8, 73u8, 122u8, 4u8, 128u8, 152u8, 174u8, 169u8, + 233u8, 54u8, 170u8, 34u8, 28u8, 194u8, 43u8, 87u8, 161u8, 251u8, 107u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod account_balances { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub mod output { + use super::runtime_types; + pub type Output = + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u128)>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountBalances { + pub account: account_balances::Account, + } + } + } + pub mod contracts_api { + use super::root_mod; + use super::runtime_types; + #[doc = " The API used to dry-run contract interactions."] + pub struct ContractsApi; + impl ContractsApi { + #[doc = " Perform a call from a specified account to a given contract."] + #[doc = ""] + #[doc = " See [`crate::Pallet::bare_call`]."] + pub fn call( + &self, + origin: types::call::Origin, + dest: types::call::Dest, + value: types::call::Value, + gas_limit: types::call::GasLimit, + storage_deposit_limit: types::call::StorageDepositLimit, + input_data: types::call::InputData, + ) -> ::subxt::runtime_api::Payload + { + ::subxt::runtime_api::Payload::new_static( + "ContractsApi", + "call", + types::Call { + origin, + dest, + value, + gas_limit, + storage_deposit_limit, + input_data, + }, + [ + 26u8, 50u8, 52u8, 115u8, 106u8, 107u8, 114u8, 59u8, 79u8, 86u8, 22u8, + 162u8, 133u8, 211u8, 172u8, 5u8, 121u8, 139u8, 113u8, 40u8, 59u8, + 194u8, 125u8, 110u8, 198u8, 47u8, 25u8, 248u8, 154u8, 173u8, 179u8, + 188u8, + ], + ) + } + #[doc = " Instantiate a new contract."] + #[doc = ""] + #[doc = " See `[crate::Pallet::bare_instantiate]`."] + pub fn instantiate( + &self, + origin: types::instantiate::Origin, + value: types::instantiate::Value, + gas_limit: types::instantiate::GasLimit, + storage_deposit_limit: types::instantiate::StorageDepositLimit, + code: types::instantiate::Code, + data: types::instantiate::Data, + salt: types::instantiate::Salt, + ) -> ::subxt::runtime_api::Payload< + types::Instantiate, + types::instantiate::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "ContractsApi", + "instantiate", + types::Instantiate { + origin, + value, + gas_limit, + storage_deposit_limit, + code, + data, + salt, + }, + [ + 202u8, 87u8, 131u8, 111u8, 111u8, 10u8, 196u8, 103u8, 89u8, 101u8, + 116u8, 85u8, 55u8, 18u8, 56u8, 218u8, 28u8, 223u8, 93u8, 3u8, 22u8, + 32u8, 217u8, 182u8, 29u8, 169u8, 28u8, 213u8, 39u8, 247u8, 13u8, 100u8, + ], + ) + } + #[doc = " Upload new code without instantiating a contract from it."] + #[doc = ""] + #[doc = " See [`crate::Pallet::bare_upload_code`]."] + pub fn upload_code( + &self, + origin: types::upload_code::Origin, + code: types::upload_code::Code, + storage_deposit_limit: types::upload_code::StorageDepositLimit, + determinism: types::upload_code::Determinism, + ) -> ::subxt::runtime_api::Payload< + types::UploadCode, + types::upload_code::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "ContractsApi", + "upload_code", + types::UploadCode { + origin, + code, + storage_deposit_limit, + determinism, + }, + [ + 231u8, 114u8, 110u8, 91u8, 142u8, 108u8, 124u8, 161u8, 13u8, 8u8, + 127u8, 134u8, 133u8, 152u8, 137u8, 67u8, 59u8, 78u8, 120u8, 75u8, + 172u8, 211u8, 23u8, 227u8, 90u8, 203u8, 204u8, 129u8, 142u8, 226u8, + 32u8, 213u8, + ], + ) + } + #[doc = " Query a given storage key in a given contract."] + #[doc = ""] + #[doc = " Returns `Ok(Some(Vec))` if the storage value exists under the given key in the"] + #[doc = " specified account and `Ok(None)` if it doesn't. If the account specified by the address"] + #[doc = " doesn't exist, or doesn't have a contract then `Err` is returned."] + pub fn get_storage( + &self, + address: types::get_storage::Address, + key: types::get_storage::Key, + ) -> ::subxt::runtime_api::Payload< + types::GetStorage, + types::get_storage::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "ContractsApi", + "get_storage", + types::GetStorage { address, key }, + [ + 49u8, 103u8, 100u8, 132u8, 135u8, 193u8, 145u8, 48u8, 154u8, 78u8, + 41u8, 43u8, 81u8, 109u8, 146u8, 199u8, 6u8, 111u8, 184u8, 102u8, 46u8, + 76u8, 174u8, 148u8, 106u8, 184u8, 131u8, 137u8, 194u8, 98u8, 179u8, + 45u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod call { + use super::runtime_types; + pub type Origin = ::subxt::utils::AccountId32; + pub type Dest = ::subxt::utils::AccountId32; + pub type Value = ::core::primitive::u128; + pub type GasLimit = + ::core::option::Option; + pub type StorageDepositLimit = ::core::option::Option<::core::primitive::u128>; + pub type InputData = ::std::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = + runtime_types::pallet_contracts::primitives::ContractResult< + ::core::result::Result< + runtime_types::pallet_contracts::primitives::ExecReturnValue, + runtime_types::sp_runtime::DispatchError, + >, + ::core::primitive::u128, + runtime_types::frame_system::EventRecord< + runtime_types::kitchensink_runtime::RuntimeEvent, + ::subxt::utils::H256, + >, + >; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Call { + pub origin: call::Origin, + pub dest: call::Dest, + pub value: call::Value, + pub gas_limit: call::GasLimit, + pub storage_deposit_limit: call::StorageDepositLimit, + pub input_data: call::InputData, + } + pub mod instantiate { + use super::runtime_types; + pub type Origin = ::subxt::utils::AccountId32; + pub type Value = ::core::primitive::u128; + pub type GasLimit = + ::core::option::Option; + pub type StorageDepositLimit = ::core::option::Option<::core::primitive::u128>; + pub type Code = + runtime_types::pallet_contracts::primitives::Code<::subxt::utils::H256>; + pub type Data = ::std::vec::Vec<::core::primitive::u8>; + pub type Salt = ::std::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = runtime_types :: pallet_contracts :: primitives :: ContractResult < :: core :: result :: Result < runtime_types :: pallet_contracts :: primitives :: InstantiateReturnValue < :: subxt :: utils :: AccountId32 > , runtime_types :: sp_runtime :: DispatchError > , :: core :: primitive :: u128 , runtime_types :: frame_system :: EventRecord < runtime_types :: kitchensink_runtime :: RuntimeEvent , :: subxt :: utils :: H256 > > ; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Instantiate { + pub origin: instantiate::Origin, + pub value: instantiate::Value, + pub gas_limit: instantiate::GasLimit, + pub storage_deposit_limit: instantiate::StorageDepositLimit, + pub code: instantiate::Code, + pub data: instantiate::Data, + pub salt: instantiate::Salt, + } + pub mod upload_code { + use super::runtime_types; + pub type Origin = ::subxt::utils::AccountId32; + pub type Code = ::std::vec::Vec<::core::primitive::u8>; + pub type StorageDepositLimit = ::core::option::Option<::core::primitive::u128>; + pub type Determinism = runtime_types::pallet_contracts::wasm::Determinism; + pub mod output { + use super::runtime_types; + pub type Output = ::core::result::Result< + runtime_types::pallet_contracts::primitives::CodeUploadReturnValue< + ::subxt::utils::H256, + ::core::primitive::u128, + >, + runtime_types::sp_runtime::DispatchError, + >; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UploadCode { + pub origin: upload_code::Origin, + pub code: upload_code::Code, + pub storage_deposit_limit: upload_code::StorageDepositLimit, + pub determinism: upload_code::Determinism, + } + pub mod get_storage { + use super::runtime_types; + pub type Address = ::subxt::utils::AccountId32; + pub type Key = ::std::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = ::core::result::Result< + ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, + runtime_types::pallet_contracts::primitives::ContractAccessError, + >; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GetStorage { + pub address: get_storage::Address, + pub key: get_storage::Key, + } + } + } + pub mod transaction_payment_api { + use super::root_mod; + use super::runtime_types; + pub struct TransactionPaymentApi; + impl TransactionPaymentApi { + pub fn query_info( + &self, + uxt: types::query_info::Uxt, + len: types::query_info::Len, + ) -> ::subxt::runtime_api::Payload< + types::QueryInfo, + types::query_info::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentApi", + "query_info", + types::QueryInfo { uxt, len }, + [ + 56u8, 30u8, 174u8, 34u8, 202u8, 24u8, 177u8, 189u8, 145u8, 36u8, 1u8, + 156u8, 98u8, 209u8, 178u8, 49u8, 198u8, 23u8, 150u8, 173u8, 35u8, + 205u8, 147u8, 129u8, 42u8, 22u8, 69u8, 3u8, 129u8, 8u8, 196u8, 139u8, + ], + ) + } + pub fn query_fee_details( + &self, + uxt: types::query_fee_details::Uxt, + len: types::query_fee_details::Len, + ) -> ::subxt::runtime_api::Payload< + types::QueryFeeDetails, + types::query_fee_details::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentApi", + "query_fee_details", + types::QueryFeeDetails { uxt, len }, + [ + 117u8, 60u8, 137u8, 159u8, 237u8, 252u8, 216u8, 238u8, 232u8, 1u8, + 100u8, 152u8, 26u8, 185u8, 145u8, 125u8, 68u8, 189u8, 4u8, 30u8, 125u8, + 7u8, 196u8, 153u8, 235u8, 51u8, 219u8, 108u8, 185u8, 254u8, 100u8, + 201u8, + ], + ) + } + pub fn query_weight_to_fee( + &self, + weight: types::query_weight_to_fee::Weight, + ) -> ::subxt::runtime_api::Payload< + types::QueryWeightToFee, + types::query_weight_to_fee::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentApi", + "query_weight_to_fee", + types::QueryWeightToFee { weight }, + [ + 206u8, 243u8, 189u8, 83u8, 231u8, 244u8, 247u8, 52u8, 126u8, 208u8, + 224u8, 5u8, 163u8, 108u8, 254u8, 114u8, 214u8, 156u8, 227u8, 217u8, + 211u8, 198u8, 121u8, 164u8, 110u8, 54u8, 181u8, 146u8, 50u8, 146u8, + 146u8, 23u8, + ], + ) + } + pub fn query_length_to_fee( + &self, + length: types::query_length_to_fee::Length, + ) -> ::subxt::runtime_api::Payload< + types::QueryLengthToFee, + types::query_length_to_fee::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentApi", + "query_length_to_fee", + types::QueryLengthToFee { length }, + [ + 92u8, 132u8, 29u8, 119u8, 66u8, 11u8, 196u8, 224u8, 129u8, 23u8, 249u8, + 12u8, 32u8, 28u8, 92u8, 50u8, 188u8, 101u8, 203u8, 229u8, 248u8, 216u8, + 130u8, 150u8, 212u8, 161u8, 81u8, 254u8, 116u8, 89u8, 162u8, 48u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod query_info { + use super::runtime_types; + pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: kitchensink_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_asset_conversion_tx_payment :: ChargeAssetTxPayment ,) > ; + pub type Len = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = + runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< + ::core::primitive::u128, + runtime_types::sp_weights::weight_v2::Weight, + >; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryInfo { + pub uxt: query_info::Uxt, + pub len: query_info::Len, + } + pub mod query_fee_details { + use super::runtime_types; + pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: kitchensink_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_asset_conversion_tx_payment :: ChargeAssetTxPayment ,) > ; + pub type Len = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = + runtime_types::pallet_transaction_payment::types::FeeDetails< + ::core::primitive::u128, + >; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryFeeDetails { + pub uxt: query_fee_details::Uxt, + pub len: query_fee_details::Len, + } + pub mod query_weight_to_fee { + use super::runtime_types; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u128; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryWeightToFee { + pub weight: query_weight_to_fee::Weight, + } + pub mod query_length_to_fee { + use super::runtime_types; + pub type Length = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u128; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryLengthToFee { + pub length: query_length_to_fee::Length, + } + } + } + pub mod asset_conversion_api { + use super::root_mod; + use super::runtime_types; + #[doc = " This runtime api allows people to query the size of the liquidity pools"] + #[doc = " and quote prices for swaps."] + pub struct AssetConversionApi; + impl AssetConversionApi { + #[doc = " Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`]."] + #[doc = ""] + #[doc = " Note that the price may have changed by the time the transaction is executed."] + #[doc = " (Use `amount_in_max` to control slippage.)"] + pub fn quote_price_tokens_for_exact_tokens( + &self, + asset1: types::quote_price_tokens_for_exact_tokens::Asset1, + asset2: types::quote_price_tokens_for_exact_tokens::Asset2, + amount: types::quote_price_tokens_for_exact_tokens::Amount, + include_fee: types::quote_price_tokens_for_exact_tokens::IncludeFee, + ) -> ::subxt::runtime_api::Payload< + types::QuotePriceTokensForExactTokens, + types::quote_price_tokens_for_exact_tokens::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "AssetConversionApi", + "quote_price_tokens_for_exact_tokens", + types::QuotePriceTokensForExactTokens { + asset1, + asset2, + amount, + include_fee, + }, + [ + 54u8, 53u8, 253u8, 142u8, 214u8, 35u8, 238u8, 5u8, 68u8, 255u8, 21u8, + 186u8, 196u8, 130u8, 81u8, 58u8, 175u8, 96u8, 61u8, 10u8, 201u8, 61u8, + 111u8, 162u8, 235u8, 77u8, 182u8, 36u8, 93u8, 147u8, 97u8, 194u8, + ], + ) + } + #[doc = " Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`]."] + #[doc = ""] + #[doc = " Note that the price may have changed by the time the transaction is executed."] + #[doc = " (Use `amount_out_min` to control slippage.)"] + pub fn quote_price_exact_tokens_for_tokens( + &self, + asset1: types::quote_price_exact_tokens_for_tokens::Asset1, + asset2: types::quote_price_exact_tokens_for_tokens::Asset2, + amount: types::quote_price_exact_tokens_for_tokens::Amount, + include_fee: types::quote_price_exact_tokens_for_tokens::IncludeFee, + ) -> ::subxt::runtime_api::Payload< + types::QuotePriceExactTokensForTokens, + types::quote_price_exact_tokens_for_tokens::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "AssetConversionApi", + "quote_price_exact_tokens_for_tokens", + types::QuotePriceExactTokensForTokens { + asset1, + asset2, + amount, + include_fee, + }, + [ + 224u8, 35u8, 57u8, 54u8, 125u8, 133u8, 136u8, 19u8, 114u8, 128u8, 77u8, + 121u8, 182u8, 16u8, 90u8, 160u8, 254u8, 234u8, 162u8, 126u8, 36u8, + 64u8, 44u8, 45u8, 252u8, 35u8, 96u8, 154u8, 115u8, 224u8, 99u8, 189u8, + ], + ) + } + #[doc = " Returns the size of the liquidity pool for the given asset pair."] + pub fn get_reserves( + &self, + asset1: types::get_reserves::Asset1, + asset2: types::get_reserves::Asset2, + ) -> ::subxt::runtime_api::Payload< + types::GetReserves, + types::get_reserves::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "AssetConversionApi", + "get_reserves", + types::GetReserves { asset1, asset2 }, + [ + 40u8, 109u8, 117u8, 6u8, 152u8, 37u8, 50u8, 147u8, 174u8, 110u8, 65u8, + 3u8, 121u8, 94u8, 24u8, 213u8, 34u8, 92u8, 10u8, 241u8, 115u8, 62u8, + 36u8, 200u8, 197u8, 206u8, 29u8, 180u8, 227u8, 217u8, 62u8, 201u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod quote_price_tokens_for_exact_tokens { + use super::runtime_types; + pub type Asset1 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Asset2 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Amount = ::core::primitive::u128; + pub type IncludeFee = ::core::primitive::bool; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<::core::primitive::u128>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QuotePriceTokensForExactTokens { + pub asset1: quote_price_tokens_for_exact_tokens::Asset1, + pub asset2: quote_price_tokens_for_exact_tokens::Asset2, + pub amount: quote_price_tokens_for_exact_tokens::Amount, + pub include_fee: quote_price_tokens_for_exact_tokens::IncludeFee, + } + pub mod quote_price_exact_tokens_for_tokens { + use super::runtime_types; + pub type Asset1 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Asset2 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Amount = ::core::primitive::u128; + pub type IncludeFee = ::core::primitive::bool; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<::core::primitive::u128>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QuotePriceExactTokensForTokens { + pub asset1: quote_price_exact_tokens_for_tokens::Asset1, + pub asset2: quote_price_exact_tokens_for_tokens::Asset2, + pub amount: quote_price_exact_tokens_for_tokens::Amount, + pub include_fee: quote_price_exact_tokens_for_tokens::IncludeFee, + } + pub mod get_reserves { + use super::runtime_types; + pub type Asset1 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Asset2 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<( + ::core::primitive::u128, + ::core::primitive::u128, + )>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GetReserves { + pub asset1: get_reserves::Asset1, + pub asset2: get_reserves::Asset2, + } + } + } + pub mod transaction_payment_call_api { + use super::root_mod; + use super::runtime_types; + pub struct TransactionPaymentCallApi; + impl TransactionPaymentCallApi { + #[doc = " Query information of a dispatch class, weight, and fee of a given encoded `Call`."] + pub fn query_call_info( + &self, + call: types::query_call_info::Call, + len: types::query_call_info::Len, + ) -> ::subxt::runtime_api::Payload< + types::QueryCallInfo, + types::query_call_info::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentCallApi", + "query_call_info", + types::QueryCallInfo { call, len }, + [ + 118u8, 97u8, 142u8, 195u8, 240u8, 49u8, 19u8, 34u8, 74u8, 229u8, 198u8, + 154u8, 108u8, 62u8, 116u8, 201u8, 77u8, 229u8, 165u8, 61u8, 4u8, 43u8, + 119u8, 12u8, 194u8, 221u8, 112u8, 185u8, 247u8, 183u8, 80u8, 35u8, + ], + ) + } + #[doc = " Query fee details of a given encoded `Call`."] + pub fn query_call_fee_details( + &self, + call: types::query_call_fee_details::Call, + len: types::query_call_fee_details::Len, + ) -> ::subxt::runtime_api::Payload< + types::QueryCallFeeDetails, + types::query_call_fee_details::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentCallApi", + "query_call_fee_details", + types::QueryCallFeeDetails { call, len }, + [ + 174u8, 121u8, 58u8, 61u8, 202u8, 247u8, 174u8, 128u8, 193u8, 35u8, + 253u8, 175u8, 36u8, 177u8, 187u8, 217u8, 114u8, 153u8, 225u8, 139u8, + 203u8, 164u8, 33u8, 221u8, 155u8, 195u8, 137u8, 57u8, 190u8, 165u8, + 110u8, 99u8, + ], + ) + } + #[doc = " Query the output of the current `WeightToFee` given some input."] + pub fn query_weight_to_fee( + &self, + weight: types::query_weight_to_fee::Weight, + ) -> ::subxt::runtime_api::Payload< + types::QueryWeightToFee, + types::query_weight_to_fee::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentCallApi", + "query_weight_to_fee", + types::QueryWeightToFee { weight }, + [ + 117u8, 91u8, 94u8, 22u8, 248u8, 212u8, 15u8, 23u8, 97u8, 116u8, 64u8, + 228u8, 83u8, 123u8, 87u8, 77u8, 97u8, 7u8, 98u8, 181u8, 6u8, 165u8, + 114u8, 141u8, 164u8, 113u8, 126u8, 88u8, 174u8, 171u8, 224u8, 35u8, + ], + ) + } + #[doc = " Query the output of the current `LengthToFee` given some input."] + pub fn query_length_to_fee( + &self, + length: types::query_length_to_fee::Length, + ) -> ::subxt::runtime_api::Payload< + types::QueryLengthToFee, + types::query_length_to_fee::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentCallApi", + "query_length_to_fee", + types::QueryLengthToFee { length }, + [ + 246u8, 40u8, 4u8, 160u8, 152u8, 94u8, 170u8, 53u8, 205u8, 122u8, 5u8, + 69u8, 70u8, 25u8, 128u8, 156u8, 119u8, 134u8, 116u8, 147u8, 14u8, + 164u8, 65u8, 140u8, 86u8, 13u8, 250u8, 218u8, 89u8, 95u8, 234u8, 228u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod query_call_info { + use super::runtime_types; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + pub type Len = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = + runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< + ::core::primitive::u128, + runtime_types::sp_weights::weight_v2::Weight, + >; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryCallInfo { + pub call: query_call_info::Call, + pub len: query_call_info::Len, + } + pub mod query_call_fee_details { + use super::runtime_types; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + pub type Len = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = + runtime_types::pallet_transaction_payment::types::FeeDetails< + ::core::primitive::u128, + >; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryCallFeeDetails { + pub call: query_call_fee_details::Call, + pub len: query_call_fee_details::Len, + } + pub mod query_weight_to_fee { + use super::runtime_types; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u128; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryWeightToFee { + pub weight: query_weight_to_fee::Weight, + } + pub mod query_length_to_fee { + use super::runtime_types; + pub type Length = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::primitive::u128; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryLengthToFee { + pub length: query_length_to_fee::Length, + } + } + } + pub mod nfts_api { + use super::root_mod; + use super::runtime_types; + pub struct NftsApi; + impl NftsApi { + pub fn owner( + &self, + collection: types::owner::Collection, + item: types::owner::Item, + ) -> ::subxt::runtime_api::Payload + { + ::subxt::runtime_api::Payload::new_static( + "NftsApi", + "owner", + types::Owner { collection, item }, + [ + 80u8, 227u8, 55u8, 143u8, 220u8, 48u8, 112u8, 70u8, 227u8, 250u8, + 124u8, 235u8, 40u8, 125u8, 47u8, 213u8, 181u8, 137u8, 125u8, 26u8, + 236u8, 148u8, 142u8, 44u8, 27u8, 89u8, 32u8, 184u8, 244u8, 248u8, + 217u8, 100u8, + ], + ) + } + pub fn collection_owner( + &self, + collection: types::collection_owner::Collection, + ) -> ::subxt::runtime_api::Payload< + types::CollectionOwner, + types::collection_owner::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "NftsApi", + "collection_owner", + types::CollectionOwner { collection }, + [ + 213u8, 152u8, 42u8, 243u8, 110u8, 150u8, 66u8, 14u8, 73u8, 124u8, 71u8, + 27u8, 241u8, 80u8, 218u8, 94u8, 189u8, 198u8, 173u8, 146u8, 210u8, + 195u8, 137u8, 174u8, 46u8, 44u8, 188u8, 97u8, 133u8, 26u8, 119u8, + 170u8, + ], + ) + } + pub fn attribute( + &self, + collection: types::attribute::Collection, + item: types::attribute::Item, + key: types::attribute::Key, + ) -> ::subxt::runtime_api::Payload + { + ::subxt::runtime_api::Payload::new_static( + "NftsApi", + "attribute", + types::Attribute { + collection, + item, + key, + }, + [ + 217u8, 137u8, 78u8, 152u8, 231u8, 128u8, 192u8, 253u8, 210u8, 125u8, + 169u8, 8u8, 119u8, 150u8, 103u8, 203u8, 188u8, 191u8, 147u8, 142u8, + 104u8, 150u8, 49u8, 1u8, 17u8, 59u8, 123u8, 146u8, 227u8, 235u8, 139u8, + 2u8, + ], + ) + } + pub fn custom_attribute( + &self, + account: types::custom_attribute::Account, + collection: types::custom_attribute::Collection, + item: types::custom_attribute::Item, + key: types::custom_attribute::Key, + ) -> ::subxt::runtime_api::Payload< + types::CustomAttribute, + types::custom_attribute::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "NftsApi", + "custom_attribute", + types::CustomAttribute { + account, + collection, + item, + key, + }, + [ + 118u8, 196u8, 244u8, 77u8, 150u8, 175u8, 251u8, 101u8, 144u8, 31u8, + 20u8, 200u8, 136u8, 93u8, 41u8, 113u8, 217u8, 57u8, 4u8, 72u8, 178u8, + 234u8, 52u8, 62u8, 9u8, 167u8, 52u8, 192u8, 116u8, 31u8, 14u8, 85u8, + ], + ) + } + pub fn system_attribute( + &self, + collection: types::system_attribute::Collection, + item: types::system_attribute::Item, + key: types::system_attribute::Key, + ) -> ::subxt::runtime_api::Payload< + types::SystemAttribute, + types::system_attribute::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "NftsApi", + "system_attribute", + types::SystemAttribute { + collection, + item, + key, + }, + [ + 170u8, 75u8, 224u8, 212u8, 0u8, 87u8, 207u8, 173u8, 173u8, 138u8, + 122u8, 40u8, 1u8, 51u8, 189u8, 93u8, 84u8, 204u8, 172u8, 164u8, 39u8, + 52u8, 127u8, 207u8, 158u8, 190u8, 74u8, 181u8, 183u8, 221u8, 126u8, + 166u8, + ], + ) + } + pub fn collection_attribute( + &self, + collection: types::collection_attribute::Collection, + key: types::collection_attribute::Key, + ) -> ::subxt::runtime_api::Payload< + types::CollectionAttribute, + types::collection_attribute::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "NftsApi", + "collection_attribute", + types::CollectionAttribute { collection, key }, + [ + 224u8, 87u8, 66u8, 215u8, 139u8, 115u8, 205u8, 4u8, 135u8, 32u8, 230u8, + 4u8, 203u8, 205u8, 79u8, 61u8, 104u8, 3u8, 42u8, 112u8, 254u8, 106u8, + 161u8, 13u8, 247u8, 19u8, 64u8, 157u8, 37u8, 101u8, 154u8, 32u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + pub mod owner { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<::subxt::utils::AccountId32>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Owner { + pub collection: owner::Collection, + pub item: owner::Item, + } + pub mod collection_owner { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub mod output { + use super::runtime_types; + pub type Output = ::core::option::Option<::subxt::utils::AccountId32>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CollectionOwner { + pub collection: collection_owner::Collection, + } + pub mod attribute { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Key = ::std::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = + ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Attribute { + pub collection: attribute::Collection, + pub item: attribute::Item, + pub key: attribute::Key, + } + pub mod custom_attribute { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Key = ::std::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = + ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CustomAttribute { + pub account: custom_attribute::Account, + pub collection: custom_attribute::Collection, + pub item: custom_attribute::Item, + pub key: custom_attribute::Key, + } + pub mod system_attribute { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::option::Option<::core::primitive::u32>; + pub type Key = ::std::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = + ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SystemAttribute { + pub collection: system_attribute::Collection, + pub item: system_attribute::Item, + pub key: system_attribute::Key, + } + pub mod collection_attribute { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Key = ::std::vec::Vec<::core::primitive::u8>; + pub mod output { + use super::runtime_types; + pub type Output = + ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>; + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CollectionAttribute { + pub collection: collection_attribute::Collection, + pub key: collection_attribute::Key, + } } } pub mod beefy_api { @@ -2382,139 +3266,112 @@ pub mod api { } } } - pub mod grandpa_api { + pub mod mixnet_api { use super::root_mod; use super::runtime_types; - #[doc = " APIs for integrating the GRANDPA finality gadget into runtimes."] - #[doc = " This should be implemented on the runtime side."] - #[doc = ""] - #[doc = " This is primarily used for negotiating authority-set changes for the"] - #[doc = " gadget. GRANDPA uses a signaling model of changing authority sets:"] - #[doc = " changes should be signaled with a delay of N blocks, and then automatically"] - #[doc = " applied in the runtime after those N blocks have passed."] - #[doc = ""] - #[doc = " The consensus protocol will coordinate the handoff externally."] - pub struct GrandpaApi; - impl GrandpaApi { - #[doc = " Get the current GRANDPA authorities and weights. This should not change except"] - #[doc = " for when changes are scheduled and the corresponding delay has passed."] + #[doc = " API to query the mixnet session status and mixnode sets, and to register mixnodes."] + pub struct MixnetApi; + impl MixnetApi { + #[doc = " Get the index and phase of the current session."] + pub fn session_status( + &self, + ) -> ::subxt::runtime_api::Payload< + types::SessionStatus, + types::session_status::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "MixnetApi", + "session_status", + types::SessionStatus {}, + [ + 151u8, 72u8, 55u8, 89u8, 132u8, 105u8, 60u8, 106u8, 7u8, 141u8, 192u8, + 127u8, 166u8, 223u8, 138u8, 52u8, 168u8, 64u8, 13u8, 54u8, 124u8, + 105u8, 195u8, 243u8, 207u8, 33u8, 140u8, 74u8, 16u8, 155u8, 82u8, + 121u8, + ], + ) + } + #[doc = " Get the mixnode set for the previous session."] + pub fn prev_mixnodes( + &self, + ) -> ::subxt::runtime_api::Payload< + types::PrevMixnodes, + types::prev_mixnodes::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "MixnetApi", + "prev_mixnodes", + types::PrevMixnodes {}, + [ + 161u8, 5u8, 240u8, 128u8, 254u8, 232u8, 251u8, 118u8, 251u8, 91u8, + 100u8, 96u8, 53u8, 42u8, 226u8, 54u8, 45u8, 87u8, 43u8, 101u8, 13u8, + 14u8, 10u8, 199u8, 38u8, 88u8, 219u8, 226u8, 179u8, 51u8, 59u8, 60u8, + ], + ) + } + #[doc = " Get the mixnode set for the current session."] + pub fn current_mixnodes( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CurrentMixnodes, + types::current_mixnodes::output::Output, + > { + ::subxt::runtime_api::Payload::new_static( + "MixnetApi", + "current_mixnodes", + types::CurrentMixnodes {}, + [ + 6u8, 95u8, 225u8, 152u8, 181u8, 41u8, 65u8, 181u8, 208u8, 20u8, 95u8, + 185u8, 136u8, 6u8, 206u8, 145u8, 116u8, 57u8, 116u8, 16u8, 176u8, + 159u8, 106u8, 60u8, 121u8, 253u8, 64u8, 110u8, 249u8, 36u8, 16u8, 56u8, + ], + ) + } + #[doc = " Try to register a mixnode for the next session."] #[doc = ""] - #[doc = " When called at block B, it will return the set of authorities that should be"] - #[doc = " used to finalize descendants of this block (B+1, B+2, ...). The block B itself"] - #[doc = " is finalized by the authorities from block B-1."] - pub fn grandpa_authorities( + #[doc = " If a registration extrinsic is submitted, `true` is returned. The caller should avoid"] + #[doc = " calling `maybe_register` again for a few blocks, to give the submitted extrinsic a"] + #[doc = " chance to get included."] + #[doc = ""] + #[doc = " With the above exception, `maybe_register` is designed to be called every block. Most"] + #[doc = " of the time it will not do anything, for example:"] + #[doc = ""] + #[doc = " - If it is not an appropriate time to submit a registration extrinsic."] + #[doc = " - If the local node has already registered a mixnode for the next session."] + #[doc = " - If the local node is not permitted to register a mixnode for the next session."] + #[doc = ""] + #[doc = " `session_index` should match `session_status().current_index`; if it does not, `false`"] + #[doc = " is returned immediately."] + pub fn maybe_register( &self, + session_index: types::maybe_register::SessionIndex, + mixnode: types::maybe_register::Mixnode, ) -> ::subxt::runtime_api::Payload< - types::GrandpaAuthorities, - types::grandpa_authorities::output::Output, + types::MaybeRegister, + types::maybe_register::output::Output, > { ::subxt::runtime_api::Payload::new_static( - "GrandpaApi", - "grandpa_authorities", - types::GrandpaAuthorities {}, - [ - 166u8, 76u8, 160u8, 101u8, 242u8, 145u8, 213u8, 10u8, 16u8, 130u8, - 230u8, 196u8, 125u8, 152u8, 92u8, 143u8, 119u8, 223u8, 140u8, 189u8, - 203u8, 95u8, 52u8, 105u8, 147u8, 107u8, 135u8, 228u8, 62u8, 178u8, - 128u8, 33u8, - ], - ) - } - #[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"] - #[doc = " must provide the equivocation proof and a key ownership proof"] - #[doc = " (should be obtained using `generate_key_ownership_proof`). The"] - #[doc = " extrinsic will be unsigned and should only be accepted for local"] - #[doc = " authorship (not to be broadcast to the network). This method returns"] - #[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"] - #[doc = " reporting is disabled for the given runtime (i.e. this method is"] - #[doc = " hardcoded to return `None`). Only useful in an offchain context."] - pub fn submit_report_equivocation_unsigned_extrinsic( - &self, - equivocation_proof : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof, - key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, - ) -> ::subxt::runtime_api::Payload< - types::SubmitReportEquivocationUnsignedExtrinsic, - types::submit_report_equivocation_unsigned_extrinsic::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "GrandpaApi", - "submit_report_equivocation_unsigned_extrinsic", - types::SubmitReportEquivocationUnsignedExtrinsic { - equivocation_proof, - key_owner_proof, + "MixnetApi", + "maybe_register", + types::MaybeRegister { + session_index, + mixnode, }, [ - 112u8, 94u8, 150u8, 250u8, 132u8, 127u8, 185u8, 24u8, 113u8, 62u8, - 28u8, 171u8, 83u8, 9u8, 41u8, 228u8, 92u8, 137u8, 29u8, 190u8, 214u8, - 232u8, 100u8, 66u8, 100u8, 168u8, 149u8, 122u8, 93u8, 17u8, 236u8, - 104u8, - ], - ) - } - #[doc = " Generates a proof of key ownership for the given authority in the"] - #[doc = " given set. An example usage of this module is coupled with the"] - #[doc = " session historical module to prove that a given authority key is"] - #[doc = " tied to a given staking identity during a specific session. Proofs"] - #[doc = " of key ownership are necessary for submitting equivocation reports."] - #[doc = " NOTE: even though the API takes a `set_id` as parameter the current"] - #[doc = " implementations ignore this parameter and instead rely on this"] - #[doc = " method being called at the correct block height, i.e. any point at"] - #[doc = " which the given set id is live on-chain. Future implementations will"] - #[doc = " instead use indexed data through an offchain worker, not requiring"] - #[doc = " older states to be available."] - pub fn generate_key_ownership_proof( - &self, - set_id: types::generate_key_ownership_proof::SetId, - authority_id: types::generate_key_ownership_proof::AuthorityId, - ) -> ::subxt::runtime_api::Payload< - types::GenerateKeyOwnershipProof, - types::generate_key_ownership_proof::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "GrandpaApi", - "generate_key_ownership_proof", - types::GenerateKeyOwnershipProof { - set_id, - authority_id, - }, - [ - 40u8, 126u8, 113u8, 27u8, 245u8, 45u8, 123u8, 138u8, 12u8, 3u8, 125u8, - 186u8, 151u8, 53u8, 186u8, 93u8, 13u8, 150u8, 163u8, 176u8, 206u8, - 89u8, 244u8, 127u8, 182u8, 85u8, 203u8, 41u8, 101u8, 183u8, 209u8, - 179u8, - ], - ) - } - #[doc = " Get current GRANDPA authority set id."] - pub fn current_set_id( - &self, - ) -> ::subxt::runtime_api::Payload< - types::CurrentSetId, - types::current_set_id::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "GrandpaApi", - "current_set_id", - types::CurrentSetId {}, - [ - 42u8, 230u8, 120u8, 211u8, 156u8, 245u8, 109u8, 86u8, 100u8, 146u8, - 234u8, 205u8, 41u8, 183u8, 109u8, 42u8, 17u8, 33u8, 156u8, 25u8, 139u8, - 84u8, 101u8, 75u8, 232u8, 198u8, 87u8, 136u8, 218u8, 233u8, 103u8, - 156u8, + 31u8, 209u8, 175u8, 148u8, 68u8, 157u8, 154u8, 231u8, 253u8, 171u8, + 30u8, 210u8, 114u8, 118u8, 123u8, 73u8, 213u8, 63u8, 31u8, 235u8, 96u8, + 203u8, 123u8, 50u8, 162u8, 158u8, 197u8, 209u8, 89u8, 79u8, 206u8, 2u8, ], ) } } pub mod types { use super::runtime_types; - pub mod grandpa_authorities { + pub mod session_status { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = ::std::vec::Vec<( - runtime_types::sp_consensus_grandpa::app::Public, - ::core::primitive::u64, - )>; + pub type Output = runtime_types::sp_mixnet::types::SessionStatus; } } #[derive( @@ -2527,45 +3384,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct GrandpaAuthorities {} - pub mod submit_report_equivocation_unsigned_extrinsic { + pub struct SessionStatus {} + pub mod prev_mixnodes { use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_grandpa::EquivocationProof< - ::subxt::utils::H256, - ::core::primitive::u32, - >; - pub type KeyOwnerProof = - runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof; pub mod output { use super::runtime_types; - pub type Output = ::core::option::Option<()>; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SubmitReportEquivocationUnsignedExtrinsic { - pub equivocation_proof: - submit_report_equivocation_unsigned_extrinsic::EquivocationProof, - pub key_owner_proof: - submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, - } - pub mod generate_key_ownership_proof { - use super::runtime_types; - pub type SetId = ::core::primitive::u64; - pub type AuthorityId = runtime_types::sp_consensus_grandpa::app::Public; - pub mod output { - use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, + pub type Output = ::core::result::Result< + ::std::vec::Vec, + runtime_types::sp_mixnet::types::MixnodesErr, >; } } @@ -2579,255 +3405,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct GenerateKeyOwnershipProof { - pub set_id: generate_key_ownership_proof::SetId, - pub authority_id: generate_key_ownership_proof::AuthorityId, - } - pub mod current_set_id { + pub struct PrevMixnodes {} + pub mod current_mixnodes { use super::runtime_types; pub mod output { use super::runtime_types; - pub type Output = ::core::primitive::u64; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CurrentSetId {} - } - } - pub mod babe_api { - use super::root_mod; - use super::runtime_types; - #[doc = " API necessary for block authorship with BABE."] - pub struct BabeApi; - impl BabeApi { - #[doc = " Return the configuration for BABE."] - pub fn configuration( - &self, - ) -> ::subxt::runtime_api::Payload< - types::Configuration, - types::configuration::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "BabeApi", - "configuration", - types::Configuration {}, - [ - 8u8, 81u8, 234u8, 29u8, 30u8, 198u8, 76u8, 19u8, 188u8, 198u8, 127u8, - 33u8, 141u8, 95u8, 132u8, 106u8, 31u8, 41u8, 215u8, 54u8, 240u8, 65u8, - 59u8, 160u8, 188u8, 237u8, 10u8, 143u8, 250u8, 79u8, 45u8, 161u8, - ], - ) - } - #[doc = " Returns the slot that started the current epoch."] - pub fn current_epoch_start( - &self, - ) -> ::subxt::runtime_api::Payload< - types::CurrentEpochStart, - types::current_epoch_start::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "BabeApi", - "current_epoch_start", - types::CurrentEpochStart {}, - [ - 122u8, 125u8, 246u8, 170u8, 27u8, 50u8, 128u8, 137u8, 228u8, 62u8, - 145u8, 64u8, 65u8, 119u8, 166u8, 237u8, 115u8, 92u8, 125u8, 124u8, - 11u8, 33u8, 96u8, 88u8, 88u8, 122u8, 141u8, 137u8, 58u8, 182u8, 148u8, - 170u8, - ], - ) - } - #[doc = " Returns information regarding the current epoch."] - pub fn current_epoch( - &self, - ) -> ::subxt::runtime_api::Payload< - types::CurrentEpoch, - types::current_epoch::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "BabeApi", - "current_epoch", - types::CurrentEpoch {}, - [ - 73u8, 171u8, 149u8, 138u8, 230u8, 95u8, 241u8, 189u8, 207u8, 145u8, - 103u8, 76u8, 79u8, 44u8, 250u8, 68u8, 238u8, 4u8, 149u8, 234u8, 165u8, - 91u8, 89u8, 228u8, 132u8, 201u8, 203u8, 98u8, 209u8, 137u8, 8u8, 63u8, - ], - ) - } - #[doc = " Returns information regarding the next epoch (which was already"] - #[doc = " previously announced)."] - pub fn next_epoch( - &self, - ) -> ::subxt::runtime_api::Payload< - types::NextEpoch, - types::next_epoch::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "BabeApi", - "next_epoch", - types::NextEpoch {}, - [ - 191u8, 124u8, 183u8, 209u8, 73u8, 171u8, 164u8, 244u8, 68u8, 239u8, - 196u8, 54u8, 188u8, 85u8, 229u8, 175u8, 29u8, 89u8, 148u8, 108u8, - 208u8, 156u8, 62u8, 193u8, 167u8, 184u8, 251u8, 245u8, 123u8, 87u8, - 19u8, 225u8, - ], - ) - } - #[doc = " Generates a proof of key ownership for the given authority in the"] - #[doc = " current epoch. An example usage of this module is coupled with the"] - #[doc = " session historical module to prove that a given authority key is"] - #[doc = " tied to a given staking identity during a specific session. Proofs"] - #[doc = " of key ownership are necessary for submitting equivocation reports."] - #[doc = " NOTE: even though the API takes a `slot` as parameter the current"] - #[doc = " implementations ignores this parameter and instead relies on this"] - #[doc = " method being called at the correct block height, i.e. any point at"] - #[doc = " which the epoch for the given slot is live on-chain. Future"] - #[doc = " implementations will instead use indexed data through an offchain"] - #[doc = " worker, not requiring older states to be available."] - pub fn generate_key_ownership_proof( - &self, - slot: types::generate_key_ownership_proof::Slot, - authority_id: types::generate_key_ownership_proof::AuthorityId, - ) -> ::subxt::runtime_api::Payload< - types::GenerateKeyOwnershipProof, - types::generate_key_ownership_proof::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "BabeApi", - "generate_key_ownership_proof", - types::GenerateKeyOwnershipProof { slot, authority_id }, - [ - 235u8, 220u8, 75u8, 20u8, 175u8, 246u8, 127u8, 176u8, 225u8, 25u8, - 240u8, 252u8, 58u8, 254u8, 153u8, 133u8, 197u8, 168u8, 19u8, 231u8, - 234u8, 173u8, 58u8, 152u8, 212u8, 123u8, 13u8, 131u8, 84u8, 221u8, - 98u8, 46u8, - ], - ) - } - #[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"] - #[doc = " must provide the equivocation proof and a key ownership proof"] - #[doc = " (should be obtained using `generate_key_ownership_proof`). The"] - #[doc = " extrinsic will be unsigned and should only be accepted for local"] - #[doc = " authorship (not to be broadcast to the network). This method returns"] - #[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"] - #[doc = " reporting is disabled for the given runtime (i.e. this method is"] - #[doc = " hardcoded to return `None`). Only useful in an offchain context."] - pub fn submit_report_equivocation_unsigned_extrinsic( - &self, - equivocation_proof : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof, - key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof, - ) -> ::subxt::runtime_api::Payload< - types::SubmitReportEquivocationUnsignedExtrinsic, - types::submit_report_equivocation_unsigned_extrinsic::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "BabeApi", - "submit_report_equivocation_unsigned_extrinsic", - types::SubmitReportEquivocationUnsignedExtrinsic { - equivocation_proof, - key_owner_proof, - }, - [ - 9u8, 163u8, 149u8, 31u8, 89u8, 32u8, 224u8, 116u8, 102u8, 46u8, 10u8, - 189u8, 35u8, 166u8, 111u8, 156u8, 204u8, 80u8, 35u8, 64u8, 223u8, 3u8, - 4u8, 0u8, 97u8, 118u8, 124u8, 142u8, 224u8, 160u8, 2u8, 50u8, - ], - ) - } - } - pub mod types { - use super::runtime_types; - pub mod configuration { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = runtime_types::sp_consensus_babe::BabeConfiguration; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Configuration {} - pub mod current_epoch_start { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = runtime_types::sp_consensus_slots::Slot; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CurrentEpochStart {} - pub mod current_epoch { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = runtime_types::sp_consensus_babe::Epoch; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CurrentEpoch {} - pub mod next_epoch { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = runtime_types::sp_consensus_babe::Epoch; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct NextEpoch {} - pub mod generate_key_ownership_proof { - use super::runtime_types; - pub type Slot = runtime_types::sp_consensus_slots::Slot; - pub type AuthorityId = runtime_types::sp_consensus_babe::app::Public; - pub mod output { - use super::runtime_types; - pub type Output = ::core::option::Option< - runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, + pub type Output = ::core::result::Result< + ::std::vec::Vec, + runtime_types::sp_mixnet::types::MixnodesErr, >; } } @@ -2841,24 +3426,14 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct GenerateKeyOwnershipProof { - pub slot: generate_key_ownership_proof::Slot, - pub authority_id: generate_key_ownership_proof::AuthorityId, - } - pub mod submit_report_equivocation_unsigned_extrinsic { + pub struct CurrentMixnodes {} + pub mod maybe_register { use super::runtime_types; - pub type EquivocationProof = - runtime_types::sp_consensus_slots::EquivocationProof< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - >, - runtime_types::sp_consensus_babe::app::Public, - >; - pub type KeyOwnerProof = - runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof; + pub type SessionIndex = ::core::primitive::u32; + pub type Mixnode = runtime_types::sp_mixnet::types::Mixnode; pub mod output { use super::runtime_types; - pub type Output = ::core::option::Option<()>; + pub type Output = ::core::primitive::bool; } } #[derive( @@ -2871,65 +3446,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SubmitReportEquivocationUnsignedExtrinsic { - pub equivocation_proof: - submit_report_equivocation_unsigned_extrinsic::EquivocationProof, - pub key_owner_proof: - submit_report_equivocation_unsigned_extrinsic::KeyOwnerProof, + pub struct MaybeRegister { + pub session_index: maybe_register::SessionIndex, + pub mixnode: maybe_register::Mixnode, } } } - pub mod authority_discovery_api { - use super::root_mod; - use super::runtime_types; - #[doc = " The authority discovery api."] - #[doc = ""] - #[doc = " This api is used by the `client/authority-discovery` module to retrieve identifiers"] - #[doc = " of the current and next authority set."] - pub struct AuthorityDiscoveryApi; - impl AuthorityDiscoveryApi { - #[doc = " Retrieve authority identifiers of the current and next authority set."] - pub fn authorities( - &self, - ) -> ::subxt::runtime_api::Payload< - types::Authorities, - types::authorities::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "AuthorityDiscoveryApi", - "authorities", - types::Authorities {}, - [ - 231u8, 109u8, 175u8, 33u8, 103u8, 6u8, 157u8, 241u8, 62u8, 92u8, 246u8, - 9u8, 109u8, 137u8, 233u8, 96u8, 103u8, 59u8, 201u8, 132u8, 102u8, 32u8, - 19u8, 183u8, 106u8, 146u8, 41u8, 172u8, 147u8, 55u8, 156u8, 77u8, - ], - ) - } - } - pub mod types { - use super::runtime_types; - pub mod authorities { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = - ::std::vec::Vec; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Authorities {} - } - } pub mod session_keys { use super::root_mod; use super::runtime_types; @@ -3035,327 +3557,6 @@ pub mod api { } } } - pub mod account_nonce_api { - use super::root_mod; - use super::runtime_types; - #[doc = " The API to query account nonce."] - pub struct AccountNonceApi; - impl AccountNonceApi { - #[doc = " Get current account nonce of given `AccountId`."] - pub fn account_nonce( - &self, - account: types::account_nonce::Account, - ) -> ::subxt::runtime_api::Payload< - types::AccountNonce, - types::account_nonce::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "AccountNonceApi", - "account_nonce", - types::AccountNonce { account }, - [ - 231u8, 82u8, 7u8, 227u8, 131u8, 2u8, 215u8, 252u8, 173u8, 82u8, 11u8, - 103u8, 200u8, 25u8, 114u8, 116u8, 79u8, 229u8, 152u8, 150u8, 236u8, - 37u8, 101u8, 26u8, 220u8, 146u8, 182u8, 101u8, 73u8, 55u8, 191u8, - 171u8, - ], - ) - } - } - pub mod types { - use super::runtime_types; - pub mod account_nonce { - use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub mod output { - use super::runtime_types; - pub type Output = ::core::primitive::u32; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountNonce { - pub account: account_nonce::Account, - } - } - } - pub mod transaction_payment_api { - use super::root_mod; - use super::runtime_types; - pub struct TransactionPaymentApi; - impl TransactionPaymentApi { - pub fn query_info( - &self, - uxt: types::query_info::Uxt, - len: types::query_info::Len, - ) -> ::subxt::runtime_api::Payload< - types::QueryInfo, - types::query_info::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "TransactionPaymentApi", - "query_info", - types::QueryInfo { uxt, len }, - [ - 56u8, 30u8, 174u8, 34u8, 202u8, 24u8, 177u8, 189u8, 145u8, 36u8, 1u8, - 156u8, 98u8, 209u8, 178u8, 49u8, 198u8, 23u8, 150u8, 173u8, 35u8, - 205u8, 147u8, 129u8, 42u8, 22u8, 69u8, 3u8, 129u8, 8u8, 196u8, 139u8, - ], - ) - } - pub fn query_fee_details( - &self, - uxt: types::query_fee_details::Uxt, - len: types::query_fee_details::Len, - ) -> ::subxt::runtime_api::Payload< - types::QueryFeeDetails, - types::query_fee_details::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "TransactionPaymentApi", - "query_fee_details", - types::QueryFeeDetails { uxt, len }, - [ - 117u8, 60u8, 137u8, 159u8, 237u8, 252u8, 216u8, 238u8, 232u8, 1u8, - 100u8, 152u8, 26u8, 185u8, 145u8, 125u8, 68u8, 189u8, 4u8, 30u8, 125u8, - 7u8, 196u8, 153u8, 235u8, 51u8, 219u8, 108u8, 185u8, 254u8, 100u8, - 201u8, - ], - ) - } - pub fn query_weight_to_fee( - &self, - weight: types::query_weight_to_fee::Weight, - ) -> ::subxt::runtime_api::Payload< - types::QueryWeightToFee, - types::query_weight_to_fee::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "TransactionPaymentApi", - "query_weight_to_fee", - types::QueryWeightToFee { weight }, - [ - 206u8, 243u8, 189u8, 83u8, 231u8, 244u8, 247u8, 52u8, 126u8, 208u8, - 224u8, 5u8, 163u8, 108u8, 254u8, 114u8, 214u8, 156u8, 227u8, 217u8, - 211u8, 198u8, 121u8, 164u8, 110u8, 54u8, 181u8, 146u8, 50u8, 146u8, - 146u8, 23u8, - ], - ) - } - pub fn query_length_to_fee( - &self, - length: types::query_length_to_fee::Length, - ) -> ::subxt::runtime_api::Payload< - types::QueryLengthToFee, - types::query_length_to_fee::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "TransactionPaymentApi", - "query_length_to_fee", - types::QueryLengthToFee { length }, - [ - 92u8, 132u8, 29u8, 119u8, 66u8, 11u8, 196u8, 224u8, 129u8, 23u8, 249u8, - 12u8, 32u8, 28u8, 92u8, 50u8, 188u8, 101u8, 203u8, 229u8, 248u8, 216u8, - 130u8, 150u8, 212u8, 161u8, 81u8, 254u8, 116u8, 89u8, 162u8, 48u8, - ], - ) - } - } - pub mod types { - use super::runtime_types; - pub mod query_info { - use super::runtime_types; - pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; - pub type Len = ::core::primitive::u32; - pub mod output { - use super::runtime_types; - pub type Output = - runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< - ::core::primitive::u128, - runtime_types::sp_weights::weight_v2::Weight, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryInfo { - pub uxt: query_info::Uxt, - pub len: query_info::Len, - } - pub mod query_fee_details { - use super::runtime_types; - pub type Uxt = :: subxt :: utils :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , () > , runtime_types :: rococo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > ; - pub type Len = ::core::primitive::u32; - pub mod output { - use super::runtime_types; - pub type Output = - runtime_types::pallet_transaction_payment::types::FeeDetails< - ::core::primitive::u128, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryFeeDetails { - pub uxt: query_fee_details::Uxt, - pub len: query_fee_details::Len, - } - pub mod query_weight_to_fee { - use super::runtime_types; - pub type Weight = runtime_types::sp_weights::weight_v2::Weight; - pub mod output { - use super::runtime_types; - pub type Output = ::core::primitive::u128; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryWeightToFee { - pub weight: query_weight_to_fee::Weight, - } - pub mod query_length_to_fee { - use super::runtime_types; - pub type Length = ::core::primitive::u32; - pub mod output { - use super::runtime_types; - pub type Output = ::core::primitive::u128; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryLengthToFee { - pub length: query_length_to_fee::Length, - } - } - } - pub mod beefy_mmr_api { - use super::root_mod; - use super::runtime_types; - #[doc = " API useful for BEEFY light clients."] - pub struct BeefyMmrApi; - impl BeefyMmrApi { - #[doc = " Return the currently active BEEFY authority set proof."] - pub fn authority_set_proof( - &self, - ) -> ::subxt::runtime_api::Payload< - types::AuthoritySetProof, - types::authority_set_proof::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "BeefyMmrApi", - "authority_set_proof", - types::AuthoritySetProof {}, - [ - 199u8, 220u8, 251u8, 219u8, 216u8, 5u8, 181u8, 172u8, 191u8, 209u8, - 123u8, 25u8, 151u8, 129u8, 166u8, 21u8, 107u8, 22u8, 74u8, 144u8, - 202u8, 6u8, 254u8, 197u8, 148u8, 227u8, 131u8, 244u8, 254u8, 193u8, - 212u8, 97u8, - ], - ) - } - #[doc = " Return the next/queued BEEFY authority set proof."] - pub fn next_authority_set_proof( - &self, - ) -> ::subxt::runtime_api::Payload< - types::NextAuthoritySetProof, - types::next_authority_set_proof::output::Output, - > { - ::subxt::runtime_api::Payload::new_static( - "BeefyMmrApi", - "next_authority_set_proof", - types::NextAuthoritySetProof {}, - [ - 66u8, 217u8, 48u8, 108u8, 211u8, 187u8, 61u8, 85u8, 210u8, 59u8, 128u8, - 159u8, 34u8, 151u8, 154u8, 140u8, 13u8, 244u8, 31u8, 216u8, 67u8, 67u8, - 171u8, 112u8, 51u8, 145u8, 4u8, 22u8, 252u8, 242u8, 192u8, 130u8, - ], - ) - } - } - pub mod types { - use super::runtime_types; - pub mod authority_set_proof { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< - ::subxt::utils::H256, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AuthoritySetProof {} - pub mod next_authority_set_proof { - use super::runtime_types; - pub mod output { - use super::runtime_types; - pub type Output = runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet< - ::subxt::utils::H256, - >; - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct NextAuthoritySetProof {} - } - } pub mod genesis_builder { use super::root_mod; use super::runtime_types; @@ -3464,6 +3665,9 @@ pub mod api { pub fn system(&self) -> system::constants::ConstantsApi { system::constants::ConstantsApi } + pub fn utility(&self) -> utility::constants::ConstantsApi { + utility::constants::ConstantsApi + } pub fn babe(&self) -> babe::constants::ConstantsApi { babe::constants::ConstantsApi } @@ -3479,32 +3683,40 @@ pub mod api { pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { transaction_payment::constants::ConstantsApi } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::constants::ConstantsApi { + election_provider_multi_phase::constants::ConstantsApi + } + pub fn staking(&self) -> staking::constants::ConstantsApi { + staking::constants::ConstantsApi + } pub fn beefy(&self) -> beefy::constants::ConstantsApi { beefy::constants::ConstantsApi } + pub fn democracy(&self) -> democracy::constants::ConstantsApi { + democracy::constants::ConstantsApi + } + pub fn council(&self) -> council::constants::ConstantsApi { + council::constants::ConstantsApi + } + pub fn technical_committee(&self) -> technical_committee::constants::ConstantsApi { + technical_committee::constants::ConstantsApi + } + pub fn elections(&self) -> elections::constants::ConstantsApi { + elections::constants::ConstantsApi + } pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { grandpa::constants::ConstantsApi } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { - im_online::constants::ConstantsApi - } pub fn treasury(&self) -> treasury::constants::ConstantsApi { treasury::constants::ConstantsApi } - pub fn conviction_voting(&self) -> conviction_voting::constants::ConstantsApi { - conviction_voting::constants::ConstantsApi + pub fn contracts(&self) -> contracts::constants::ConstantsApi { + contracts::constants::ConstantsApi } - pub fn referenda(&self) -> referenda::constants::ConstantsApi { - referenda::constants::ConstantsApi - } - pub fn fellowship_referenda(&self) -> fellowship_referenda::constants::ConstantsApi { - fellowship_referenda::constants::ConstantsApi - } - pub fn claims(&self) -> claims::constants::ConstantsApi { - claims::constants::ConstantsApi - } - pub fn utility(&self) -> utility::constants::ConstantsApi { - utility::constants::ConstantsApi + pub fn im_online(&self) -> im_online::constants::ConstantsApi { + im_online::constants::ConstantsApi } pub fn identity(&self) -> identity::constants::ConstantsApi { identity::constants::ConstantsApi @@ -3530,45 +3742,86 @@ pub mod api { pub fn bounties(&self) -> bounties::constants::ConstantsApi { bounties::constants::ConstantsApi } - pub fn child_bounties(&self) -> child_bounties::constants::ConstantsApi { - child_bounties::constants::ConstantsApi + pub fn tips(&self) -> tips::constants::ConstantsApi { + tips::constants::ConstantsApi + } + pub fn assets(&self) -> assets::constants::ConstantsApi { + assets::constants::ConstantsApi + } + pub fn pool_assets(&self) -> pool_assets::constants::ConstantsApi { + pool_assets::constants::ConstantsApi + } + pub fn lottery(&self) -> lottery::constants::ConstantsApi { + lottery::constants::ConstantsApi } pub fn nis(&self) -> nis::constants::ConstantsApi { nis::constants::ConstantsApi } - pub fn nis_counterpart_balances( - &self, - ) -> nis_counterpart_balances::constants::ConstantsApi { - nis_counterpart_balances::constants::ConstantsApi + pub fn uniques(&self) -> uniques::constants::ConstantsApi { + uniques::constants::ConstantsApi } - pub fn paras(&self) -> paras::constants::ConstantsApi { - paras::constants::ConstantsApi + pub fn nfts(&self) -> nfts::constants::ConstantsApi { + nfts::constants::ConstantsApi + } + pub fn nft_fractionalization(&self) -> nft_fractionalization::constants::ConstantsApi { + nft_fractionalization::constants::ConstantsApi + } + pub fn salary(&self) -> salary::constants::ConstantsApi { + salary::constants::ConstantsApi + } + pub fn core_fellowship(&self) -> core_fellowship::constants::ConstantsApi { + core_fellowship::constants::ConstantsApi + } + pub fn voter_list(&self) -> voter_list::constants::ConstantsApi { + voter_list::constants::ConstantsApi + } + pub fn state_trie_migration(&self) -> state_trie_migration::constants::ConstantsApi { + state_trie_migration::constants::ConstantsApi + } + pub fn child_bounties(&self) -> child_bounties::constants::ConstantsApi { + child_bounties::constants::ConstantsApi + } + pub fn referenda(&self) -> referenda::constants::ConstantsApi { + referenda::constants::ConstantsApi + } + pub fn conviction_voting(&self) -> conviction_voting::constants::ConstantsApi { + conviction_voting::constants::ConstantsApi + } + pub fn alliance_motion(&self) -> alliance_motion::constants::ConstantsApi { + alliance_motion::constants::ConstantsApi + } + pub fn alliance(&self) -> alliance::constants::ConstantsApi { + alliance::constants::ConstantsApi + } + pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { + nomination_pools::constants::ConstantsApi + } + pub fn ranked_polls(&self) -> ranked_polls::constants::ConstantsApi { + ranked_polls::constants::ConstantsApi + } + pub fn asset_conversion(&self) -> asset_conversion::constants::ConstantsApi { + asset_conversion::constants::ConstantsApi + } + pub fn fast_unstake(&self) -> fast_unstake::constants::ConstantsApi { + fast_unstake::constants::ConstantsApi } pub fn message_queue(&self) -> message_queue::constants::ConstantsApi { message_queue::constants::ConstantsApi } - pub fn on_demand_assignment_provider( - &self, - ) -> on_demand_assignment_provider::constants::ConstantsApi { - on_demand_assignment_provider::constants::ConstantsApi + pub fn tx_pause(&self) -> tx_pause::constants::ConstantsApi { + tx_pause::constants::ConstantsApi } - pub fn registrar(&self) -> registrar::constants::ConstantsApi { - registrar::constants::ConstantsApi + pub fn safe_mode(&self) -> safe_mode::constants::ConstantsApi { + safe_mode::constants::ConstantsApi } - pub fn slots(&self) -> slots::constants::ConstantsApi { - slots::constants::ConstantsApi + pub fn statement(&self) -> statement::constants::ConstantsApi { + statement::constants::ConstantsApi } - pub fn auctions(&self) -> auctions::constants::ConstantsApi { - auctions::constants::ConstantsApi + pub fn broker(&self) -> broker::constants::ConstantsApi { + broker::constants::ConstantsApi } - pub fn crowdloan(&self) -> crowdloan::constants::ConstantsApi { - crowdloan::constants::ConstantsApi - } - pub fn assigned_slots(&self) -> assigned_slots::constants::ConstantsApi { - assigned_slots::constants::ConstantsApi - } - pub fn state_trie_migration(&self) -> state_trie_migration::constants::ConstantsApi { - state_trie_migration::constants::ConstantsApi + pub fn mixnet(&self) -> mixnet::constants::ConstantsApi { + mixnet::constants::ConstantsApi } } pub struct StorageApi; @@ -3582,6 +3835,9 @@ pub mod api { pub fn timestamp(&self) -> timestamp::storage::StorageApi { timestamp::storage::StorageApi } + pub fn authorship(&self) -> authorship::storage::StorageApi { + authorship::storage::StorageApi + } pub fn indices(&self) -> indices::storage::StorageApi { indices::storage::StorageApi } @@ -3591,11 +3847,13 @@ pub mod api { pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { transaction_payment::storage::StorageApi } - pub fn authorship(&self) -> authorship::storage::StorageApi { - authorship::storage::StorageApi + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::storage::StorageApi { + election_provider_multi_phase::storage::StorageApi } - pub fn offences(&self) -> offences::storage::StorageApi { - offences::storage::StorageApi + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi } pub fn beefy(&self) -> beefy::storage::StorageApi { beefy::storage::StorageApi @@ -3609,32 +3867,52 @@ pub mod api { pub fn session(&self) -> session::storage::StorageApi { session::storage::StorageApi } + pub fn democracy(&self) -> democracy::storage::StorageApi { + democracy::storage::StorageApi + } + pub fn council(&self) -> council::storage::StorageApi { + council::storage::StorageApi + } + pub fn technical_committee(&self) -> technical_committee::storage::StorageApi { + technical_committee::storage::StorageApi + } + pub fn elections(&self) -> elections::storage::StorageApi { + elections::storage::StorageApi + } + pub fn technical_membership(&self) -> technical_membership::storage::StorageApi { + technical_membership::storage::StorageApi + } pub fn grandpa(&self) -> grandpa::storage::StorageApi { grandpa::storage::StorageApi } - pub fn im_online(&self) -> im_online::storage::StorageApi { - im_online::storage::StorageApi - } pub fn treasury(&self) -> treasury::storage::StorageApi { treasury::storage::StorageApi } - pub fn conviction_voting(&self) -> conviction_voting::storage::StorageApi { - conviction_voting::storage::StorageApi + pub fn asset_rate(&self) -> asset_rate::storage::StorageApi { + asset_rate::storage::StorageApi } - pub fn referenda(&self) -> referenda::storage::StorageApi { - referenda::storage::StorageApi + pub fn contracts(&self) -> contracts::storage::StorageApi { + contracts::storage::StorageApi } - pub fn fellowship_collective(&self) -> fellowship_collective::storage::StorageApi { - fellowship_collective::storage::StorageApi + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi } - pub fn fellowship_referenda(&self) -> fellowship_referenda::storage::StorageApi { - fellowship_referenda::storage::StorageApi + pub fn im_online(&self) -> im_online::storage::StorageApi { + im_online::storage::StorageApi } - pub fn whitelist(&self) -> whitelist::storage::StorageApi { - whitelist::storage::StorageApi + pub fn authority_discovery(&self) -> authority_discovery::storage::StorageApi { + authority_discovery::storage::StorageApi } - pub fn claims(&self) -> claims::storage::StorageApi { - claims::storage::StorageApi + pub fn offences(&self) -> offences::storage::StorageApi { + offences::storage::StorageApi + } + pub fn historical(&self) -> historical::storage::StorageApi { + historical::storage::StorageApi + } + pub fn randomness_collective_flip( + &self, + ) -> randomness_collective_flip::storage::StorageApi { + randomness_collective_flip::storage::StorageApi } pub fn identity(&self) -> identity::storage::StorageApi { identity::storage::StorageApi @@ -3651,106 +3929,113 @@ pub mod api { pub fn scheduler(&self) -> scheduler::storage::StorageApi { scheduler::storage::StorageApi } + pub fn glutton(&self) -> glutton::storage::StorageApi { + glutton::storage::StorageApi + } + pub fn preimage(&self) -> preimage::storage::StorageApi { + preimage::storage::StorageApi + } pub fn proxy(&self) -> proxy::storage::StorageApi { proxy::storage::StorageApi } pub fn multisig(&self) -> multisig::storage::StorageApi { multisig::storage::StorageApi } - pub fn preimage(&self) -> preimage::storage::StorageApi { - preimage::storage::StorageApi - } - pub fn asset_rate(&self) -> asset_rate::storage::StorageApi { - asset_rate::storage::StorageApi - } pub fn bounties(&self) -> bounties::storage::StorageApi { bounties::storage::StorageApi } - pub fn child_bounties(&self) -> child_bounties::storage::StorageApi { - child_bounties::storage::StorageApi + pub fn tips(&self) -> tips::storage::StorageApi { + tips::storage::StorageApi + } + pub fn assets(&self) -> assets::storage::StorageApi { + assets::storage::StorageApi + } + pub fn pool_assets(&self) -> pool_assets::storage::StorageApi { + pool_assets::storage::StorageApi + } + pub fn lottery(&self) -> lottery::storage::StorageApi { + lottery::storage::StorageApi } pub fn nis(&self) -> nis::storage::StorageApi { nis::storage::StorageApi } - pub fn nis_counterpart_balances(&self) -> nis_counterpart_balances::storage::StorageApi { - nis_counterpart_balances::storage::StorageApi + pub fn uniques(&self) -> uniques::storage::StorageApi { + uniques::storage::StorageApi } - pub fn configuration(&self) -> configuration::storage::StorageApi { - configuration::storage::StorageApi + pub fn nfts(&self) -> nfts::storage::StorageApi { + nfts::storage::StorageApi } - pub fn paras_shared(&self) -> paras_shared::storage::StorageApi { - paras_shared::storage::StorageApi + pub fn nft_fractionalization(&self) -> nft_fractionalization::storage::StorageApi { + nft_fractionalization::storage::StorageApi } - pub fn para_inclusion(&self) -> para_inclusion::storage::StorageApi { - para_inclusion::storage::StorageApi + pub fn salary(&self) -> salary::storage::StorageApi { + salary::storage::StorageApi } - pub fn para_inherent(&self) -> para_inherent::storage::StorageApi { - para_inherent::storage::StorageApi + pub fn core_fellowship(&self) -> core_fellowship::storage::StorageApi { + core_fellowship::storage::StorageApi } - pub fn para_scheduler(&self) -> para_scheduler::storage::StorageApi { - para_scheduler::storage::StorageApi + pub fn transaction_storage(&self) -> transaction_storage::storage::StorageApi { + transaction_storage::storage::StorageApi } - pub fn paras(&self) -> paras::storage::StorageApi { - paras::storage::StorageApi - } - pub fn initializer(&self) -> initializer::storage::StorageApi { - initializer::storage::StorageApi - } - pub fn dmp(&self) -> dmp::storage::StorageApi { - dmp::storage::StorageApi - } - pub fn hrmp(&self) -> hrmp::storage::StorageApi { - hrmp::storage::StorageApi - } - pub fn para_session_info(&self) -> para_session_info::storage::StorageApi { - para_session_info::storage::StorageApi - } - pub fn paras_disputes(&self) -> paras_disputes::storage::StorageApi { - paras_disputes::storage::StorageApi - } - pub fn paras_slashing(&self) -> paras_slashing::storage::StorageApi { - paras_slashing::storage::StorageApi - } - pub fn message_queue(&self) -> message_queue::storage::StorageApi { - message_queue::storage::StorageApi - } - pub fn para_assignment_provider(&self) -> para_assignment_provider::storage::StorageApi { - para_assignment_provider::storage::StorageApi - } - pub fn on_demand_assignment_provider( - &self, - ) -> on_demand_assignment_provider::storage::StorageApi { - on_demand_assignment_provider::storage::StorageApi - } - pub fn registrar(&self) -> registrar::storage::StorageApi { - registrar::storage::StorageApi - } - pub fn slots(&self) -> slots::storage::StorageApi { - slots::storage::StorageApi - } - pub fn auctions(&self) -> auctions::storage::StorageApi { - auctions::storage::StorageApi - } - pub fn crowdloan(&self) -> crowdloan::storage::StorageApi { - crowdloan::storage::StorageApi - } - pub fn xcm_pallet(&self) -> xcm_pallet::storage::StorageApi { - xcm_pallet::storage::StorageApi - } - pub fn assigned_slots(&self) -> assigned_slots::storage::StorageApi { - assigned_slots::storage::StorageApi - } - pub fn validator_manager(&self) -> validator_manager::storage::StorageApi { - validator_manager::storage::StorageApi + pub fn voter_list(&self) -> voter_list::storage::StorageApi { + voter_list::storage::StorageApi } pub fn state_trie_migration(&self) -> state_trie_migration::storage::StorageApi { state_trie_migration::storage::StorageApi } - pub fn root_testing(&self) -> root_testing::storage::StorageApi { - root_testing::storage::StorageApi + pub fn child_bounties(&self) -> child_bounties::storage::StorageApi { + child_bounties::storage::StorageApi } - pub fn sudo(&self) -> sudo::storage::StorageApi { - sudo::storage::StorageApi + pub fn referenda(&self) -> referenda::storage::StorageApi { + referenda::storage::StorageApi + } + pub fn conviction_voting(&self) -> conviction_voting::storage::StorageApi { + conviction_voting::storage::StorageApi + } + pub fn whitelist(&self) -> whitelist::storage::StorageApi { + whitelist::storage::StorageApi + } + pub fn alliance_motion(&self) -> alliance_motion::storage::StorageApi { + alliance_motion::storage::StorageApi + } + pub fn alliance(&self) -> alliance::storage::StorageApi { + alliance::storage::StorageApi + } + pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { + nomination_pools::storage::StorageApi + } + pub fn ranked_polls(&self) -> ranked_polls::storage::StorageApi { + ranked_polls::storage::StorageApi + } + pub fn ranked_collective(&self) -> ranked_collective::storage::StorageApi { + ranked_collective::storage::StorageApi + } + pub fn asset_conversion(&self) -> asset_conversion::storage::StorageApi { + asset_conversion::storage::StorageApi + } + pub fn fast_unstake(&self) -> fast_unstake::storage::StorageApi { + fast_unstake::storage::StorageApi + } + pub fn message_queue(&self) -> message_queue::storage::StorageApi { + message_queue::storage::StorageApi + } + pub fn pov(&self) -> pov::storage::StorageApi { + pov::storage::StorageApi + } + pub fn tx_pause(&self) -> tx_pause::storage::StorageApi { + tx_pause::storage::StorageApi + } + pub fn safe_mode(&self) -> safe_mode::storage::StorageApi { + safe_mode::storage::StorageApi + } + pub fn broker(&self) -> broker::storage::StorageApi { + broker::storage::StorageApi + } + pub fn tasks_example(&self) -> tasks_example::storage::StorageApi { + tasks_example::storage::StorageApi + } + pub fn mixnet(&self) -> mixnet::storage::StorageApi { + mixnet::storage::StorageApi } } pub struct TransactionApi; @@ -3758,6 +4043,9 @@ pub mod api { pub fn system(&self) -> system::calls::TransactionApi { system::calls::TransactionApi } + pub fn utility(&self) -> utility::calls::TransactionApi { + utility::calls::TransactionApi + } pub fn babe(&self) -> babe::calls::TransactionApi { babe::calls::TransactionApi } @@ -3770,41 +4058,52 @@ pub mod api { pub fn balances(&self) -> balances::calls::TransactionApi { balances::calls::TransactionApi } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::calls::TransactionApi { + election_provider_multi_phase::calls::TransactionApi + } + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } pub fn beefy(&self) -> beefy::calls::TransactionApi { beefy::calls::TransactionApi } pub fn session(&self) -> session::calls::TransactionApi { session::calls::TransactionApi } + pub fn democracy(&self) -> democracy::calls::TransactionApi { + democracy::calls::TransactionApi + } + pub fn council(&self) -> council::calls::TransactionApi { + council::calls::TransactionApi + } + pub fn technical_committee(&self) -> technical_committee::calls::TransactionApi { + technical_committee::calls::TransactionApi + } + pub fn elections(&self) -> elections::calls::TransactionApi { + elections::calls::TransactionApi + } + pub fn technical_membership(&self) -> technical_membership::calls::TransactionApi { + technical_membership::calls::TransactionApi + } pub fn grandpa(&self) -> grandpa::calls::TransactionApi { grandpa::calls::TransactionApi } - pub fn im_online(&self) -> im_online::calls::TransactionApi { - im_online::calls::TransactionApi - } pub fn treasury(&self) -> treasury::calls::TransactionApi { treasury::calls::TransactionApi } - pub fn conviction_voting(&self) -> conviction_voting::calls::TransactionApi { - conviction_voting::calls::TransactionApi + pub fn asset_rate(&self) -> asset_rate::calls::TransactionApi { + asset_rate::calls::TransactionApi } - pub fn referenda(&self) -> referenda::calls::TransactionApi { - referenda::calls::TransactionApi + pub fn contracts(&self) -> contracts::calls::TransactionApi { + contracts::calls::TransactionApi } - pub fn fellowship_collective(&self) -> fellowship_collective::calls::TransactionApi { - fellowship_collective::calls::TransactionApi + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi } - pub fn fellowship_referenda(&self) -> fellowship_referenda::calls::TransactionApi { - fellowship_referenda::calls::TransactionApi - } - pub fn whitelist(&self) -> whitelist::calls::TransactionApi { - whitelist::calls::TransactionApi - } - pub fn claims(&self) -> claims::calls::TransactionApi { - claims::calls::TransactionApi - } - pub fn utility(&self) -> utility::calls::TransactionApi { - utility::calls::TransactionApi + pub fn im_online(&self) -> im_online::calls::TransactionApi { + im_online::calls::TransactionApi } pub fn identity(&self) -> identity::calls::TransactionApi { identity::calls::TransactionApi @@ -3821,97 +4120,116 @@ pub mod api { pub fn scheduler(&self) -> scheduler::calls::TransactionApi { scheduler::calls::TransactionApi } + pub fn glutton(&self) -> glutton::calls::TransactionApi { + glutton::calls::TransactionApi + } + pub fn preimage(&self) -> preimage::calls::TransactionApi { + preimage::calls::TransactionApi + } pub fn proxy(&self) -> proxy::calls::TransactionApi { proxy::calls::TransactionApi } pub fn multisig(&self) -> multisig::calls::TransactionApi { multisig::calls::TransactionApi } - pub fn preimage(&self) -> preimage::calls::TransactionApi { - preimage::calls::TransactionApi - } - pub fn asset_rate(&self) -> asset_rate::calls::TransactionApi { - asset_rate::calls::TransactionApi - } pub fn bounties(&self) -> bounties::calls::TransactionApi { bounties::calls::TransactionApi } - pub fn child_bounties(&self) -> child_bounties::calls::TransactionApi { - child_bounties::calls::TransactionApi + pub fn tips(&self) -> tips::calls::TransactionApi { + tips::calls::TransactionApi + } + pub fn assets(&self) -> assets::calls::TransactionApi { + assets::calls::TransactionApi + } + pub fn pool_assets(&self) -> pool_assets::calls::TransactionApi { + pool_assets::calls::TransactionApi + } + pub fn lottery(&self) -> lottery::calls::TransactionApi { + lottery::calls::TransactionApi } pub fn nis(&self) -> nis::calls::TransactionApi { nis::calls::TransactionApi } - pub fn nis_counterpart_balances(&self) -> nis_counterpart_balances::calls::TransactionApi { - nis_counterpart_balances::calls::TransactionApi + pub fn uniques(&self) -> uniques::calls::TransactionApi { + uniques::calls::TransactionApi } - pub fn configuration(&self) -> configuration::calls::TransactionApi { - configuration::calls::TransactionApi + pub fn nfts(&self) -> nfts::calls::TransactionApi { + nfts::calls::TransactionApi } - pub fn paras_shared(&self) -> paras_shared::calls::TransactionApi { - paras_shared::calls::TransactionApi + pub fn nft_fractionalization(&self) -> nft_fractionalization::calls::TransactionApi { + nft_fractionalization::calls::TransactionApi } - pub fn para_inclusion(&self) -> para_inclusion::calls::TransactionApi { - para_inclusion::calls::TransactionApi + pub fn salary(&self) -> salary::calls::TransactionApi { + salary::calls::TransactionApi } - pub fn para_inherent(&self) -> para_inherent::calls::TransactionApi { - para_inherent::calls::TransactionApi + pub fn core_fellowship(&self) -> core_fellowship::calls::TransactionApi { + core_fellowship::calls::TransactionApi } - pub fn paras(&self) -> paras::calls::TransactionApi { - paras::calls::TransactionApi + pub fn transaction_storage(&self) -> transaction_storage::calls::TransactionApi { + transaction_storage::calls::TransactionApi } - pub fn initializer(&self) -> initializer::calls::TransactionApi { - initializer::calls::TransactionApi - } - pub fn hrmp(&self) -> hrmp::calls::TransactionApi { - hrmp::calls::TransactionApi - } - pub fn paras_disputes(&self) -> paras_disputes::calls::TransactionApi { - paras_disputes::calls::TransactionApi - } - pub fn paras_slashing(&self) -> paras_slashing::calls::TransactionApi { - paras_slashing::calls::TransactionApi - } - pub fn message_queue(&self) -> message_queue::calls::TransactionApi { - message_queue::calls::TransactionApi - } - pub fn on_demand_assignment_provider( - &self, - ) -> on_demand_assignment_provider::calls::TransactionApi { - on_demand_assignment_provider::calls::TransactionApi - } - pub fn registrar(&self) -> registrar::calls::TransactionApi { - registrar::calls::TransactionApi - } - pub fn slots(&self) -> slots::calls::TransactionApi { - slots::calls::TransactionApi - } - pub fn auctions(&self) -> auctions::calls::TransactionApi { - auctions::calls::TransactionApi - } - pub fn crowdloan(&self) -> crowdloan::calls::TransactionApi { - crowdloan::calls::TransactionApi - } - pub fn xcm_pallet(&self) -> xcm_pallet::calls::TransactionApi { - xcm_pallet::calls::TransactionApi - } - pub fn paras_sudo_wrapper(&self) -> paras_sudo_wrapper::calls::TransactionApi { - paras_sudo_wrapper::calls::TransactionApi - } - pub fn assigned_slots(&self) -> assigned_slots::calls::TransactionApi { - assigned_slots::calls::TransactionApi - } - pub fn validator_manager(&self) -> validator_manager::calls::TransactionApi { - validator_manager::calls::TransactionApi + pub fn voter_list(&self) -> voter_list::calls::TransactionApi { + voter_list::calls::TransactionApi } pub fn state_trie_migration(&self) -> state_trie_migration::calls::TransactionApi { state_trie_migration::calls::TransactionApi } + pub fn child_bounties(&self) -> child_bounties::calls::TransactionApi { + child_bounties::calls::TransactionApi + } + pub fn referenda(&self) -> referenda::calls::TransactionApi { + referenda::calls::TransactionApi + } + pub fn remark(&self) -> remark::calls::TransactionApi { + remark::calls::TransactionApi + } pub fn root_testing(&self) -> root_testing::calls::TransactionApi { root_testing::calls::TransactionApi } - pub fn sudo(&self) -> sudo::calls::TransactionApi { - sudo::calls::TransactionApi + pub fn conviction_voting(&self) -> conviction_voting::calls::TransactionApi { + conviction_voting::calls::TransactionApi + } + pub fn whitelist(&self) -> whitelist::calls::TransactionApi { + whitelist::calls::TransactionApi + } + pub fn alliance_motion(&self) -> alliance_motion::calls::TransactionApi { + alliance_motion::calls::TransactionApi + } + pub fn alliance(&self) -> alliance::calls::TransactionApi { + alliance::calls::TransactionApi + } + pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { + nomination_pools::calls::TransactionApi + } + pub fn ranked_polls(&self) -> ranked_polls::calls::TransactionApi { + ranked_polls::calls::TransactionApi + } + pub fn ranked_collective(&self) -> ranked_collective::calls::TransactionApi { + ranked_collective::calls::TransactionApi + } + pub fn asset_conversion(&self) -> asset_conversion::calls::TransactionApi { + asset_conversion::calls::TransactionApi + } + pub fn fast_unstake(&self) -> fast_unstake::calls::TransactionApi { + fast_unstake::calls::TransactionApi + } + pub fn message_queue(&self) -> message_queue::calls::TransactionApi { + message_queue::calls::TransactionApi + } + pub fn pov(&self) -> pov::calls::TransactionApi { + pov::calls::TransactionApi + } + pub fn tx_pause(&self) -> tx_pause::calls::TransactionApi { + tx_pause::calls::TransactionApi + } + pub fn safe_mode(&self) -> safe_mode::calls::TransactionApi { + safe_mode::calls::TransactionApi + } + pub fn broker(&self) -> broker::calls::TransactionApi { + broker::calls::TransactionApi + } + pub fn mixnet(&self) -> mixnet::calls::TransactionApi { + mixnet::calls::TransactionApi } } #[doc = r" check whether the metadata provided is aligned with this statically generated code."] @@ -3923,9 +4241,9 @@ pub mod api { .hash(); runtime_metadata_hash == [ - 217u8, 170u8, 7u8, 110u8, 237u8, 43u8, 49u8, 116u8, 87u8, 190u8, 100u8, 30u8, - 165u8, 15u8, 56u8, 52u8, 43u8, 64u8, 243u8, 187u8, 213u8, 229u8, 138u8, 173u8, - 223u8, 202u8, 95u8, 218u8, 85u8, 15u8, 85u8, 240u8, + 66u8, 220u8, 174u8, 0u8, 52u8, 89u8, 253u8, 247u8, 29u8, 34u8, 19u8, 165u8, 209u8, + 20u8, 195u8, 120u8, 157u8, 61u8, 154u8, 62u8, 209u8, 10u8, 125u8, 94u8, 244u8, + 149u8, 91u8, 22u8, 164u8, 255u8, 7u8, 188u8, ] } pub mod system { @@ -4122,6 +4440,72 @@ pub mod api { const PALLET: &'static str = "System"; const CALL: &'static str = "remark_with_event"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::authorize_upgrade`]."] + pub struct AuthorizeUpgrade { + pub code_hash: authorize_upgrade::CodeHash, + } + pub mod authorize_upgrade { + use super::runtime_types; + pub type CodeHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for AuthorizeUpgrade { + const PALLET: &'static str = "System"; + const CALL: &'static str = "authorize_upgrade"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::authorize_upgrade_without_checks`]."] + pub struct AuthorizeUpgradeWithoutChecks { + pub code_hash: authorize_upgrade_without_checks::CodeHash, + } + pub mod authorize_upgrade_without_checks { + use super::runtime_types; + pub type CodeHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for AuthorizeUpgradeWithoutChecks { + const PALLET: &'static str = "System"; + const CALL: &'static str = "authorize_upgrade_without_checks"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::apply_authorized_upgrade`]."] + pub struct ApplyAuthorizedUpgrade { + pub code: apply_authorized_upgrade::Code, + } + pub mod apply_authorized_upgrade { + use super::runtime_types; + pub type Code = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::blocks::StaticExtrinsic for ApplyAuthorizedUpgrade { + const PALLET: &'static str = "System"; + const CALL: &'static str = "apply_authorized_upgrade"; + } } pub struct TransactionApi; impl TransactionApi { @@ -4260,6 +4644,56 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::authorize_upgrade`]."] + pub fn authorize_upgrade( + &self, + code_hash: types::authorize_upgrade::CodeHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "authorize_upgrade", + types::AuthorizeUpgrade { code_hash }, + [ + 4u8, 14u8, 76u8, 107u8, 209u8, 129u8, 9u8, 39u8, 193u8, 17u8, 84u8, + 254u8, 170u8, 214u8, 24u8, 155u8, 29u8, 184u8, 249u8, 241u8, 109u8, + 58u8, 145u8, 131u8, 109u8, 63u8, 38u8, 165u8, 107u8, 215u8, 217u8, + 172u8, + ], + ) + } + #[doc = "See [`Pallet::authorize_upgrade_without_checks`]."] + pub fn authorize_upgrade_without_checks( + &self, + code_hash: types::authorize_upgrade_without_checks::CodeHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "authorize_upgrade_without_checks", + types::AuthorizeUpgradeWithoutChecks { code_hash }, + [ + 126u8, 126u8, 55u8, 26u8, 47u8, 55u8, 66u8, 8u8, 167u8, 18u8, 29u8, + 136u8, 146u8, 14u8, 189u8, 117u8, 16u8, 227u8, 162u8, 61u8, 149u8, + 197u8, 104u8, 184u8, 185u8, 161u8, 99u8, 154u8, 80u8, 125u8, 181u8, + 233u8, + ], + ) + } + #[doc = "See [`Pallet::apply_authorized_upgrade`]."] + pub fn apply_authorized_upgrade( + &self, + code: types::apply_authorized_upgrade::Code, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "apply_authorized_upgrade", + types::ApplyAuthorizedUpgrade { code }, + [ + 232u8, 107u8, 127u8, 38u8, 230u8, 29u8, 97u8, 4u8, 160u8, 191u8, 222u8, + 156u8, 245u8, 102u8, 196u8, 141u8, 44u8, 163u8, 98u8, 68u8, 125u8, + 32u8, 124u8, 101u8, 108u8, 93u8, 211u8, 52u8, 0u8, 231u8, 33u8, 227u8, + ], + ) + } } } #[doc = "Event for the System pallet."] @@ -4396,6 +4830,30 @@ pub mod api { const PALLET: &'static str = "System"; const EVENT: &'static str = "Remarked"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An upgrade was authorized."] + pub struct UpgradeAuthorized { + pub code_hash: upgrade_authorized::CodeHash, + pub check_version: upgrade_authorized::CheckVersion, + } + pub mod upgrade_authorized { + use super::runtime_types; + pub type CodeHash = ::subxt::utils::H256; + pub type CheckVersion = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for UpgradeAuthorized { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "UpgradeAuthorized"; + } } pub mod storage { use super::runtime_types; @@ -4449,7 +4907,7 @@ pub mod api { use super::runtime_types; pub type Events = ::std::vec::Vec< runtime_types::frame_system::EventRecord< - runtime_types::rococo_runtime::RuntimeEvent, + runtime_types::kitchensink_runtime::RuntimeEvent, ::subxt::utils::H256, >, >; @@ -4481,6 +4939,11 @@ pub mod api { use super::runtime_types; pub type ExecutionPhase = runtime_types::frame_system::Phase; } + pub mod authorized_upgrade { + use super::runtime_types; + pub type AuthorizedUpgrade = + runtime_types::frame_system::CodeUpgradeAuthorization; + } } pub struct StorageApi; impl StorageApi { @@ -4770,9 +5233,10 @@ pub mod api { "Events", vec![], [ - 203u8, 185u8, 202u8, 46u8, 60u8, 247u8, 185u8, 43u8, 177u8, 237u8, - 118u8, 62u8, 238u8, 44u8, 3u8, 32u8, 190u8, 212u8, 99u8, 224u8, 24u8, - 233u8, 250u8, 1u8, 75u8, 204u8, 1u8, 179u8, 199u8, 201u8, 61u8, 228u8, + 202u8, 199u8, 219u8, 114u8, 185u8, 115u8, 100u8, 219u8, 233u8, 23u8, + 165u8, 102u8, 36u8, 173u8, 195u8, 245u8, 21u8, 19u8, 200u8, 66u8, + 135u8, 86u8, 87u8, 136u8, 148u8, 237u8, 11u8, 41u8, 97u8, 113u8, 46u8, + 92u8, ], ) } @@ -4947,6 +5411,27 @@ pub mod api { ], ) } + #[doc = " `Some` if a code upgrade has been authorized."] + pub fn authorized_upgrade( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::authorized_upgrade::AuthorizedUpgrade, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "AuthorizedUpgrade", + vec![], + [ + 165u8, 97u8, 27u8, 138u8, 2u8, 28u8, 55u8, 92u8, 96u8, 96u8, 168u8, + 169u8, 55u8, 178u8, 44u8, 127u8, 58u8, 140u8, 206u8, 178u8, 1u8, 37u8, + 214u8, 213u8, 251u8, 123u8, 5u8, 111u8, 90u8, 148u8, 217u8, 135u8, + ], + ) + } } } pub mod constants { @@ -5049,6 +5534,421 @@ pub mod api { } } } + pub mod utility { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_utility::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_utility::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::batch`]."] + pub struct Batch { + pub calls: batch::Calls, + } + pub mod batch { + use super::runtime_types; + pub type Calls = + ::std::vec::Vec; + } + impl ::subxt::blocks::StaticExtrinsic for Batch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::as_derivative`]."] + pub struct AsDerivative { + pub index: as_derivative::Index, + pub call: ::std::boxed::Box, + } + pub mod as_derivative { + use super::runtime_types; + pub type Index = ::core::primitive::u16; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + } + impl ::subxt::blocks::StaticExtrinsic for AsDerivative { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "as_derivative"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::batch_all`]."] + pub struct BatchAll { + pub calls: batch_all::Calls, + } + pub mod batch_all { + use super::runtime_types; + pub type Calls = + ::std::vec::Vec; + } + impl ::subxt::blocks::StaticExtrinsic for BatchAll { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch_all"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::dispatch_as`]."] + pub struct DispatchAs { + pub as_origin: ::std::boxed::Box, + pub call: ::std::boxed::Box, + } + pub mod dispatch_as { + use super::runtime_types; + pub type AsOrigin = runtime_types::kitchensink_runtime::OriginCaller; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + } + impl ::subxt::blocks::StaticExtrinsic for DispatchAs { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "dispatch_as"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_batch`]."] + pub struct ForceBatch { + pub calls: force_batch::Calls, + } + pub mod force_batch { + use super::runtime_types; + pub type Calls = + ::std::vec::Vec; + } + impl ::subxt::blocks::StaticExtrinsic for ForceBatch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "force_batch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::with_weight`]."] + pub struct WithWeight { + pub call: ::std::boxed::Box, + pub weight: with_weight::Weight, + } + pub mod with_weight { + use super::runtime_types; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + pub type Weight = runtime_types::sp_weights::weight_v2::Weight; + } + impl ::subxt::blocks::StaticExtrinsic for WithWeight { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "with_weight"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::batch`]."] + pub fn batch( + &self, + calls: types::batch::Calls, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "batch", + types::Batch { calls }, + [ + 33u8, 62u8, 113u8, 134u8, 77u8, 252u8, 146u8, 105u8, 24u8, 226u8, 0u8, + 13u8, 182u8, 66u8, 21u8, 170u8, 224u8, 243u8, 148u8, 67u8, 3u8, 80u8, + 32u8, 9u8, 153u8, 60u8, 151u8, 188u8, 239u8, 191u8, 222u8, 3u8, + ], + ) + } + #[doc = "See [`Pallet::as_derivative`]."] + pub fn as_derivative( + &self, + index: types::as_derivative::Index, + call: types::as_derivative::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "as_derivative", + types::AsDerivative { + index, + call: ::std::boxed::Box::new(call), + }, + [ + 129u8, 237u8, 176u8, 76u8, 63u8, 74u8, 72u8, 197u8, 12u8, 27u8, 102u8, + 248u8, 23u8, 68u8, 212u8, 99u8, 213u8, 78u8, 140u8, 251u8, 51u8, 176u8, + 137u8, 103u8, 9u8, 155u8, 175u8, 131u8, 214u8, 98u8, 9u8, 228u8, + ], + ) + } + #[doc = "See [`Pallet::batch_all`]."] + pub fn batch_all( + &self, + calls: types::batch_all::Calls, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "batch_all", + types::BatchAll { calls }, + [ + 20u8, 37u8, 193u8, 37u8, 229u8, 61u8, 250u8, 180u8, 164u8, 86u8, 132u8, + 82u8, 148u8, 206u8, 19u8, 255u8, 219u8, 165u8, 148u8, 188u8, 204u8, + 252u8, 164u8, 198u8, 5u8, 122u8, 170u8, 211u8, 17u8, 81u8, 226u8, + 166u8, + ], + ) + } + #[doc = "See [`Pallet::dispatch_as`]."] + pub fn dispatch_as( + &self, + as_origin: types::dispatch_as::AsOrigin, + call: types::dispatch_as::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "dispatch_as", + types::DispatchAs { + as_origin: ::std::boxed::Box::new(as_origin), + call: ::std::boxed::Box::new(call), + }, + [ + 46u8, 66u8, 143u8, 20u8, 157u8, 198u8, 41u8, 245u8, 2u8, 125u8, 239u8, + 201u8, 93u8, 208u8, 82u8, 239u8, 176u8, 134u8, 43u8, 27u8, 108u8, + 239u8, 81u8, 213u8, 170u8, 225u8, 96u8, 87u8, 161u8, 134u8, 168u8, + 108u8, + ], + ) + } + #[doc = "See [`Pallet::force_batch`]."] + pub fn force_batch( + &self, + calls: types::force_batch::Calls, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "force_batch", + types::ForceBatch { calls }, + [ + 59u8, 221u8, 233u8, 218u8, 133u8, 208u8, 215u8, 181u8, 170u8, 164u8, + 232u8, 129u8, 95u8, 32u8, 51u8, 206u8, 153u8, 87u8, 205u8, 24u8, 100u8, + 193u8, 93u8, 47u8, 245u8, 30u8, 60u8, 57u8, 10u8, 184u8, 247u8, 97u8, + ], + ) + } + #[doc = "See [`Pallet::with_weight`]."] + pub fn with_weight( + &self, + call: types::with_weight::Call, + weight: types::with_weight::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "with_weight", + types::WithWeight { + call: ::std::boxed::Box::new(call), + weight, + }, + [ + 241u8, 79u8, 187u8, 133u8, 84u8, 9u8, 110u8, 115u8, 119u8, 54u8, 202u8, + 54u8, 78u8, 75u8, 58u8, 116u8, 243u8, 185u8, 180u8, 184u8, 201u8, + 228u8, 227u8, 35u8, 167u8, 95u8, 212u8, 130u8, 137u8, 134u8, 241u8, + 144u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_utility::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] + #[doc = "well as the error."] + pub struct BatchInterrupted { + pub index: batch_interrupted::Index, + pub error: batch_interrupted::Error, + } + pub mod batch_interrupted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Error = runtime_types::sp_runtime::DispatchError; + } + impl ::subxt::events::StaticEvent for BatchInterrupted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchInterrupted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Batch of dispatches completed fully with no error."] + pub struct BatchCompleted; + impl ::subxt::events::StaticEvent for BatchCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompleted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Batch of dispatches completed but has errors."] + pub struct BatchCompletedWithErrors; + impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompletedWithErrors"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single item within a Batch of dispatches has completed with no error."] + pub struct ItemCompleted; + impl ::subxt::events::StaticEvent for ItemCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemCompleted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single item within a Batch of dispatches has completed with error."] + pub struct ItemFailed { + pub error: item_failed::Error, + } + pub mod item_failed { + use super::runtime_types; + pub type Error = runtime_types::sp_runtime::DispatchError; + } + impl ::subxt::events::StaticEvent for ItemFailed { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A call was dispatched."] + pub struct DispatchedAs { + pub result: dispatched_as::Result, + } + pub mod dispatched_as { + use super::runtime_types; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for DispatchedAs { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "DispatchedAs"; + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The limit on the number of batched calls."] + pub fn batched_calls_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Utility", + "batched_calls_limit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } pub mod babe { use super::root_mod; use super::runtime_types; @@ -5581,9 +6481,10 @@ pub mod api { "Initialized", vec![], [ - 137u8, 31u8, 4u8, 130u8, 35u8, 232u8, 67u8, 108u8, 17u8, 123u8, 26u8, - 96u8, 238u8, 95u8, 138u8, 208u8, 163u8, 83u8, 218u8, 143u8, 8u8, 119u8, - 138u8, 130u8, 9u8, 194u8, 92u8, 40u8, 7u8, 89u8, 53u8, 237u8, + 169u8, 217u8, 237u8, 78u8, 186u8, 202u8, 206u8, 213u8, 54u8, 85u8, + 206u8, 166u8, 22u8, 138u8, 236u8, 60u8, 211u8, 169u8, 12u8, 183u8, + 23u8, 69u8, 194u8, 236u8, 112u8, 21u8, 62u8, 219u8, 92u8, 131u8, 134u8, + 145u8, ], ) } @@ -5955,6 +6856,45 @@ pub mod api { } } } + pub mod authorship { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod author { + use super::runtime_types; + pub type Author = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Author of current block."] + pub fn author( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::author::Author, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Authorship", + "Author", + vec![], + [ + 247u8, 192u8, 118u8, 227u8, 47u8, 20u8, 203u8, 199u8, 216u8, 87u8, + 220u8, 50u8, 166u8, 61u8, 168u8, 213u8, 253u8, 62u8, 202u8, 199u8, + 61u8, 192u8, 237u8, 53u8, 22u8, 148u8, 164u8, 245u8, 99u8, 24u8, 146u8, + 18u8, + ], + ) + } + } + } + } pub mod indices { use super::root_mod; use super::runtime_types; @@ -6007,7 +6947,10 @@ pub mod api { } pub mod transfer { use super::runtime_types; - pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type New = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Index = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for Transfer { @@ -6054,7 +6997,10 @@ pub mod api { } pub mod force_transfer { use super::runtime_types; - pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type New = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Index = ::core::primitive::u32; pub type Freeze = ::core::primitive::bool; } @@ -6114,10 +7060,10 @@ pub mod api { "transfer", types::Transfer { new, index }, [ - 121u8, 156u8, 174u8, 248u8, 72u8, 126u8, 99u8, 188u8, 71u8, 134u8, - 107u8, 147u8, 139u8, 139u8, 57u8, 198u8, 17u8, 241u8, 142u8, 64u8, - 16u8, 121u8, 249u8, 146u8, 24u8, 86u8, 78u8, 187u8, 38u8, 146u8, 96u8, - 218u8, + 253u8, 209u8, 123u8, 236u8, 91u8, 71u8, 183u8, 49u8, 84u8, 13u8, 130u8, + 208u8, 181u8, 218u8, 219u8, 178u8, 71u8, 76u8, 228u8, 249u8, 197u8, + 243u8, 136u8, 122u8, 150u8, 179u8, 249u8, 187u8, 150u8, 158u8, 201u8, + 134u8, ], ) } @@ -6147,10 +7093,10 @@ pub mod api { "force_transfer", types::ForceTransfer { new, index, freeze }, [ - 137u8, 128u8, 43u8, 135u8, 129u8, 169u8, 162u8, 136u8, 175u8, 31u8, - 161u8, 120u8, 15u8, 176u8, 203u8, 23u8, 107u8, 31u8, 135u8, 200u8, - 221u8, 186u8, 162u8, 229u8, 238u8, 82u8, 192u8, 122u8, 136u8, 6u8, - 176u8, 42u8, + 61u8, 7u8, 111u8, 227u8, 228u8, 62u8, 178u8, 225u8, 195u8, 185u8, + 243u8, 161u8, 156u8, 53u8, 165u8, 178u8, 238u8, 146u8, 66u8, 165u8, + 7u8, 137u8, 36u8, 7u8, 118u8, 84u8, 203u8, 3u8, 143u8, 95u8, 99u8, + 192u8, ], ) } @@ -6363,7 +7309,10 @@ pub mod api { } pub mod transfer_allow_death { use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { @@ -6389,8 +7338,14 @@ pub mod api { } pub mod force_transfer { use super::runtime_types; - pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Source = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { @@ -6415,7 +7370,10 @@ pub mod api { } pub mod transfer_keep_alive { use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Value = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { @@ -6439,7 +7397,10 @@ pub mod api { } pub mod transfer_all { use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type KeepAlive = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for TransferAll { @@ -6463,7 +7424,10 @@ pub mod api { } pub mod force_unreserve { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Amount = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { @@ -6510,7 +7474,10 @@ pub mod api { } pub mod force_set_balance { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type NewFree = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { @@ -6531,10 +7498,10 @@ pub mod api { "transfer_allow_death", types::TransferAllowDeath { dest, value }, [ - 51u8, 166u8, 195u8, 10u8, 139u8, 218u8, 55u8, 130u8, 6u8, 194u8, 35u8, - 140u8, 27u8, 205u8, 214u8, 222u8, 102u8, 43u8, 143u8, 145u8, 86u8, - 219u8, 210u8, 147u8, 13u8, 39u8, 51u8, 21u8, 237u8, 179u8, 132u8, - 130u8, + 24u8, 176u8, 111u8, 60u8, 103u8, 161u8, 139u8, 10u8, 197u8, 207u8, + 140u8, 212u8, 166u8, 50u8, 47u8, 150u8, 83u8, 180u8, 86u8, 4u8, 159u8, + 84u8, 195u8, 71u8, 204u8, 109u8, 233u8, 23u8, 10u8, 156u8, 209u8, + 153u8, ], ) } @@ -6554,9 +7521,9 @@ pub mod api { value, }, [ - 154u8, 93u8, 222u8, 27u8, 12u8, 248u8, 63u8, 213u8, 224u8, 86u8, 250u8, - 153u8, 249u8, 102u8, 83u8, 160u8, 79u8, 125u8, 105u8, 222u8, 77u8, - 180u8, 90u8, 105u8, 81u8, 217u8, 60u8, 25u8, 213u8, 51u8, 185u8, 96u8, + 23u8, 7u8, 44u8, 138u8, 180u8, 140u8, 216u8, 52u8, 198u8, 3u8, 225u8, + 116u8, 47u8, 26u8, 61u8, 163u8, 55u8, 64u8, 113u8, 250u8, 192u8, 16u8, + 228u8, 228u8, 85u8, 255u8, 100u8, 128u8, 245u8, 132u8, 84u8, 186u8, ], ) } @@ -6571,9 +7538,10 @@ pub mod api { "transfer_keep_alive", types::TransferKeepAlive { dest, value }, [ - 245u8, 14u8, 190u8, 193u8, 32u8, 210u8, 74u8, 92u8, 25u8, 182u8, 76u8, - 55u8, 247u8, 83u8, 114u8, 75u8, 143u8, 236u8, 117u8, 25u8, 54u8, 157u8, - 208u8, 207u8, 233u8, 89u8, 70u8, 161u8, 235u8, 242u8, 222u8, 59u8, + 196u8, 51u8, 121u8, 239u8, 68u8, 97u8, 174u8, 26u8, 21u8, 9u8, 111u8, + 224u8, 189u8, 35u8, 106u8, 30u8, 83u8, 184u8, 234u8, 174u8, 27u8, + 197u8, 40u8, 126u8, 197u8, 92u8, 201u8, 253u8, 144u8, 175u8, 8u8, + 215u8, ], ) } @@ -6588,9 +7556,10 @@ pub mod api { "transfer_all", types::TransferAll { dest, keep_alive }, [ - 105u8, 132u8, 49u8, 144u8, 195u8, 250u8, 34u8, 46u8, 213u8, 248u8, - 112u8, 188u8, 81u8, 228u8, 136u8, 18u8, 67u8, 172u8, 37u8, 38u8, 238u8, - 9u8, 34u8, 15u8, 67u8, 34u8, 148u8, 195u8, 223u8, 29u8, 154u8, 6u8, + 13u8, 46u8, 127u8, 231u8, 179u8, 61u8, 45u8, 188u8, 195u8, 251u8, + 146u8, 25u8, 138u8, 19u8, 52u8, 112u8, 148u8, 241u8, 134u8, 145u8, + 97u8, 9u8, 199u8, 172u8, 229u8, 239u8, 67u8, 185u8, 128u8, 36u8, 134u8, + 122u8, ], ) } @@ -6605,10 +7574,9 @@ pub mod api { "force_unreserve", types::ForceUnreserve { who, amount }, [ - 142u8, 151u8, 64u8, 205u8, 46u8, 64u8, 62u8, 122u8, 108u8, 49u8, 223u8, - 140u8, 120u8, 153u8, 35u8, 165u8, 187u8, 38u8, 157u8, 200u8, 123u8, - 199u8, 198u8, 168u8, 208u8, 159u8, 39u8, 134u8, 92u8, 103u8, 84u8, - 171u8, + 176u8, 105u8, 20u8, 111u8, 49u8, 253u8, 22u8, 225u8, 0u8, 81u8, 221u8, + 39u8, 62u8, 22u8, 95u8, 12u8, 21u8, 251u8, 179u8, 31u8, 104u8, 23u8, + 34u8, 216u8, 119u8, 205u8, 133u8, 196u8, 182u8, 113u8, 36u8, 93u8, ], ) } @@ -6639,9 +7607,10 @@ pub mod api { "force_set_balance", types::ForceSetBalance { who, new_free }, [ - 114u8, 229u8, 59u8, 204u8, 180u8, 83u8, 17u8, 4u8, 59u8, 4u8, 55u8, - 39u8, 151u8, 196u8, 124u8, 60u8, 209u8, 65u8, 193u8, 11u8, 44u8, 164u8, - 116u8, 93u8, 169u8, 30u8, 199u8, 165u8, 55u8, 231u8, 223u8, 43u8, + 101u8, 181u8, 86u8, 32u8, 61u8, 75u8, 34u8, 164u8, 142u8, 250u8, 7u8, + 218u8, 125u8, 57u8, 98u8, 222u8, 147u8, 26u8, 115u8, 185u8, 190u8, + 172u8, 12u8, 212u8, 132u8, 80u8, 253u8, 69u8, 26u8, 116u8, 197u8, + 203u8, ], ) } @@ -7201,7 +8170,7 @@ pub mod api { use super::runtime_types; pub type Holds = runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::IdAmount< - runtime_types::rococo_runtime::RuntimeHoldReason, + runtime_types::kitchensink_runtime::RuntimeHoldReason, ::core::primitive::u128, >, >; @@ -7211,7 +8180,7 @@ pub mod api { use super::runtime_types; pub type Freezes = runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_balances::types::IdAmount< - (), + runtime_types::kitchensink_runtime::RuntimeFreezeReason, ::core::primitive::u128, >, >; @@ -7461,10 +8430,9 @@ pub mod api { "Holds", vec![], [ - 72u8, 161u8, 107u8, 123u8, 240u8, 3u8, 198u8, 75u8, 46u8, 131u8, 122u8, - 141u8, 253u8, 141u8, 232u8, 192u8, 146u8, 54u8, 174u8, 162u8, 48u8, - 165u8, 226u8, 233u8, 12u8, 227u8, 23u8, 17u8, 237u8, 179u8, 193u8, - 166u8, + 180u8, 245u8, 74u8, 10u8, 30u8, 48u8, 19u8, 112u8, 147u8, 10u8, 172u8, + 151u8, 119u8, 121u8, 247u8, 147u8, 41u8, 157u8, 124u8, 49u8, 165u8, + 224u8, 38u8, 20u8, 60u8, 42u8, 173u8, 49u8, 71u8, 11u8, 124u8, 0u8, ], ) } @@ -7486,10 +8454,9 @@ pub mod api { _0.borrow(), )], [ - 72u8, 161u8, 107u8, 123u8, 240u8, 3u8, 198u8, 75u8, 46u8, 131u8, 122u8, - 141u8, 253u8, 141u8, 232u8, 192u8, 146u8, 54u8, 174u8, 162u8, 48u8, - 165u8, 226u8, 233u8, 12u8, 227u8, 23u8, 17u8, 237u8, 179u8, 193u8, - 166u8, + 180u8, 245u8, 74u8, 10u8, 30u8, 48u8, 19u8, 112u8, 147u8, 10u8, 172u8, + 151u8, 119u8, 121u8, 247u8, 147u8, 41u8, 157u8, 124u8, 49u8, 165u8, + 224u8, 38u8, 20u8, 60u8, 42u8, 173u8, 49u8, 71u8, 11u8, 124u8, 0u8, ], ) } @@ -7508,9 +8475,9 @@ pub mod api { "Freezes", vec![], [ - 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, - 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, - 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, + 251u8, 45u8, 163u8, 52u8, 152u8, 182u8, 26u8, 38u8, 143u8, 138u8, 9u8, + 249u8, 58u8, 31u8, 124u8, 3u8, 194u8, 161u8, 148u8, 250u8, 53u8, 166u8, + 90u8, 150u8, 37u8, 246u8, 110u8, 43u8, 114u8, 71u8, 180u8, 237u8, ], ) } @@ -7532,9 +8499,9 @@ pub mod api { _0.borrow(), )], [ - 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, - 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, - 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, + 251u8, 45u8, 163u8, 52u8, 152u8, 182u8, 26u8, 38u8, 143u8, 138u8, 9u8, + 249u8, 58u8, 31u8, 124u8, 3u8, 194u8, 161u8, 148u8, 250u8, 53u8, 166u8, + 90u8, 150u8, 37u8, 246u8, 110u8, 43u8, 114u8, 71u8, 180u8, 237u8, ], ) } @@ -7758,50 +8725,11 @@ pub mod api { } } } - pub mod authorship { + pub mod asset_tx_payment { use super::root_mod; use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod author { - use super::runtime_types; - pub type Author = ::subxt::utils::AccountId32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Author of current block."] - pub fn author( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::author::Author, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Authorship", - "Author", - vec![], - [ - 247u8, 192u8, 118u8, 227u8, 47u8, 20u8, 203u8, 199u8, 216u8, 87u8, - 220u8, 50u8, 166u8, 61u8, 168u8, 213u8, 253u8, 62u8, 202u8, 199u8, - 61u8, 192u8, 237u8, 53u8, 22u8, 148u8, 164u8, 245u8, 99u8, 24u8, 146u8, - 18u8, - ], - ) - } - } - } - } - pub mod offences { - use super::root_mod; - use super::runtime_types; - #[doc = "Events type."] - pub type Event = runtime_types::pallet_offences::pallet::Event; + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_asset_tx_payment::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -7814,171 +8742,4902 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] - #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] - #[doc = "\\[kind, timeslot\\]."] - pub struct Offence { - pub kind: offence::Kind, - pub timeslot: offence::Timeslot, + #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] + #[doc = "has been paid by `who` in an asset `asset_id`."] + pub struct AssetTxFeePaid { + pub who: asset_tx_fee_paid::Who, + pub actual_fee: asset_tx_fee_paid::ActualFee, + pub tip: asset_tx_fee_paid::Tip, + pub asset_id: asset_tx_fee_paid::AssetId, } - pub mod offence { + pub mod asset_tx_fee_paid { use super::runtime_types; - pub type Kind = [::core::primitive::u8; 16usize]; - pub type Timeslot = ::std::vec::Vec<::core::primitive::u8>; + pub type Who = ::subxt::utils::AccountId32; + pub type ActualFee = ::core::primitive::u128; + pub type Tip = ::core::primitive::u128; + pub type AssetId = ::core::option::Option<::core::primitive::u32>; } - impl ::subxt::events::StaticEvent for Offence { - const PALLET: &'static str = "Offences"; - const EVENT: &'static str = "Offence"; + impl ::subxt::events::StaticEvent for AssetTxFeePaid { + const PALLET: &'static str = "AssetTxPayment"; + const EVENT: &'static str = "AssetTxFeePaid"; + } + } + } + pub mod asset_conversion_tx_payment { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_asset_conversion_tx_payment::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] + #[doc = "has been paid by `who` in an asset `asset_id`."] + pub struct AssetTxFeePaid { + pub who: asset_tx_fee_paid::Who, + pub actual_fee: asset_tx_fee_paid::ActualFee, + pub tip: asset_tx_fee_paid::Tip, + pub asset_id: asset_tx_fee_paid::AssetId, + } + pub mod asset_tx_fee_paid { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type ActualFee = ::core::primitive::u128; + pub type Tip = ::core::primitive::u128; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AssetTxFeePaid { + const PALLET: &'static str = "AssetConversionTxPayment"; + const EVENT: &'static str = "AssetTxFeePaid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A swap of the refund in native currency back to asset failed."] + pub struct AssetRefundFailed { + pub native_amount_kept: asset_refund_failed::NativeAmountKept, + } + pub mod asset_refund_failed { + use super::runtime_types; + pub type NativeAmountKept = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for AssetRefundFailed { + const PALLET: &'static str = "AssetConversionTxPayment"; + const EVENT: &'static str = "AssetRefundFailed"; + } + } + } + pub mod election_provider_multi_phase { + use super::root_mod; + use super::runtime_types; + #[doc = "Error of the pallet that can be returned in response to dispatches."] + pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::submit_unsigned`]."] + pub struct SubmitUnsigned { + pub raw_solution: ::std::boxed::Box, + pub witness: submit_unsigned::Witness, + } + pub mod submit_unsigned { + use super::runtime_types; + pub type RawSolution = + runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::kitchensink_runtime::NposSolution16, + >; + pub type Witness = + runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize; + } + impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit_unsigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] + pub struct SetMinimumUntrustedScore { + pub maybe_next_score: set_minimum_untrusted_score::MaybeNextScore, + } + pub mod set_minimum_untrusted_score { + use super::runtime_types; + pub type MaybeNextScore = + ::core::option::Option; + } + impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_minimum_untrusted_score"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_emergency_election_result`]."] + pub struct SetEmergencyElectionResult { + pub supports: set_emergency_election_result::Supports, + } + pub mod set_emergency_election_result { + use super::runtime_types; + pub type Supports = ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, + )>; + } + impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_emergency_election_result"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::submit`]."] + pub struct Submit { + pub raw_solution: ::std::boxed::Box, + } + pub mod submit { + use super::runtime_types; + pub type RawSolution = + runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::kitchensink_runtime::NposSolution16, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::governance_fallback`]."] + pub struct GovernanceFallback { + pub maybe_max_voters: governance_fallback::MaybeMaxVoters, + pub maybe_max_targets: governance_fallback::MaybeMaxTargets, + } + pub mod governance_fallback { + use super::runtime_types; + pub type MaybeMaxVoters = ::core::option::Option<::core::primitive::u32>; + pub type MaybeMaxTargets = ::core::option::Option<::core::primitive::u32>; + } + impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "governance_fallback"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::submit_unsigned`]."] + pub fn submit_unsigned( + &self, + raw_solution: types::submit_unsigned::RawSolution, + witness: types::submit_unsigned::Witness, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "submit_unsigned", + types::SubmitUnsigned { + raw_solution: ::std::boxed::Box::new(raw_solution), + witness, + }, + [ + 237u8, 199u8, 102u8, 43u8, 103u8, 215u8, 145u8, 93u8, 71u8, 191u8, + 61u8, 144u8, 21u8, 58u8, 30u8, 51u8, 190u8, 219u8, 45u8, 66u8, 216u8, + 19u8, 62u8, 123u8, 197u8, 53u8, 249u8, 205u8, 117u8, 35u8, 32u8, 13u8, + ], + ) + } + #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] + pub fn set_minimum_untrusted_score( + &self, + maybe_next_score: types::set_minimum_untrusted_score::MaybeNextScore, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "set_minimum_untrusted_score", + types::SetMinimumUntrustedScore { maybe_next_score }, + [ + 244u8, 246u8, 85u8, 56u8, 156u8, 145u8, 169u8, 106u8, 16u8, 206u8, + 102u8, 216u8, 150u8, 180u8, 87u8, 153u8, 75u8, 177u8, 185u8, 55u8, + 37u8, 252u8, 214u8, 127u8, 103u8, 169u8, 198u8, 55u8, 10u8, 179u8, + 121u8, 219u8, + ], + ) + } + #[doc = "See [`Pallet::set_emergency_election_result`]."] + pub fn set_emergency_election_result( + &self, + supports: types::set_emergency_election_result::Supports, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "set_emergency_election_result", + types::SetEmergencyElectionResult { supports }, + [ + 6u8, 170u8, 228u8, 255u8, 61u8, 131u8, 137u8, 36u8, 135u8, 91u8, 183u8, + 94u8, 172u8, 205u8, 113u8, 69u8, 191u8, 255u8, 223u8, 152u8, 255u8, + 160u8, 205u8, 51u8, 140u8, 183u8, 101u8, 38u8, 185u8, 100u8, 92u8, + 87u8, + ], + ) + } + #[doc = "See [`Pallet::submit`]."] + pub fn submit( + &self, + raw_solution: types::submit::RawSolution, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "submit", + types::Submit { + raw_solution: ::std::boxed::Box::new(raw_solution), + }, + [ + 55u8, 254u8, 53u8, 183u8, 136u8, 93u8, 56u8, 39u8, 98u8, 132u8, 8u8, + 38u8, 92u8, 38u8, 199u8, 43u8, 20u8, 86u8, 114u8, 240u8, 31u8, 72u8, + 141u8, 39u8, 73u8, 116u8, 250u8, 249u8, 119u8, 36u8, 244u8, 137u8, + ], + ) + } + #[doc = "See [`Pallet::governance_fallback`]."] + pub fn governance_fallback( + &self, + maybe_max_voters: types::governance_fallback::MaybeMaxVoters, + maybe_max_targets: types::governance_fallback::MaybeMaxTargets, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "governance_fallback", + types::GovernanceFallback { + maybe_max_voters, + maybe_max_targets, + }, + [ + 10u8, 56u8, 159u8, 48u8, 56u8, 246u8, 49u8, 9u8, 132u8, 156u8, 86u8, + 162u8, 52u8, 58u8, 175u8, 128u8, 12u8, 185u8, 203u8, 18u8, 99u8, 219u8, + 75u8, 13u8, 52u8, 40u8, 125u8, 212u8, 84u8, 147u8, 222u8, 17u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_election_provider_multi_phase::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A solution was stored with the given compute."] + #[doc = ""] + #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] + #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] + #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] + #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] + #[doc = "room for this one."] + pub struct SolutionStored { + pub compute: solution_stored::Compute, + pub origin: solution_stored::Origin, + pub prev_ejected: solution_stored::PrevEjected, + } + pub mod solution_stored { + use super::runtime_types; + pub type Compute = + runtime_types::pallet_election_provider_multi_phase::ElectionCompute; + pub type Origin = ::core::option::Option<::subxt::utils::AccountId32>; + pub type PrevEjected = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for SolutionStored { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SolutionStored"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The election has been finalized, with the given computation and score."] + pub struct ElectionFinalized { + pub compute: election_finalized::Compute, + pub score: election_finalized::Score, + } + pub mod election_finalized { + use super::runtime_types; + pub type Compute = + runtime_types::pallet_election_provider_multi_phase::ElectionCompute; + pub type Score = runtime_types::sp_npos_elections::ElectionScore; + } + impl ::subxt::events::StaticEvent for ElectionFinalized { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFinalized"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An election failed."] + #[doc = ""] + #[doc = "Not much can be said about which computes failed in the process."] + pub struct ElectionFailed; + impl ::subxt::events::StaticEvent for ElectionFailed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has been rewarded for their signed submission being finalized."] + pub struct Rewarded { + pub account: rewarded::Account, + pub value: rewarded::Value, + } + pub mod rewarded { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Value = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Rewarded { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Rewarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has been slashed for submitting an invalid signed submission."] + pub struct Slashed { + pub account: slashed::Account, + pub value: slashed::Value, + } + pub mod slashed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Value = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "There was a phase transition in a given round."] + pub struct PhaseTransitioned { + pub from: phase_transitioned::From, + pub to: phase_transitioned::To, + pub round: phase_transitioned::Round, + } + pub mod phase_transitioned { + use super::runtime_types; + pub type From = runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >; + pub type To = runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >; + pub type Round = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for PhaseTransitioned { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "PhaseTransitioned"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod reports { + pub mod round { use super::runtime_types; - pub type Reports = runtime_types::sp_staking::offence::OffenceDetails< - ::subxt::utils::AccountId32, - (::subxt::utils::AccountId32, ()), - >; - pub type Param0 = ::subxt::utils::H256; + pub type Round = ::core::primitive::u32; } - pub mod concurrent_reports_index { + pub mod current_phase { use super::runtime_types; - pub type ConcurrentReportsIndex = ::std::vec::Vec<::subxt::utils::H256>; - pub type Param0 = [::core::primitive::u8; 16usize]; - pub type Param1 = [::core::primitive::u8]; + pub type CurrentPhase = + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >; + } + pub mod queued_solution { + use super::runtime_types; + pub type QueuedSolution = + runtime_types::pallet_election_provider_multi_phase::ReadySolution; + } + pub mod snapshot { + use super::runtime_types; + pub type Snapshot = + runtime_types::pallet_election_provider_multi_phase::RoundSnapshot< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ), + >; + } + pub mod desired_targets { + use super::runtime_types; + pub type DesiredTargets = ::core::primitive::u32; + } + pub mod snapshot_metadata { + use super::runtime_types; + pub type SnapshotMetadata = + runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize; + } + pub mod signed_submission_next_index { + use super::runtime_types; + pub type SignedSubmissionNextIndex = ::core::primitive::u32; + } + pub mod signed_submission_indices { + use super::runtime_types; + pub type SignedSubmissionIndices = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + runtime_types::sp_npos_elections::ElectionScore, + ::core::primitive::u32, + ::core::primitive::u32, + )>; + } + pub mod signed_submissions_map { + use super::runtime_types; + pub type SignedSubmissionsMap = runtime_types :: pallet_election_provider_multi_phase :: signed :: SignedSubmission < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: kitchensink_runtime :: NposSolution16 > ; + pub type Param0 = ::core::primitive::u32; + } + pub mod minimum_untrusted_score { + use super::runtime_types; + pub type MinimumUntrustedScore = + runtime_types::sp_npos_elections::ElectionScore; } } pub struct StorageApi; impl StorageApi { - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] - pub fn reports_iter( + #[doc = " Internal counter for the number of rounds."] + #[doc = ""] + #[doc = " This is useful for de-duplication of transactions submitted to the pool, and general"] + #[doc = " diagnostics of the pallet."] + #[doc = ""] + #[doc = " This is merely incremented once per every time that an upstream `elect` is called."] + pub fn round( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::reports::Reports, - (), - (), + types::round::Round, ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), > { ::subxt::storage::address::Address::new_static( - "Offences", - "Reports", + "ElectionProviderMultiPhase", + "Round", vec![], [ - 255u8, 234u8, 162u8, 48u8, 243u8, 210u8, 198u8, 231u8, 218u8, 142u8, - 167u8, 10u8, 232u8, 223u8, 239u8, 55u8, 74u8, 23u8, 14u8, 236u8, 88u8, - 231u8, 152u8, 55u8, 91u8, 120u8, 11u8, 96u8, 100u8, 113u8, 131u8, - 173u8, + 37u8, 2u8, 47u8, 240u8, 18u8, 213u8, 214u8, 74u8, 57u8, 4u8, 103u8, + 253u8, 45u8, 17u8, 123u8, 203u8, 173u8, 170u8, 234u8, 109u8, 139u8, + 143u8, 216u8, 3u8, 161u8, 5u8, 0u8, 106u8, 181u8, 214u8, 170u8, 105u8, ], ) } - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] - pub fn reports( + #[doc = " Current phase."] + pub fn current_phase( &self, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::reports::Reports, + types::current_phase::CurrentPhase, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "CurrentPhase", + vec![], + [ + 230u8, 7u8, 51u8, 158u8, 77u8, 36u8, 148u8, 175u8, 138u8, 205u8, 195u8, + 236u8, 66u8, 148u8, 0u8, 77u8, 160u8, 249u8, 128u8, 58u8, 189u8, 48u8, + 195u8, 198u8, 115u8, 251u8, 13u8, 206u8, 163u8, 180u8, 108u8, 10u8, + ], + ) + } + #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] + #[doc = ""] + #[doc = " Always sorted by score."] + pub fn queued_solution( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::queued_solution::QueuedSolution, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Offences", - "Reports", + "ElectionProviderMultiPhase", + "QueuedSolution", + vec![], + [ + 70u8, 22u8, 249u8, 41u8, 72u8, 8u8, 99u8, 121u8, 102u8, 128u8, 244u8, + 104u8, 208u8, 244u8, 113u8, 122u8, 118u8, 17u8, 65u8, 78u8, 165u8, + 129u8, 117u8, 36u8, 244u8, 243u8, 153u8, 87u8, 46u8, 116u8, 103u8, + 43u8, + ], + ) + } + #[doc = " Snapshot data of the round."] + #[doc = ""] + #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] + #[doc = " Note: This storage type must only be mutated through [`SnapshotWrapper`]."] + pub fn snapshot( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::snapshot::Snapshot, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "Snapshot", + vec![], + [ + 103u8, 204u8, 76u8, 156u8, 154u8, 95u8, 115u8, 109u8, 135u8, 17u8, 9u8, + 137u8, 3u8, 184u8, 111u8, 198u8, 216u8, 3u8, 78u8, 115u8, 101u8, 235u8, + 52u8, 235u8, 245u8, 58u8, 191u8, 144u8, 61u8, 204u8, 159u8, 55u8, + ], + ) + } + #[doc = " Desired number of targets to elect for this round."] + #[doc = ""] + #[doc = " Only exists when [`Snapshot`] is present."] + #[doc = " Note: This storage type must only be mutated through [`SnapshotWrapper`]."] + pub fn desired_targets( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::desired_targets::DesiredTargets, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "DesiredTargets", + vec![], + [ + 67u8, 241u8, 33u8, 113u8, 62u8, 173u8, 233u8, 76u8, 99u8, 12u8, 61u8, + 237u8, 21u8, 252u8, 39u8, 37u8, 86u8, 167u8, 173u8, 53u8, 238u8, 172u8, + 97u8, 59u8, 27u8, 164u8, 163u8, 76u8, 140u8, 37u8, 159u8, 250u8, + ], + ) + } + #[doc = " The metadata of the [`RoundSnapshot`]"] + #[doc = ""] + #[doc = " Only exists when [`Snapshot`] is present."] + #[doc = " Note: This storage type must only be mutated through [`SnapshotWrapper`]."] + pub fn snapshot_metadata( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::snapshot_metadata::SnapshotMetadata, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SnapshotMetadata", + vec![], + [ + 48u8, 121u8, 12u8, 130u8, 174u8, 100u8, 114u8, 183u8, 83u8, 63u8, 44u8, + 147u8, 242u8, 223u8, 22u8, 107u8, 175u8, 182u8, 178u8, 254u8, 12u8, + 189u8, 37u8, 117u8, 95u8, 21u8, 19u8, 167u8, 56u8, 205u8, 49u8, 100u8, + ], + ) + } + #[doc = " The next index to be assigned to an incoming signed submission."] + #[doc = ""] + #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] + #[doc = " submission for the duration of the election. On election finalization, the next index is"] + #[doc = " reset to 0."] + #[doc = ""] + #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] + #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] + #[doc = " because iteration is slow. Instead, we store the value here."] + pub fn signed_submission_next_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::signed_submission_next_index::SignedSubmissionNextIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionNextIndex", + vec![], + [ + 188u8, 126u8, 77u8, 166u8, 42u8, 81u8, 12u8, 239u8, 195u8, 16u8, 132u8, + 178u8, 217u8, 158u8, 28u8, 19u8, 201u8, 148u8, 47u8, 105u8, 178u8, + 115u8, 17u8, 78u8, 71u8, 178u8, 205u8, 171u8, 71u8, 52u8, 194u8, 82u8, + ], + ) + } + #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] + #[doc = " value in `SignedSubmissions`."] + #[doc = ""] + #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] + #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] + #[doc = " them one at a time instead of reading and decoding all of them at once."] + pub fn signed_submission_indices( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::signed_submission_indices::SignedSubmissionIndices, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionIndices", + vec![], + [ + 245u8, 24u8, 83u8, 165u8, 229u8, 167u8, 35u8, 107u8, 255u8, 77u8, 34u8, + 0u8, 188u8, 159u8, 175u8, 68u8, 232u8, 114u8, 238u8, 231u8, 252u8, + 169u8, 127u8, 232u8, 206u8, 183u8, 191u8, 227u8, 176u8, 46u8, 51u8, + 147u8, + ], + ) + } + #[doc = " Unchecked, signed solutions."] + #[doc = ""] + #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] + #[doc = " allowing us to keep only a single one in memory at a time."] + #[doc = ""] + #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] + #[doc = " affect; we shouldn't need a cryptographically secure hasher."] + pub fn signed_submissions_map_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::signed_submissions_map::SignedSubmissionsMap, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionsMap", + vec![], + [ + 118u8, 12u8, 234u8, 73u8, 238u8, 134u8, 20u8, 105u8, 248u8, 39u8, 23u8, + 96u8, 157u8, 187u8, 14u8, 143u8, 135u8, 121u8, 77u8, 90u8, 154u8, + 221u8, 139u8, 28u8, 34u8, 8u8, 19u8, 246u8, 65u8, 155u8, 84u8, 53u8, + ], + ) + } + #[doc = " Unchecked, signed solutions."] + #[doc = ""] + #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] + #[doc = " allowing us to keep only a single one in memory at a time."] + #[doc = ""] + #[doc = " Twox note: the key of the map is an auto-incrementing index which users cannot inspect or"] + #[doc = " affect; we shouldn't need a cryptographically secure hasher."] + pub fn signed_submissions_map( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::signed_submissions_map::SignedSubmissionsMap, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionsMap", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 255u8, 234u8, 162u8, 48u8, 243u8, 210u8, 198u8, 231u8, 218u8, 142u8, - 167u8, 10u8, 232u8, 223u8, 239u8, 55u8, 74u8, 23u8, 14u8, 236u8, 88u8, - 231u8, 152u8, 55u8, 91u8, 120u8, 11u8, 96u8, 100u8, 113u8, 131u8, - 173u8, + 118u8, 12u8, 234u8, 73u8, 238u8, 134u8, 20u8, 105u8, 248u8, 39u8, 23u8, + 96u8, 157u8, 187u8, 14u8, 143u8, 135u8, 121u8, 77u8, 90u8, 154u8, + 221u8, 139u8, 28u8, 34u8, 8u8, 19u8, 246u8, 65u8, 155u8, 84u8, 53u8, ], ) } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] - pub fn concurrent_reports_index_iter( + #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] + #[doc = " feasible."] + #[doc = ""] + #[doc = " Can be set via `set_minimum_untrusted_score`."] + pub fn minimum_untrusted_score( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::concurrent_reports_index::ConcurrentReportsIndex, + types::minimum_untrusted_score::MinimumUntrustedScore, + ::subxt::storage::address::Yes, + (), (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Offences", - "ConcurrentReportsIndex", + "ElectionProviderMultiPhase", + "MinimumUntrustedScore", vec![], [ - 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, - 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, - 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, - 247u8, + 22u8, 253u8, 11u8, 17u8, 171u8, 145u8, 175u8, 97u8, 137u8, 148u8, 36u8, + 232u8, 55u8, 174u8, 75u8, 173u8, 133u8, 5u8, 227u8, 161u8, 28u8, 62u8, + 188u8, 249u8, 123u8, 102u8, 186u8, 180u8, 226u8, 216u8, 71u8, 249u8, ], ) } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] - pub fn concurrent_reports_index_iter1( + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Duration of the unsigned phase."] + pub fn unsigned_phase( &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::concurrent_reports_index::ConcurrentReportsIndex, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "ConcurrentReportsIndex", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "UnsignedPhase", [ - 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, - 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, - 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, - 247u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] - pub fn concurrent_reports_index( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::concurrent_reports_index::ConcurrentReportsIndex, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "ConcurrentReportsIndex", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], + #[doc = " Duration of the signed phase."] + pub fn signed_phase(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedPhase", [ - 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, - 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, - 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, - 247u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] + #[doc = " \"better\" in the Signed phase."] + pub fn better_signed_threshold( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "BetterSignedThreshold", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + #[doc = " The repeat threshold of the offchain worker."] + #[doc = ""] + #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] + #[doc = " to submit the worker's solution."] + pub fn offchain_repeat( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "OffchainRepeat", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] + pub fn miner_tx_priority( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerTxPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + #[doc = " Maximum number of signed submissions that can be queued."] + #[doc = ""] + #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] + #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] + #[doc = " update this value during an election, you _must_ ensure that"] + #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] + #[doc = " attempts to submit new solutions may cause a runtime panic."] + pub fn signed_max_submissions( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxSubmissions", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum weight of a signed solution."] + #[doc = ""] + #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] + #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] + #[doc = " this value."] + pub fn signed_max_weight( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] + pub fn signed_max_refunds( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxRefunds", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Base reward for a signed solution"] + pub fn signed_reward_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedRewardBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Per-byte deposit for a signed solution."] + pub fn signed_deposit_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Per-weight deposit for a signed solution."] + pub fn signed_deposit_weight( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositWeight", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] + #[doc = " implementation."] + #[doc = ""] + #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] + pub fn max_winners(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MaxWinners", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_weight( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + pub fn miner_max_votes_per_voter( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxVotesPerVoter", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_winners( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxWinners", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } } } } - pub mod historical { + pub mod staking { use super::root_mod; use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::bond`]."] + pub struct Bond { + #[codec(compact)] + pub value: bond::Value, + pub payee: bond::Payee, + } + pub mod bond { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + pub type Payee = runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Bond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::bond_extra`]."] + pub struct BondExtra { + #[codec(compact)] + pub max_additional: bond_extra::MaxAdditional, + } + pub mod bond_extra { + use super::runtime_types; + pub type MaxAdditional = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::unbond`]."] + pub struct Unbond { + #[codec(compact)] + pub value: unbond::Value, + } + pub mod unbond { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "unbond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::withdraw_unbonded`]."] + pub struct WithdrawUnbonded { + pub num_slashing_spans: withdraw_unbonded::NumSlashingSpans, + } + pub mod withdraw_unbonded { + use super::runtime_types; + pub type NumSlashingSpans = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::validate`]."] + pub struct Validate { + pub prefs: validate::Prefs, + } + pub mod validate { + use super::runtime_types; + pub type Prefs = runtime_types::pallet_staking::ValidatorPrefs; + } + impl ::subxt::blocks::StaticExtrinsic for Validate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "validate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::nominate`]."] + pub struct Nominate { + pub targets: nominate::Targets, + } + pub mod nominate { + use super::runtime_types; + pub type Targets = ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "nominate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::chill`]."] + pub struct Chill; + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_payee`]."] + pub struct SetPayee { + pub payee: set_payee::Payee, + } + pub mod set_payee { + use super::runtime_types; + pub type Payee = runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetPayee { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_payee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_controller`]."] + pub struct SetController; + impl ::subxt::blocks::StaticExtrinsic for SetController { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_controller"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_validator_count`]."] + pub struct SetValidatorCount { + #[codec(compact)] + pub new: set_validator_count::New, + } + pub mod set_validator_count { + use super::runtime_types; + pub type New = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::increase_validator_count`]."] + pub struct IncreaseValidatorCount { + #[codec(compact)] + pub additional: increase_validator_count::Additional, + } + pub mod increase_validator_count { + use super::runtime_types; + pub type Additional = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "increase_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::scale_validator_count`]."] + pub struct ScaleValidatorCount { + pub factor: scale_validator_count::Factor, + } + pub mod scale_validator_count { + use super::runtime_types; + pub type Factor = runtime_types::sp_arithmetic::per_things::Percent; + } + impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "scale_validator_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_no_eras`]."] + pub struct ForceNoEras; + impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_no_eras"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_new_era`]."] + pub struct ForceNewEra; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_invulnerables`]."] + pub struct SetInvulnerables { + pub invulnerables: set_invulnerables::Invulnerables, + } + pub mod set_invulnerables { + use super::runtime_types; + pub type Invulnerables = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_invulnerables"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_unstake`]."] + pub struct ForceUnstake { + pub stash: force_unstake::Stash, + pub num_slashing_spans: force_unstake::NumSlashingSpans, + } + pub mod force_unstake { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type NumSlashingSpans = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_unstake"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_new_era_always`]."] + pub struct ForceNewEraAlways; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era_always"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_deferred_slash`]."] + pub struct CancelDeferredSlash { + pub era: cancel_deferred_slash::Era, + pub slash_indices: cancel_deferred_slash::SlashIndices, + } + pub mod cancel_deferred_slash { + use super::runtime_types; + pub type Era = ::core::primitive::u32; + pub type SlashIndices = ::std::vec::Vec<::core::primitive::u32>; + } + impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "cancel_deferred_slash"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::payout_stakers`]."] + pub struct PayoutStakers { + pub validator_stash: payout_stakers::ValidatorStash, + pub era: payout_stakers::Era, + } + pub mod payout_stakers { + use super::runtime_types; + pub type ValidatorStash = ::subxt::utils::AccountId32; + pub type Era = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "payout_stakers"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::rebond`]."] + pub struct Rebond { + #[codec(compact)] + pub value: rebond::Value, + } + pub mod rebond { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Rebond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "rebond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::reap_stash`]."] + pub struct ReapStash { + pub stash: reap_stash::Stash, + pub num_slashing_spans: reap_stash::NumSlashingSpans, + } + pub mod reap_stash { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type NumSlashingSpans = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ReapStash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "reap_stash"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::kick`]."] + pub struct Kick { + pub who: kick::Who, + } + pub mod kick { + use super::runtime_types; + pub type Who = ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Kick { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "kick"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_staking_configs`]."] + pub struct SetStakingConfigs { + pub min_nominator_bond: set_staking_configs::MinNominatorBond, + pub min_validator_bond: set_staking_configs::MinValidatorBond, + pub max_nominator_count: set_staking_configs::MaxNominatorCount, + pub max_validator_count: set_staking_configs::MaxValidatorCount, + pub chill_threshold: set_staking_configs::ChillThreshold, + pub min_commission: set_staking_configs::MinCommission, + } + pub mod set_staking_configs { + use super::runtime_types; + pub type MinNominatorBond = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >; + pub type MinValidatorBond = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >; + pub type MaxNominatorCount = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >; + pub type MaxValidatorCount = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >; + pub type ChillThreshold = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >; + pub type MinCommission = + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_staking_configs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::chill_other`]."] + pub struct ChillOther { + pub stash: chill_other::Stash, + } + pub mod chill_other { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for ChillOther { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_apply_min_commission`]."] + pub struct ForceApplyMinCommission { + pub validator_stash: force_apply_min_commission::ValidatorStash, + } + pub mod force_apply_min_commission { + use super::runtime_types; + pub type ValidatorStash = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_apply_min_commission"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_min_commission`]."] + pub struct SetMinCommission { + pub new: set_min_commission::New, + } + pub mod set_min_commission { + use super::runtime_types; + pub type New = runtime_types::sp_arithmetic::per_things::Perbill; + } + impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_min_commission"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::payout_stakers_by_page`]."] + pub struct PayoutStakersByPage { + pub validator_stash: payout_stakers_by_page::ValidatorStash, + pub era: payout_stakers_by_page::Era, + pub page: payout_stakers_by_page::Page, + } + pub mod payout_stakers_by_page { + use super::runtime_types; + pub type ValidatorStash = ::subxt::utils::AccountId32; + pub type Era = ::core::primitive::u32; + pub type Page = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for PayoutStakersByPage { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "payout_stakers_by_page"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::update_payee`]."] + pub struct UpdatePayee { + pub controller: update_payee::Controller, + } + pub mod update_payee { + use super::runtime_types; + pub type Controller = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for UpdatePayee { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "update_payee"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::deprecate_controller_batch`]."] + pub struct DeprecateControllerBatch { + pub controllers: deprecate_controller_batch::Controllers, + } + pub mod deprecate_controller_batch { + use super::runtime_types; + pub type Controllers = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for DeprecateControllerBatch { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "deprecate_controller_batch"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::bond`]."] + pub fn bond( + &self, + value: types::bond::Value, + payee: types::bond::Payee, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "bond", + types::Bond { value, payee }, + [ + 45u8, 207u8, 34u8, 221u8, 252u8, 224u8, 162u8, 185u8, 67u8, 224u8, + 88u8, 91u8, 232u8, 114u8, 183u8, 44u8, 39u8, 5u8, 12u8, 163u8, 57u8, + 31u8, 251u8, 58u8, 37u8, 232u8, 206u8, 75u8, 164u8, 26u8, 170u8, 101u8, + ], + ) + } + #[doc = "See [`Pallet::bond_extra`]."] + pub fn bond_extra( + &self, + max_additional: types::bond_extra::MaxAdditional, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "bond_extra", + types::BondExtra { max_additional }, + [ + 9u8, 143u8, 179u8, 99u8, 91u8, 254u8, 114u8, 189u8, 202u8, 245u8, 48u8, + 130u8, 103u8, 17u8, 183u8, 177u8, 172u8, 156u8, 227u8, 145u8, 191u8, + 134u8, 81u8, 3u8, 170u8, 85u8, 40u8, 56u8, 216u8, 95u8, 232u8, 52u8, + ], + ) + } + #[doc = "See [`Pallet::unbond`]."] + pub fn unbond( + &self, + value: types::unbond::Value, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "unbond", + types::Unbond { value }, + [ + 70u8, 201u8, 146u8, 56u8, 51u8, 237u8, 90u8, 193u8, 69u8, 42u8, 168u8, + 96u8, 215u8, 128u8, 253u8, 22u8, 239u8, 14u8, 214u8, 103u8, 170u8, + 140u8, 2u8, 182u8, 3u8, 190u8, 184u8, 191u8, 231u8, 137u8, 50u8, 16u8, + ], + ) + } + #[doc = "See [`Pallet::withdraw_unbonded`]."] + pub fn withdraw_unbonded( + &self, + num_slashing_spans: types::withdraw_unbonded::NumSlashingSpans, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "withdraw_unbonded", + types::WithdrawUnbonded { num_slashing_spans }, + [ + 229u8, 128u8, 177u8, 224u8, 197u8, 118u8, 239u8, 142u8, 179u8, 164u8, + 10u8, 205u8, 124u8, 254u8, 209u8, 157u8, 172u8, 87u8, 58u8, 120u8, + 74u8, 12u8, 150u8, 117u8, 234u8, 32u8, 191u8, 182u8, 92u8, 97u8, 77u8, + 59u8, + ], + ) + } + #[doc = "See [`Pallet::validate`]."] + pub fn validate( + &self, + prefs: types::validate::Prefs, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "validate", + types::Validate { prefs }, + [ + 63u8, 83u8, 12u8, 16u8, 56u8, 84u8, 41u8, 141u8, 202u8, 0u8, 37u8, + 30u8, 115u8, 2u8, 145u8, 101u8, 168u8, 89u8, 94u8, 98u8, 8u8, 45u8, + 140u8, 237u8, 101u8, 136u8, 179u8, 162u8, 205u8, 41u8, 88u8, 248u8, + ], + ) + } + #[doc = "See [`Pallet::nominate`]."] + pub fn nominate( + &self, + targets: types::nominate::Targets, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "nominate", + types::Nominate { targets }, + [ + 235u8, 128u8, 69u8, 72u8, 149u8, 110u8, 119u8, 10u8, 99u8, 130u8, + 173u8, 12u8, 136u8, 41u8, 43u8, 223u8, 200u8, 216u8, 75u8, 216u8, 91u8, + 173u8, 247u8, 253u8, 129u8, 76u8, 89u8, 17u8, 35u8, 151u8, 208u8, + 227u8, + ], + ) + } + #[doc = "See [`Pallet::chill`]."] + pub fn chill(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "chill", + types::Chill {}, + [ + 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, + 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, + 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, + ], + ) + } + #[doc = "See [`Pallet::set_payee`]."] + pub fn set_payee( + &self, + payee: types::set_payee::Payee, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_payee", + types::SetPayee { payee }, + [ + 86u8, 172u8, 187u8, 98u8, 106u8, 240u8, 184u8, 60u8, 163u8, 244u8, 7u8, + 64u8, 147u8, 168u8, 192u8, 177u8, 211u8, 138u8, 73u8, 188u8, 159u8, + 154u8, 175u8, 219u8, 231u8, 235u8, 93u8, 195u8, 204u8, 100u8, 196u8, + 241u8, + ], + ) + } + #[doc = "See [`Pallet::set_controller`]."] + pub fn set_controller(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_controller", + types::SetController {}, + [ + 172u8, 27u8, 195u8, 188u8, 145u8, 203u8, 190u8, 174u8, 145u8, 43u8, + 253u8, 87u8, 11u8, 229u8, 112u8, 18u8, 57u8, 101u8, 84u8, 235u8, 109u8, + 228u8, 58u8, 129u8, 179u8, 174u8, 245u8, 169u8, 89u8, 240u8, 39u8, + 67u8, + ], + ) + } + #[doc = "See [`Pallet::set_validator_count`]."] + pub fn set_validator_count( + &self, + new: types::set_validator_count::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_validator_count", + types::SetValidatorCount { new }, + [ + 172u8, 225u8, 157u8, 48u8, 242u8, 217u8, 126u8, 206u8, 26u8, 156u8, + 203u8, 100u8, 116u8, 189u8, 98u8, 89u8, 151u8, 101u8, 77u8, 236u8, + 101u8, 8u8, 148u8, 236u8, 180u8, 175u8, 232u8, 146u8, 141u8, 141u8, + 78u8, 165u8, + ], + ) + } + #[doc = "See [`Pallet::increase_validator_count`]."] + pub fn increase_validator_count( + &self, + additional: types::increase_validator_count::Additional, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "increase_validator_count", + types::IncreaseValidatorCount { additional }, + [ + 108u8, 67u8, 131u8, 248u8, 139u8, 227u8, 224u8, 221u8, 248u8, 94u8, + 141u8, 104u8, 131u8, 250u8, 127u8, 164u8, 137u8, 211u8, 5u8, 27u8, + 185u8, 251u8, 120u8, 243u8, 165u8, 50u8, 197u8, 161u8, 125u8, 195u8, + 16u8, 29u8, + ], + ) + } + #[doc = "See [`Pallet::scale_validator_count`]."] + pub fn scale_validator_count( + &self, + factor: types::scale_validator_count::Factor, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "scale_validator_count", + types::ScaleValidatorCount { factor }, + [ + 93u8, 200u8, 119u8, 240u8, 148u8, 144u8, 175u8, 135u8, 102u8, 130u8, + 183u8, 216u8, 28u8, 215u8, 155u8, 233u8, 152u8, 65u8, 49u8, 125u8, + 196u8, 79u8, 31u8, 195u8, 233u8, 79u8, 150u8, 138u8, 103u8, 161u8, + 78u8, 154u8, + ], + ) + } + #[doc = "See [`Pallet::force_no_eras`]."] + pub fn force_no_eras(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_no_eras", + types::ForceNoEras {}, + [ + 77u8, 5u8, 105u8, 167u8, 251u8, 78u8, 52u8, 80u8, 177u8, 226u8, 28u8, + 130u8, 106u8, 62u8, 40u8, 210u8, 110u8, 62u8, 21u8, 113u8, 234u8, + 227u8, 171u8, 205u8, 240u8, 46u8, 32u8, 84u8, 184u8, 208u8, 61u8, + 207u8, + ], + ) + } + #[doc = "See [`Pallet::force_new_era`]."] + pub fn force_new_era(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_new_era", + types::ForceNewEra {}, + [ + 119u8, 45u8, 11u8, 87u8, 236u8, 189u8, 41u8, 142u8, 130u8, 10u8, 132u8, + 140u8, 210u8, 134u8, 66u8, 152u8, 149u8, 55u8, 60u8, 31u8, 190u8, 41u8, + 177u8, 103u8, 245u8, 193u8, 95u8, 255u8, 29u8, 79u8, 112u8, 188u8, + ], + ) + } + #[doc = "See [`Pallet::set_invulnerables`]."] + pub fn set_invulnerables( + &self, + invulnerables: types::set_invulnerables::Invulnerables, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_invulnerables", + types::SetInvulnerables { invulnerables }, + [ + 31u8, 115u8, 221u8, 229u8, 187u8, 61u8, 33u8, 22u8, 126u8, 142u8, + 248u8, 190u8, 213u8, 35u8, 49u8, 208u8, 193u8, 0u8, 58u8, 18u8, 136u8, + 220u8, 32u8, 8u8, 121u8, 36u8, 184u8, 57u8, 6u8, 125u8, 199u8, 245u8, + ], + ) + } + #[doc = "See [`Pallet::force_unstake`]."] + pub fn force_unstake( + &self, + stash: types::force_unstake::Stash, + num_slashing_spans: types::force_unstake::NumSlashingSpans, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_unstake", + types::ForceUnstake { + stash, + num_slashing_spans, + }, + [ + 205u8, 115u8, 222u8, 58u8, 168u8, 3u8, 59u8, 58u8, 220u8, 98u8, 204u8, + 90u8, 36u8, 250u8, 178u8, 45u8, 213u8, 158u8, 92u8, 107u8, 3u8, 94u8, + 118u8, 194u8, 187u8, 196u8, 101u8, 250u8, 36u8, 119u8, 21u8, 19u8, + ], + ) + } + #[doc = "See [`Pallet::force_new_era_always`]."] + pub fn force_new_era_always( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_new_era_always", + types::ForceNewEraAlways {}, + [ + 102u8, 153u8, 116u8, 85u8, 80u8, 52u8, 89u8, 215u8, 173u8, 159u8, 96u8, + 99u8, 180u8, 5u8, 62u8, 142u8, 181u8, 101u8, 160u8, 57u8, 177u8, 182u8, + 6u8, 252u8, 107u8, 252u8, 225u8, 104u8, 147u8, 123u8, 244u8, 134u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_deferred_slash`]."] + pub fn cancel_deferred_slash( + &self, + era: types::cancel_deferred_slash::Era, + slash_indices: types::cancel_deferred_slash::SlashIndices, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "cancel_deferred_slash", + types::CancelDeferredSlash { era, slash_indices }, + [ + 49u8, 208u8, 248u8, 109u8, 25u8, 132u8, 73u8, 172u8, 232u8, 194u8, + 114u8, 23u8, 114u8, 4u8, 64u8, 156u8, 70u8, 41u8, 207u8, 208u8, 78u8, + 199u8, 81u8, 125u8, 101u8, 31u8, 17u8, 140u8, 190u8, 254u8, 64u8, + 101u8, + ], + ) + } + #[doc = "See [`Pallet::payout_stakers`]."] + pub fn payout_stakers( + &self, + validator_stash: types::payout_stakers::ValidatorStash, + era: types::payout_stakers::Era, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "payout_stakers", + types::PayoutStakers { + validator_stash, + era, + }, + [ + 69u8, 67u8, 140u8, 197u8, 89u8, 20u8, 59u8, 55u8, 142u8, 197u8, 62u8, + 107u8, 239u8, 50u8, 237u8, 52u8, 4u8, 65u8, 119u8, 73u8, 138u8, 57u8, + 46u8, 78u8, 252u8, 157u8, 187u8, 14u8, 232u8, 244u8, 217u8, 171u8, + ], + ) + } + #[doc = "See [`Pallet::rebond`]."] + pub fn rebond( + &self, + value: types::rebond::Value, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "rebond", + types::Rebond { value }, + [ + 204u8, 209u8, 27u8, 219u8, 45u8, 129u8, 15u8, 39u8, 105u8, 165u8, + 255u8, 55u8, 0u8, 59u8, 115u8, 79u8, 139u8, 82u8, 163u8, 197u8, 44u8, + 89u8, 41u8, 234u8, 116u8, 214u8, 248u8, 123u8, 250u8, 49u8, 15u8, 77u8, + ], + ) + } + #[doc = "See [`Pallet::reap_stash`]."] + pub fn reap_stash( + &self, + stash: types::reap_stash::Stash, + num_slashing_spans: types::reap_stash::NumSlashingSpans, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "reap_stash", + types::ReapStash { + stash, + num_slashing_spans, + }, + [ + 231u8, 240u8, 152u8, 33u8, 10u8, 60u8, 18u8, 233u8, 0u8, 229u8, 90u8, + 45u8, 118u8, 29u8, 98u8, 109u8, 89u8, 7u8, 228u8, 254u8, 119u8, 125u8, + 172u8, 209u8, 217u8, 107u8, 50u8, 226u8, 31u8, 5u8, 153u8, 93u8, + ], + ) + } + #[doc = "See [`Pallet::kick`]."] + pub fn kick(&self, who: types::kick::Who) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "kick", + types::Kick { who }, + [ + 61u8, 49u8, 184u8, 238u8, 17u8, 11u8, 173u8, 187u8, 229u8, 163u8, 69u8, + 139u8, 23u8, 90u8, 87u8, 10u8, 179u8, 39u8, 19u8, 251u8, 74u8, 21u8, + 126u8, 165u8, 21u8, 43u8, 237u8, 241u8, 75u8, 186u8, 35u8, 53u8, + ], + ) + } + #[doc = "See [`Pallet::set_staking_configs`]."] + pub fn set_staking_configs( + &self, + min_nominator_bond: types::set_staking_configs::MinNominatorBond, + min_validator_bond: types::set_staking_configs::MinValidatorBond, + max_nominator_count: types::set_staking_configs::MaxNominatorCount, + max_validator_count: types::set_staking_configs::MaxValidatorCount, + chill_threshold: types::set_staking_configs::ChillThreshold, + min_commission: types::set_staking_configs::MinCommission, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_staking_configs", + types::SetStakingConfigs { + min_nominator_bond, + min_validator_bond, + max_nominator_count, + max_validator_count, + chill_threshold, + min_commission, + }, + [ + 99u8, 61u8, 196u8, 68u8, 226u8, 64u8, 104u8, 70u8, 173u8, 108u8, 29u8, + 39u8, 61u8, 202u8, 72u8, 227u8, 190u8, 6u8, 138u8, 137u8, 207u8, 11u8, + 190u8, 79u8, 73u8, 7u8, 108u8, 131u8, 19u8, 7u8, 173u8, 60u8, + ], + ) + } + #[doc = "See [`Pallet::chill_other`]."] + pub fn chill_other( + &self, + stash: types::chill_other::Stash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "chill_other", + types::ChillOther { stash }, + [ + 201u8, 75u8, 216u8, 132u8, 113u8, 58u8, 148u8, 34u8, 17u8, 214u8, + 224u8, 89u8, 131u8, 119u8, 243u8, 193u8, 198u8, 154u8, 16u8, 67u8, + 42u8, 144u8, 1u8, 163u8, 248u8, 90u8, 105u8, 0u8, 42u8, 31u8, 223u8, + 39u8, + ], + ) + } + #[doc = "See [`Pallet::force_apply_min_commission`]."] + pub fn force_apply_min_commission( + &self, + validator_stash: types::force_apply_min_commission::ValidatorStash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_apply_min_commission", + types::ForceApplyMinCommission { validator_stash }, + [ + 158u8, 27u8, 152u8, 23u8, 97u8, 53u8, 54u8, 49u8, 179u8, 236u8, 69u8, + 65u8, 253u8, 136u8, 232u8, 44u8, 207u8, 66u8, 5u8, 186u8, 49u8, 91u8, + 173u8, 5u8, 84u8, 45u8, 154u8, 91u8, 239u8, 97u8, 62u8, 42u8, + ], + ) + } + #[doc = "See [`Pallet::set_min_commission`]."] + pub fn set_min_commission( + &self, + new: types::set_min_commission::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_min_commission", + types::SetMinCommission { new }, + [ + 96u8, 168u8, 55u8, 79u8, 79u8, 49u8, 8u8, 127u8, 98u8, 158u8, 106u8, + 187u8, 177u8, 201u8, 68u8, 181u8, 219u8, 172u8, 63u8, 120u8, 172u8, + 173u8, 251u8, 167u8, 84u8, 165u8, 238u8, 115u8, 110u8, 97u8, 144u8, + 50u8, + ], + ) + } + #[doc = "See [`Pallet::payout_stakers_by_page`]."] + pub fn payout_stakers_by_page( + &self, + validator_stash: types::payout_stakers_by_page::ValidatorStash, + era: types::payout_stakers_by_page::Era, + page: types::payout_stakers_by_page::Page, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "payout_stakers_by_page", + types::PayoutStakersByPage { + validator_stash, + era, + page, + }, + [ + 133u8, 110u8, 190u8, 187u8, 40u8, 216u8, 207u8, 44u8, 217u8, 226u8, + 38u8, 188u8, 45u8, 146u8, 236u8, 250u8, 165u8, 199u8, 79u8, 7u8, 184u8, + 7u8, 182u8, 43u8, 34u8, 87u8, 38u8, 211u8, 203u8, 172u8, 24u8, 71u8, + ], + ) + } + #[doc = "See [`Pallet::update_payee`]."] + pub fn update_payee( + &self, + controller: types::update_payee::Controller, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "update_payee", + types::UpdatePayee { controller }, + [ + 6u8, 125u8, 134u8, 248u8, 54u8, 153u8, 184u8, 201u8, 80u8, 39u8, 95u8, + 114u8, 212u8, 96u8, 120u8, 89u8, 32u8, 115u8, 120u8, 127u8, 249u8, + 133u8, 59u8, 62u8, 164u8, 105u8, 97u8, 22u8, 155u8, 126u8, 176u8, + 236u8, + ], + ) + } + #[doc = "See [`Pallet::deprecate_controller_batch`]."] + pub fn deprecate_controller_batch( + &self, + controllers: types::deprecate_controller_batch::Controllers, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "deprecate_controller_batch", + types::DeprecateControllerBatch { controllers }, + [ + 15u8, 242u8, 202u8, 86u8, 115u8, 251u8, 199u8, 201u8, 165u8, 155u8, + 87u8, 0u8, 235u8, 124u8, 60u8, 170u8, 24u8, 22u8, 55u8, 226u8, 68u8, + 210u8, 107u8, 147u8, 191u8, 128u8, 190u8, 142u8, 204u8, 38u8, 101u8, + 12u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] + #[doc = "the remainder from the maximum amount of reward."] + pub struct EraPaid { + pub era_index: era_paid::EraIndex, + pub validator_payout: era_paid::ValidatorPayout, + pub remainder: era_paid::Remainder, + } + pub mod era_paid { + use super::runtime_types; + pub type EraIndex = ::core::primitive::u32; + pub type ValidatorPayout = ::core::primitive::u128; + pub type Remainder = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for EraPaid { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "EraPaid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The nominator has been rewarded by this amount to this destination."] + pub struct Rewarded { + pub stash: rewarded::Stash, + pub dest: rewarded::Dest, + pub amount: rewarded::Amount, + } + pub mod rewarded { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Dest = + runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Rewarded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Rewarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A staker (validator or nominator) has been slashed by the given amount."] + pub struct Slashed { + pub staker: slashed::Staker, + pub amount: slashed::Amount, + } + pub mod slashed { + use super::runtime_types; + pub type Staker = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] + #[doc = "era as been reported."] + pub struct SlashReported { + pub validator: slash_reported::Validator, + pub fraction: slash_reported::Fraction, + pub slash_era: slash_reported::SlashEra, + } + pub mod slash_reported { + use super::runtime_types; + pub type Validator = ::subxt::utils::AccountId32; + pub type Fraction = runtime_types::sp_arithmetic::per_things::Perbill; + pub type SlashEra = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for SlashReported { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "SlashReported"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An old slashing report from a prior era was discarded because it could"] + #[doc = "not be processed."] + pub struct OldSlashingReportDiscarded { + pub session_index: old_slashing_report_discarded::SessionIndex, + } + pub mod old_slashing_report_discarded { + use super::runtime_types; + pub type SessionIndex = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "OldSlashingReportDiscarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new set of stakers was elected."] + pub struct StakersElected; + impl ::subxt::events::StaticEvent for StakersElected { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakersElected"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has bonded this amount. \\[stash, amount\\]"] + #[doc = ""] + #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] + #[doc = "it will not be emitted for staking rewards when they are added to stake."] + pub struct Bonded { + pub stash: bonded::Stash, + pub amount: bonded::Amount, + } + pub mod bonded { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Bonded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Bonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has unbonded this amount."] + pub struct Unbonded { + pub stash: unbonded::Stash, + pub amount: unbonded::Amount, + } + pub mod unbonded { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Unbonded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] + #[doc = "from the unlocking queue."] + pub struct Withdrawn { + pub stash: withdrawn::Stash, + pub amount: withdrawn::Amount, + } + pub mod withdrawn { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A nominator has been kicked from a validator."] + pub struct Kicked { + pub nominator: kicked::Nominator, + pub stash: kicked::Stash, + } + pub mod kicked { + use super::runtime_types; + pub type Nominator = ::subxt::utils::AccountId32; + pub type Stash = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Kicked { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Kicked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The election failed. No new era is planned."] + pub struct StakingElectionFailed; + impl ::subxt::events::StaticEvent for StakingElectionFailed { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakingElectionFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has stopped participating as either a validator or nominator."] + pub struct Chilled { + pub stash: chilled::Stash, + } + pub mod chilled { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Chilled { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Chilled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The stakers' rewards are getting paid."] + pub struct PayoutStarted { + pub era_index: payout_started::EraIndex, + pub validator_stash: payout_started::ValidatorStash, + } + pub mod payout_started { + use super::runtime_types; + pub type EraIndex = ::core::primitive::u32; + pub type ValidatorStash = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for PayoutStarted { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "PayoutStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A validator has set their preferences."] + pub struct ValidatorPrefsSet { + pub stash: validator_prefs_set::Stash, + pub prefs: validator_prefs_set::Prefs, + } + pub mod validator_prefs_set { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Prefs = runtime_types::pallet_staking::ValidatorPrefs; + } + impl ::subxt::events::StaticEvent for ValidatorPrefsSet { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ValidatorPrefsSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Voters size limit reached."] + pub struct SnapshotVotersSizeExceeded { + pub size: snapshot_voters_size_exceeded::Size, + } + pub mod snapshot_voters_size_exceeded { + use super::runtime_types; + pub type Size = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for SnapshotVotersSizeExceeded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "SnapshotVotersSizeExceeded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Targets size limit reached."] + pub struct SnapshotTargetsSizeExceeded { + pub size: snapshot_targets_size_exceeded::Size, + } + pub mod snapshot_targets_size_exceeded { + use super::runtime_types; + pub type Size = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for SnapshotTargetsSizeExceeded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "SnapshotTargetsSizeExceeded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new force era mode was set."] + pub struct ForceEra { + pub mode: force_era::Mode, + } + pub mod force_era { + use super::runtime_types; + pub type Mode = runtime_types::pallet_staking::Forcing; + } + impl ::subxt::events::StaticEvent for ForceEra { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ForceEra"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod validator_count { + use super::runtime_types; + pub type ValidatorCount = ::core::primitive::u32; + } + pub mod minimum_validator_count { + use super::runtime_types; + pub type MinimumValidatorCount = ::core::primitive::u32; + } + pub mod invulnerables { + use super::runtime_types; + pub type Invulnerables = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + pub mod bonded { + use super::runtime_types; + pub type Bonded = ::subxt::utils::AccountId32; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod min_nominator_bond { + use super::runtime_types; + pub type MinNominatorBond = ::core::primitive::u128; + } + pub mod min_validator_bond { + use super::runtime_types; + pub type MinValidatorBond = ::core::primitive::u128; + } + pub mod minimum_active_stake { + use super::runtime_types; + pub type MinimumActiveStake = ::core::primitive::u128; + } + pub mod min_commission { + use super::runtime_types; + pub type MinCommission = runtime_types::sp_arithmetic::per_things::Perbill; + } + pub mod ledger { + use super::runtime_types; + pub type Ledger = runtime_types::pallet_staking::StakingLedger; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod payee { + use super::runtime_types; + pub type Payee = runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod validators { + use super::runtime_types; + pub type Validators = runtime_types::pallet_staking::ValidatorPrefs; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod counter_for_validators { + use super::runtime_types; + pub type CounterForValidators = ::core::primitive::u32; + } + pub mod max_validators_count { + use super::runtime_types; + pub type MaxValidatorsCount = ::core::primitive::u32; + } + pub mod nominators { + use super::runtime_types; + pub type Nominators = runtime_types::pallet_staking::Nominations; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod counter_for_nominators { + use super::runtime_types; + pub type CounterForNominators = ::core::primitive::u32; + } + pub mod max_nominators_count { + use super::runtime_types; + pub type MaxNominatorsCount = ::core::primitive::u32; + } + pub mod current_era { + use super::runtime_types; + pub type CurrentEra = ::core::primitive::u32; + } + pub mod active_era { + use super::runtime_types; + pub type ActiveEra = runtime_types::pallet_staking::ActiveEraInfo; + } + pub mod eras_start_session_index { + use super::runtime_types; + pub type ErasStartSessionIndex = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + } + pub mod eras_stakers { + use super::runtime_types; + pub type ErasStakers = runtime_types::sp_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod eras_stakers_overview { + use super::runtime_types; + pub type ErasStakersOverview = + runtime_types::sp_staking::PagedExposureMetadata<::core::primitive::u128>; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod eras_stakers_clipped { + use super::runtime_types; + pub type ErasStakersClipped = runtime_types::sp_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod eras_stakers_paged { + use super::runtime_types; + pub type ErasStakersPaged = runtime_types::sp_staking::ExposurePage< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + pub type Param2 = ::core::primitive::u32; + } + pub mod claimed_rewards { + use super::runtime_types; + pub type ClaimedRewards = ::std::vec::Vec<::core::primitive::u32>; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod eras_validator_prefs { + use super::runtime_types; + pub type ErasValidatorPrefs = runtime_types::pallet_staking::ValidatorPrefs; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod eras_validator_reward { + use super::runtime_types; + pub type ErasValidatorReward = ::core::primitive::u128; + pub type Param0 = ::core::primitive::u32; + } + pub mod eras_reward_points { + use super::runtime_types; + pub type ErasRewardPoints = + runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>; + pub type Param0 = ::core::primitive::u32; + } + pub mod eras_total_stake { + use super::runtime_types; + pub type ErasTotalStake = ::core::primitive::u128; + pub type Param0 = ::core::primitive::u32; + } + pub mod force_era { + use super::runtime_types; + pub type ForceEra = runtime_types::pallet_staking::Forcing; + } + pub mod slash_reward_fraction { + use super::runtime_types; + pub type SlashRewardFraction = + runtime_types::sp_arithmetic::per_things::Perbill; + } + pub mod canceled_slash_payout { + use super::runtime_types; + pub type CanceledSlashPayout = ::core::primitive::u128; + } + pub mod unapplied_slashes { + use super::runtime_types; + pub type UnappliedSlashes = ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod bonded_eras { + use super::runtime_types; + pub type BondedEras = + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>; + } + pub mod validator_slash_in_era { + use super::runtime_types; + pub type ValidatorSlashInEra = ( + runtime_types::sp_arithmetic::per_things::Perbill, + ::core::primitive::u128, + ); + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod nominator_slash_in_era { + use super::runtime_types; + pub type NominatorSlashInEra = ::core::primitive::u128; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod slashing_spans { + use super::runtime_types; + pub type SlashingSpans = runtime_types::pallet_staking::slashing::SlashingSpans; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod span_slash { + use super::runtime_types; + pub type SpanSlash = runtime_types::pallet_staking::slashing::SpanRecord< + ::core::primitive::u128, + >; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::core::primitive::u32; + } + pub mod current_planned_session { + use super::runtime_types; + pub type CurrentPlannedSession = ::core::primitive::u32; + } + pub mod offending_validators { + use super::runtime_types; + pub type OffendingValidators = + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>; + } + pub mod chill_threshold { + use super::runtime_types; + pub type ChillThreshold = runtime_types::sp_arithmetic::per_things::Percent; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The ideal number of active validators."] + pub fn validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::validator_count::ValidatorCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorCount", + vec![], + [ + 105u8, 251u8, 193u8, 198u8, 232u8, 118u8, 73u8, 115u8, 205u8, 78u8, + 49u8, 253u8, 140u8, 193u8, 161u8, 205u8, 13u8, 147u8, 125u8, 102u8, + 142u8, 244u8, 210u8, 227u8, 225u8, 46u8, 144u8, 122u8, 254u8, 48u8, + 44u8, 169u8, + ], + ) + } + #[doc = " Minimum number of staking participants before emergency conditions are imposed."] + pub fn minimum_validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::minimum_validator_count::MinimumValidatorCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinimumValidatorCount", + vec![], + [ + 103u8, 178u8, 29u8, 91u8, 90u8, 31u8, 49u8, 9u8, 11u8, 58u8, 178u8, + 30u8, 219u8, 55u8, 58u8, 181u8, 80u8, 155u8, 9u8, 11u8, 38u8, 46u8, + 125u8, 179u8, 220u8, 20u8, 212u8, 181u8, 136u8, 103u8, 58u8, 48u8, + ], + ) + } + #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] + #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] + #[doc = " invulnerables) and restricted to testnets."] + pub fn invulnerables( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::invulnerables::Invulnerables, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Invulnerables", + vec![], + [ + 199u8, 35u8, 0u8, 229u8, 160u8, 128u8, 139u8, 245u8, 27u8, 133u8, 47u8, + 240u8, 86u8, 195u8, 90u8, 169u8, 158u8, 231u8, 128u8, 58u8, 24u8, + 173u8, 138u8, 122u8, 226u8, 104u8, 239u8, 114u8, 91u8, 165u8, 207u8, + 150u8, + ], + ) + } + #[doc = " Map from all locked \"stash\" accounts to the controller account."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn bonded_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::bonded::Bonded, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Bonded", + vec![], + [ + 99u8, 128u8, 108u8, 100u8, 235u8, 102u8, 243u8, 95u8, 61u8, 206u8, + 220u8, 49u8, 155u8, 85u8, 236u8, 110u8, 99u8, 21u8, 117u8, 127u8, + 157u8, 226u8, 108u8, 80u8, 126u8, 93u8, 203u8, 0u8, 160u8, 253u8, 56u8, + 101u8, + ], + ) + } + #[doc = " Map from all locked \"stash\" accounts to the controller account."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn bonded( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::bonded::Bonded, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Bonded", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 99u8, 128u8, 108u8, 100u8, 235u8, 102u8, 243u8, 95u8, 61u8, 206u8, + 220u8, 49u8, 155u8, 85u8, 236u8, 110u8, 99u8, 21u8, 117u8, 127u8, + 157u8, 226u8, 108u8, 80u8, 126u8, 93u8, 203u8, 0u8, 160u8, 253u8, 56u8, + 101u8, + ], + ) + } + #[doc = " The minimum active bond to become and maintain the role of a nominator."] + pub fn min_nominator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::min_nominator_bond::MinNominatorBond, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinNominatorBond", + vec![], + [ + 102u8, 115u8, 254u8, 15u8, 191u8, 228u8, 85u8, 249u8, 112u8, 190u8, + 129u8, 243u8, 236u8, 39u8, 195u8, 232u8, 10u8, 230u8, 11u8, 144u8, + 115u8, 1u8, 45u8, 70u8, 181u8, 161u8, 17u8, 92u8, 19u8, 70u8, 100u8, + 94u8, + ], + ) + } + #[doc = " The minimum active bond to become and maintain the role of a validator."] + pub fn min_validator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::min_validator_bond::MinValidatorBond, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinValidatorBond", + vec![], + [ + 146u8, 249u8, 26u8, 52u8, 224u8, 81u8, 85u8, 153u8, 118u8, 169u8, + 140u8, 37u8, 208u8, 242u8, 8u8, 29u8, 156u8, 73u8, 154u8, 162u8, 186u8, + 159u8, 119u8, 100u8, 109u8, 227u8, 6u8, 139u8, 155u8, 203u8, 167u8, + 244u8, + ], + ) + } + #[doc = " The minimum active nominator stake of the last successful election."] + pub fn minimum_active_stake( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::minimum_active_stake::MinimumActiveStake, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinimumActiveStake", + vec![], + [ + 166u8, 211u8, 59u8, 23u8, 2u8, 160u8, 244u8, 52u8, 153u8, 12u8, 103u8, + 113u8, 51u8, 232u8, 145u8, 188u8, 54u8, 67u8, 227u8, 221u8, 186u8, 6u8, + 28u8, 63u8, 146u8, 212u8, 233u8, 173u8, 134u8, 41u8, 169u8, 153u8, + ], + ) + } + #[doc = " The minimum amount of commission that validators can set."] + #[doc = ""] + #[doc = " If set to `0`, no limit exists."] + pub fn min_commission( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::min_commission::MinCommission, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinCommission", + vec![], + [ + 220u8, 197u8, 232u8, 212u8, 205u8, 242u8, 121u8, 165u8, 255u8, 199u8, + 122u8, 20u8, 145u8, 245u8, 175u8, 26u8, 45u8, 70u8, 207u8, 26u8, 112u8, + 234u8, 181u8, 167u8, 140u8, 75u8, 15u8, 1u8, 221u8, 168u8, 17u8, 211u8, + ], + ) + } + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] + #[doc = ""] + #[doc = " Note: All the reads and mutations to this storage *MUST* be done through the methods exposed"] + #[doc = " by [`StakingLedger`] to ensure data and lock consistency."] + pub fn ledger_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::ledger::Ledger, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Ledger", + vec![], + [ + 109u8, 240u8, 70u8, 127u8, 227u8, 170u8, 76u8, 152u8, 52u8, 24u8, 90u8, + 23u8, 56u8, 59u8, 16u8, 55u8, 68u8, 214u8, 235u8, 142u8, 189u8, 234u8, + 180u8, 250u8, 180u8, 127u8, 41u8, 173u8, 62u8, 252u8, 18u8, 227u8, + ], + ) + } + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] + #[doc = ""] + #[doc = " Note: All the reads and mutations to this storage *MUST* be done through the methods exposed"] + #[doc = " by [`StakingLedger`] to ensure data and lock consistency."] + pub fn ledger( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::ledger::Ledger, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Ledger", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 109u8, 240u8, 70u8, 127u8, 227u8, 170u8, 76u8, 152u8, 52u8, 24u8, 90u8, + 23u8, 56u8, 59u8, 16u8, 55u8, 68u8, 214u8, 235u8, 142u8, 189u8, 234u8, + 180u8, 250u8, 180u8, 127u8, 41u8, 173u8, 62u8, 252u8, 18u8, 227u8, + ], + ) + } + #[doc = " Where the reward payment should be made. Keyed by stash."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn payee_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::payee::Payee, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Payee", + vec![], + [ + 218u8, 38u8, 125u8, 139u8, 146u8, 230u8, 58u8, 61u8, 163u8, 36u8, 81u8, + 175u8, 227u8, 148u8, 135u8, 196u8, 132u8, 198u8, 228u8, 137u8, 4u8, + 39u8, 140u8, 47u8, 103u8, 102u8, 195u8, 239u8, 107u8, 208u8, 165u8, + 232u8, + ], + ) + } + #[doc = " Where the reward payment should be made. Keyed by stash."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn payee( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::payee::Payee, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Payee", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 218u8, 38u8, 125u8, 139u8, 146u8, 230u8, 58u8, 61u8, 163u8, 36u8, 81u8, + 175u8, 227u8, 148u8, 135u8, 196u8, 132u8, 198u8, 228u8, 137u8, 4u8, + 39u8, 140u8, 47u8, 103u8, 102u8, 195u8, 239u8, 107u8, 208u8, 165u8, + 232u8, + ], + ) + } + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn validators_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::validators::Validators, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Validators", + vec![], + [ + 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, 236u8, 33u8, 210u8, + 124u8, 200u8, 99u8, 98u8, 29u8, 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, + 209u8, 21u8, 124u8, 236u8, 112u8, 118u8, 180u8, 85u8, 78u8, 13u8, + ], + ) + } + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn validators( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::validators::Validators, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Validators", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, 236u8, 33u8, 210u8, + 124u8, 200u8, 99u8, 98u8, 29u8, 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, + 209u8, 21u8, 124u8, 236u8, 112u8, 118u8, 180u8, 85u8, 78u8, 13u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_validators::CounterForValidators, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CounterForValidators", + vec![], + [ + 169u8, 146u8, 194u8, 114u8, 57u8, 232u8, 137u8, 93u8, 214u8, 98u8, + 176u8, 151u8, 237u8, 165u8, 176u8, 252u8, 73u8, 124u8, 22u8, 166u8, + 225u8, 217u8, 65u8, 56u8, 174u8, 12u8, 32u8, 2u8, 7u8, 173u8, 125u8, + 235u8, + ], + ) + } + #[doc = " The maximum validator count before we stop allowing new validators to join."] + #[doc = ""] + #[doc = " When this value is not set, no limits are enforced."] + pub fn max_validators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::max_validators_count::MaxValidatorsCount, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MaxValidatorsCount", + vec![], + [ + 139u8, 116u8, 236u8, 217u8, 110u8, 47u8, 140u8, 197u8, 184u8, 246u8, + 180u8, 188u8, 233u8, 99u8, 102u8, 21u8, 114u8, 23u8, 143u8, 163u8, + 224u8, 250u8, 248u8, 185u8, 235u8, 94u8, 110u8, 83u8, 170u8, 123u8, + 113u8, 168u8, + ], + ) + } + #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] + #[doc = " they wish to support."] + #[doc = ""] + #[doc = " Note that the keys of this storage map might become non-decodable in case the"] + #[doc = " account's [`NominationsQuota::MaxNominations`] configuration is decreased."] + #[doc = " In this rare case, these nominators"] + #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] + #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] + #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] + #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] + #[doc = ""] + #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] + #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] + #[doc = " number of keys that exist."] + #[doc = ""] + #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] + #[doc = " [`Call::chill_other`] dispatchable by anyone."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn nominators_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nominators::Nominators, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Nominators", + vec![], + [ + 244u8, 174u8, 214u8, 105u8, 215u8, 218u8, 241u8, 145u8, 155u8, 54u8, + 219u8, 34u8, 158u8, 224u8, 251u8, 17u8, 245u8, 9u8, 150u8, 36u8, 2u8, + 233u8, 222u8, 218u8, 136u8, 86u8, 37u8, 244u8, 18u8, 50u8, 91u8, 120u8, + ], + ) + } + #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] + #[doc = " they wish to support."] + #[doc = ""] + #[doc = " Note that the keys of this storage map might become non-decodable in case the"] + #[doc = " account's [`NominationsQuota::MaxNominations`] configuration is decreased."] + #[doc = " In this rare case, these nominators"] + #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] + #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] + #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] + #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] + #[doc = ""] + #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] + #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] + #[doc = " number of keys that exist."] + #[doc = ""] + #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] + #[doc = " [`Call::chill_other`] dispatchable by anyone."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn nominators( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nominators::Nominators, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Nominators", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 244u8, 174u8, 214u8, 105u8, 215u8, 218u8, 241u8, 145u8, 155u8, 54u8, + 219u8, 34u8, 158u8, 224u8, 251u8, 17u8, 245u8, 9u8, 150u8, 36u8, 2u8, + 233u8, 222u8, 218u8, 136u8, 86u8, 37u8, 244u8, 18u8, 50u8, 91u8, 120u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_nominators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_nominators::CounterForNominators, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CounterForNominators", + vec![], + [ + 150u8, 236u8, 184u8, 12u8, 224u8, 26u8, 13u8, 204u8, 208u8, 178u8, + 68u8, 148u8, 232u8, 85u8, 74u8, 248u8, 167u8, 61u8, 88u8, 126u8, 40u8, + 20u8, 73u8, 47u8, 94u8, 57u8, 144u8, 77u8, 156u8, 179u8, 55u8, 49u8, + ], + ) + } + #[doc = " The maximum nominator count before we stop allowing new validators to join."] + #[doc = ""] + #[doc = " When this value is not set, no limits are enforced."] + pub fn max_nominators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::max_nominators_count::MaxNominatorsCount, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MaxNominatorsCount", + vec![], + [ + 11u8, 234u8, 179u8, 254u8, 95u8, 119u8, 35u8, 255u8, 141u8, 95u8, + 148u8, 209u8, 43u8, 202u8, 19u8, 57u8, 185u8, 50u8, 152u8, 192u8, 95u8, + 13u8, 158u8, 245u8, 113u8, 199u8, 255u8, 187u8, 37u8, 44u8, 8u8, 119u8, + ], + ) + } + #[doc = " The current era index."] + #[doc = ""] + #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] + #[doc = " set, it might be active or not."] + pub fn current_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::current_era::CurrentEra, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CurrentEra", + vec![], + [ + 247u8, 239u8, 171u8, 18u8, 137u8, 240u8, 213u8, 3u8, 173u8, 173u8, + 236u8, 141u8, 202u8, 191u8, 228u8, 120u8, 196u8, 188u8, 13u8, 66u8, + 253u8, 117u8, 90u8, 8u8, 158u8, 11u8, 236u8, 141u8, 178u8, 44u8, 119u8, + 25u8, + ], + ) + } + #[doc = " The active era information, it holds index and start."] + #[doc = ""] + #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] + #[doc = " equal to [`SessionInterface::validators`]."] + pub fn active_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::active_era::ActiveEra, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ActiveEra", + vec![], + [ + 24u8, 229u8, 66u8, 56u8, 111u8, 234u8, 139u8, 93u8, 245u8, 137u8, + 110u8, 110u8, 121u8, 15u8, 216u8, 207u8, 97u8, 120u8, 125u8, 45u8, + 61u8, 2u8, 50u8, 100u8, 3u8, 106u8, 12u8, 233u8, 123u8, 156u8, 145u8, + 38u8, + ], + ) + } + #[doc = " The session index at which the era start for the last [`Config::HistoryDepth`] eras."] + #[doc = ""] + #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] + #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] + pub fn eras_start_session_index_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_start_session_index::ErasStartSessionIndex, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStartSessionIndex", + vec![], + [ + 104u8, 76u8, 102u8, 20u8, 9u8, 146u8, 55u8, 204u8, 12u8, 15u8, 117u8, + 22u8, 54u8, 230u8, 98u8, 105u8, 191u8, 136u8, 140u8, 65u8, 48u8, 29u8, + 19u8, 144u8, 159u8, 241u8, 158u8, 77u8, 4u8, 230u8, 216u8, 52u8, + ], + ) + } + #[doc = " The session index at which the era start for the last [`Config::HistoryDepth`] eras."] + #[doc = ""] + #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] + #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] + pub fn eras_start_session_index( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_start_session_index::ErasStartSessionIndex, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStartSessionIndex", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 104u8, 76u8, 102u8, 20u8, 9u8, 146u8, 55u8, 204u8, 12u8, 15u8, 117u8, + 22u8, 54u8, 230u8, 98u8, 105u8, 191u8, 136u8, 140u8, 65u8, 48u8, 29u8, + 19u8, 144u8, 159u8, 241u8, 158u8, 77u8, 4u8, 230u8, 216u8, 52u8, + ], + ) + } + #[doc = " Exposure of validator at era."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + #[doc = ""] + #[doc = " Note: Deprecated since v14. Use `EraInfo` instead to work with exposures."] + pub fn eras_stakers_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers::ErasStakers, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakers", + vec![], + [ + 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, + 108u8, 91u8, 255u8, 123u8, 245u8, 27u8, 55u8, 254u8, 60u8, 74u8, 183u8, + 183u8, 226u8, 159u8, 244u8, 56u8, 139u8, 34u8, 228u8, 176u8, 241u8, + 76u8, + ], + ) + } + #[doc = " Exposure of validator at era."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + #[doc = ""] + #[doc = " Note: Deprecated since v14. Use `EraInfo` instead to work with exposures."] + pub fn eras_stakers_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers::ErasStakers, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakers", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, + 108u8, 91u8, 255u8, 123u8, 245u8, 27u8, 55u8, 254u8, 60u8, 74u8, 183u8, + 183u8, 226u8, 159u8, 244u8, 56u8, 139u8, 34u8, 228u8, 176u8, 241u8, + 76u8, + ], + ) + } + #[doc = " Exposure of validator at era."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + #[doc = ""] + #[doc = " Note: Deprecated since v14. Use `EraInfo` instead to work with exposures."] + pub fn eras_stakers( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers::ErasStakers, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakers", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, + 108u8, 91u8, 255u8, 123u8, 245u8, 27u8, 55u8, 254u8, 60u8, 74u8, 183u8, + 183u8, 226u8, 159u8, 244u8, 56u8, 139u8, 34u8, 228u8, 176u8, 241u8, + 76u8, + ], + ) + } + #[doc = " Summary of validator exposure at a given era."] + #[doc = ""] + #[doc = " This contains the total stake in support of the validator and their own stake. In addition,"] + #[doc = " it can also be used to get the number of nominators backing this validator and the number of"] + #[doc = " exposure pages they are divided into. The page count is useful to determine the number of"] + #[doc = " pages of rewards that needs to be claimed."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = " Should only be accessed through `EraInfo`."] + #[doc = ""] + #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] + #[doc = " If stakers hasn't been set or has been removed then empty overview is returned."] + pub fn eras_stakers_overview_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_overview::ErasStakersOverview, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersOverview", + vec![], + [ + 235u8, 255u8, 39u8, 72u8, 235u8, 168u8, 98u8, 191u8, 30u8, 195u8, + 141u8, 103u8, 167u8, 115u8, 74u8, 170u8, 117u8, 153u8, 151u8, 186u8, + 20u8, 99u8, 64u8, 159u8, 247u8, 153u8, 206u8, 169u8, 13u8, 239u8, 39u8, + 157u8, + ], + ) + } + #[doc = " Summary of validator exposure at a given era."] + #[doc = ""] + #[doc = " This contains the total stake in support of the validator and their own stake. In addition,"] + #[doc = " it can also be used to get the number of nominators backing this validator and the number of"] + #[doc = " exposure pages they are divided into. The page count is useful to determine the number of"] + #[doc = " pages of rewards that needs to be claimed."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = " Should only be accessed through `EraInfo`."] + #[doc = ""] + #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] + #[doc = " If stakers hasn't been set or has been removed then empty overview is returned."] + pub fn eras_stakers_overview_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_overview::ErasStakersOverview, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersOverview", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 235u8, 255u8, 39u8, 72u8, 235u8, 168u8, 98u8, 191u8, 30u8, 195u8, + 141u8, 103u8, 167u8, 115u8, 74u8, 170u8, 117u8, 153u8, 151u8, 186u8, + 20u8, 99u8, 64u8, 159u8, 247u8, 153u8, 206u8, 169u8, 13u8, 239u8, 39u8, + 157u8, + ], + ) + } + #[doc = " Summary of validator exposure at a given era."] + #[doc = ""] + #[doc = " This contains the total stake in support of the validator and their own stake. In addition,"] + #[doc = " it can also be used to get the number of nominators backing this validator and the number of"] + #[doc = " exposure pages they are divided into. The page count is useful to determine the number of"] + #[doc = " pages of rewards that needs to be claimed."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = " Should only be accessed through `EraInfo`."] + #[doc = ""] + #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] + #[doc = " If stakers hasn't been set or has been removed then empty overview is returned."] + pub fn eras_stakers_overview( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_overview::ErasStakersOverview, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersOverview", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 235u8, 255u8, 39u8, 72u8, 235u8, 168u8, 98u8, 191u8, 30u8, 195u8, + 141u8, 103u8, 167u8, 115u8, 74u8, 170u8, 117u8, 153u8, 151u8, 186u8, + 20u8, 99u8, 64u8, 159u8, 247u8, 153u8, 206u8, 169u8, 13u8, 239u8, 39u8, + 157u8, + ], + ) + } + #[doc = " Clipped Exposure of validator at era."] + #[doc = ""] + #[doc = " Note: This is deprecated, should be used as read-only and will be removed in the future."] + #[doc = " New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead."] + #[doc = ""] + #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] + #[doc = " `T::MaxExposurePageSize` biggest stakers."] + #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] + #[doc = " This is used to limit the i/o cost for the nominator payout."] + #[doc = ""] + #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " It is removed after [`Config::HistoryDepth`] eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + #[doc = ""] + #[doc = " Note: Deprecated since v14. Use `EraInfo` instead to work with exposures."] + pub fn eras_stakers_clipped_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_clipped::ErasStakersClipped, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersClipped", + vec![], + [ + 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, + 199u8, 34u8, 11u8, 248u8, 81u8, 203u8, 204u8, 152u8, 138u8, 112u8, + 229u8, 145u8, 253u8, 111u8, 111u8, 38u8, 74u8, 199u8, 164u8, 16u8, + 45u8, + ], + ) + } + #[doc = " Clipped Exposure of validator at era."] + #[doc = ""] + #[doc = " Note: This is deprecated, should be used as read-only and will be removed in the future."] + #[doc = " New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead."] + #[doc = ""] + #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] + #[doc = " `T::MaxExposurePageSize` biggest stakers."] + #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] + #[doc = " This is used to limit the i/o cost for the nominator payout."] + #[doc = ""] + #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " It is removed after [`Config::HistoryDepth`] eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + #[doc = ""] + #[doc = " Note: Deprecated since v14. Use `EraInfo` instead to work with exposures."] + pub fn eras_stakers_clipped_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_clipped::ErasStakersClipped, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersClipped", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, + 199u8, 34u8, 11u8, 248u8, 81u8, 203u8, 204u8, 152u8, 138u8, 112u8, + 229u8, 145u8, 253u8, 111u8, 111u8, 38u8, 74u8, 199u8, 164u8, 16u8, + 45u8, + ], + ) + } + #[doc = " Clipped Exposure of validator at era."] + #[doc = ""] + #[doc = " Note: This is deprecated, should be used as read-only and will be removed in the future."] + #[doc = " New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead."] + #[doc = ""] + #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] + #[doc = " `T::MaxExposurePageSize` biggest stakers."] + #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] + #[doc = " This is used to limit the i/o cost for the nominator payout."] + #[doc = ""] + #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " It is removed after [`Config::HistoryDepth`] eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] + #[doc = ""] + #[doc = " Note: Deprecated since v14. Use `EraInfo` instead to work with exposures."] + pub fn eras_stakers_clipped( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_clipped::ErasStakersClipped, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersClipped", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, + 199u8, 34u8, 11u8, 248u8, 81u8, 203u8, 204u8, 152u8, 138u8, 112u8, + 229u8, 145u8, 253u8, 111u8, 111u8, 38u8, 74u8, 199u8, 164u8, 16u8, + 45u8, + ], + ) + } + #[doc = " Paginated exposure of a validator at given era."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion, then stash account and finally"] + #[doc = " the page. Should only be accessed through `EraInfo`."] + #[doc = ""] + #[doc = " This is cleared after [`Config::HistoryDepth`] eras."] + pub fn eras_stakers_paged_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_paged::ErasStakersPaged, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersPaged", + vec![], + [ + 111u8, 11u8, 84u8, 186u8, 98u8, 173u8, 68u8, 65u8, 58u8, 241u8, 211u8, + 126u8, 10u8, 96u8, 40u8, 20u8, 233u8, 238u8, 116u8, 113u8, 215u8, + 178u8, 99u8, 229u8, 114u8, 234u8, 248u8, 157u8, 173u8, 201u8, 244u8, + 217u8, + ], + ) + } + #[doc = " Paginated exposure of a validator at given era."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion, then stash account and finally"] + #[doc = " the page. Should only be accessed through `EraInfo`."] + #[doc = ""] + #[doc = " This is cleared after [`Config::HistoryDepth`] eras."] + pub fn eras_stakers_paged_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_paged::ErasStakersPaged, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersPaged", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 111u8, 11u8, 84u8, 186u8, 98u8, 173u8, 68u8, 65u8, 58u8, 241u8, 211u8, + 126u8, 10u8, 96u8, 40u8, 20u8, 233u8, 238u8, 116u8, 113u8, 215u8, + 178u8, 99u8, 229u8, 114u8, 234u8, 248u8, 157u8, 173u8, 201u8, 244u8, + 217u8, + ], + ) + } + #[doc = " Paginated exposure of a validator at given era."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion, then stash account and finally"] + #[doc = " the page. Should only be accessed through `EraInfo`."] + #[doc = ""] + #[doc = " This is cleared after [`Config::HistoryDepth`] eras."] + pub fn eras_stakers_paged_iter2( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_paged::ErasStakersPaged, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersPaged", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 111u8, 11u8, 84u8, 186u8, 98u8, 173u8, 68u8, 65u8, 58u8, 241u8, 211u8, + 126u8, 10u8, 96u8, 40u8, 20u8, 233u8, 238u8, 116u8, 113u8, 215u8, + 178u8, 99u8, 229u8, 114u8, 234u8, 248u8, 157u8, 173u8, 201u8, 244u8, + 217u8, + ], + ) + } + #[doc = " Paginated exposure of a validator at given era."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion, then stash account and finally"] + #[doc = " the page. Should only be accessed through `EraInfo`."] + #[doc = ""] + #[doc = " This is cleared after [`Config::HistoryDepth`] eras."] + pub fn eras_stakers_paged( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + _2: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_stakers_paged::ErasStakersPaged, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersPaged", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), + ], + [ + 111u8, 11u8, 84u8, 186u8, 98u8, 173u8, 68u8, 65u8, 58u8, 241u8, 211u8, + 126u8, 10u8, 96u8, 40u8, 20u8, 233u8, 238u8, 116u8, 113u8, 215u8, + 178u8, 99u8, 229u8, 114u8, 234u8, 248u8, 157u8, 173u8, 201u8, 244u8, + 217u8, + ], + ) + } + #[doc = " History of claimed paged rewards by era and validator."] + #[doc = ""] + #[doc = " This is keyed by era and validator stash which maps to the set of page indexes which have"] + #[doc = " been claimed."] + #[doc = ""] + #[doc = " It is removed after [`Config::HistoryDepth`] eras."] + pub fn claimed_rewards_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::claimed_rewards::ClaimedRewards, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ClaimedRewards", + vec![], + [ + 44u8, 248u8, 79u8, 211u8, 69u8, 179u8, 60u8, 185u8, 3u8, 175u8, 51u8, + 137u8, 222u8, 150u8, 73u8, 60u8, 178u8, 0u8, 179u8, 117u8, 37u8, 86u8, + 201u8, 189u8, 49u8, 33u8, 182u8, 17u8, 14u8, 12u8, 190u8, 89u8, + ], + ) + } + #[doc = " History of claimed paged rewards by era and validator."] + #[doc = ""] + #[doc = " This is keyed by era and validator stash which maps to the set of page indexes which have"] + #[doc = " been claimed."] + #[doc = ""] + #[doc = " It is removed after [`Config::HistoryDepth`] eras."] + pub fn claimed_rewards_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::claimed_rewards::ClaimedRewards, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ClaimedRewards", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 44u8, 248u8, 79u8, 211u8, 69u8, 179u8, 60u8, 185u8, 3u8, 175u8, 51u8, + 137u8, 222u8, 150u8, 73u8, 60u8, 178u8, 0u8, 179u8, 117u8, 37u8, 86u8, + 201u8, 189u8, 49u8, 33u8, 182u8, 17u8, 14u8, 12u8, 190u8, 89u8, + ], + ) + } + #[doc = " History of claimed paged rewards by era and validator."] + #[doc = ""] + #[doc = " This is keyed by era and validator stash which maps to the set of page indexes which have"] + #[doc = " been claimed."] + #[doc = ""] + #[doc = " It is removed after [`Config::HistoryDepth`] eras."] + pub fn claimed_rewards( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::claimed_rewards::ClaimedRewards, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ClaimedRewards", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 44u8, 248u8, 79u8, 211u8, 69u8, 179u8, 60u8, 185u8, 3u8, 175u8, 51u8, + 137u8, 222u8, 150u8, 73u8, 60u8, 178u8, 0u8, 179u8, 117u8, 37u8, 86u8, + 201u8, 189u8, 49u8, 33u8, 182u8, 17u8, 14u8, 12u8, 190u8, 89u8, + ], + ) + } + #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] + pub fn eras_validator_prefs_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_validator_prefs::ErasValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorPrefs", + vec![], + [ + 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, + 180u8, 174u8, 134u8, 54u8, 25u8, 56u8, 144u8, 194u8, 149u8, 56u8, + 234u8, 78u8, 238u8, 78u8, 247u8, 205u8, 43u8, 16u8, 159u8, 92u8, 169u8, + ], + ) + } + #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] + pub fn eras_validator_prefs_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_validator_prefs::ErasValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorPrefs", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, + 180u8, 174u8, 134u8, 54u8, 25u8, 56u8, 144u8, 194u8, 149u8, 56u8, + 234u8, 78u8, 238u8, 78u8, 247u8, 205u8, 43u8, 16u8, 159u8, 92u8, 169u8, + ], + ) + } + #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after [`Config::HistoryDepth`] eras."] + pub fn eras_validator_prefs( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_validator_prefs::ErasValidatorPrefs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorPrefs", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, + 180u8, 174u8, 134u8, 54u8, 25u8, 56u8, 144u8, 194u8, 149u8, 56u8, + 234u8, 78u8, 238u8, 78u8, 247u8, 205u8, 43u8, 16u8, 159u8, 92u8, 169u8, + ], + ) + } + #[doc = " The total validator era payout for the last [`Config::HistoryDepth`] eras."] + #[doc = ""] + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] + pub fn eras_validator_reward_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_validator_reward::ErasValidatorReward, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorReward", + vec![], + [ + 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, 200u8, 59u8, 77u8, 2u8, + 197u8, 36u8, 188u8, 133u8, 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, + 15u8, 82u8, 57u8, 89u8, 242u8, 234u8, 70u8, 244u8, 198u8, 126u8, + ], + ) + } + #[doc = " The total validator era payout for the last [`Config::HistoryDepth`] eras."] + #[doc = ""] + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] + pub fn eras_validator_reward( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_validator_reward::ErasValidatorReward, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorReward", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, 200u8, 59u8, 77u8, 2u8, + 197u8, 36u8, 188u8, 133u8, 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, + 15u8, 82u8, 57u8, 89u8, 242u8, 234u8, 70u8, 244u8, 198u8, 126u8, + ], + ) + } + #[doc = " Rewards for the last [`Config::HistoryDepth`] eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] + pub fn eras_reward_points_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_reward_points::ErasRewardPoints, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasRewardPoints", + vec![], + [ + 135u8, 0u8, 85u8, 241u8, 213u8, 133u8, 30u8, 192u8, 251u8, 191u8, 41u8, + 38u8, 233u8, 236u8, 218u8, 246u8, 166u8, 93u8, 46u8, 37u8, 48u8, 187u8, + 172u8, 48u8, 251u8, 178u8, 75u8, 203u8, 60u8, 188u8, 204u8, 207u8, + ], + ) + } + #[doc = " Rewards for the last [`Config::HistoryDepth`] eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] + pub fn eras_reward_points( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_reward_points::ErasRewardPoints, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasRewardPoints", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 135u8, 0u8, 85u8, 241u8, 213u8, 133u8, 30u8, 192u8, 251u8, 191u8, 41u8, + 38u8, 233u8, 236u8, 218u8, 246u8, 166u8, 93u8, 46u8, 37u8, 48u8, 187u8, + 172u8, 48u8, 251u8, 178u8, 75u8, 203u8, 60u8, 188u8, 204u8, 207u8, + ], + ) + } + #[doc = " The total amount staked for the last [`Config::HistoryDepth`] eras."] + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] + pub fn eras_total_stake_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_total_stake::ErasTotalStake, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasTotalStake", + vec![], + [ + 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, 47u8, 126u8, 239u8, + 204u8, 222u8, 104u8, 19u8, 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, + 2u8, 250u8, 164u8, 250u8, 213u8, 201u8, 84u8, 193u8, 117u8, 108u8, + 146u8, + ], + ) + } + #[doc = " The total amount staked for the last [`Config::HistoryDepth`] eras."] + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] + pub fn eras_total_stake( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_total_stake::ErasTotalStake, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasTotalStake", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, 47u8, 126u8, 239u8, + 204u8, 222u8, 104u8, 19u8, 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, + 2u8, 250u8, 164u8, 250u8, 213u8, 201u8, 84u8, 193u8, 117u8, 108u8, + 146u8, + ], + ) + } + #[doc = " Mode of era forcing."] + pub fn force_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::force_era::ForceEra, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ForceEra", + vec![], + [ + 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, + 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, + 233u8, 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, + 222u8, + ], + ) + } + #[doc = " The percentage of the slash that is distributed to reporters."] + #[doc = ""] + #[doc = " The rest of the slashed value is handled by the `Slash`."] + pub fn slash_reward_fraction( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::slash_reward_fraction::SlashRewardFraction, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashRewardFraction", + vec![], + [ + 53u8, 88u8, 253u8, 237u8, 84u8, 228u8, 187u8, 130u8, 108u8, 195u8, + 135u8, 25u8, 75u8, 52u8, 238u8, 62u8, 133u8, 38u8, 139u8, 129u8, 216u8, + 193u8, 197u8, 216u8, 245u8, 171u8, 128u8, 207u8, 125u8, 246u8, 248u8, + 7u8, + ], + ) + } + #[doc = " The amount of currency given to reporters of a slash event which was"] + #[doc = " canceled by extraordinary circumstances (e.g. governance)."] + pub fn canceled_slash_payout( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::canceled_slash_payout::CanceledSlashPayout, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CanceledSlashPayout", + vec![], + [ + 221u8, 88u8, 134u8, 81u8, 22u8, 229u8, 100u8, 27u8, 86u8, 244u8, 229u8, + 107u8, 251u8, 119u8, 58u8, 153u8, 19u8, 20u8, 254u8, 169u8, 248u8, + 220u8, 98u8, 118u8, 48u8, 213u8, 22u8, 79u8, 242u8, 250u8, 147u8, + 173u8, + ], + ) + } + #[doc = " All unapplied slashes that are queued for later."] + pub fn unapplied_slashes_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unapplied_slashes::UnappliedSlashes, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "UnappliedSlashes", + vec![], + [ + 158u8, 134u8, 7u8, 21u8, 200u8, 222u8, 197u8, 166u8, 199u8, 39u8, 1u8, + 167u8, 164u8, 154u8, 165u8, 118u8, 92u8, 223u8, 219u8, 136u8, 196u8, + 155u8, 243u8, 20u8, 198u8, 92u8, 198u8, 61u8, 252u8, 176u8, 175u8, + 172u8, + ], + ) + } + #[doc = " All unapplied slashes that are queued for later."] + pub fn unapplied_slashes( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unapplied_slashes::UnappliedSlashes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "UnappliedSlashes", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 158u8, 134u8, 7u8, 21u8, 200u8, 222u8, 197u8, 166u8, 199u8, 39u8, 1u8, + 167u8, 164u8, 154u8, 165u8, 118u8, 92u8, 223u8, 219u8, 136u8, 196u8, + 155u8, 243u8, 20u8, 198u8, 92u8, 198u8, 61u8, 252u8, 176u8, 175u8, + 172u8, + ], + ) + } + #[doc = " A mapping from still-bonded eras to the first session index of that era."] + #[doc = ""] + #[doc = " Must contains information for eras for the range:"] + #[doc = " `[active_era - bounding_duration; active_era]`"] + pub fn bonded_eras( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::bonded_eras::BondedEras, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "BondedEras", + vec![], + [ + 20u8, 0u8, 164u8, 169u8, 183u8, 130u8, 242u8, 167u8, 92u8, 254u8, + 191u8, 206u8, 177u8, 182u8, 219u8, 162u8, 7u8, 116u8, 223u8, 166u8, + 239u8, 216u8, 140u8, 42u8, 174u8, 237u8, 134u8, 186u8, 180u8, 62u8, + 175u8, 239u8, + ], + ) + } + #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] + #[doc = " and slash value of the era."] + pub fn validator_slash_in_era_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::validator_slash_in_era::ValidatorSlashInEra, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorSlashInEra", + vec![], + [ + 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, + 82u8, 6u8, 231u8, 131u8, 68u8, 73u8, 92u8, 241u8, 251u8, 32u8, 97u8, + 121u8, 137u8, 190u8, 227u8, 162u8, 16u8, 224u8, 207u8, 63u8, 184u8, + ], + ) + } + #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] + #[doc = " and slash value of the era."] + pub fn validator_slash_in_era_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::validator_slash_in_era::ValidatorSlashInEra, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorSlashInEra", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, + 82u8, 6u8, 231u8, 131u8, 68u8, 73u8, 92u8, 241u8, 251u8, 32u8, 97u8, + 121u8, 137u8, 190u8, 227u8, 162u8, 16u8, 224u8, 207u8, 63u8, 184u8, + ], + ) + } + #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] + #[doc = " and slash value of the era."] + pub fn validator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::validator_slash_in_era::ValidatorSlashInEra, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorSlashInEra", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, + 82u8, 6u8, 231u8, 131u8, 68u8, 73u8, 92u8, 241u8, 251u8, 32u8, 97u8, + 121u8, 137u8, 190u8, 227u8, 162u8, 16u8, 224u8, 207u8, 63u8, 184u8, + ], + ) + } + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] + pub fn nominator_slash_in_era_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nominator_slash_in_era::NominatorSlashInEra, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "NominatorSlashInEra", + vec![], + [ + 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, + 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, + 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, + ], + ) + } + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] + pub fn nominator_slash_in_era_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nominator_slash_in_era::NominatorSlashInEra, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "NominatorSlashInEra", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, + 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, + 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, + ], + ) + } + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] + pub fn nominator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nominator_slash_in_era::NominatorSlashInEra, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "NominatorSlashInEra", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, + 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, + 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, + ], + ) + } + #[doc = " Slashing spans for stash accounts."] + pub fn slashing_spans_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::slashing_spans::SlashingSpans, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashingSpans", + vec![], + [ + 74u8, 169u8, 189u8, 252u8, 193u8, 191u8, 114u8, 107u8, 158u8, 125u8, + 252u8, 35u8, 177u8, 129u8, 99u8, 24u8, 77u8, 223u8, 238u8, 24u8, 237u8, + 225u8, 5u8, 117u8, 163u8, 180u8, 139u8, 22u8, 169u8, 185u8, 60u8, + 217u8, + ], + ) + } + #[doc = " Slashing spans for stash accounts."] + pub fn slashing_spans( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::slashing_spans::SlashingSpans, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashingSpans", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 74u8, 169u8, 189u8, 252u8, 193u8, 191u8, 114u8, 107u8, 158u8, 125u8, + 252u8, 35u8, 177u8, 129u8, 99u8, 24u8, 77u8, 223u8, 238u8, 24u8, 237u8, + 225u8, 5u8, 117u8, 163u8, 180u8, 139u8, 22u8, 169u8, 185u8, 60u8, + 217u8, + ], + ) + } + #[doc = " Records information about the maximum slash of a stash within a slashing span,"] + #[doc = " as well as how much reward has been paid out."] + pub fn span_slash_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::span_slash::SpanSlash, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SpanSlash", + vec![], + [ + 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, + 235u8, 175u8, 72u8, 48u8, 238u8, 239u8, 142u8, 40u8, 142u8, 97u8, 77u8, + 72u8, 123u8, 210u8, 157u8, 119u8, 180u8, 205u8, 98u8, 110u8, 215u8, + ], + ) + } + #[doc = " Records information about the maximum slash of a stash within a slashing span,"] + #[doc = " as well as how much reward has been paid out."] + pub fn span_slash_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::span_slash::SpanSlash, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SpanSlash", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, + 235u8, 175u8, 72u8, 48u8, 238u8, 239u8, 142u8, 40u8, 142u8, 97u8, 77u8, + 72u8, 123u8, 210u8, 157u8, 119u8, 180u8, 205u8, 98u8, 110u8, 215u8, + ], + ) + } + #[doc = " Records information about the maximum slash of a stash within a slashing span,"] + #[doc = " as well as how much reward has been paid out."] + pub fn span_slash( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::span_slash::SpanSlash, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SpanSlash", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, + 235u8, 175u8, 72u8, 48u8, 238u8, 239u8, 142u8, 40u8, 142u8, 97u8, 77u8, + 72u8, 123u8, 210u8, 157u8, 119u8, 180u8, 205u8, 98u8, 110u8, 215u8, + ], + ) + } + #[doc = " The last planned session scheduled by the session pallet."] + #[doc = ""] + #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] + pub fn current_planned_session( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::current_planned_session::CurrentPlannedSession, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CurrentPlannedSession", + vec![], + [ + 12u8, 47u8, 20u8, 104u8, 155u8, 181u8, 35u8, 91u8, 172u8, 97u8, 206u8, + 135u8, 185u8, 142u8, 46u8, 72u8, 32u8, 118u8, 225u8, 191u8, 28u8, + 130u8, 7u8, 38u8, 181u8, 233u8, 201u8, 8u8, 160u8, 161u8, 86u8, 204u8, + ], + ) + } + #[doc = " Indices of validators that have offended in the active era and whether they are currently"] + #[doc = " disabled."] + #[doc = ""] + #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] + #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] + #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] + #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] + #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] + #[doc = " the era ends."] + pub fn offending_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::offending_validators::OffendingValidators, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "OffendingValidators", + vec![], + [ + 201u8, 31u8, 141u8, 182u8, 160u8, 180u8, 37u8, 226u8, 50u8, 65u8, + 103u8, 11u8, 38u8, 120u8, 200u8, 219u8, 219u8, 98u8, 185u8, 137u8, + 154u8, 20u8, 130u8, 163u8, 126u8, 185u8, 33u8, 194u8, 76u8, 172u8, + 70u8, 220u8, + ], + ) + } + #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] + #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] + #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] + pub fn chill_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::chill_threshold::ChillThreshold, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ChillThreshold", + vec![], + [ + 133u8, 222u8, 1u8, 208u8, 212u8, 216u8, 247u8, 66u8, 178u8, 96u8, 35u8, + 112u8, 33u8, 245u8, 11u8, 249u8, 255u8, 212u8, 204u8, 161u8, 44u8, + 38u8, 126u8, 151u8, 140u8, 42u8, 253u8, 101u8, 1u8, 23u8, 239u8, 39u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Number of eras to keep in history."] + #[doc = ""] + #[doc = " Following information is kept for eras in `[current_era -"] + #[doc = " HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,"] + #[doc = " `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,"] + #[doc = " `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,"] + #[doc = " `ErasStakersOverview`."] + #[doc = ""] + #[doc = " Must be more than the number of eras delayed by session."] + #[doc = " I.e. active era must always be in history. I.e. `active_era >"] + #[doc = " current_era - history_depth` must be guaranteed."] + #[doc = ""] + #[doc = " If migrating an existing pallet from storage value to config value,"] + #[doc = " this should be set to same value or greater as in storage."] + #[doc = ""] + #[doc = " Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`"] + #[doc = " item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than"] + #[doc = " the existing value can lead to inconsistencies in the"] + #[doc = " `StakingLedger` and will need to be handled properly in a migration."] + #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] + pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "HistoryDepth", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of sessions per era."] + pub fn sessions_per_era( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "SessionsPerEra", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of eras that staked funds must remain bonded for."] + pub fn bonding_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "BondingDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of eras that slashes are deferred by, after computation."] + #[doc = ""] + #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] + #[doc = " should be applied immediately, without opportunity for intervention."] + pub fn slash_defer_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "SlashDeferDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum size of each `T::ExposurePage`."] + #[doc = ""] + #[doc = " An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`"] + #[doc = " nominators."] + #[doc = ""] + #[doc = " For older non-paged exposure, a reward payout was restricted to the top"] + #[doc = " `MaxExposurePageSize` nominators. This is to limit the i/o cost for the"] + #[doc = " nominator payout."] + #[doc = ""] + #[doc = " Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce"] + #[doc = " without handling it in a migration."] + pub fn max_exposure_page_size( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "MaxExposurePageSize", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] + #[doc = " have. Effectively determines how many unique eras a staker may be"] + #[doc = " unbonding in."] + #[doc = ""] + #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] + #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] + #[doc = " lower than the existing value can lead to inconsistencies in the"] + #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] + #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] + #[doc = " this effect."] + pub fn max_unlocking_chunks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "MaxUnlockingChunks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } } pub mod beefy { use super::root_mod; @@ -8602,7 +14261,7 @@ pub mod api { } pub mod set_keys { use super::runtime_types; - pub type Keys = runtime_types::rococo_runtime::SessionKeys; + pub type Keys = runtime_types::kitchensink_runtime::SessionKeys; pub type Proof = ::std::vec::Vec<::core::primitive::u8>; } impl ::subxt::blocks::StaticExtrinsic for SetKeys { @@ -8639,9 +14298,9 @@ pub mod api { "set_keys", types::SetKeys { keys, proof }, [ - 50u8, 154u8, 235u8, 252u8, 160u8, 25u8, 233u8, 90u8, 76u8, 227u8, 22u8, - 129u8, 221u8, 129u8, 95u8, 124u8, 117u8, 117u8, 43u8, 17u8, 109u8, - 252u8, 39u8, 115u8, 150u8, 80u8, 38u8, 34u8, 62u8, 237u8, 248u8, 246u8, + 10u8, 163u8, 239u8, 121u8, 115u8, 47u8, 67u8, 7u8, 17u8, 125u8, 92u8, + 8u8, 57u8, 58u8, 14u8, 160u8, 116u8, 140u8, 17u8, 37u8, 207u8, 150u8, + 40u8, 234u8, 234u8, 162u8, 242u8, 186u8, 145u8, 129u8, 16u8, 23u8, ], ) } @@ -8709,7 +14368,7 @@ pub mod api { use super::runtime_types; pub type QueuedKeys = ::std::vec::Vec<( ::subxt::utils::AccountId32, - runtime_types::rococo_runtime::SessionKeys, + runtime_types::kitchensink_runtime::SessionKeys, )>; } pub mod disabled_validators { @@ -8718,7 +14377,7 @@ pub mod api { } pub mod next_keys { use super::runtime_types; - pub type NextKeys = runtime_types::rococo_runtime::SessionKeys; + pub type NextKeys = runtime_types::kitchensink_runtime::SessionKeys; pub type Param0 = ::subxt::utils::AccountId32; } pub mod key_owner { @@ -8813,9 +14472,10 @@ pub mod api { "QueuedKeys", vec![], [ - 251u8, 240u8, 64u8, 86u8, 241u8, 74u8, 141u8, 38u8, 46u8, 18u8, 92u8, - 101u8, 227u8, 161u8, 58u8, 222u8, 17u8, 29u8, 248u8, 237u8, 74u8, 69u8, - 18u8, 16u8, 129u8, 187u8, 172u8, 249u8, 162u8, 96u8, 218u8, 186u8, + 143u8, 107u8, 129u8, 79u8, 189u8, 106u8, 191u8, 213u8, 190u8, 95u8, + 86u8, 130u8, 191u8, 53u8, 167u8, 160u8, 165u8, 131u8, 224u8, 215u8, + 18u8, 119u8, 198u8, 253u8, 210u8, 166u8, 72u8, 181u8, 135u8, 122u8, + 195u8, 252u8, ], ) } @@ -8859,9 +14519,9 @@ pub mod api { "NextKeys", vec![], [ - 87u8, 61u8, 243u8, 159u8, 164u8, 196u8, 130u8, 218u8, 136u8, 189u8, - 253u8, 151u8, 230u8, 9u8, 214u8, 58u8, 102u8, 67u8, 61u8, 138u8, 242u8, - 214u8, 80u8, 166u8, 130u8, 47u8, 141u8, 197u8, 11u8, 73u8, 100u8, 16u8, + 233u8, 102u8, 179u8, 206u8, 181u8, 207u8, 209u8, 218u8, 116u8, 236u8, + 187u8, 3u8, 29u8, 171u8, 32u8, 142u8, 26u8, 99u8, 237u8, 189u8, 255u8, + 45u8, 99u8, 253u8, 56u8, 116u8, 2u8, 103u8, 112u8, 110u8, 51u8, 233u8, ], ) } @@ -8883,9 +14543,9 @@ pub mod api { _0.borrow(), )], [ - 87u8, 61u8, 243u8, 159u8, 164u8, 196u8, 130u8, 218u8, 136u8, 189u8, - 253u8, 151u8, 230u8, 9u8, 214u8, 58u8, 102u8, 67u8, 61u8, 138u8, 242u8, - 214u8, 80u8, 166u8, 130u8, 47u8, 141u8, 197u8, 11u8, 73u8, 100u8, 16u8, + 233u8, 102u8, 179u8, 206u8, 181u8, 207u8, 209u8, 218u8, 116u8, 236u8, + 187u8, 3u8, 29u8, 171u8, 32u8, 142u8, 26u8, 99u8, 237u8, 189u8, 255u8, + 45u8, 99u8, 253u8, 56u8, 116u8, 2u8, 103u8, 112u8, 110u8, 51u8, 233u8, ], ) } @@ -8966,6 +14626,4632 @@ pub mod api { } } } + pub mod democracy { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_democracy::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_democracy::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::propose`]."] + pub struct Propose { + pub proposal: propose::Proposal, + #[codec(compact)] + pub value: propose::Value, + } + pub mod propose { + use super::runtime_types; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + pub type Value = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::second`]."] + pub struct Second { + #[codec(compact)] + pub proposal: second::Proposal, + } + pub mod second { + use super::runtime_types; + pub type Proposal = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Second { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "second"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + #[codec(compact)] + pub ref_index: vote::RefIndex, + pub vote: vote::Vote, + } + pub mod vote { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; + pub type Vote = + runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>; + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::emergency_cancel`]."] + pub struct EmergencyCancel { + pub ref_index: emergency_cancel::RefIndex, + } + pub mod emergency_cancel { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "emergency_cancel"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::external_propose`]."] + pub struct ExternalPropose { + pub proposal: external_propose::Proposal, + } + pub mod external_propose { + use super::runtime_types; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::external_propose_majority`]."] + pub struct ExternalProposeMajority { + pub proposal: external_propose_majority::Proposal, + } + pub mod external_propose_majority { + use super::runtime_types; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_majority"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::external_propose_default`]."] + pub struct ExternalProposeDefault { + pub proposal: external_propose_default::Proposal, + } + pub mod external_propose_default { + use super::runtime_types; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_default"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::fast_track`]."] + pub struct FastTrack { + pub proposal_hash: fast_track::ProposalHash, + pub voting_period: fast_track::VotingPeriod, + pub delay: fast_track::Delay, + } + pub mod fast_track { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type VotingPeriod = ::core::primitive::u32; + pub type Delay = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for FastTrack { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "fast_track"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::veto_external`]."] + pub struct VetoExternal { + pub proposal_hash: veto_external::ProposalHash, + } + pub mod veto_external { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for VetoExternal { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "veto_external"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_referendum`]."] + pub struct CancelReferendum { + #[codec(compact)] + pub ref_index: cancel_referendum::RefIndex, + } + pub mod cancel_referendum { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_referendum"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::delegate`]."] + pub struct Delegate { + pub to: delegate::To, + pub conviction: delegate::Conviction, + pub balance: delegate::Balance, + } + pub mod delegate { + use super::runtime_types; + pub type To = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Conviction = runtime_types::pallet_democracy::conviction::Conviction; + pub type Balance = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Delegate { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "delegate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::undelegate`]."] + pub struct Undelegate; + impl ::subxt::blocks::StaticExtrinsic for Undelegate { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "undelegate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_public_proposals`]."] + pub struct ClearPublicProposals; + impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "clear_public_proposals"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::unlock`]."] + pub struct Unlock { + pub target: unlock::Target, + } + pub mod unlock { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Unlock { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "unlock"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_vote`]."] + pub struct RemoveVote { + pub index: remove_vote::Index, + } + pub mod remove_vote { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveVote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_other_vote`]."] + pub struct RemoveOtherVote { + pub target: remove_other_vote::Target, + pub index: remove_other_vote::Index, + } + pub mod remove_other_vote { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_other_vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::blacklist`]."] + pub struct Blacklist { + pub proposal_hash: blacklist::ProposalHash, + pub maybe_ref_index: blacklist::MaybeRefIndex, + } + pub mod blacklist { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type MaybeRefIndex = ::core::option::Option<::core::primitive::u32>; + } + impl ::subxt::blocks::StaticExtrinsic for Blacklist { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "blacklist"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_proposal`]."] + pub struct CancelProposal { + #[codec(compact)] + pub prop_index: cancel_proposal::PropIndex, + } + pub mod cancel_proposal { + use super::runtime_types; + pub type PropIndex = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for CancelProposal { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + pub owner: set_metadata::Owner, + pub maybe_hash: set_metadata::MaybeHash, + } + pub mod set_metadata { + use super::runtime_types; + pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "set_metadata"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::propose`]."] + pub fn propose( + &self, + proposal: types::propose::Proposal, + value: types::propose::Value, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "propose", + types::Propose { proposal, value }, + [ + 164u8, 45u8, 183u8, 137u8, 222u8, 27u8, 138u8, 45u8, 20u8, 18u8, 234u8, + 211u8, 52u8, 184u8, 234u8, 222u8, 193u8, 9u8, 160u8, 58u8, 198u8, + 106u8, 236u8, 210u8, 172u8, 34u8, 194u8, 107u8, 135u8, 83u8, 22u8, + 238u8, + ], + ) + } + #[doc = "See [`Pallet::second`]."] + pub fn second( + &self, + proposal: types::second::Proposal, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "second", + types::Second { proposal }, + [ + 195u8, 55u8, 178u8, 55u8, 129u8, 64u8, 10u8, 131u8, 217u8, 79u8, 1u8, + 187u8, 73u8, 126u8, 191u8, 221u8, 110u8, 10u8, 13u8, 65u8, 190u8, + 107u8, 21u8, 236u8, 175u8, 130u8, 227u8, 179u8, 173u8, 39u8, 32u8, + 147u8, + ], + ) + } + #[doc = "See [`Pallet::vote`]."] + pub fn vote( + &self, + ref_index: types::vote::RefIndex, + vote: types::vote::Vote, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "vote", + types::Vote { ref_index, vote }, + [ + 106u8, 195u8, 229u8, 44u8, 217u8, 214u8, 8u8, 234u8, 175u8, 62u8, 97u8, + 83u8, 193u8, 180u8, 103u8, 26u8, 174u8, 8u8, 2u8, 158u8, 25u8, 122u8, + 203u8, 122u8, 32u8, 14u8, 107u8, 169u8, 43u8, 240u8, 143u8, 103u8, + ], + ) + } + #[doc = "See [`Pallet::emergency_cancel`]."] + pub fn emergency_cancel( + &self, + ref_index: types::emergency_cancel::RefIndex, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "emergency_cancel", + types::EmergencyCancel { ref_index }, + [ + 82u8, 232u8, 19u8, 158u8, 88u8, 69u8, 96u8, 225u8, 106u8, 253u8, 6u8, + 136u8, 87u8, 0u8, 68u8, 128u8, 122u8, 16u8, 107u8, 76u8, 209u8, 14u8, + 230u8, 49u8, 228u8, 100u8, 187u8, 10u8, 76u8, 71u8, 197u8, 72u8, + ], + ) + } + #[doc = "See [`Pallet::external_propose`]."] + pub fn external_propose( + &self, + proposal: types::external_propose::Proposal, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose", + types::ExternalPropose { proposal }, + [ + 99u8, 120u8, 61u8, 124u8, 244u8, 68u8, 12u8, 240u8, 11u8, 168u8, 4u8, + 50u8, 19u8, 152u8, 255u8, 97u8, 20u8, 195u8, 141u8, 199u8, 31u8, 250u8, + 222u8, 136u8, 47u8, 162u8, 0u8, 32u8, 215u8, 110u8, 94u8, 109u8, + ], + ) + } + #[doc = "See [`Pallet::external_propose_majority`]."] + pub fn external_propose_majority( + &self, + proposal: types::external_propose_majority::Proposal, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose_majority", + types::ExternalProposeMajority { proposal }, + [ + 35u8, 61u8, 130u8, 81u8, 81u8, 180u8, 127u8, 202u8, 67u8, 84u8, 105u8, + 113u8, 112u8, 210u8, 1u8, 191u8, 10u8, 39u8, 157u8, 164u8, 9u8, 231u8, + 75u8, 25u8, 17u8, 175u8, 128u8, 180u8, 238u8, 58u8, 236u8, 214u8, + ], + ) + } + #[doc = "See [`Pallet::external_propose_default`]."] + pub fn external_propose_default( + &self, + proposal: types::external_propose_default::Proposal, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose_default", + types::ExternalProposeDefault { proposal }, + [ + 136u8, 199u8, 244u8, 69u8, 5u8, 174u8, 166u8, 251u8, 102u8, 196u8, + 25u8, 6u8, 33u8, 216u8, 141u8, 78u8, 118u8, 125u8, 128u8, 218u8, 120u8, + 170u8, 166u8, 15u8, 124u8, 216u8, 128u8, 178u8, 5u8, 74u8, 170u8, 25u8, + ], + ) + } + #[doc = "See [`Pallet::fast_track`]."] + pub fn fast_track( + &self, + proposal_hash: types::fast_track::ProposalHash, + voting_period: types::fast_track::VotingPeriod, + delay: types::fast_track::Delay, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "fast_track", + types::FastTrack { + proposal_hash, + voting_period, + delay, + }, + [ + 96u8, 201u8, 216u8, 109u8, 4u8, 244u8, 52u8, 237u8, 120u8, 234u8, 30u8, + 102u8, 186u8, 132u8, 214u8, 22u8, 40u8, 75u8, 118u8, 23u8, 56u8, 68u8, + 192u8, 129u8, 74u8, 61u8, 247u8, 98u8, 103u8, 127u8, 200u8, 171u8, + ], + ) + } + #[doc = "See [`Pallet::veto_external`]."] + pub fn veto_external( + &self, + proposal_hash: types::veto_external::ProposalHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "veto_external", + types::VetoExternal { proposal_hash }, + [ + 121u8, 217u8, 249u8, 134u8, 45u8, 19u8, 126u8, 166u8, 218u8, 223u8, + 165u8, 124u8, 162u8, 59u8, 56u8, 200u8, 227u8, 125u8, 23u8, 133u8, + 196u8, 93u8, 210u8, 15u8, 39u8, 26u8, 58u8, 236u8, 9u8, 101u8, 202u8, + 168u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_referendum`]."] + pub fn cancel_referendum( + &self, + ref_index: types::cancel_referendum::RefIndex, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "cancel_referendum", + types::CancelReferendum { ref_index }, + [ + 149u8, 120u8, 70u8, 20u8, 126u8, 21u8, 30u8, 33u8, 82u8, 124u8, 229u8, + 179u8, 169u8, 243u8, 173u8, 146u8, 140u8, 22u8, 124u8, 154u8, 228u8, + 117u8, 109u8, 88u8, 11u8, 100u8, 235u8, 243u8, 118u8, 99u8, 250u8, + 140u8, + ], + ) + } + #[doc = "See [`Pallet::delegate`]."] + pub fn delegate( + &self, + to: types::delegate::To, + conviction: types::delegate::Conviction, + balance: types::delegate::Balance, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "delegate", + types::Delegate { + to, + conviction, + balance, + }, + [ + 98u8, 204u8, 103u8, 220u8, 240u8, 72u8, 17u8, 89u8, 31u8, 234u8, 53u8, + 234u8, 85u8, 150u8, 42u8, 130u8, 14u8, 164u8, 148u8, 103u8, 199u8, + 230u8, 119u8, 192u8, 95u8, 200u8, 10u8, 214u8, 48u8, 252u8, 64u8, 45u8, + ], + ) + } + #[doc = "See [`Pallet::undelegate`]."] + pub fn undelegate(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "undelegate", + types::Undelegate {}, + [ + 225u8, 156u8, 102u8, 1u8, 172u8, 145u8, 88u8, 12u8, 89u8, 32u8, 51u8, + 83u8, 25u8, 149u8, 132u8, 203u8, 246u8, 98u8, 155u8, 36u8, 165u8, + 206u8, 233u8, 169u8, 91u8, 85u8, 105u8, 67u8, 46u8, 134u8, 244u8, + 250u8, + ], + ) + } + #[doc = "See [`Pallet::clear_public_proposals`]."] + pub fn clear_public_proposals( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "clear_public_proposals", + types::ClearPublicProposals {}, + [ + 116u8, 160u8, 246u8, 216u8, 23u8, 188u8, 144u8, 63u8, 97u8, 198u8, + 11u8, 243u8, 165u8, 84u8, 159u8, 153u8, 235u8, 169u8, 166u8, 15u8, + 23u8, 116u8, 30u8, 56u8, 133u8, 31u8, 158u8, 114u8, 158u8, 86u8, 106u8, + 93u8, + ], + ) + } + #[doc = "See [`Pallet::unlock`]."] + pub fn unlock( + &self, + target: types::unlock::Target, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "unlock", + types::Unlock { target }, + [ + 116u8, 108u8, 113u8, 20u8, 39u8, 227u8, 153u8, 96u8, 178u8, 223u8, + 155u8, 95u8, 111u8, 168u8, 169u8, 32u8, 230u8, 125u8, 119u8, 162u8, + 8u8, 40u8, 57u8, 237u8, 22u8, 160u8, 100u8, 203u8, 247u8, 20u8, 251u8, + 99u8, + ], + ) + } + #[doc = "See [`Pallet::remove_vote`]."] + pub fn remove_vote( + &self, + index: types::remove_vote::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "remove_vote", + types::RemoveVote { index }, + [ + 98u8, 146u8, 215u8, 63u8, 222u8, 70u8, 61u8, 186u8, 90u8, 34u8, 63u8, + 25u8, 195u8, 119u8, 228u8, 189u8, 38u8, 163u8, 58u8, 210u8, 216u8, + 156u8, 20u8, 204u8, 136u8, 192u8, 33u8, 210u8, 124u8, 65u8, 153u8, + 105u8, + ], + ) + } + #[doc = "See [`Pallet::remove_other_vote`]."] + pub fn remove_other_vote( + &self, + target: types::remove_other_vote::Target, + index: types::remove_other_vote::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "remove_other_vote", + types::RemoveOtherVote { target, index }, + [ + 71u8, 148u8, 41u8, 68u8, 78u8, 40u8, 128u8, 217u8, 49u8, 83u8, 128u8, + 13u8, 225u8, 24u8, 41u8, 69u8, 119u8, 229u8, 241u8, 178u8, 20u8, 91u8, + 1u8, 180u8, 113u8, 127u8, 8u8, 2u8, 233u8, 174u8, 192u8, 140u8, + ], + ) + } + #[doc = "See [`Pallet::blacklist`]."] + pub fn blacklist( + &self, + proposal_hash: types::blacklist::ProposalHash, + maybe_ref_index: types::blacklist::MaybeRefIndex, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "blacklist", + types::Blacklist { + proposal_hash, + maybe_ref_index, + }, + [ + 227u8, 200u8, 88u8, 154u8, 134u8, 121u8, 131u8, 177u8, 94u8, 119u8, + 12u8, 129u8, 150u8, 59u8, 108u8, 103u8, 109u8, 55u8, 220u8, 211u8, + 250u8, 103u8, 160u8, 170u8, 63u8, 142u8, 112u8, 244u8, 29u8, 238u8, + 101u8, 24u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_proposal`]."] + pub fn cancel_proposal( + &self, + prop_index: types::cancel_proposal::PropIndex, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "cancel_proposal", + types::CancelProposal { prop_index }, + [ + 213u8, 5u8, 215u8, 209u8, 71u8, 229u8, 66u8, 38u8, 171u8, 38u8, 14u8, + 103u8, 248u8, 176u8, 217u8, 143u8, 234u8, 89u8, 110u8, 250u8, 3u8, + 190u8, 151u8, 74u8, 55u8, 58u8, 249u8, 138u8, 25u8, 191u8, 55u8, 142u8, + ], + ) + } + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + owner: types::set_metadata::Owner, + maybe_hash: types::set_metadata::MaybeHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "set_metadata", + types::SetMetadata { owner, maybe_hash }, + [ + 191u8, 200u8, 139u8, 27u8, 167u8, 250u8, 72u8, 78u8, 18u8, 98u8, 108u8, + 1u8, 122u8, 120u8, 47u8, 77u8, 174u8, 60u8, 247u8, 69u8, 228u8, 196u8, + 149u8, 107u8, 239u8, 45u8, 47u8, 118u8, 87u8, 233u8, 79u8, 29u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_democracy::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion has been proposed by a public account."] + pub struct Proposed { + pub proposal_index: proposed::ProposalIndex, + pub deposit: proposed::Deposit, + } + pub mod proposed { + use super::runtime_types; + pub type ProposalIndex = ::core::primitive::u32; + pub type Deposit = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A public proposal has been tabled for referendum vote."] + pub struct Tabled { + pub proposal_index: tabled::ProposalIndex, + pub deposit: tabled::Deposit, + } + pub mod tabled { + use super::runtime_types; + pub type ProposalIndex = ::core::primitive::u32; + pub type Deposit = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Tabled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Tabled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An external proposal has been tabled."] + pub struct ExternalTabled; + impl ::subxt::events::StaticEvent for ExternalTabled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ExternalTabled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has begun."] + pub struct Started { + pub ref_index: started::RefIndex, + pub threshold: started::Threshold, + } + pub mod started { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; + pub type Threshold = runtime_types::pallet_democracy::vote_threshold::VoteThreshold; + } + impl ::subxt::events::StaticEvent for Started { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Started"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal has been approved by referendum."] + pub struct Passed { + pub ref_index: passed::RefIndex, + } + pub mod passed { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Passed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Passed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal has been rejected by referendum."] + pub struct NotPassed { + pub ref_index: not_passed::RefIndex, + } + pub mod not_passed { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for NotPassed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "NotPassed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been cancelled."] + pub struct Cancelled { + pub ref_index: cancelled::RefIndex, + } + pub mod cancelled { + use super::runtime_types; + pub type RefIndex = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Cancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has delegated their vote to another account."] + pub struct Delegated { + pub who: delegated::Who, + pub target: delegated::Target, + } + pub mod delegated { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Target = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Delegated { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Delegated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has cancelled a previous delegation operation."] + pub struct Undelegated { + pub account: undelegated::Account, + } + pub mod undelegated { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Undelegated { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Undelegated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An external proposal has been vetoed."] + pub struct Vetoed { + pub who: vetoed::Who, + pub proposal_hash: vetoed::ProposalHash, + pub until: vetoed::Until, + } + pub mod vetoed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Until = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Vetoed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Vetoed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal_hash has been blacklisted permanently."] + pub struct Blacklisted { + pub proposal_hash: blacklisted::ProposalHash, + } + pub mod blacklisted { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for Blacklisted { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Blacklisted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has voted in a referendum"] + pub struct Voted { + pub voter: voted::Voter, + pub ref_index: voted::RefIndex, + pub vote: voted::Vote, + } + pub mod voted { + use super::runtime_types; + pub type Voter = ::subxt::utils::AccountId32; + pub type RefIndex = ::core::primitive::u32; + pub type Vote = + runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Voted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has secconded a proposal"] + pub struct Seconded { + pub seconder: seconded::Seconder, + pub prop_index: seconded::PropIndex, + } + pub mod seconded { + use super::runtime_types; + pub type Seconder = ::subxt::utils::AccountId32; + pub type PropIndex = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Seconded { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Seconded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal got canceled."] + pub struct ProposalCanceled { + pub prop_index: proposal_canceled::PropIndex, + } + pub mod proposal_canceled { + use super::runtime_types; + pub type PropIndex = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ProposalCanceled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ProposalCanceled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a proposal or a referendum has been set."] + pub struct MetadataSet { + pub owner: metadata_set::Owner, + pub hash: metadata_set::Hash, + } + pub mod metadata_set { + use super::runtime_types; + pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type Hash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a proposal or a referendum has been cleared."] + pub struct MetadataCleared { + pub owner: metadata_cleared::Owner, + pub hash: metadata_cleared::Hash, + } + pub mod metadata_cleared { + use super::runtime_types; + pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type Hash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been transferred to new owner."] + pub struct MetadataTransferred { + pub prev_owner: metadata_transferred::PrevOwner, + pub owner: metadata_transferred::Owner, + pub hash: metadata_transferred::Hash, + } + pub mod metadata_transferred { + use super::runtime_types; + pub type PrevOwner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type Owner = runtime_types::pallet_democracy::types::MetadataOwner; + pub type Hash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for MetadataTransferred { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataTransferred"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod public_prop_count { + use super::runtime_types; + pub type PublicPropCount = ::core::primitive::u32; + } + pub mod public_props { + use super::runtime_types; + pub type PublicProps = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + ::subxt::utils::AccountId32, + )>; + } + pub mod deposit_of { + use super::runtime_types; + pub type DepositOf = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ::core::primitive::u128, + ); + pub type Param0 = ::core::primitive::u32; + } + pub mod referendum_count { + use super::runtime_types; + pub type ReferendumCount = ::core::primitive::u32; + } + pub mod lowest_unbaked { + use super::runtime_types; + pub type LowestUnbaked = ::core::primitive::u32; + } + pub mod referendum_info_of { + use super::runtime_types; + pub type ReferendumInfoOf = + runtime_types::pallet_democracy::types::ReferendumInfo< + ::core::primitive::u32, + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod voting_of { + use super::runtime_types; + pub type VotingOf = runtime_types::pallet_democracy::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod last_tabled_was_external { + use super::runtime_types; + pub type LastTabledWasExternal = ::core::primitive::bool; + } + pub mod next_external { + use super::runtime_types; + pub type NextExternal = ( + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + ); + } + pub mod blacklist { + use super::runtime_types; + pub type Blacklist = ( + ::core::primitive::u32, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ); + pub type Param0 = ::subxt::utils::H256; + } + pub mod cancellations { + use super::runtime_types; + pub type Cancellations = ::core::primitive::bool; + pub type Param0 = ::subxt::utils::H256; + } + pub mod metadata_of { + use super::runtime_types; + pub type MetadataOf = ::subxt::utils::H256; + pub type Param0 = runtime_types::pallet_democracy::types::MetadataOwner; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The number of (public) proposals that have been made so far."] + pub fn public_prop_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::public_prop_count::PublicPropCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "PublicPropCount", + vec![], + [ + 51u8, 175u8, 184u8, 94u8, 91u8, 212u8, 100u8, 108u8, 127u8, 162u8, + 233u8, 137u8, 12u8, 209u8, 29u8, 130u8, 125u8, 179u8, 208u8, 160u8, + 173u8, 149u8, 12u8, 111u8, 1u8, 82u8, 196u8, 137u8, 51u8, 204u8, 153u8, + 198u8, + ], + ) + } + #[doc = " The public proposals. Unsorted. The second item is the proposal."] + pub fn public_props( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::public_props::PublicProps, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "PublicProps", + vec![], + [ + 174u8, 85u8, 209u8, 117u8, 29u8, 193u8, 230u8, 16u8, 94u8, 219u8, 69u8, + 29u8, 116u8, 35u8, 252u8, 43u8, 127u8, 0u8, 43u8, 218u8, 240u8, 176u8, + 73u8, 81u8, 207u8, 131u8, 227u8, 132u8, 242u8, 45u8, 172u8, 50u8, + ], + ) + } + #[doc = " Those who have locked a deposit."] + #[doc = ""] + #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] + pub fn deposit_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deposit_of::DepositOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "DepositOf", + vec![], + [ + 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, 140u8, 101u8, 47u8, + 46u8, 3u8, 78u8, 30u8, 180u8, 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, + 84u8, 33u8, 21u8, 65u8, 110u8, 52u8, 245u8, 19u8, 6u8, 104u8, 167u8, + ], + ) + } + #[doc = " Those who have locked a deposit."] + #[doc = ""] + #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] + pub fn deposit_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deposit_of::DepositOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "DepositOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, 140u8, 101u8, 47u8, + 46u8, 3u8, 78u8, 30u8, 180u8, 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, + 84u8, 33u8, 21u8, 65u8, 110u8, 52u8, 245u8, 19u8, 6u8, 104u8, 167u8, + ], + ) + } + #[doc = " The next free referendum index, aka the number of referenda started so far."] + pub fn referendum_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::referendum_count::ReferendumCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumCount", + vec![], + [ + 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, + 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, + 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, + 67u8, + ], + ) + } + #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] + #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] + pub fn lowest_unbaked( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::lowest_unbaked::LowestUnbaked, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "LowestUnbaked", + vec![], + [ + 237u8, 222u8, 144u8, 214u8, 0u8, 186u8, 81u8, 176u8, 51u8, 14u8, 204u8, + 184u8, 147u8, 97u8, 187u8, 84u8, 40u8, 8u8, 86u8, 241u8, 16u8, 157u8, + 202u8, 44u8, 185u8, 111u8, 70u8, 114u8, 40u8, 135u8, 1u8, 155u8, + ], + ) + } + #[doc = " Information concerning any given referendum."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] + pub fn referendum_info_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::referendum_info_of::ReferendumInfoOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumInfoOf", + vec![], + [ + 245u8, 152u8, 149u8, 236u8, 59u8, 164u8, 120u8, 142u8, 130u8, 25u8, + 119u8, 158u8, 103u8, 140u8, 203u8, 213u8, 110u8, 151u8, 137u8, 226u8, + 186u8, 130u8, 233u8, 245u8, 145u8, 145u8, 140u8, 54u8, 222u8, 219u8, + 234u8, 206u8, + ], + ) + } + #[doc = " Information concerning any given referendum."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] + pub fn referendum_info_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::referendum_info_of::ReferendumInfoOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumInfoOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 245u8, 152u8, 149u8, 236u8, 59u8, 164u8, 120u8, 142u8, 130u8, 25u8, + 119u8, 158u8, 103u8, 140u8, 203u8, 213u8, 110u8, 151u8, 137u8, 226u8, + 186u8, 130u8, 233u8, 245u8, 145u8, 145u8, 140u8, 54u8, 222u8, 219u8, + 234u8, 206u8, + ], + ) + } + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] + #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] + pub fn voting_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting_of::VotingOf, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "VotingOf", + vec![], + [ + 234u8, 35u8, 206u8, 197u8, 17u8, 251u8, 1u8, 230u8, 80u8, 235u8, 108u8, + 126u8, 82u8, 145u8, 39u8, 104u8, 209u8, 16u8, 209u8, 52u8, 165u8, + 231u8, 110u8, 92u8, 113u8, 212u8, 72u8, 57u8, 60u8, 73u8, 107u8, 118u8, + ], + ) + } + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] + #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] + pub fn voting_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting_of::VotingOf, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "VotingOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 234u8, 35u8, 206u8, 197u8, 17u8, 251u8, 1u8, 230u8, 80u8, 235u8, 108u8, + 126u8, 82u8, 145u8, 39u8, 104u8, 209u8, 16u8, 209u8, 52u8, 165u8, + 231u8, 110u8, 92u8, 113u8, 212u8, 72u8, 57u8, 60u8, 73u8, 107u8, 118u8, + ], + ) + } + #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] + #[doc = " proposal."] + pub fn last_tabled_was_external( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::last_tabled_was_external::LastTabledWasExternal, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "LastTabledWasExternal", + vec![], + [ + 162u8, 201u8, 72u8, 9u8, 78u8, 49u8, 72u8, 62u8, 240u8, 69u8, 20u8, + 135u8, 26u8, 59u8, 71u8, 46u8, 19u8, 25u8, 195u8, 11u8, 99u8, 31u8, + 104u8, 4u8, 24u8, 129u8, 47u8, 69u8, 219u8, 178u8, 104u8, 190u8, + ], + ) + } + #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] + #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] + #[doc = " - `LastTabledWasExternal` is `false`; or"] + #[doc = " - `PublicProps` is empty."] + pub fn next_external( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_external::NextExternal, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "NextExternal", + vec![], + [ + 240u8, 58u8, 238u8, 86u8, 35u8, 48u8, 192u8, 51u8, 91u8, 4u8, 47u8, + 202u8, 21u8, 74u8, 158u8, 64u8, 107u8, 247u8, 248u8, 240u8, 122u8, + 109u8, 204u8, 180u8, 103u8, 239u8, 156u8, 68u8, 141u8, 253u8, 131u8, + 239u8, + ], + ) + } + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] + #[doc = " (until when it may not be resubmitted) and who vetoed it."] + pub fn blacklist_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::blacklist::Blacklist, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Blacklist", + vec![], + [ + 12u8, 231u8, 204u8, 151u8, 57u8, 182u8, 5u8, 74u8, 231u8, 100u8, 165u8, + 28u8, 147u8, 109u8, 119u8, 37u8, 138u8, 159u8, 7u8, 175u8, 41u8, 110u8, + 205u8, 69u8, 17u8, 9u8, 39u8, 102u8, 90u8, 244u8, 165u8, 141u8, + ], + ) + } + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] + #[doc = " (until when it may not be resubmitted) and who vetoed it."] + pub fn blacklist( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::blacklist::Blacklist, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Blacklist", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 12u8, 231u8, 204u8, 151u8, 57u8, 182u8, 5u8, 74u8, 231u8, 100u8, 165u8, + 28u8, 147u8, 109u8, 119u8, 37u8, 138u8, 159u8, 7u8, 175u8, 41u8, 110u8, + 205u8, 69u8, 17u8, 9u8, 39u8, 102u8, 90u8, 244u8, 165u8, 141u8, + ], + ) + } + #[doc = " Record of all proposals that have been subject to emergency cancellation."] + pub fn cancellations_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::cancellations::Cancellations, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Cancellations", + vec![], + [ + 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, 180u8, 74u8, 128u8, + 232u8, 29u8, 193u8, 209u8, 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, + 149u8, 13u8, 123u8, 232u8, 34u8, 208u8, 48u8, 104u8, 35u8, 181u8, + 186u8, 244u8, + ], + ) + } + #[doc = " Record of all proposals that have been subject to emergency cancellation."] + pub fn cancellations( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::cancellations::Cancellations, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Cancellations", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, 180u8, 74u8, 128u8, + 232u8, 29u8, 193u8, 209u8, 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, + 149u8, 13u8, 123u8, 232u8, 34u8, 208u8, 48u8, 104u8, 35u8, 181u8, + 186u8, 244u8, + ], + ) + } + #[doc = " General information concerning any proposal or referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata_of::MetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "MetadataOf", + vec![], + [ + 52u8, 151u8, 124u8, 110u8, 85u8, 173u8, 181u8, 86u8, 174u8, 183u8, + 102u8, 22u8, 8u8, 36u8, 224u8, 114u8, 98u8, 0u8, 220u8, 215u8, 19u8, + 147u8, 32u8, 238u8, 242u8, 187u8, 235u8, 163u8, 183u8, 235u8, 9u8, + 180u8, + ], + ) + } + #[doc = " General information concerning any proposal or referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata_of::MetadataOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "MetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 52u8, 151u8, 124u8, 110u8, 85u8, 173u8, 181u8, 86u8, 174u8, 183u8, + 102u8, 22u8, 8u8, 36u8, 224u8, 114u8, 98u8, 0u8, 220u8, 215u8, 19u8, + 147u8, 32u8, 238u8, 242u8, 187u8, 235u8, 163u8, 183u8, 235u8, 9u8, + 180u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The period between a proposal being approved and enacted."] + #[doc = ""] + #[doc = " It should generally be a little more than the unstake period to ensure that"] + #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] + #[doc = " where they are on the losing side of a vote."] + pub fn enactment_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "EnactmentPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " How often (in blocks) new public referenda are launched."] + pub fn launch_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "LaunchPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " How often (in blocks) to check for new votes."] + pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "VotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The minimum period of vote locking."] + #[doc = ""] + #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] + #[doc = " those successful voters are locked into the consequences that their votes entail."] + pub fn vote_locking_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "VoteLockingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] + pub fn minimum_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Democracy", + "MinimumDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] + #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] + #[doc = " as an upgrade having happened recently."] + pub fn instant_allowed( + &self, + ) -> ::subxt::constants::Address<::core::primitive::bool> { + ::subxt::constants::Address::new_static( + "Democracy", + "InstantAllowed", + [ + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, + 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, + 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, + ], + ) + } + #[doc = " Minimum voting period allowed for a fast-track referendum."] + pub fn fast_track_voting_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "FastTrackVotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] + pub fn cooloff_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "CooloffPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of votes for an account."] + #[doc = ""] + #[doc = " Also used to compute weight, an overly big value can"] + #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] + pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxVotes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of public proposals that can exist at any time."] + pub fn max_proposals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxProposals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of deposits a public proposal may have at any time."] + pub fn max_deposits(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxDeposits", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of items which can be blacklisted."] + pub fn max_blacklisted( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxBlacklisted", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod council { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_collective::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_collective::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_members`]."] + pub struct SetMembers { + pub new_members: set_members::NewMembers, + pub prime: set_members::Prime, + pub old_count: set_members::OldCount, + } + pub mod set_members { + use super::runtime_types; + pub type NewMembers = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Prime = ::core::option::Option<::subxt::utils::AccountId32>; + pub type OldCount = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for SetMembers { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "set_members"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::execute`]."] + pub struct Execute { + pub proposal: ::std::boxed::Box, + #[codec(compact)] + pub length_bound: execute::LengthBound, + } + pub mod execute { + use super::runtime_types; + pub type Proposal = runtime_types::kitchensink_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Execute { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "execute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::propose`]."] + pub struct Propose { + #[codec(compact)] + pub threshold: propose::Threshold, + pub proposal: ::std::boxed::Box, + #[codec(compact)] + pub length_bound: propose::LengthBound, + } + pub mod propose { + use super::runtime_types; + pub type Threshold = ::core::primitive::u32; + pub type Proposal = runtime_types::kitchensink_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + pub proposal: vote::Proposal, + #[codec(compact)] + pub index: vote::Index, + pub approve: vote::Approve, + } + pub mod vote { + use super::runtime_types; + pub type Proposal = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Approve = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::disapprove_proposal`]."] + pub struct DisapproveProposal { + pub proposal_hash: disapprove_proposal::ProposalHash, + } + pub mod disapprove_proposal { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "disapprove_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::close`]."] + pub struct Close { + pub proposal_hash: close::ProposalHash, + #[codec(compact)] + pub index: close::Index, + pub proposal_weight_bound: close::ProposalWeightBound, + #[codec(compact)] + pub length_bound: close::LengthBound, + } + pub mod close { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type ProposalWeightBound = runtime_types::sp_weights::weight_v2::Weight; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Close { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "close"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::set_members`]."] + pub fn set_members( + &self, + new_members: types::set_members::NewMembers, + prime: types::set_members::Prime, + old_count: types::set_members::OldCount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "set_members", + types::SetMembers { + new_members, + prime, + old_count, + }, + [ + 66u8, 224u8, 186u8, 178u8, 41u8, 208u8, 67u8, 192u8, 57u8, 242u8, + 141u8, 31u8, 216u8, 118u8, 192u8, 43u8, 125u8, 213u8, 226u8, 85u8, + 142u8, 225u8, 131u8, 45u8, 172u8, 142u8, 12u8, 9u8, 73u8, 7u8, 218u8, + 61u8, + ], + ) + } + #[doc = "See [`Pallet::execute`]."] + pub fn execute( + &self, + proposal: types::execute::Proposal, + length_bound: types::execute::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "execute", + types::Execute { + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 157u8, 207u8, 243u8, 239u8, 181u8, 183u8, 122u8, 137u8, 109u8, 51u8, + 174u8, 199u8, 13u8, 201u8, 103u8, 66u8, 27u8, 125u8, 252u8, 86u8, + 129u8, 30u8, 235u8, 40u8, 134u8, 122u8, 164u8, 46u8, 30u8, 34u8, 29u8, + 16u8, + ], + ) + } + #[doc = "See [`Pallet::propose`]."] + pub fn propose( + &self, + threshold: types::propose::Threshold, + proposal: types::propose::Proposal, + length_bound: types::propose::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "propose", + types::Propose { + threshold, + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 139u8, 248u8, 151u8, 57u8, 176u8, 218u8, 224u8, 133u8, 192u8, 87u8, + 99u8, 162u8, 252u8, 169u8, 146u8, 165u8, 78u8, 11u8, 31u8, 206u8, + 171u8, 39u8, 123u8, 2u8, 241u8, 178u8, 192u8, 28u8, 9u8, 143u8, 97u8, + 123u8, + ], + ) + } + #[doc = "See [`Pallet::vote`]."] + pub fn vote( + &self, + proposal: types::vote::Proposal, + index: types::vote::Index, + approve: types::vote::Approve, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "vote", + types::Vote { + proposal, + index, + approve, + }, + [ + 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, + 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, + 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, + 120u8, + ], + ) + } + #[doc = "See [`Pallet::disapprove_proposal`]."] + pub fn disapprove_proposal( + &self, + proposal_hash: types::disapprove_proposal::ProposalHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "disapprove_proposal", + types::DisapproveProposal { proposal_hash }, + [ + 26u8, 140u8, 111u8, 193u8, 229u8, 59u8, 53u8, 196u8, 230u8, 60u8, 7u8, + 155u8, 168u8, 7u8, 201u8, 177u8, 70u8, 103u8, 190u8, 57u8, 244u8, + 156u8, 67u8, 101u8, 228u8, 6u8, 213u8, 83u8, 225u8, 95u8, 148u8, 96u8, + ], + ) + } + #[doc = "See [`Pallet::close`]."] + pub fn close( + &self, + proposal_hash: types::close::ProposalHash, + index: types::close::Index, + proposal_weight_bound: types::close::ProposalWeightBound, + length_bound: types::close::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "close", + types::Close { + proposal_hash, + index, + proposal_weight_bound, + length_bound, + }, + [ + 136u8, 48u8, 243u8, 34u8, 60u8, 109u8, 186u8, 158u8, 72u8, 48u8, 62u8, + 34u8, 167u8, 46u8, 33u8, 142u8, 239u8, 43u8, 238u8, 125u8, 94u8, 80u8, + 157u8, 245u8, 220u8, 126u8, 58u8, 244u8, 186u8, 195u8, 30u8, 127u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_collective::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + pub struct Proposed { + pub account: proposed::Account, + pub proposal_index: proposed::ProposalIndex, + pub proposal_hash: proposed::ProposalHash, + pub threshold: proposed::Threshold, + } + pub mod proposed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalIndex = ::core::primitive::u32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Threshold = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + pub struct Voted { + pub account: voted::Account, + pub proposal_hash: voted::ProposalHash, + pub voted: voted::Voted, + pub yes: voted::Yes, + pub no: voted::No, + } + pub mod voted { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Voted = ::core::primitive::bool; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Voted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was approved by the required threshold."] + pub struct Approved { + pub proposal_hash: approved::ProposalHash, + } + pub mod approved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for Approved { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was not approved by the required threshold."] + pub struct Disapproved { + pub proposal_hash: disapproved::ProposalHash, + } + pub mod disapproved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for Disapproved { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Disapproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + pub struct Executed { + pub proposal_hash: executed::ProposalHash, + pub result: executed::Result, + } + pub mod executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for Executed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Executed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + pub struct MemberExecuted { + pub proposal_hash: member_executed::ProposalHash, + pub result: member_executed::Result, + } + pub mod member_executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for MemberExecuted { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "MemberExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + pub struct Closed { + pub proposal_hash: closed::ProposalHash, + pub yes: closed::Yes, + pub no: closed::No, + } + pub mod closed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Closed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Closed"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod proposals { + use super::runtime_types; + pub type Proposals = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >; + } + pub mod proposal_of { + use super::runtime_types; + pub type ProposalOf = runtime_types::kitchensink_runtime::RuntimeCall; + pub type Param0 = ::subxt::utils::H256; + } + pub mod voting { + use super::runtime_types; + pub type Voting = runtime_types::pallet_collective::Votes< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Param0 = ::subxt::utils::H256; + } + pub mod proposal_count { + use super::runtime_types; + pub type ProposalCount = ::core::primitive::u32; + } + pub mod members { + use super::runtime_types; + pub type Members = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + pub mod prime { + use super::runtime_types; + pub type Prime = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The hashes of the active proposals."] + pub fn proposals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposals::Proposals, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Proposals", + vec![], + [ + 210u8, 234u8, 7u8, 29u8, 231u8, 80u8, 17u8, 36u8, 189u8, 34u8, 175u8, + 147u8, 56u8, 92u8, 201u8, 104u8, 207u8, 150u8, 58u8, 110u8, 90u8, 28u8, + 198u8, 79u8, 236u8, 245u8, 19u8, 38u8, 68u8, 59u8, 215u8, 74u8, + ], + ) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_of::ProposalOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalOf", + vec![], + [ + 64u8, 157u8, 239u8, 215u8, 167u8, 82u8, 218u8, 126u8, 136u8, 8u8, 68u8, + 101u8, 66u8, 63u8, 203u8, 169u8, 232u8, 162u8, 174u8, 87u8, 253u8, + 33u8, 234u8, 154u8, 36u8, 65u8, 227u8, 33u8, 241u8, 52u8, 135u8, 126u8, + ], + ) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_of::ProposalOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 64u8, 157u8, 239u8, 215u8, 167u8, 82u8, 218u8, 126u8, 136u8, 8u8, 68u8, + 101u8, 66u8, 63u8, 203u8, 169u8, 232u8, 162u8, 174u8, 87u8, 253u8, + 33u8, 234u8, 154u8, 36u8, 65u8, 227u8, 33u8, 241u8, 52u8, 135u8, 126u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Voting", + vec![], + [ + 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, + 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, + 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, + 132u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Voting", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, + 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, + 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, + 132u8, + ], + ) + } + #[doc = " Proposals so far."] + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_count::ProposalCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalCount", + vec![], + [ + 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, + 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, + 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, + ], + ) + } + #[doc = " The current members of the collective. This is stored sorted (just by value)."] + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::members::Members, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Members", + vec![], + [ + 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, + 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, + 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, + ], + ) + } + #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] + pub fn prime( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::prime::Prime, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Prime", + vec![], + [ + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, + 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, + 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] + pub fn max_proposal_weight( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Council", + "MaxProposalWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + } + } + } + pub mod technical_committee { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_collective::pallet::Error2; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_collective::pallet::Call2; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_members`]."] + pub struct SetMembers { + pub new_members: set_members::NewMembers, + pub prime: set_members::Prime, + pub old_count: set_members::OldCount, + } + pub mod set_members { + use super::runtime_types; + pub type NewMembers = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Prime = ::core::option::Option<::subxt::utils::AccountId32>; + pub type OldCount = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for SetMembers { + const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "set_members"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::execute`]."] + pub struct Execute { + pub proposal: ::std::boxed::Box, + #[codec(compact)] + pub length_bound: execute::LengthBound, + } + pub mod execute { + use super::runtime_types; + pub type Proposal = runtime_types::kitchensink_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Execute { + const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "execute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::propose`]."] + pub struct Propose { + #[codec(compact)] + pub threshold: propose::Threshold, + pub proposal: ::std::boxed::Box, + #[codec(compact)] + pub length_bound: propose::LengthBound, + } + pub mod propose { + use super::runtime_types; + pub type Threshold = ::core::primitive::u32; + pub type Proposal = runtime_types::kitchensink_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + pub proposal: vote::Proposal, + #[codec(compact)] + pub index: vote::Index, + pub approve: vote::Approve, + } + pub mod vote { + use super::runtime_types; + pub type Proposal = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Approve = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::disapprove_proposal`]."] + pub struct DisapproveProposal { + pub proposal_hash: disapprove_proposal::ProposalHash, + } + pub mod disapprove_proposal { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { + const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "disapprove_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::close`]."] + pub struct Close { + pub proposal_hash: close::ProposalHash, + #[codec(compact)] + pub index: close::Index, + pub proposal_weight_bound: close::ProposalWeightBound, + #[codec(compact)] + pub length_bound: close::LengthBound, + } + pub mod close { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type ProposalWeightBound = runtime_types::sp_weights::weight_v2::Weight; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Close { + const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "close"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::set_members`]."] + pub fn set_members( + &self, + new_members: types::set_members::NewMembers, + prime: types::set_members::Prime, + old_count: types::set_members::OldCount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalCommittee", + "set_members", + types::SetMembers { + new_members, + prime, + old_count, + }, + [ + 66u8, 224u8, 186u8, 178u8, 41u8, 208u8, 67u8, 192u8, 57u8, 242u8, + 141u8, 31u8, 216u8, 118u8, 192u8, 43u8, 125u8, 213u8, 226u8, 85u8, + 142u8, 225u8, 131u8, 45u8, 172u8, 142u8, 12u8, 9u8, 73u8, 7u8, 218u8, + 61u8, + ], + ) + } + #[doc = "See [`Pallet::execute`]."] + pub fn execute( + &self, + proposal: types::execute::Proposal, + length_bound: types::execute::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalCommittee", + "execute", + types::Execute { + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 157u8, 207u8, 243u8, 239u8, 181u8, 183u8, 122u8, 137u8, 109u8, 51u8, + 174u8, 199u8, 13u8, 201u8, 103u8, 66u8, 27u8, 125u8, 252u8, 86u8, + 129u8, 30u8, 235u8, 40u8, 134u8, 122u8, 164u8, 46u8, 30u8, 34u8, 29u8, + 16u8, + ], + ) + } + #[doc = "See [`Pallet::propose`]."] + pub fn propose( + &self, + threshold: types::propose::Threshold, + proposal: types::propose::Proposal, + length_bound: types::propose::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalCommittee", + "propose", + types::Propose { + threshold, + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 139u8, 248u8, 151u8, 57u8, 176u8, 218u8, 224u8, 133u8, 192u8, 87u8, + 99u8, 162u8, 252u8, 169u8, 146u8, 165u8, 78u8, 11u8, 31u8, 206u8, + 171u8, 39u8, 123u8, 2u8, 241u8, 178u8, 192u8, 28u8, 9u8, 143u8, 97u8, + 123u8, + ], + ) + } + #[doc = "See [`Pallet::vote`]."] + pub fn vote( + &self, + proposal: types::vote::Proposal, + index: types::vote::Index, + approve: types::vote::Approve, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalCommittee", + "vote", + types::Vote { + proposal, + index, + approve, + }, + [ + 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, + 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, + 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, + 120u8, + ], + ) + } + #[doc = "See [`Pallet::disapprove_proposal`]."] + pub fn disapprove_proposal( + &self, + proposal_hash: types::disapprove_proposal::ProposalHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalCommittee", + "disapprove_proposal", + types::DisapproveProposal { proposal_hash }, + [ + 26u8, 140u8, 111u8, 193u8, 229u8, 59u8, 53u8, 196u8, 230u8, 60u8, 7u8, + 155u8, 168u8, 7u8, 201u8, 177u8, 70u8, 103u8, 190u8, 57u8, 244u8, + 156u8, 67u8, 101u8, 228u8, 6u8, 213u8, 83u8, 225u8, 95u8, 148u8, 96u8, + ], + ) + } + #[doc = "See [`Pallet::close`]."] + pub fn close( + &self, + proposal_hash: types::close::ProposalHash, + index: types::close::Index, + proposal_weight_bound: types::close::ProposalWeightBound, + length_bound: types::close::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalCommittee", + "close", + types::Close { + proposal_hash, + index, + proposal_weight_bound, + length_bound, + }, + [ + 136u8, 48u8, 243u8, 34u8, 60u8, 109u8, 186u8, 158u8, 72u8, 48u8, 62u8, + 34u8, 167u8, 46u8, 33u8, 142u8, 239u8, 43u8, 238u8, 125u8, 94u8, 80u8, + 157u8, 245u8, 220u8, 126u8, 58u8, 244u8, 186u8, 195u8, 30u8, 127u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_collective::pallet::Event2; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + pub struct Proposed { + pub account: proposed::Account, + pub proposal_index: proposed::ProposalIndex, + pub proposal_hash: proposed::ProposalHash, + pub threshold: proposed::Threshold, + } + pub mod proposed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalIndex = ::core::primitive::u32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Threshold = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + pub struct Voted { + pub account: voted::Account, + pub proposal_hash: voted::ProposalHash, + pub voted: voted::Voted, + pub yes: voted::Yes, + pub no: voted::No, + } + pub mod voted { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Voted = ::core::primitive::bool; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Voted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was approved by the required threshold."] + pub struct Approved { + pub proposal_hash: approved::ProposalHash, + } + pub mod approved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for Approved { + const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was not approved by the required threshold."] + pub struct Disapproved { + pub proposal_hash: disapproved::ProposalHash, + } + pub mod disapproved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for Disapproved { + const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Disapproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + pub struct Executed { + pub proposal_hash: executed::ProposalHash, + pub result: executed::Result, + } + pub mod executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for Executed { + const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Executed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + pub struct MemberExecuted { + pub proposal_hash: member_executed::ProposalHash, + pub result: member_executed::Result, + } + pub mod member_executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for MemberExecuted { + const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "MemberExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + pub struct Closed { + pub proposal_hash: closed::ProposalHash, + pub yes: closed::Yes, + pub no: closed::No, + } + pub mod closed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Closed { + const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Closed"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod proposals { + use super::runtime_types; + pub type Proposals = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >; + } + pub mod proposal_of { + use super::runtime_types; + pub type ProposalOf = runtime_types::kitchensink_runtime::RuntimeCall; + pub type Param0 = ::subxt::utils::H256; + } + pub mod voting { + use super::runtime_types; + pub type Voting = runtime_types::pallet_collective::Votes< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Param0 = ::subxt::utils::H256; + } + pub mod proposal_count { + use super::runtime_types; + pub type ProposalCount = ::core::primitive::u32; + } + pub mod members { + use super::runtime_types; + pub type Members = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + pub mod prime { + use super::runtime_types; + pub type Prime = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The hashes of the active proposals."] + pub fn proposals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposals::Proposals, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TechnicalCommittee", + "Proposals", + vec![], + [ + 210u8, 234u8, 7u8, 29u8, 231u8, 80u8, 17u8, 36u8, 189u8, 34u8, 175u8, + 147u8, 56u8, 92u8, 201u8, 104u8, 207u8, 150u8, 58u8, 110u8, 90u8, 28u8, + 198u8, 79u8, 236u8, 245u8, 19u8, 38u8, 68u8, 59u8, 215u8, 74u8, + ], + ) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_of::ProposalOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TechnicalCommittee", + "ProposalOf", + vec![], + [ + 64u8, 157u8, 239u8, 215u8, 167u8, 82u8, 218u8, 126u8, 136u8, 8u8, 68u8, + 101u8, 66u8, 63u8, 203u8, 169u8, 232u8, 162u8, 174u8, 87u8, 253u8, + 33u8, 234u8, 154u8, 36u8, 65u8, 227u8, 33u8, 241u8, 52u8, 135u8, 126u8, + ], + ) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_of::ProposalOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "TechnicalCommittee", + "ProposalOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 64u8, 157u8, 239u8, 215u8, 167u8, 82u8, 218u8, 126u8, 136u8, 8u8, 68u8, + 101u8, 66u8, 63u8, 203u8, 169u8, 232u8, 162u8, 174u8, 87u8, 253u8, + 33u8, 234u8, 154u8, 36u8, 65u8, 227u8, 33u8, 241u8, 52u8, 135u8, 126u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TechnicalCommittee", + "Voting", + vec![], + [ + 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, + 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, + 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, + 132u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "TechnicalCommittee", + "Voting", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, + 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, + 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, + 132u8, + ], + ) + } + #[doc = " Proposals so far."] + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_count::ProposalCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TechnicalCommittee", + "ProposalCount", + vec![], + [ + 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, + 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, + 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, + ], + ) + } + #[doc = " The current members of the collective. This is stored sorted (just by value)."] + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::members::Members, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TechnicalCommittee", + "Members", + vec![], + [ + 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, + 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, + 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, + ], + ) + } + #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] + pub fn prime( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::prime::Prime, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "TechnicalCommittee", + "Prime", + vec![], + [ + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, + 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, + 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] + pub fn max_proposal_weight( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "TechnicalCommittee", + "MaxProposalWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + } + } + } + pub mod elections { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + pub votes: vote::Votes, + #[codec(compact)] + pub value: vote::Value, + } + pub mod vote { + use super::runtime_types; + pub type Votes = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Value = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_voter`]."] + pub struct RemoveVoter; + impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_voter"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::submit_candidacy`]."] + pub struct SubmitCandidacy { + #[codec(compact)] + pub candidate_count: submit_candidacy::CandidateCount, + } + pub mod submit_candidacy { + use super::runtime_types; + pub type CandidateCount = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "submit_candidacy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::renounce_candidacy`]."] + pub struct RenounceCandidacy { + pub renouncing: renounce_candidacy::Renouncing, + } + pub mod renounce_candidacy { + use super::runtime_types; + pub type Renouncing = runtime_types::pallet_elections_phragmen::Renouncing; + } + impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "renounce_candidacy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_member`]."] + pub struct RemoveMember { + pub who: remove_member::Who, + pub slash_bond: remove_member::SlashBond, + pub rerun_election: remove_member::RerunElection, + } + pub mod remove_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type SlashBond = ::core::primitive::bool; + pub type RerunElection = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveMember { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clean_defunct_voters`]."] + pub struct CleanDefunctVoters { + pub num_voters: clean_defunct_voters::NumVoters, + pub num_defunct: clean_defunct_voters::NumDefunct, + } + pub mod clean_defunct_voters { + use super::runtime_types; + pub type NumVoters = ::core::primitive::u32; + pub type NumDefunct = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "clean_defunct_voters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::vote`]."] + pub fn vote( + &self, + votes: types::vote::Votes, + value: types::vote::Value, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "vote", + types::Vote { votes, value }, + [ + 229u8, 163u8, 1u8, 49u8, 26u8, 130u8, 7u8, 228u8, 34u8, 80u8, 17u8, + 125u8, 32u8, 180u8, 174u8, 69u8, 17u8, 171u8, 163u8, 54u8, 42u8, 139u8, + 201u8, 205u8, 196u8, 18u8, 16u8, 211u8, 252u8, 64u8, 73u8, 5u8, + ], + ) + } + #[doc = "See [`Pallet::remove_voter`]."] + pub fn remove_voter(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "remove_voter", + types::RemoveVoter {}, + [ + 89u8, 43u8, 70u8, 117u8, 76u8, 84u8, 230u8, 114u8, 229u8, 91u8, 75u8, + 213u8, 47u8, 143u8, 233u8, 47u8, 108u8, 120u8, 171u8, 167u8, 14u8, + 62u8, 52u8, 20u8, 227u8, 106u8, 249u8, 239u8, 33u8, 115u8, 155u8, + 106u8, + ], + ) + } + #[doc = "See [`Pallet::submit_candidacy`]."] + pub fn submit_candidacy( + &self, + candidate_count: types::submit_candidacy::CandidateCount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "submit_candidacy", + types::SubmitCandidacy { candidate_count }, + [ + 229u8, 169u8, 247u8, 102u8, 33u8, 7u8, 9u8, 125u8, 190u8, 179u8, 241u8, + 220u8, 205u8, 242u8, 168u8, 112u8, 197u8, 169u8, 135u8, 133u8, 102u8, + 173u8, 168u8, 203u8, 17u8, 135u8, 224u8, 145u8, 101u8, 204u8, 253u8, + 4u8, + ], + ) + } + #[doc = "See [`Pallet::renounce_candidacy`]."] + pub fn renounce_candidacy( + &self, + renouncing: types::renounce_candidacy::Renouncing, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "renounce_candidacy", + types::RenounceCandidacy { renouncing }, + [ + 230u8, 140u8, 205u8, 240u8, 110u8, 247u8, 242u8, 185u8, 228u8, 135u8, + 243u8, 73u8, 71u8, 200u8, 88u8, 134u8, 132u8, 174u8, 190u8, 251u8, + 81u8, 85u8, 174u8, 230u8, 94u8, 97u8, 96u8, 230u8, 15u8, 204u8, 247u8, + 214u8, + ], + ) + } + #[doc = "See [`Pallet::remove_member`]."] + pub fn remove_member( + &self, + who: types::remove_member::Who, + slash_bond: types::remove_member::SlashBond, + rerun_election: types::remove_member::RerunElection, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "remove_member", + types::RemoveMember { + who, + slash_bond, + rerun_election, + }, + [ + 108u8, 79u8, 187u8, 116u8, 243u8, 133u8, 188u8, 142u8, 71u8, 3u8, + 206u8, 109u8, 255u8, 118u8, 165u8, 21u8, 38u8, 192u8, 205u8, 69u8, + 223u8, 240u8, 104u8, 85u8, 234u8, 153u8, 153u8, 120u8, 36u8, 70u8, + 67u8, 124u8, + ], + ) + } + #[doc = "See [`Pallet::clean_defunct_voters`]."] + pub fn clean_defunct_voters( + &self, + num_voters: types::clean_defunct_voters::NumVoters, + num_defunct: types::clean_defunct_voters::NumDefunct, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "clean_defunct_voters", + types::CleanDefunctVoters { + num_voters, + num_defunct, + }, + [ + 99u8, 129u8, 198u8, 141u8, 41u8, 90u8, 151u8, 167u8, 50u8, 236u8, 88u8, + 57u8, 25u8, 26u8, 130u8, 61u8, 123u8, 177u8, 98u8, 57u8, 39u8, 204u8, + 29u8, 24u8, 191u8, 229u8, 224u8, 110u8, 223u8, 248u8, 191u8, 177u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] + #[doc = "the election, not that enough have has been elected. The inner value must be examined"] + #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] + #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] + #[doc = "begin with."] + pub struct NewTerm { + pub new_members: new_term::NewMembers, + } + pub mod new_term { + use super::runtime_types; + pub type NewMembers = + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>; + } + impl ::subxt::events::StaticEvent for NewTerm { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "NewTerm"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "No (or not enough) candidates existed for this round. This is different from"] + #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] + pub struct EmptyTerm; + impl ::subxt::events::StaticEvent for EmptyTerm { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "EmptyTerm"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Internal error happened while trying to perform election."] + pub struct ElectionError; + impl ::subxt::events::StaticEvent for ElectionError { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "ElectionError"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] + #[doc = "`EmptyTerm`."] + pub struct MemberKicked { + pub member: member_kicked::Member, + } + pub mod member_kicked { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for MemberKicked { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "MemberKicked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Someone has renounced their candidacy."] + pub struct Renounced { + pub candidate: renounced::Candidate, + } + pub mod renounced { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Renounced { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "Renounced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] + #[doc = "runner-up."] + #[doc = ""] + #[doc = "Note that old members and runners-up are also candidates."] + pub struct CandidateSlashed { + pub candidate: candidate_slashed::Candidate, + pub amount: candidate_slashed::Amount, + } + pub mod candidate_slashed { + use super::runtime_types; + pub type Candidate = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for CandidateSlashed { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "CandidateSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] + pub struct SeatHolderSlashed { + pub seat_holder: seat_holder_slashed::SeatHolder, + pub amount: seat_holder_slashed::Amount, + } + pub mod seat_holder_slashed { + use super::runtime_types; + pub type SeatHolder = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for SeatHolderSlashed { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "SeatHolderSlashed"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod members { + use super::runtime_types; + pub type Members = ::std::vec::Vec< + runtime_types::pallet_elections_phragmen::SeatHolder< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >; + } + pub mod runners_up { + use super::runtime_types; + pub type RunnersUp = ::std::vec::Vec< + runtime_types::pallet_elections_phragmen::SeatHolder< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >; + } + pub mod candidates { + use super::runtime_types; + pub type Candidates = + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>; + } + pub mod election_rounds { + use super::runtime_types; + pub type ElectionRounds = ::core::primitive::u32; + } + pub mod voting { + use super::runtime_types; + pub type Voting = runtime_types::pallet_elections_phragmen::Voter< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The current elected members."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on account id."] + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::members::Members, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Members", + vec![], + [ + 121u8, 128u8, 120u8, 242u8, 54u8, 127u8, 90u8, 113u8, 74u8, 54u8, + 181u8, 207u8, 213u8, 130u8, 123u8, 238u8, 66u8, 247u8, 177u8, 209u8, + 47u8, 106u8, 3u8, 130u8, 57u8, 217u8, 190u8, 164u8, 92u8, 223u8, 53u8, + 8u8, + ], + ) + } + #[doc = " The current reserved runners-up."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] + #[doc = " last (i.e. _best_) runner-up will be replaced."] + pub fn runners_up( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::runners_up::RunnersUp, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "RunnersUp", + vec![], + [ + 252u8, 213u8, 152u8, 58u8, 93u8, 84u8, 170u8, 162u8, 180u8, 51u8, 52u8, + 156u8, 18u8, 58u8, 210u8, 150u8, 76u8, 159u8, 75u8, 43u8, 103u8, 21u8, + 181u8, 184u8, 155u8, 198u8, 236u8, 173u8, 245u8, 49u8, 134u8, 153u8, + ], + ) + } + #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] + #[doc = " and is always implicitly assumed to be a candidate."] + #[doc = ""] + #[doc = " Second element is the deposit."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on account id."] + pub fn candidates( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::candidates::Candidates, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Candidates", + vec![], + [ + 220u8, 219u8, 115u8, 204u8, 15u8, 0u8, 135u8, 72u8, 241u8, 89u8, 10u8, + 105u8, 106u8, 93u8, 18u8, 63u8, 43u8, 117u8, 120u8, 73u8, 8u8, 143u8, + 244u8, 144u8, 223u8, 155u8, 217u8, 132u8, 246u8, 228u8, 210u8, 53u8, + ], + ) + } + #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] + pub fn election_rounds( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::election_rounds::ElectionRounds, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "ElectionRounds", + vec![], + [ + 97u8, 151u8, 159u8, 133u8, 59u8, 215u8, 12u8, 178u8, 203u8, 24u8, + 138u8, 36u8, 108u8, 134u8, 217u8, 137u8, 24u8, 6u8, 126u8, 87u8, 49u8, + 90u8, 198u8, 16u8, 36u8, 109u8, 223u8, 190u8, 81u8, 7u8, 239u8, 243u8, + ], + ) + } + #[doc = " Votes and locked stake of a particular voter."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] + pub fn voting_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Voting", + vec![], + [ + 37u8, 74u8, 221u8, 188u8, 168u8, 43u8, 125u8, 246u8, 191u8, 21u8, 85u8, + 87u8, 124u8, 180u8, 218u8, 43u8, 186u8, 170u8, 140u8, 186u8, 88u8, + 71u8, 111u8, 22u8, 46u8, 207u8, 178u8, 96u8, 55u8, 203u8, 21u8, 92u8, + ], + ) + } + #[doc = " Votes and locked stake of a particular voter."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Voting", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 37u8, 74u8, 221u8, 188u8, 168u8, 43u8, 125u8, 246u8, 191u8, 21u8, 85u8, + 87u8, 124u8, 180u8, 218u8, 43u8, 186u8, 170u8, 140u8, 186u8, 88u8, + 71u8, 111u8, 22u8, 46u8, 207u8, 178u8, 96u8, 55u8, 203u8, 21u8, 92u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Identifier for the elections-phragmen pallet's lock"] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { + ::subxt::constants::Address::new_static( + "Elections", + "PalletId", + [ + 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, + 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, + 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, + ], + ) + } + #[doc = " How much should be locked up in order to submit one's candidacy."] + pub fn candidacy_bond( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Elections", + "CandidacyBond", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Base deposit associated with voting."] + #[doc = ""] + #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] + #[doc = " creating a gigantic number of votes."] + pub fn voting_bond_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] + pub fn voting_bond_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Number of members to elect."] + pub fn desired_members( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "DesiredMembers", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of runners_up to keep."] + pub fn desired_runners_up( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "DesiredRunnersUp", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " How long each seat is kept. This defines the next block number at which an election"] + #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] + #[doc = " be in passive mode."] + pub fn term_duration(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "TermDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of candidates in a phragmen election."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + #[doc = ""] + #[doc = " When this limit is reached no more candidates are accepted in the election."] + pub fn max_candidates( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "MaxCandidates", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of voters to allow in a phragmen election."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + #[doc = ""] + #[doc = " When the limit is reached the new voters are ignored."] + pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "MaxVoters", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum numbers of votes per voter."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + pub fn max_votes_per_voter( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "MaxVotesPerVoter", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod technical_membership { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_membership::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_membership::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::add_member`]."] + pub struct AddMember { + pub who: add_member::Who, + } + pub mod add_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for AddMember { + const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "add_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_member`]."] + pub struct RemoveMember { + pub who: remove_member::Who, + } + pub mod remove_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveMember { + const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "remove_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::swap_member`]."] + pub struct SwapMember { + pub remove: swap_member::Remove, + pub add: swap_member::Add, + } + pub mod swap_member { + use super::runtime_types; + pub type Remove = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Add = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SwapMember { + const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "swap_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::reset_members`]."] + pub struct ResetMembers { + pub members: reset_members::Members, + } + pub mod reset_members { + use super::runtime_types; + pub type Members = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + impl ::subxt::blocks::StaticExtrinsic for ResetMembers { + const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "reset_members"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::change_key`]."] + pub struct ChangeKey { + pub new: change_key::New, + } + pub mod change_key { + use super::runtime_types; + pub type New = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ChangeKey { + const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "change_key"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_prime`]."] + pub struct SetPrime { + pub who: set_prime::Who, + } + pub mod set_prime { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetPrime { + const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "set_prime"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_prime`]."] + pub struct ClearPrime; + impl ::subxt::blocks::StaticExtrinsic for ClearPrime { + const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "clear_prime"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::add_member`]."] + pub fn add_member( + &self, + who: types::add_member::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalMembership", + "add_member", + types::AddMember { who }, + [ + 237u8, 212u8, 114u8, 106u8, 42u8, 1u8, 28u8, 244u8, 161u8, 140u8, 80u8, + 251u8, 217u8, 116u8, 9u8, 155u8, 234u8, 94u8, 3u8, 156u8, 5u8, 68u8, + 197u8, 90u8, 47u8, 223u8, 235u8, 200u8, 194u8, 195u8, 90u8, 70u8, + ], + ) + } + #[doc = "See [`Pallet::remove_member`]."] + pub fn remove_member( + &self, + who: types::remove_member::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalMembership", + "remove_member", + types::RemoveMember { who }, + [ + 182u8, 80u8, 149u8, 27u8, 252u8, 160u8, 231u8, 23u8, 208u8, 93u8, + 116u8, 252u8, 5u8, 28u8, 162u8, 221u8, 14u8, 150u8, 62u8, 65u8, 169u8, + 164u8, 226u8, 53u8, 152u8, 237u8, 37u8, 171u8, 209u8, 52u8, 235u8, + 11u8, + ], + ) + } + #[doc = "See [`Pallet::swap_member`]."] + pub fn swap_member( + &self, + remove: types::swap_member::Remove, + add: types::swap_member::Add, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalMembership", + "swap_member", + types::SwapMember { remove, add }, + [ + 11u8, 68u8, 57u8, 232u8, 242u8, 45u8, 34u8, 178u8, 250u8, 195u8, 254u8, + 22u8, 13u8, 164u8, 86u8, 193u8, 47u8, 198u8, 164u8, 143u8, 66u8, 245u8, + 222u8, 24u8, 240u8, 97u8, 241u8, 166u8, 198u8, 236u8, 148u8, 195u8, + ], + ) + } + #[doc = "See [`Pallet::reset_members`]."] + pub fn reset_members( + &self, + members: types::reset_members::Members, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalMembership", + "reset_members", + types::ResetMembers { members }, + [ + 212u8, 144u8, 99u8, 156u8, 70u8, 4u8, 219u8, 227u8, 150u8, 25u8, 86u8, + 8u8, 215u8, 128u8, 193u8, 206u8, 33u8, 193u8, 71u8, 15u8, 20u8, 92u8, + 99u8, 89u8, 174u8, 236u8, 102u8, 82u8, 164u8, 234u8, 12u8, 45u8, + ], + ) + } + #[doc = "See [`Pallet::change_key`]."] + pub fn change_key( + &self, + new: types::change_key::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalMembership", + "change_key", + types::ChangeKey { new }, + [ + 189u8, 13u8, 214u8, 17u8, 2u8, 171u8, 123u8, 104u8, 227u8, 136u8, + 198u8, 88u8, 216u8, 105u8, 246u8, 70u8, 25u8, 19u8, 244u8, 19u8, 112u8, + 105u8, 14u8, 16u8, 75u8, 183u8, 85u8, 183u8, 131u8, 186u8, 129u8, + 231u8, + ], + ) + } + #[doc = "See [`Pallet::set_prime`]."] + pub fn set_prime( + &self, + who: types::set_prime::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalMembership", + "set_prime", + types::SetPrime { who }, + [ + 76u8, 172u8, 20u8, 105u8, 143u8, 253u8, 234u8, 255u8, 138u8, 98u8, + 81u8, 183u8, 147u8, 232u8, 49u8, 234u8, 17u8, 129u8, 20u8, 119u8, + 116u8, 214u8, 131u8, 112u8, 38u8, 21u8, 93u8, 139u8, 161u8, 242u8, + 88u8, 152u8, + ], + ) + } + #[doc = "See [`Pallet::clear_prime`]."] + pub fn clear_prime(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TechnicalMembership", + "clear_prime", + types::ClearPrime {}, + [ + 71u8, 213u8, 34u8, 23u8, 186u8, 63u8, 240u8, 216u8, 190u8, 251u8, 84u8, + 109u8, 140u8, 137u8, 210u8, 211u8, 242u8, 231u8, 212u8, 133u8, 151u8, + 125u8, 25u8, 46u8, 210u8, 53u8, 133u8, 222u8, 21u8, 107u8, 120u8, 52u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_membership::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The given member was added; see the transaction for who."] + pub struct MemberAdded; + impl ::subxt::events::StaticEvent for MemberAdded { + const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "MemberAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The given member was removed; see the transaction for who."] + pub struct MemberRemoved; + impl ::subxt::events::StaticEvent for MemberRemoved { + const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "MemberRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Two members were swapped; see the transaction for who."] + pub struct MembersSwapped; + impl ::subxt::events::StaticEvent for MembersSwapped { + const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "MembersSwapped"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The membership was reset; see the transaction for who the new set is."] + pub struct MembersReset; + impl ::subxt::events::StaticEvent for MembersReset { + const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "MembersReset"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "One of the members' keys changed."] + pub struct KeyChanged; + impl ::subxt::events::StaticEvent for KeyChanged { + const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "KeyChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Phantom member, never used."] + pub struct Dummy; + impl ::subxt::events::StaticEvent for Dummy { + const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "Dummy"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod members { + use super::runtime_types; + pub type Members = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >; + } + pub mod prime { + use super::runtime_types; + pub type Prime = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The current membership, stored as an ordered Vec."] + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::members::Members, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TechnicalMembership", + "Members", + vec![], + [ + 109u8, 100u8, 14u8, 195u8, 213u8, 67u8, 44u8, 218u8, 84u8, 254u8, 76u8, + 80u8, 210u8, 155u8, 155u8, 30u8, 18u8, 169u8, 195u8, 92u8, 208u8, + 223u8, 242u8, 97u8, 147u8, 20u8, 168u8, 145u8, 254u8, 115u8, 225u8, + 193u8, + ], + ) + } + #[doc = " The current prime member, if one exists."] + pub fn prime( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::prime::Prime, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "TechnicalMembership", + "Prime", + vec![], + [ + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, + 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, + 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + ], + ) + } + } + } + } pub mod grandpa { use super::root_mod; use super::runtime_types; @@ -9219,6 +19505,14 @@ pub mod api { pub type SetIdSession = ::core::primitive::u32; pub type Param0 = ::core::primitive::u64; } + pub mod authorities { + use super::runtime_types; + pub type Authorities = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>; + } } pub struct StorageApi; impl StorageApi { @@ -9393,6 +19687,28 @@ pub mod api { ], ) } + #[doc = " The current list of authorities."] + pub fn authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::authorities::Authorities, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "Authorities", + vec![], + [ + 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, + 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, + 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, + 85u8, + ], + ) + } } } pub mod constants { @@ -9452,398 +19768,6 @@ pub mod api { } } } - pub mod im_online { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_im_online::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_im_online::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::heartbeat`]."] - pub struct Heartbeat { - pub heartbeat: heartbeat::Heartbeat, - pub signature: heartbeat::Signature, - } - pub mod heartbeat { - use super::runtime_types; - pub type Heartbeat = - runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>; - pub type Signature = - runtime_types::pallet_im_online::sr25519::app_sr25519::Signature; - } - impl ::subxt::blocks::StaticExtrinsic for Heartbeat { - const PALLET: &'static str = "ImOnline"; - const CALL: &'static str = "heartbeat"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::heartbeat`]."] - pub fn heartbeat( - &self, - heartbeat: types::heartbeat::Heartbeat, - signature: types::heartbeat::Signature, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ImOnline", - "heartbeat", - types::Heartbeat { - heartbeat, - signature, - }, - [ - 41u8, 78u8, 115u8, 250u8, 94u8, 34u8, 215u8, 28u8, 33u8, 175u8, 203u8, - 205u8, 14u8, 40u8, 197u8, 51u8, 24u8, 198u8, 173u8, 32u8, 119u8, 154u8, - 213u8, 125u8, 219u8, 3u8, 128u8, 52u8, 166u8, 223u8, 241u8, 129u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_im_online::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new heartbeat was received from `AuthorityId`."] - pub struct HeartbeatReceived { - pub authority_id: heartbeat_received::AuthorityId, - } - pub mod heartbeat_received { - use super::runtime_types; - pub type AuthorityId = - runtime_types::pallet_im_online::sr25519::app_sr25519::Public; - } - impl ::subxt::events::StaticEvent for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "HeartbeatReceived"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, no offence was committed."] - pub struct AllGood; - impl ::subxt::events::StaticEvent for AllGood { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "AllGood"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "At the end of the session, at least one validator was found to be offline."] - pub struct SomeOffline { - pub offline: some_offline::Offline, - } - pub mod some_offline { - use super::runtime_types; - pub type Offline = ::std::vec::Vec<(::subxt::utils::AccountId32, ())>; - } - impl ::subxt::events::StaticEvent for SomeOffline { - const PALLET: &'static str = "ImOnline"; - const EVENT: &'static str = "SomeOffline"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod heartbeat_after { - use super::runtime_types; - pub type HeartbeatAfter = ::core::primitive::u32; - } - pub mod keys { - use super::runtime_types; - pub type Keys = - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - >; - } - pub mod received_heartbeats { - use super::runtime_types; - pub type ReceivedHeartbeats = ::core::primitive::bool; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::core::primitive::u32; - } - pub mod authored_blocks { - use super::runtime_types; - pub type AuthoredBlocks = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt::utils::AccountId32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The block number after which it's ok to send heartbeats in the current"] - #[doc = " session."] - #[doc = ""] - #[doc = " At the beginning of each session we set this to a value that should fall"] - #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] - #[doc = " the validators to produce a block in the current session, so that the"] - #[doc = " heartbeat later on will not be necessary."] - #[doc = ""] - #[doc = " This value will only be used as a fallback if we fail to get a proper session"] - #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] - #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] - pub fn heartbeat_after( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::heartbeat_after::HeartbeatAfter, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "HeartbeatAfter", - vec![], - [ - 36u8, 179u8, 76u8, 254u8, 3u8, 184u8, 154u8, 142u8, 70u8, 104u8, 44u8, - 244u8, 39u8, 97u8, 31u8, 31u8, 93u8, 228u8, 185u8, 224u8, 13u8, 160u8, - 231u8, 210u8, 110u8, 143u8, 116u8, 29u8, 0u8, 215u8, 217u8, 137u8, - ], - ) - } - #[doc = " The current set of keys that may issue a heartbeat."] - pub fn keys( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::keys::Keys, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "Keys", - vec![], - [ - 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, - 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, - 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, - 29u8, 218u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] - pub fn received_heartbeats_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::received_heartbeats::ReceivedHeartbeats, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - vec![], - [ - 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, - 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, - 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] - pub fn received_heartbeats_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::received_heartbeats::ReceivedHeartbeats, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, - 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, - 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] - pub fn received_heartbeats( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::received_heartbeats::ReceivedHeartbeats, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "ReceivedHeartbeats", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, - 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, - 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::authored_blocks::AuthoredBlocks, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", - vec![], - [ - 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, - 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, - 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, - 233u8, 126u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::authored_blocks::AuthoredBlocks, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, - 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, - 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, - 233u8, 126u8, - ], - ) - } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] - #[doc = " number of blocks authored by the given authority."] - pub fn authored_blocks( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::authored_blocks::AuthoredBlocks, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "AuthoredBlocks", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, - 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, - 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, - 233u8, 126u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " A configuration for base priority of unsigned transactions."] - #[doc = ""] - #[doc = " This is exposed so that it can be tuned for particular runtime, when"] - #[doc = " multiple pallets send unsigned transactions."] - pub fn unsigned_priority( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "ImOnline", - "UnsignedPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) - } - } - } - } - pub mod authority_discovery { - use super::root_mod; - use super::runtime_types; - } pub mod treasury { use super::root_mod; use super::runtime_types; @@ -9876,8 +19800,10 @@ pub mod api { pub mod propose_spend { use super::runtime_types; pub type Value = ::core::primitive::u128; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Beneficiary = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { const PALLET: &'static str = "Treasury"; @@ -9948,8 +19874,10 @@ pub mod api { pub mod spend_local { use super::runtime_types; pub type Amount = ::core::primitive::u128; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Beneficiary = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for SpendLocal { const PALLET: &'static str = "Treasury"; @@ -9998,10 +19926,12 @@ pub mod api { } pub mod spend { use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type AssetKind = ::core::primitive::u32; pub type Amount = ::core::primitive::u128; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type ValidFrom = ::core::option::Option<::core::primitive::u32>; } impl ::subxt::blocks::StaticExtrinsic for Spend { @@ -10088,9 +20018,9 @@ pub mod api { "propose_spend", types::ProposeSpend { value, beneficiary }, [ - 250u8, 230u8, 64u8, 10u8, 93u8, 132u8, 194u8, 69u8, 91u8, 50u8, 98u8, - 212u8, 72u8, 218u8, 29u8, 149u8, 2u8, 190u8, 219u8, 4u8, 25u8, 110u8, - 5u8, 199u8, 196u8, 37u8, 64u8, 57u8, 207u8, 235u8, 164u8, 226u8, + 82u8, 0u8, 77u8, 68u8, 172u8, 126u8, 179u8, 217u8, 173u8, 214u8, 69u8, + 227u8, 243u8, 252u8, 100u8, 30u8, 205u8, 80u8, 99u8, 57u8, 63u8, 59u8, + 142u8, 81u8, 38u8, 22u8, 243u8, 165u8, 131u8, 193u8, 135u8, 171u8, ], ) } @@ -10140,9 +20070,9 @@ pub mod api { beneficiary, }, [ - 137u8, 171u8, 83u8, 247u8, 245u8, 212u8, 152u8, 127u8, 210u8, 71u8, - 254u8, 134u8, 189u8, 26u8, 249u8, 41u8, 214u8, 175u8, 24u8, 64u8, 33u8, - 90u8, 23u8, 134u8, 44u8, 110u8, 63u8, 46u8, 46u8, 146u8, 222u8, 79u8, + 81u8, 1u8, 208u8, 59u8, 56u8, 65u8, 91u8, 139u8, 14u8, 209u8, 31u8, + 42u8, 52u8, 9u8, 2u8, 90u8, 114u8, 133u8, 68u8, 243u8, 169u8, 60u8, + 172u8, 4u8, 58u8, 167u8, 52u8, 93u8, 45u8, 38u8, 248u8, 15u8, ], ) } @@ -10181,10 +20111,10 @@ pub mod api { valid_from, }, [ - 124u8, 75u8, 215u8, 13u8, 48u8, 105u8, 201u8, 35u8, 199u8, 228u8, 38u8, - 229u8, 147u8, 255u8, 237u8, 249u8, 114u8, 154u8, 129u8, 209u8, 177u8, - 17u8, 70u8, 107u8, 74u8, 175u8, 244u8, 132u8, 206u8, 24u8, 224u8, - 156u8, + 106u8, 119u8, 242u8, 74u8, 80u8, 139u8, 158u8, 219u8, 49u8, 170u8, + 185u8, 186u8, 126u8, 4u8, 5u8, 248u8, 237u8, 47u8, 176u8, 224u8, 183u8, + 58u8, 104u8, 224u8, 71u8, 76u8, 143u8, 226u8, 158u8, 228u8, 116u8, + 73u8, ], ) } @@ -10474,10 +20404,9 @@ pub mod api { pub mod asset_spend_approved { use super::runtime_types; pub type Index = ::core::primitive::u32; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type AssetKind = ::core::primitive::u32; pub type Amount = ::core::primitive::u128; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; + pub type Beneficiary = ::subxt::utils::AccountId32; pub type ValidFrom = ::core::primitive::u32; pub type ExpireAt = ::core::primitive::u32; } @@ -10525,7 +20454,7 @@ pub mod api { pub mod paid { use super::runtime_types; pub type Index = ::core::primitive::u32; - pub type PaymentId = ::core::primitive::u64; + pub type PaymentId = (); } impl ::subxt::events::StaticEvent for Paid { const PALLET: &'static str = "Treasury"; @@ -10549,7 +20478,7 @@ pub mod api { pub mod payment_failed { use super::runtime_types; pub type Index = ::core::primitive::u32; - pub type PaymentId = ::core::primitive::u64; + pub type PaymentId = (); } impl ::subxt::events::StaticEvent for PaymentFailed { const PALLET: &'static str = "Treasury"; @@ -10613,11 +20542,11 @@ pub mod api { pub mod spends { use super::runtime_types; pub type Spends = runtime_types::pallet_treasury::SpendStatus< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - ::core::primitive::u128, - runtime_types::xcm::VersionedMultiLocation, ::core::primitive::u32, - ::core::primitive::u64, + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + (), >; pub type Param0 = ::core::primitive::u32; } @@ -10772,10 +20701,9 @@ pub mod api { "Spends", vec![], [ - 231u8, 192u8, 40u8, 149u8, 163u8, 98u8, 111u8, 136u8, 44u8, 162u8, - 87u8, 181u8, 233u8, 204u8, 87u8, 111u8, 210u8, 225u8, 235u8, 73u8, - 217u8, 8u8, 129u8, 51u8, 54u8, 85u8, 33u8, 103u8, 186u8, 128u8, 61u8, - 5u8, + 37u8, 203u8, 218u8, 2u8, 66u8, 30u8, 201u8, 122u8, 247u8, 74u8, 131u8, + 61u8, 246u8, 66u8, 124u8, 248u8, 235u8, 16u8, 73u8, 164u8, 177u8, + 122u8, 70u8, 85u8, 191u8, 77u8, 2u8, 91u8, 170u8, 172u8, 104u8, 13u8, ], ) } @@ -10797,10 +20725,9 @@ pub mod api { _0.borrow(), )], [ - 231u8, 192u8, 40u8, 149u8, 163u8, 98u8, 111u8, 136u8, 44u8, 162u8, - 87u8, 181u8, 233u8, 204u8, 87u8, 111u8, 210u8, 225u8, 235u8, 73u8, - 217u8, 8u8, 129u8, 51u8, 54u8, 85u8, 33u8, 103u8, 186u8, 128u8, 61u8, - 5u8, + 37u8, 203u8, 218u8, 2u8, 66u8, 30u8, 201u8, 122u8, 247u8, 74u8, 131u8, + 61u8, 246u8, 66u8, 124u8, 248u8, 235u8, 16u8, 73u8, 164u8, 177u8, + 122u8, 70u8, 85u8, 191u8, 77u8, 2u8, 91u8, 170u8, 172u8, 104u8, 13u8, ], ) } @@ -10930,13 +20857,13 @@ pub mod api { } } } - pub mod conviction_voting { + pub mod asset_rate { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_conviction_voting::pallet::Error; + pub type Error = runtime_types::pallet_asset_rate::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_conviction_voting::pallet::Call; + pub type Call = runtime_types::pallet_asset_rate::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -10953,22 +20880,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::vote`]."] - pub struct Vote { - #[codec(compact)] - pub poll_index: vote::PollIndex, - pub vote: vote::Vote, + #[doc = "See [`Pallet::create`]."] + pub struct Create { + pub asset_kind: ::std::boxed::Box, + pub rate: create::Rate, } - pub mod vote { + pub mod create { use super::runtime_types; - pub type PollIndex = ::core::primitive::u32; - pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote< - ::core::primitive::u128, - >; + pub type AssetKind = ::core::primitive::u32; + pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "vote"; + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "AssetRate"; + const CALL: &'static str = "create"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10980,24 +20904,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::delegate`]."] - pub struct Delegate { - pub class: delegate::Class, - pub to: delegate::To, - pub conviction: delegate::Conviction, - pub balance: delegate::Balance, + #[doc = "See [`Pallet::update`]."] + pub struct Update { + pub asset_kind: ::std::boxed::Box, + pub rate: update::Rate, } - pub mod delegate { + pub mod update { use super::runtime_types; - pub type Class = ::core::primitive::u16; - pub type To = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Conviction = - runtime_types::pallet_conviction_voting::conviction::Conviction; - pub type Balance = ::core::primitive::u128; + pub type AssetKind = ::core::primitive::u32; + pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; } - impl ::subxt::blocks::StaticExtrinsic for Delegate { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "delegate"; + impl ::subxt::blocks::StaticExtrinsic for Update { + const PALLET: &'static str = "AssetRate"; + const CALL: &'static str = "update"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11009,216 +20928,85 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::undelegate`]."] - pub struct Undelegate { - pub class: undelegate::Class, + #[doc = "See [`Pallet::remove`]."] + pub struct Remove { + pub asset_kind: ::std::boxed::Box, } - pub mod undelegate { + pub mod remove { use super::runtime_types; - pub type Class = ::core::primitive::u16; + pub type AssetKind = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for Undelegate { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "undelegate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::unlock`]."] - pub struct Unlock { - pub class: unlock::Class, - pub target: unlock::Target, - } - pub mod unlock { - use super::runtime_types; - pub type Class = ::core::primitive::u16; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for Unlock { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "unlock"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_vote`]."] - pub struct RemoveVote { - pub class: remove_vote::Class, - pub index: remove_vote::Index, - } - pub mod remove_vote { - use super::runtime_types; - pub type Class = ::core::option::Option<::core::primitive::u16>; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveVote { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "remove_vote"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_other_vote`]."] - pub struct RemoveOtherVote { - pub target: remove_other_vote::Target, - pub class: remove_other_vote::Class, - pub index: remove_other_vote::Index, - } - pub mod remove_other_vote { - use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Class = ::core::primitive::u16; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { - const PALLET: &'static str = "ConvictionVoting"; - const CALL: &'static str = "remove_other_vote"; + impl ::subxt::blocks::StaticExtrinsic for Remove { + const PALLET: &'static str = "AssetRate"; + const CALL: &'static str = "remove"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::vote`]."] - pub fn vote( + #[doc = "See [`Pallet::create`]."] + pub fn create( &self, - poll_index: types::vote::PollIndex, - vote: types::vote::Vote, - ) -> ::subxt::tx::Payload { + asset_kind: types::create::AssetKind, + rate: types::create::Rate, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "vote", - types::Vote { poll_index, vote }, - [ - 57u8, 170u8, 177u8, 168u8, 158u8, 43u8, 87u8, 242u8, 176u8, 85u8, - 230u8, 64u8, 103u8, 239u8, 190u8, 6u8, 228u8, 165u8, 248u8, 77u8, - 231u8, 221u8, 186u8, 107u8, 249u8, 201u8, 226u8, 52u8, 129u8, 90u8, - 142u8, 159u8, - ], - ) - } - #[doc = "See [`Pallet::delegate`]."] - pub fn delegate( - &self, - class: types::delegate::Class, - to: types::delegate::To, - conviction: types::delegate::Conviction, - balance: types::delegate::Balance, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "delegate", - types::Delegate { - class, - to, - conviction, - balance, + "AssetRate", + "create", + types::Create { + asset_kind: ::std::boxed::Box::new(asset_kind), + rate, }, [ - 223u8, 143u8, 33u8, 94u8, 32u8, 156u8, 43u8, 40u8, 142u8, 134u8, 209u8, - 134u8, 255u8, 179u8, 97u8, 46u8, 8u8, 140u8, 5u8, 29u8, 76u8, 22u8, - 36u8, 7u8, 108u8, 190u8, 220u8, 151u8, 10u8, 47u8, 89u8, 55u8, + 244u8, 9u8, 10u8, 83u8, 195u8, 118u8, 31u8, 250u8, 108u8, 181u8, 22u8, + 61u8, 122u8, 57u8, 158u8, 80u8, 154u8, 96u8, 233u8, 72u8, 95u8, 5u8, + 35u8, 204u8, 58u8, 144u8, 238u8, 28u8, 96u8, 174u8, 42u8, 115u8, ], ) } - #[doc = "See [`Pallet::undelegate`]."] - pub fn undelegate( + #[doc = "See [`Pallet::update`]."] + pub fn update( &self, - class: types::undelegate::Class, - ) -> ::subxt::tx::Payload { + asset_kind: types::update::AssetKind, + rate: types::update::Rate, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "undelegate", - types::Undelegate { class }, - [ - 140u8, 232u8, 6u8, 53u8, 228u8, 8u8, 131u8, 144u8, 65u8, 66u8, 245u8, - 247u8, 147u8, 135u8, 198u8, 57u8, 82u8, 212u8, 89u8, 46u8, 236u8, - 168u8, 200u8, 220u8, 93u8, 168u8, 101u8, 29u8, 110u8, 76u8, 67u8, - 181u8, - ], - ) - } - #[doc = "See [`Pallet::unlock`]."] - pub fn unlock( - &self, - class: types::unlock::Class, - target: types::unlock::Target, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "unlock", - types::Unlock { class, target }, - [ - 79u8, 5u8, 252u8, 237u8, 109u8, 238u8, 157u8, 237u8, 125u8, 171u8, - 65u8, 160u8, 102u8, 192u8, 5u8, 141u8, 179u8, 249u8, 253u8, 213u8, - 105u8, 251u8, 241u8, 145u8, 186u8, 177u8, 244u8, 139u8, 71u8, 140u8, - 173u8, 108u8, - ], - ) - } - #[doc = "See [`Pallet::remove_vote`]."] - pub fn remove_vote( - &self, - class: types::remove_vote::Class, - index: types::remove_vote::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "remove_vote", - types::RemoveVote { class, index }, - [ - 255u8, 108u8, 211u8, 146u8, 168u8, 231u8, 207u8, 44u8, 76u8, 24u8, - 235u8, 60u8, 23u8, 79u8, 192u8, 192u8, 46u8, 40u8, 134u8, 27u8, 125u8, - 114u8, 125u8, 247u8, 85u8, 102u8, 76u8, 159u8, 34u8, 167u8, 152u8, - 148u8, - ], - ) - } - #[doc = "See [`Pallet::remove_other_vote`]."] - pub fn remove_other_vote( - &self, - target: types::remove_other_vote::Target, - class: types::remove_other_vote::Class, - index: types::remove_other_vote::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ConvictionVoting", - "remove_other_vote", - types::RemoveOtherVote { - target, - class, - index, + "AssetRate", + "update", + types::Update { + asset_kind: ::std::boxed::Box::new(asset_kind), + rate, }, [ - 165u8, 26u8, 166u8, 37u8, 10u8, 174u8, 243u8, 10u8, 73u8, 93u8, 213u8, - 69u8, 200u8, 16u8, 48u8, 146u8, 160u8, 92u8, 28u8, 26u8, 158u8, 55u8, - 6u8, 251u8, 36u8, 132u8, 46u8, 195u8, 107u8, 34u8, 0u8, 100u8, + 187u8, 240u8, 111u8, 71u8, 122u8, 214u8, 178u8, 1u8, 189u8, 79u8, + 146u8, 78u8, 50u8, 213u8, 110u8, 160u8, 102u8, 164u8, 63u8, 51u8, + 174u8, 234u8, 82u8, 116u8, 103u8, 82u8, 238u8, 173u8, 220u8, 1u8, 8u8, + 169u8, + ], + ) + } + #[doc = "See [`Pallet::remove`]."] + pub fn remove( + &self, + asset_kind: types::remove::AssetKind, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetRate", + "remove", + types::Remove { + asset_kind: ::std::boxed::Box::new(asset_kind), + }, + [ + 73u8, 57u8, 143u8, 120u8, 11u8, 182u8, 161u8, 136u8, 219u8, 165u8, + 49u8, 57u8, 115u8, 211u8, 243u8, 188u8, 195u8, 67u8, 124u8, 174u8, + 190u8, 160u8, 202u8, 150u8, 81u8, 52u8, 38u8, 245u8, 182u8, 234u8, + 66u8, 63u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_conviction_voting::pallet::Event; + pub type Event = runtime_types::pallet_asset_rate::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -11231,16 +21019,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] - pub struct Delegated(pub delegated::Field0, pub delegated::Field1); - pub mod delegated { - use super::runtime_types; - pub type Field0 = ::subxt::utils::AccountId32; - pub type Field1 = ::subxt::utils::AccountId32; + pub struct AssetRateCreated { + pub asset_kind: asset_rate_created::AssetKind, + pub rate: asset_rate_created::Rate, } - impl ::subxt::events::StaticEvent for Delegated { - const PALLET: &'static str = "ConvictionVoting"; - const EVENT: &'static str = "Delegated"; + pub mod asset_rate_created { + use super::runtime_types; + pub type AssetKind = ::core::primitive::u32; + pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; + } + impl ::subxt::events::StaticEvent for AssetRateCreated { + const PALLET: &'static str = "AssetRate"; + const EVENT: &'static str = "AssetRateCreated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11252,223 +21042,310 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An \\[account\\] has cancelled a previous delegation operation."] - pub struct Undelegated(pub undelegated::Field0); - pub mod undelegated { - use super::runtime_types; - pub type Field0 = ::subxt::utils::AccountId32; + pub struct AssetRateRemoved { + pub asset_kind: asset_rate_removed::AssetKind, } - impl ::subxt::events::StaticEvent for Undelegated { - const PALLET: &'static str = "ConvictionVoting"; - const EVENT: &'static str = "Undelegated"; + pub mod asset_rate_removed { + use super::runtime_types; + pub type AssetKind = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AssetRateRemoved { + const PALLET: &'static str = "AssetRate"; + const EVENT: &'static str = "AssetRateRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AssetRateUpdated { + pub asset_kind: asset_rate_updated::AssetKind, + pub old: asset_rate_updated::Old, + pub new: asset_rate_updated::New, + } + pub mod asset_rate_updated { + use super::runtime_types; + pub type AssetKind = ::core::primitive::u32; + pub type Old = runtime_types::sp_arithmetic::fixed_point::FixedU128; + pub type New = runtime_types::sp_arithmetic::fixed_point::FixedU128; + } + impl ::subxt::events::StaticEvent for AssetRateUpdated { + const PALLET: &'static str = "AssetRate"; + const EVENT: &'static str = "AssetRateUpdated"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod voting_for { + pub mod conversion_rate_to_native { use super::runtime_types; - pub type VotingFor = runtime_types::pallet_conviction_voting::vote::Voting< - ::core::primitive::u128, + pub type ConversionRateToNative = + runtime_types::sp_arithmetic::fixed_point::FixedU128; + pub type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Maps an asset to its fixed point representation in the native balance."] + #[doc = ""] + #[doc = " E.g. `native_amount = asset_amount * ConversionRateToNative::::get(asset_kind)`"] + pub fn conversion_rate_to_native_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::conversion_rate_to_native::ConversionRateToNative, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetRate", + "ConversionRateToNative", + vec![], + [ + 212u8, 212u8, 87u8, 53u8, 10u8, 192u8, 102u8, 179u8, 116u8, 42u8, + 143u8, 75u8, 78u8, 130u8, 149u8, 69u8, 53u8, 56u8, 64u8, 73u8, 81u8, + 66u8, 240u8, 75u8, 187u8, 151u8, 225u8, 143u8, 255u8, 158u8, 255u8, + 2u8, + ], + ) + } + #[doc = " Maps an asset to its fixed point representation in the native balance."] + #[doc = ""] + #[doc = " E.g. `native_amount = asset_amount * ConversionRateToNative::::get(asset_kind)`"] + pub fn conversion_rate_to_native( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::conversion_rate_to_native::ConversionRateToNative, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "AssetRate", + "ConversionRateToNative", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 212u8, 212u8, 87u8, 53u8, 10u8, 192u8, 102u8, 179u8, 116u8, 42u8, + 143u8, 75u8, 78u8, 130u8, 149u8, 69u8, 53u8, 56u8, 64u8, 73u8, 81u8, + 66u8, 240u8, 75u8, 187u8, 151u8, 225u8, 143u8, 255u8, 158u8, 255u8, + 2u8, + ], + ) + } + } + } + } + pub mod contracts { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_contracts::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_contracts::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::call_old_weight`]."] + pub struct CallOldWeight { + pub dest: call_old_weight::Dest, + #[codec(compact)] + pub value: call_old_weight::Value, + #[codec(compact)] + pub gas_limit: call_old_weight::GasLimit, + pub storage_deposit_limit: call_old_weight::StorageDepositLimit, + pub data: call_old_weight::Data, + } + pub mod call_old_weight { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, + >; + pub type Value = ::core::primitive::u128; + pub type GasLimit = ::core::primitive::u64; + pub type StorageDepositLimit = ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >; + pub type Data = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::blocks::StaticExtrinsic for CallOldWeight { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "call_old_weight"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::instantiate_with_code_old_weight`]."] + pub struct InstantiateWithCodeOldWeight { + #[codec(compact)] + pub value: instantiate_with_code_old_weight::Value, + #[codec(compact)] + pub gas_limit: instantiate_with_code_old_weight::GasLimit, + pub storage_deposit_limit: + instantiate_with_code_old_weight::StorageDepositLimit, + pub code: instantiate_with_code_old_weight::Code, + pub data: instantiate_with_code_old_weight::Data, + pub salt: instantiate_with_code_old_weight::Salt, + } + pub mod instantiate_with_code_old_weight { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + pub type GasLimit = ::core::primitive::u64; + pub type StorageDepositLimit = ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >; + pub type Code = ::std::vec::Vec<::core::primitive::u8>; + pub type Data = ::std::vec::Vec<::core::primitive::u8>; + pub type Salt = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::blocks::StaticExtrinsic for InstantiateWithCodeOldWeight { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "instantiate_with_code_old_weight"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::instantiate_old_weight`]."] + pub struct InstantiateOldWeight { + #[codec(compact)] + pub value: instantiate_old_weight::Value, + #[codec(compact)] + pub gas_limit: instantiate_old_weight::GasLimit, + pub storage_deposit_limit: instantiate_old_weight::StorageDepositLimit, + pub code_hash: instantiate_old_weight::CodeHash, + pub data: instantiate_old_weight::Data, + pub salt: instantiate_old_weight::Salt, + } + pub mod instantiate_old_weight { + use super::runtime_types; + pub type Value = ::core::primitive::u128; + pub type GasLimit = ::core::primitive::u64; + pub type StorageDepositLimit = ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >; + pub type CodeHash = ::subxt::utils::H256; + pub type Data = ::std::vec::Vec<::core::primitive::u8>; + pub type Salt = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::blocks::StaticExtrinsic for InstantiateOldWeight { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "instantiate_old_weight"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::upload_code`]."] + pub struct UploadCode { + pub code: upload_code::Code, + pub storage_deposit_limit: upload_code::StorageDepositLimit, + pub determinism: upload_code::Determinism, + } + pub mod upload_code { + use super::runtime_types; + pub type Code = ::std::vec::Vec<::core::primitive::u8>; + pub type StorageDepositLimit = ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >; + pub type Determinism = runtime_types::pallet_contracts::wasm::Determinism; + } + impl ::subxt::blocks::StaticExtrinsic for UploadCode { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "upload_code"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_code`]."] + pub struct RemoveCode { + pub code_hash: remove_code::CodeHash, + } + pub mod remove_code { + use super::runtime_types; + pub type CodeHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveCode { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "remove_code"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_code`]."] + pub struct SetCode { + pub dest: set_code::Dest, + pub code_hash: set_code::CodeHash, + } + pub mod set_code { + use super::runtime_types; + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, ::core::primitive::u32, >; - pub type Param0 = ::subxt::utils::AccountId32; - pub type Param1 = ::core::primitive::u16; + pub type CodeHash = ::subxt::utils::H256; } - pub mod class_locks_for { - use super::runtime_types; - pub type ClassLocksFor = - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u16, - ::core::primitive::u128, - )>; - pub type Param0 = ::subxt::utils::AccountId32; + impl ::subxt::blocks::StaticExtrinsic for SetCode { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "set_code"; } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] - #[doc = " number of votes that we have recorded."] - pub fn voting_for_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting_for::VotingFor, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "VotingFor", - vec![], - [ - 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, - 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, - 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, - ], - ) - } - #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] - #[doc = " number of votes that we have recorded."] - pub fn voting_for_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting_for::VotingFor, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "VotingFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, - 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, - 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, - ], - ) - } - #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] - #[doc = " number of votes that we have recorded."] - pub fn voting_for( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting_for::VotingFor, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "VotingFor", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, - 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, - 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, - ], - ) - } - #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] - #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] - #[doc = " this list."] - pub fn class_locks_for_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::class_locks_for::ClassLocksFor, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "ClassLocksFor", - vec![], - [ - 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, - 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, - 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, - ], - ) - } - #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] - #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] - #[doc = " this list."] - pub fn class_locks_for( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::class_locks_for::ClassLocksFor, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ConvictionVoting", - "ClassLocksFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, - 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, - 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The maximum number of concurrent votes an account may have."] - #[doc = ""] - #[doc = " Also used to compute weight, an overly large value can lead to extrinsics with large"] - #[doc = " weight estimation: see `delegate` for instance."] - pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ConvictionVoting", - "MaxVotes", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The minimum period of vote locking."] - #[doc = ""] - #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] - #[doc = " those successful voters are locked into the consequences that their votes entail."] - pub fn vote_locking_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "ConvictionVoting", - "VoteLockingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod referenda { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_referenda::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_referenda::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -11479,27 +21356,31 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::submit`]."] - pub struct Submit { - pub proposal_origin: ::std::boxed::Box, - pub proposal: submit::Proposal, - pub enactment_moment: submit::EnactmentMoment, + #[doc = "See [`Pallet::call`]."] + pub struct Call { + pub dest: call::Dest, + #[codec(compact)] + pub value: call::Value, + pub gas_limit: call::GasLimit, + pub storage_deposit_limit: call::StorageDepositLimit, + pub data: call::Data, } - pub mod submit { + pub mod call { use super::runtime_types; - pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, >; - pub type EnactmentMoment = - runtime_types::frame_support::traits::schedule::DispatchTime< - ::core::primitive::u32, - >; + pub type Value = ::core::primitive::u128; + pub type GasLimit = runtime_types::sp_weights::weight_v2::Weight; + pub type StorageDepositLimit = ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >; + pub type Data = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::blocks::StaticExtrinsic for Submit { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "submit"; + impl ::subxt::blocks::StaticExtrinsic for Call { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "call"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11511,17 +21392,30 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::place_decision_deposit`]."] - pub struct PlaceDecisionDeposit { - pub index: place_decision_deposit::Index, + #[doc = "See [`Pallet::instantiate_with_code`]."] + pub struct InstantiateWithCode { + #[codec(compact)] + pub value: instantiate_with_code::Value, + pub gas_limit: instantiate_with_code::GasLimit, + pub storage_deposit_limit: instantiate_with_code::StorageDepositLimit, + pub code: instantiate_with_code::Code, + pub data: instantiate_with_code::Data, + pub salt: instantiate_with_code::Salt, } - pub mod place_decision_deposit { + pub mod instantiate_with_code { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type Value = ::core::primitive::u128; + pub type GasLimit = runtime_types::sp_weights::weight_v2::Weight; + pub type StorageDepositLimit = ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >; + pub type Code = ::std::vec::Vec<::core::primitive::u8>; + pub type Data = ::std::vec::Vec<::core::primitive::u8>; + pub type Salt = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "place_decision_deposit"; + impl ::subxt::blocks::StaticExtrinsic for InstantiateWithCode { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "instantiate_with_code"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11533,17 +21427,30 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::refund_decision_deposit`]."] - pub struct RefundDecisionDeposit { - pub index: refund_decision_deposit::Index, + #[doc = "See [`Pallet::instantiate`]."] + pub struct Instantiate { + #[codec(compact)] + pub value: instantiate::Value, + pub gas_limit: instantiate::GasLimit, + pub storage_deposit_limit: instantiate::StorageDepositLimit, + pub code_hash: instantiate::CodeHash, + pub data: instantiate::Data, + pub salt: instantiate::Salt, } - pub mod refund_decision_deposit { + pub mod instantiate { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type Value = ::core::primitive::u128; + pub type GasLimit = runtime_types::sp_weights::weight_v2::Weight; + pub type StorageDepositLimit = ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >; + pub type CodeHash = ::subxt::utils::H256; + pub type Data = ::std::vec::Vec<::core::primitive::u8>; + pub type Salt = ::std::vec::Vec<::core::primitive::u8>; } - impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "refund_decision_deposit"; + impl ::subxt::blocks::StaticExtrinsic for Instantiate { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "instantiate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11555,291 +21462,264 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel`]."] - pub struct Cancel { - pub index: cancel::Index, + #[doc = "See [`Pallet::migrate`]."] + pub struct Migrate { + pub weight_limit: migrate::WeightLimit, } - pub mod cancel { + pub mod migrate { use super::runtime_types; - pub type Index = ::core::primitive::u32; + pub type WeightLimit = runtime_types::sp_weights::weight_v2::Weight; } - impl ::subxt::blocks::StaticExtrinsic for Cancel { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "cancel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::kill`]."] - pub struct Kill { - pub index: kill::Index, - } - pub mod kill { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Kill { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "kill"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::nudge_referendum`]."] - pub struct NudgeReferendum { - pub index: nudge_referendum::Index, - } - pub mod nudge_referendum { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "nudge_referendum"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::one_fewer_deciding`]."] - pub struct OneFewerDeciding { - pub track: one_fewer_deciding::Track, - } - pub mod one_fewer_deciding { - use super::runtime_types; - pub type Track = ::core::primitive::u16; - } - impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "one_fewer_deciding"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::refund_submission_deposit`]."] - pub struct RefundSubmissionDeposit { - pub index: refund_submission_deposit::Index, - } - pub mod refund_submission_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "refund_submission_deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_metadata`]."] - pub struct SetMetadata { - pub index: set_metadata::Index, - pub maybe_hash: set_metadata::MaybeHash, - } - pub mod set_metadata { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; - } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "Referenda"; - const CALL: &'static str = "set_metadata"; + impl ::subxt::blocks::StaticExtrinsic for Migrate { + const PALLET: &'static str = "Contracts"; + const CALL: &'static str = "migrate"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::submit`]."] - pub fn submit( + #[doc = "See [`Pallet::call_old_weight`]."] + pub fn call_old_weight( &self, - proposal_origin: types::submit::ProposalOrigin, - proposal: types::submit::Proposal, - enactment_moment: types::submit::EnactmentMoment, - ) -> ::subxt::tx::Payload { + dest: types::call_old_weight::Dest, + value: types::call_old_weight::Value, + gas_limit: types::call_old_weight::GasLimit, + storage_deposit_limit: types::call_old_weight::StorageDepositLimit, + data: types::call_old_weight::Data, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "submit", - types::Submit { - proposal_origin: ::std::boxed::Box::new(proposal_origin), - proposal, - enactment_moment, + "Contracts", + "call_old_weight", + types::CallOldWeight { + dest, + value, + gas_limit, + storage_deposit_limit, + data, }, [ - 116u8, 212u8, 158u8, 18u8, 89u8, 136u8, 153u8, 97u8, 43u8, 197u8, - 200u8, 161u8, 145u8, 102u8, 19u8, 25u8, 135u8, 13u8, 199u8, 101u8, - 107u8, 221u8, 244u8, 15u8, 192u8, 176u8, 3u8, 154u8, 248u8, 70u8, - 113u8, 69u8, + 75u8, 234u8, 197u8, 66u8, 203u8, 143u8, 141u8, 75u8, 194u8, 210u8, + 69u8, 231u8, 109u8, 187u8, 6u8, 19u8, 152u8, 188u8, 131u8, 124u8, 73u8, + 147u8, 74u8, 136u8, 225u8, 205u8, 228u8, 183u8, 26u8, 228u8, 0u8, + 172u8, ], ) } - #[doc = "See [`Pallet::place_decision_deposit`]."] - pub fn place_decision_deposit( + #[doc = "See [`Pallet::instantiate_with_code_old_weight`]."] + pub fn instantiate_with_code_old_weight( &self, - index: types::place_decision_deposit::Index, - ) -> ::subxt::tx::Payload { + value: types::instantiate_with_code_old_weight::Value, + gas_limit: types::instantiate_with_code_old_weight::GasLimit, + storage_deposit_limit : types :: instantiate_with_code_old_weight :: StorageDepositLimit, + code: types::instantiate_with_code_old_weight::Code, + data: types::instantiate_with_code_old_weight::Data, + salt: types::instantiate_with_code_old_weight::Salt, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "place_decision_deposit", - types::PlaceDecisionDeposit { index }, + "Contracts", + "instantiate_with_code_old_weight", + types::InstantiateWithCodeOldWeight { + value, + gas_limit, + storage_deposit_limit, + code, + data, + salt, + }, [ - 247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8, - 203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8, - 184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8, + 48u8, 125u8, 188u8, 220u8, 158u8, 122u8, 158u8, 63u8, 0u8, 249u8, + 164u8, 200u8, 199u8, 2u8, 21u8, 168u8, 84u8, 158u8, 120u8, 17u8, 82u8, + 54u8, 115u8, 185u8, 69u8, 236u8, 64u8, 176u8, 187u8, 201u8, 230u8, + 98u8, ], ) } - #[doc = "See [`Pallet::refund_decision_deposit`]."] - pub fn refund_decision_deposit( + #[doc = "See [`Pallet::instantiate_old_weight`]."] + pub fn instantiate_old_weight( &self, - index: types::refund_decision_deposit::Index, - ) -> ::subxt::tx::Payload { + value: types::instantiate_old_weight::Value, + gas_limit: types::instantiate_old_weight::GasLimit, + storage_deposit_limit: types::instantiate_old_weight::StorageDepositLimit, + code_hash: types::instantiate_old_weight::CodeHash, + data: types::instantiate_old_weight::Data, + salt: types::instantiate_old_weight::Salt, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "refund_decision_deposit", - types::RefundDecisionDeposit { index }, + "Contracts", + "instantiate_old_weight", + types::InstantiateOldWeight { + value, + gas_limit, + storage_deposit_limit, + code_hash, + data, + salt, + }, [ - 159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8, - 136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8, - 135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8, + 145u8, 119u8, 37u8, 211u8, 172u8, 215u8, 72u8, 110u8, 71u8, 230u8, + 212u8, 56u8, 78u8, 221u8, 239u8, 159u8, 110u8, 219u8, 71u8, 10u8, + 248u8, 112u8, 237u8, 188u8, 198u8, 0u8, 28u8, 255u8, 147u8, 152u8, + 162u8, 83u8, ], ) } - #[doc = "See [`Pallet::cancel`]."] - pub fn cancel( + #[doc = "See [`Pallet::upload_code`]."] + pub fn upload_code( &self, - index: types::cancel::Index, - ) -> ::subxt::tx::Payload { + code: types::upload_code::Code, + storage_deposit_limit: types::upload_code::StorageDepositLimit, + determinism: types::upload_code::Determinism, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "cancel", - types::Cancel { index }, + "Contracts", + "upload_code", + types::UploadCode { + code, + storage_deposit_limit, + determinism, + }, [ - 55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8, - 212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8, - 190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8, - 122u8, + 159u8, 17u8, 234u8, 83u8, 162u8, 68u8, 117u8, 80u8, 64u8, 251u8, 31u8, + 38u8, 214u8, 227u8, 235u8, 74u8, 97u8, 72u8, 83u8, 197u8, 7u8, 57u8, + 212u8, 217u8, 219u8, 139u8, 182u8, 248u8, 92u8, 91u8, 56u8, 2u8, ], ) } - #[doc = "See [`Pallet::kill`]."] - pub fn kill(&self, index: types::kill::Index) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Referenda", - "kill", - types::Kill { index }, - [ - 50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8, - 198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8, - 219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8, - 48u8, - ], - ) - } - #[doc = "See [`Pallet::nudge_referendum`]."] - pub fn nudge_referendum( + #[doc = "See [`Pallet::remove_code`]."] + pub fn remove_code( &self, - index: types::nudge_referendum::Index, - ) -> ::subxt::tx::Payload { + code_hash: types::remove_code::CodeHash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "nudge_referendum", - types::NudgeReferendum { index }, + "Contracts", + "remove_code", + types::RemoveCode { code_hash }, [ - 75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8, - 194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8, - 99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8, - 213u8, + 99u8, 184u8, 12u8, 208u8, 123u8, 158u8, 140u8, 21u8, 190u8, 152u8, + 95u8, 79u8, 217u8, 131u8, 161u8, 160u8, 21u8, 56u8, 167u8, 27u8, 90u8, + 255u8, 75u8, 0u8, 133u8, 111u8, 119u8, 217u8, 157u8, 67u8, 238u8, 69u8, ], ) } - #[doc = "See [`Pallet::one_fewer_deciding`]."] - pub fn one_fewer_deciding( + #[doc = "See [`Pallet::set_code`]."] + pub fn set_code( &self, - track: types::one_fewer_deciding::Track, - ) -> ::subxt::tx::Payload { + dest: types::set_code::Dest, + code_hash: types::set_code::CodeHash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "one_fewer_deciding", - types::OneFewerDeciding { track }, + "Contracts", + "set_code", + types::SetCode { dest, code_hash }, [ - 15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8, - 181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8, - 111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8, - 131u8, 167u8, + 38u8, 146u8, 68u8, 45u8, 22u8, 25u8, 163u8, 173u8, 185u8, 179u8, 20u8, + 142u8, 110u8, 88u8, 131u8, 111u8, 106u8, 20u8, 219u8, 57u8, 103u8, + 220u8, 211u8, 37u8, 68u8, 33u8, 116u8, 21u8, 64u8, 105u8, 202u8, 1u8, ], ) } - #[doc = "See [`Pallet::refund_submission_deposit`]."] - pub fn refund_submission_deposit( + #[doc = "See [`Pallet::call`]."] + pub fn call( &self, - index: types::refund_submission_deposit::Index, - ) -> ::subxt::tx::Payload { + dest: types::call::Dest, + value: types::call::Value, + gas_limit: types::call::GasLimit, + storage_deposit_limit: types::call::StorageDepositLimit, + data: types::call::Data, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "refund_submission_deposit", - types::RefundSubmissionDeposit { index }, + "Contracts", + "call", + types::Call { + dest, + value, + gas_limit, + storage_deposit_limit, + data, + }, [ - 20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8, - 23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8, - 82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8, + 45u8, 147u8, 61u8, 153u8, 44u8, 86u8, 154u8, 238u8, 72u8, 62u8, 38u8, + 66u8, 76u8, 217u8, 60u8, 75u8, 140u8, 10u8, 45u8, 25u8, 0u8, 167u8, + 150u8, 45u8, 159u8, 227u8, 220u8, 75u8, 236u8, 127u8, 234u8, 218u8, ], ) } - #[doc = "See [`Pallet::set_metadata`]."] - pub fn set_metadata( + #[doc = "See [`Pallet::instantiate_with_code`]."] + pub fn instantiate_with_code( &self, - index: types::set_metadata::Index, - maybe_hash: types::set_metadata::MaybeHash, - ) -> ::subxt::tx::Payload { + value: types::instantiate_with_code::Value, + gas_limit: types::instantiate_with_code::GasLimit, + storage_deposit_limit: types::instantiate_with_code::StorageDepositLimit, + code: types::instantiate_with_code::Code, + data: types::instantiate_with_code::Data, + salt: types::instantiate_with_code::Salt, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Referenda", - "set_metadata", - types::SetMetadata { index, maybe_hash }, + "Contracts", + "instantiate_with_code", + types::InstantiateWithCode { + value, + gas_limit, + storage_deposit_limit, + code, + data, + salt, + }, [ - 207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8, - 124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8, - 108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8, - 88u8, + 34u8, 182u8, 171u8, 163u8, 86u8, 205u8, 184u8, 72u8, 117u8, 214u8, + 11u8, 24u8, 73u8, 6u8, 158u8, 16u8, 5u8, 212u8, 209u8, 64u8, 66u8, + 98u8, 47u8, 14u8, 96u8, 132u8, 22u8, 37u8, 202u8, 148u8, 83u8, 125u8, + ], + ) + } + #[doc = "See [`Pallet::instantiate`]."] + pub fn instantiate( + &self, + value: types::instantiate::Value, + gas_limit: types::instantiate::GasLimit, + storage_deposit_limit: types::instantiate::StorageDepositLimit, + code_hash: types::instantiate::CodeHash, + data: types::instantiate::Data, + salt: types::instantiate::Salt, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Contracts", + "instantiate", + types::Instantiate { + value, + gas_limit, + storage_deposit_limit, + code_hash, + data, + salt, + }, + [ + 221u8, 142u8, 55u8, 187u8, 6u8, 98u8, 228u8, 231u8, 38u8, 81u8, 222u8, + 86u8, 205u8, 122u8, 32u8, 236u8, 237u8, 50u8, 201u8, 140u8, 111u8, + 23u8, 242u8, 212u8, 118u8, 212u8, 98u8, 247u8, 166u8, 196u8, 206u8, + 232u8, + ], + ) + } + #[doc = "See [`Pallet::migrate`]."] + pub fn migrate( + &self, + weight_limit: types::migrate::WeightLimit, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Contracts", + "migrate", + types::Migrate { weight_limit }, + [ + 11u8, 183u8, 183u8, 30u8, 18u8, 17u8, 58u8, 145u8, 254u8, 126u8, 21u8, + 155u8, 27u8, 218u8, 95u8, 35u8, 38u8, 102u8, 234u8, 241u8, 67u8, 99u8, + 183u8, 164u8, 5u8, 66u8, 186u8, 77u8, 234u8, 76u8, 206u8, 248u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_referenda::pallet::Event; + pub type Event = runtime_types::pallet_contracts::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -11852,24 +21732,182 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been submitted."] - pub struct Submitted { - pub index: submitted::Index, - pub track: submitted::Track, - pub proposal: submitted::Proposal, + #[doc = "Contract deployed by address at the specified address."] + pub struct Instantiated { + pub deployer: instantiated::Deployer, + pub contract: instantiated::Contract, } - pub mod submitted { + pub mod instantiated { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Track = ::core::primitive::u16; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, + pub type Deployer = ::subxt::utils::AccountId32; + pub type Contract = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Instantiated { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "Instantiated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contract has been removed."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "The only way for a contract to be removed and emitting this event is by calling"] + #[doc = "`seal_terminate`."] + pub struct Terminated { + pub contract: terminated::Contract, + pub beneficiary: terminated::Beneficiary, + } + pub mod terminated { + use super::runtime_types; + pub type Contract = ::subxt::utils::AccountId32; + pub type Beneficiary = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Terminated { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "Terminated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Code with the specified hash has been stored."] + pub struct CodeStored { + pub code_hash: code_stored::CodeHash, + pub deposit_held: code_stored::DepositHeld, + pub uploader: code_stored::Uploader, + } + pub mod code_stored { + use super::runtime_types; + pub type CodeHash = ::subxt::utils::H256; + pub type DepositHeld = ::core::primitive::u128; + pub type Uploader = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for CodeStored { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "CodeStored"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A custom event emitted by the contract."] + pub struct ContractEmitted { + pub contract: contract_emitted::Contract, + pub data: contract_emitted::Data, + } + pub mod contract_emitted { + use super::runtime_types; + pub type Contract = ::subxt::utils::AccountId32; + pub type Data = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::events::StaticEvent for ContractEmitted { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "ContractEmitted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A code with the specified hash was removed."] + pub struct CodeRemoved { + pub code_hash: code_removed::CodeHash, + pub deposit_released: code_removed::DepositReleased, + pub remover: code_removed::Remover, + } + pub mod code_removed { + use super::runtime_types; + pub type CodeHash = ::subxt::utils::H256; + pub type DepositReleased = ::core::primitive::u128; + pub type Remover = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for CodeRemoved { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "CodeRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A contract's code was updated."] + pub struct ContractCodeUpdated { + pub contract: contract_code_updated::Contract, + pub new_code_hash: contract_code_updated::NewCodeHash, + pub old_code_hash: contract_code_updated::OldCodeHash, + } + pub mod contract_code_updated { + use super::runtime_types; + pub type Contract = ::subxt::utils::AccountId32; + pub type NewCodeHash = ::subxt::utils::H256; + pub type OldCodeHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for ContractCodeUpdated { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "ContractCodeUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A contract was called either by a plain account or another contract."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "Please keep in mind that like all events this is only emitted for successful"] + #[doc = "calls. This is because on failure all storage changes including events are"] + #[doc = "rolled back."] + pub struct Called { + pub caller: called::Caller, + pub contract: called::Contract, + } + pub mod called { + use super::runtime_types; + pub type Caller = runtime_types::pallet_contracts::Origin< + runtime_types::kitchensink_runtime::Runtime, >; + pub type Contract = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Submitted { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Submitted"; + impl ::subxt::events::StaticEvent for Called { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "Called"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11881,21 +21919,51 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The decision deposit has been placed."] - pub struct DecisionDepositPlaced { - pub index: decision_deposit_placed::Index, - pub who: decision_deposit_placed::Who, - pub amount: decision_deposit_placed::Amount, + #[doc = "A contract delegate called a code hash."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "Please keep in mind that like all events this is only emitted for successful"] + #[doc = "calls. This is because on failure all storage changes including events are"] + #[doc = "rolled back."] + pub struct DelegateCalled { + pub contract: delegate_called::Contract, + pub code_hash: delegate_called::CodeHash, } - pub mod decision_deposit_placed { + pub mod delegate_called { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Who = ::subxt::utils::AccountId32; + pub type Contract = ::subxt::utils::AccountId32; + pub type CodeHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for DelegateCalled { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "DelegateCalled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some funds have been transferred and held as storage deposit."] + pub struct StorageDepositTransferredAndHeld { + pub from: storage_deposit_transferred_and_held::From, + pub to: storage_deposit_transferred_and_held::To, + pub amount: storage_deposit_transferred_and_held::Amount, + } + pub mod storage_deposit_transferred_and_held { + use super::runtime_types; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for DecisionDepositPlaced { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "DecisionDepositPlaced"; + impl ::subxt::events::StaticEvent for StorageDepositTransferredAndHeld { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "StorageDepositTransferredAndHeld"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11907,2524 +21975,350 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The decision deposit has been refunded."] - pub struct DecisionDepositRefunded { - pub index: decision_deposit_refunded::Index, - pub who: decision_deposit_refunded::Who, - pub amount: decision_deposit_refunded::Amount, + #[doc = "Some storage deposit funds have been transferred and released."] + pub struct StorageDepositTransferredAndReleased { + pub from: storage_deposit_transferred_and_released::From, + pub to: storage_deposit_transferred_and_released::To, + pub amount: storage_deposit_transferred_and_released::Amount, } - pub mod decision_deposit_refunded { + pub mod storage_deposit_transferred_and_released { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Who = ::subxt::utils::AccountId32; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for DecisionDepositRefunded { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "DecisionDepositRefunded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A deposit has been slashed."] - pub struct DepositSlashed { - pub who: deposit_slashed::Who, - pub amount: deposit_slashed::Amount, - } - pub mod deposit_slashed { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for DepositSlashed { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "DepositSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has moved into the deciding phase."] - pub struct DecisionStarted { - pub index: decision_started::Index, - pub track: decision_started::Track, - pub proposal: decision_started::Proposal, - pub tally: decision_started::Tally, - } - pub mod decision_started { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Track = ::core::primitive::u16; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, - >; - pub type Tally = - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; - } - impl ::subxt::events::StaticEvent for DecisionStarted { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "DecisionStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ConfirmStarted { - pub index: confirm_started::Index, - } - pub mod confirm_started { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for ConfirmStarted { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "ConfirmStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ConfirmAborted { - pub index: confirm_aborted::Index, - } - pub mod confirm_aborted { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for ConfirmAborted { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "ConfirmAborted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has ended its confirmation phase and is ready for approval."] - pub struct Confirmed { - pub index: confirmed::Index, - pub tally: confirmed::Tally, - } - pub mod confirmed { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; - } - impl ::subxt::events::StaticEvent for Confirmed { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Confirmed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been approved and its proposal has been scheduled."] - pub struct Approved { - pub index: approved::Index, - } - pub mod approved { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Approved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal has been rejected by referendum."] - pub struct Rejected { - pub index: rejected::Index, - pub tally: rejected::Tally, - } - pub mod rejected { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; - } - impl ::subxt::events::StaticEvent for Rejected { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Rejected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been timed out without being decided."] - pub struct TimedOut { - pub index: timed_out::Index, - pub tally: timed_out::Tally, - } - pub mod timed_out { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; - } - impl ::subxt::events::StaticEvent for TimedOut { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "TimedOut"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been cancelled."] - pub struct Cancelled { - pub index: cancelled::Index, - pub tally: cancelled::Tally, - } - pub mod cancelled { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; - } - impl ::subxt::events::StaticEvent for Cancelled { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Cancelled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been killed."] - pub struct Killed { - pub index: killed::Index, - pub tally: killed::Tally, - } - pub mod killed { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = - runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; - } - impl ::subxt::events::StaticEvent for Killed { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "Killed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The submission deposit has been refunded."] - pub struct SubmissionDepositRefunded { - pub index: submission_deposit_refunded::Index, - pub who: submission_deposit_refunded::Who, - pub amount: submission_deposit_refunded::Amount, - } - pub mod submission_deposit_refunded { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "SubmissionDepositRefunded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata for a referendum has been set."] - pub struct MetadataSet { - pub index: metadata_set::Index, - pub hash: metadata_set::Hash, - } - pub mod metadata_set { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Hash = ::subxt::utils::H256; - } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "MetadataSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata for a referendum has been cleared."] - pub struct MetadataCleared { - pub index: metadata_cleared::Index, - pub hash: metadata_cleared::Hash, - } - pub mod metadata_cleared { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Hash = ::subxt::utils::H256; - } - impl ::subxt::events::StaticEvent for MetadataCleared { - const PALLET: &'static str = "Referenda"; - const EVENT: &'static str = "MetadataCleared"; + impl ::subxt::events::StaticEvent for StorageDepositTransferredAndReleased { + const PALLET: &'static str = "Contracts"; + const EVENT: &'static str = "StorageDepositTransferredAndReleased"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod referendum_count { + pub mod pristine_code { use super::runtime_types; - pub type ReferendumCount = ::core::primitive::u32; - } - pub mod referendum_info_for { - use super::runtime_types; - pub type ReferendumInfoFor = - runtime_types::pallet_referenda::types::ReferendumInfo< - ::core::primitive::u16, - runtime_types::rococo_runtime::OriginCaller, - ::core::primitive::u32, - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - ::core::primitive::u128, - runtime_types::pallet_conviction_voting::types::Tally< - ::core::primitive::u128, - >, - ::subxt::utils::AccountId32, - (::core::primitive::u32, ::core::primitive::u32), + pub type PristineCode = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >; - pub type Param0 = ::core::primitive::u32; + pub type Param0 = ::subxt::utils::H256; } - pub mod track_queue { + pub mod code_info_of { use super::runtime_types; - pub type TrackQueue = - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u32, - ::core::primitive::u128, - )>; - pub type Param0 = ::core::primitive::u16; + pub type CodeInfoOf = runtime_types::pallet_contracts::wasm::CodeInfo; + pub type Param0 = ::subxt::utils::H256; } - pub mod deciding_count { + pub mod nonce { use super::runtime_types; - pub type DecidingCount = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u16; + pub type Nonce = ::core::primitive::u64; } - pub mod metadata_of { + pub mod contract_info_of { use super::runtime_types; - pub type MetadataOf = ::subxt::utils::H256; - pub type Param0 = ::core::primitive::u32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The next free referendum index, aka the number of referenda started so far."] - pub fn referendum_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::referendum_count::ReferendumCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "ReferendumCount", - vec![], - [ - 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, - 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, - 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, - 67u8, - ], - ) - } - #[doc = " Information concerning any given referendum."] - pub fn referendum_info_for_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::referendum_info_for::ReferendumInfoFor, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "ReferendumInfoFor", - vec![], - [ - 82u8, 199u8, 121u8, 36u8, 81u8, 129u8, 79u8, 226u8, 19u8, 57u8, 26u8, - 76u8, 195u8, 60u8, 78u8, 91u8, 198u8, 250u8, 105u8, 111u8, 235u8, 11u8, - 195u8, 4u8, 39u8, 92u8, 156u8, 53u8, 248u8, 89u8, 26u8, 112u8, - ], - ) - } - #[doc = " Information concerning any given referendum."] - pub fn referendum_info_for( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::referendum_info_for::ReferendumInfoFor, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "ReferendumInfoFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 82u8, 199u8, 121u8, 36u8, 81u8, 129u8, 79u8, 226u8, 19u8, 57u8, 26u8, - 76u8, 195u8, 60u8, 78u8, 91u8, 198u8, 250u8, 105u8, 111u8, 235u8, 11u8, - 195u8, 4u8, 39u8, 92u8, 156u8, 53u8, 248u8, 89u8, 26u8, 112u8, - ], - ) - } - #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] - #[doc = " conviction-weighted approvals."] - #[doc = ""] - #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] - pub fn track_queue_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::track_queue::TrackQueue, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "TrackQueue", - vec![], - [ - 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, - 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, - 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, - ], - ) - } - #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] - #[doc = " conviction-weighted approvals."] - #[doc = ""] - #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] - pub fn track_queue( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::track_queue::TrackQueue, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "TrackQueue", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, - 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, - 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, - ], - ) - } - #[doc = " The number of referenda being decided currently."] - pub fn deciding_count_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::deciding_count::DecidingCount, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "DecidingCount", - vec![], - [ - 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, - 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, - 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, - 245u8, - ], - ) - } - #[doc = " The number of referenda being decided currently."] - pub fn deciding_count( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::deciding_count::DecidingCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "DecidingCount", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, - 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, - 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, - 245u8, - ], - ) - } - #[doc = " The metadata is a general information concerning the referendum."] - #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] - #[doc = " dump or IPFS hash of a JSON file."] - #[doc = ""] - #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] - #[doc = " large preimages."] - pub fn metadata_of_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::metadata_of::MetadataOf, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "MetadataOf", - vec![], - [ - 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, - 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, - 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, - 110u8, - ], - ) - } - #[doc = " The metadata is a general information concerning the referendum."] - #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] - #[doc = " dump or IPFS hash of a JSON file."] - #[doc = ""] - #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] - #[doc = " large preimages."] - pub fn metadata_of( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::metadata_of::MetadataOf, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Referenda", - "MetadataOf", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, - 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, - 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, - 110u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] - pub fn submission_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Referenda", - "SubmissionDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " Maximum size of the referendum queue for a single track."] - pub fn max_queued(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Referenda", - "MaxQueued", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The number of blocks after submission that a referendum must begin being decided by."] - #[doc = " Once this passes, then anyone may cancel the referendum."] - pub fn undeciding_timeout( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Referenda", - "UndecidingTimeout", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Quantization level for the referendum wakeup scheduler. A higher number will result in"] - #[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"] - #[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."] - pub fn alarm_interval( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Referenda", - "AlarmInterval", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " Information concerning the different referendum tracks."] - pub fn tracks( - &self, - ) -> ::subxt::constants::Address< - ::std::vec::Vec<( - ::core::primitive::u16, - runtime_types::pallet_referenda::types::TrackInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - )>, - > { - ::subxt::constants::Address::new_static( - "Referenda", - "Tracks", - [ - 35u8, 226u8, 207u8, 234u8, 184u8, 139u8, 187u8, 184u8, 128u8, 199u8, - 227u8, 15u8, 31u8, 196u8, 5u8, 207u8, 138u8, 174u8, 130u8, 201u8, - 200u8, 113u8, 86u8, 93u8, 221u8, 243u8, 229u8, 24u8, 18u8, 150u8, 56u8, - 159u8, - ], - ) - } - } - } - } - pub mod fellowship_collective { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_ranked_collective::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_ranked_collective::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_member`]."] - pub struct AddMember { - pub who: add_member::Who, - } - pub mod add_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for AddMember { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "add_member"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::promote_member`]."] - pub struct PromoteMember { - pub who: promote_member::Who, - } - pub mod promote_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for PromoteMember { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "promote_member"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::demote_member`]."] - pub struct DemoteMember { - pub who: demote_member::Who, - } - pub mod demote_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - } - impl ::subxt::blocks::StaticExtrinsic for DemoteMember { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "demote_member"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_member`]."] - pub struct RemoveMember { - pub who: remove_member::Who, - pub min_rank: remove_member::MinRank, - } - pub mod remove_member { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type MinRank = ::core::primitive::u16; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "remove_member"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::vote`]."] - pub struct Vote { - pub poll: vote::Poll, - pub aye: vote::Aye, - } - pub mod vote { - use super::runtime_types; - pub type Poll = ::core::primitive::u32; - pub type Aye = ::core::primitive::bool; - } - impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "vote"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::cleanup_poll`]."] - pub struct CleanupPoll { - pub poll_index: cleanup_poll::PollIndex, - pub max: cleanup_poll::Max, - } - pub mod cleanup_poll { - use super::runtime_types; - pub type PollIndex = ::core::primitive::u32; - pub type Max = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for CleanupPoll { - const PALLET: &'static str = "FellowshipCollective"; - const CALL: &'static str = "cleanup_poll"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::add_member`]."] - pub fn add_member( - &self, - who: types::add_member::Who, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "add_member", - types::AddMember { who }, - [ - 2u8, 131u8, 37u8, 217u8, 112u8, 46u8, 86u8, 165u8, 248u8, 244u8, 33u8, - 236u8, 155u8, 28u8, 163u8, 169u8, 213u8, 32u8, 70u8, 217u8, 97u8, - 194u8, 138u8, 77u8, 133u8, 97u8, 188u8, 49u8, 49u8, 31u8, 177u8, 206u8, - ], - ) - } - #[doc = "See [`Pallet::promote_member`]."] - pub fn promote_member( - &self, - who: types::promote_member::Who, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "promote_member", - types::PromoteMember { who }, - [ - 169u8, 155u8, 9u8, 50u8, 144u8, 133u8, 230u8, 60u8, 216u8, 147u8, 3u8, - 236u8, 94u8, 185u8, 106u8, 139u8, 235u8, 143u8, 189u8, 135u8, 208u8, - 176u8, 126u8, 124u8, 85u8, 140u8, 189u8, 125u8, 87u8, 56u8, 57u8, - 246u8, - ], - ) - } - #[doc = "See [`Pallet::demote_member`]."] - pub fn demote_member( - &self, - who: types::demote_member::Who, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "demote_member", - types::DemoteMember { who }, - [ - 21u8, 185u8, 71u8, 166u8, 106u8, 88u8, 74u8, 251u8, 78u8, 28u8, 205u8, - 171u8, 199u8, 195u8, 97u8, 149u8, 175u8, 229u8, 25u8, 113u8, 96u8, - 25u8, 240u8, 64u8, 109u8, 246u8, 203u8, 45u8, 110u8, 205u8, 115u8, - 178u8, - ], - ) - } - #[doc = "See [`Pallet::remove_member`]."] - pub fn remove_member( - &self, - who: types::remove_member::Who, - min_rank: types::remove_member::MinRank, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "remove_member", - types::RemoveMember { who, min_rank }, - [ - 23u8, 156u8, 32u8, 64u8, 158u8, 50u8, 64u8, 199u8, 108u8, 67u8, 133u8, - 128u8, 138u8, 241u8, 14u8, 238u8, 192u8, 173u8, 250u8, 11u8, 124u8, - 119u8, 177u8, 190u8, 152u8, 116u8, 134u8, 42u8, 216u8, 49u8, 113u8, - 49u8, - ], - ) - } - #[doc = "See [`Pallet::vote`]."] - pub fn vote( - &self, - poll: types::vote::Poll, - aye: types::vote::Aye, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "vote", - types::Vote { poll, aye }, - [ - 54u8, 116u8, 81u8, 239u8, 223u8, 35u8, 11u8, 244u8, 245u8, 94u8, 23u8, - 241u8, 125u8, 231u8, 56u8, 150u8, 105u8, 125u8, 100u8, 171u8, 182u8, - 186u8, 134u8, 40u8, 4u8, 121u8, 119u8, 11u8, 93u8, 158u8, 59u8, 209u8, - ], - ) - } - #[doc = "See [`Pallet::cleanup_poll`]."] - pub fn cleanup_poll( - &self, - poll_index: types::cleanup_poll::PollIndex, - max: types::cleanup_poll::Max, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipCollective", - "cleanup_poll", - types::CleanupPoll { poll_index, max }, - [ - 157u8, 109u8, 86u8, 253u8, 62u8, 107u8, 235u8, 255u8, 171u8, 68u8, - 103u8, 92u8, 245u8, 25u8, 252u8, 158u8, 174u8, 137u8, 77u8, 251u8, - 105u8, 113u8, 165u8, 46u8, 39u8, 55u8, 166u8, 79u8, 103u8, 81u8, 121u8, - 37u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_ranked_collective::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A member `who` has been added."] - pub struct MemberAdded { - pub who: member_added::Who, - } - pub mod member_added { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - } - impl ::subxt::events::StaticEvent for MemberAdded { - const PALLET: &'static str = "FellowshipCollective"; - const EVENT: &'static str = "MemberAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The member `who`se rank has been changed to the given `rank`."] - pub struct RankChanged { - pub who: rank_changed::Who, - pub rank: rank_changed::Rank, - } - pub mod rank_changed { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Rank = ::core::primitive::u16; - } - impl ::subxt::events::StaticEvent for RankChanged { - const PALLET: &'static str = "FellowshipCollective"; - const EVENT: &'static str = "RankChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The member `who` of given `rank` has been removed from the collective."] - pub struct MemberRemoved { - pub who: member_removed::Who, - pub rank: member_removed::Rank, - } - pub mod member_removed { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Rank = ::core::primitive::u16; - } - impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "FellowshipCollective"; - const EVENT: &'static str = "MemberRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The member `who` has voted for the `poll` with the given `vote` leading to an updated"] - #[doc = "`tally`."] - pub struct Voted { - pub who: voted::Who, - pub poll: voted::Poll, - pub vote: voted::Vote, - pub tally: voted::Tally, - } - pub mod voted { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Poll = ::core::primitive::u32; - pub type Vote = runtime_types::pallet_ranked_collective::VoteRecord; - pub type Tally = runtime_types::pallet_ranked_collective::Tally; - } - impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "FellowshipCollective"; - const EVENT: &'static str = "Voted"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod member_count { - use super::runtime_types; - pub type MemberCount = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u16; - } - pub mod members { - use super::runtime_types; - pub type Members = runtime_types::pallet_ranked_collective::MemberRecord; + pub type ContractInfoOf = + runtime_types::pallet_contracts::storage::ContractInfo; pub type Param0 = ::subxt::utils::AccountId32; } - pub mod id_to_index { + pub mod deletion_queue { use super::runtime_types; - pub type IdToIndex = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u16; - pub type Param1 = ::subxt::utils::AccountId32; - } - pub mod index_to_id { - use super::runtime_types; - pub type IndexToId = ::subxt::utils::AccountId32; - pub type Param0 = ::core::primitive::u16; - pub type Param1 = ::core::primitive::u32; - } - pub mod voting { - use super::runtime_types; - pub type Voting = runtime_types::pallet_ranked_collective::VoteRecord; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt::utils::AccountId32; - } - pub mod voting_cleanup { - use super::runtime_types; - pub type VotingCleanup = + pub type DeletionQueue = runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >; pub type Param0 = ::core::primitive::u32; } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The number of members in the collective who have at least the rank according to the index"] - #[doc = " of the vec."] - pub fn member_count_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::member_count::MemberCount, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "MemberCount", - vec![], - [ - 0u8, 141u8, 66u8, 91u8, 155u8, 74u8, 17u8, 191u8, 143u8, 41u8, 231u8, - 56u8, 123u8, 219u8, 145u8, 27u8, 197u8, 62u8, 118u8, 237u8, 30u8, 7u8, - 107u8, 96u8, 95u8, 17u8, 242u8, 206u8, 246u8, 79u8, 53u8, 214u8, - ], - ) - } - #[doc = " The number of members in the collective who have at least the rank according to the index"] - #[doc = " of the vec."] - pub fn member_count( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::member_count::MemberCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "MemberCount", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 0u8, 141u8, 66u8, 91u8, 155u8, 74u8, 17u8, 191u8, 143u8, 41u8, 231u8, - 56u8, 123u8, 219u8, 145u8, 27u8, 197u8, 62u8, 118u8, 237u8, 30u8, 7u8, - 107u8, 96u8, 95u8, 17u8, 242u8, 206u8, 246u8, 79u8, 53u8, 214u8, - ], - ) - } - #[doc = " The current members of the collective."] - pub fn members_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::members::Members, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Members", - vec![], - [ - 101u8, 183u8, 36u8, 241u8, 67u8, 8u8, 252u8, 116u8, 110u8, 153u8, - 117u8, 210u8, 128u8, 80u8, 130u8, 163u8, 38u8, 76u8, 230u8, 107u8, - 112u8, 90u8, 102u8, 24u8, 217u8, 2u8, 244u8, 197u8, 103u8, 215u8, - 247u8, 133u8, - ], - ) - } - #[doc = " The current members of the collective."] - pub fn members( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::members::Members, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Members", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 101u8, 183u8, 36u8, 241u8, 67u8, 8u8, 252u8, 116u8, 110u8, 153u8, - 117u8, 210u8, 128u8, 80u8, 130u8, 163u8, 38u8, 76u8, 230u8, 107u8, - 112u8, 90u8, 102u8, 24u8, 217u8, 2u8, 244u8, 197u8, 103u8, 215u8, - 247u8, 133u8, - ], - ) - } - #[doc = " The index of each ranks's member into the group of members who have at least that rank."] - pub fn id_to_index_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::id_to_index::IdToIndex, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IdToIndex", - vec![], - [ - 121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8, - 45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8, - 153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8, - ], - ) - } - #[doc = " The index of each ranks's member into the group of members who have at least that rank."] - pub fn id_to_index_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::id_to_index::IdToIndex, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IdToIndex", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8, - 45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8, - 153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8, - ], - ) - } - #[doc = " The index of each ranks's member into the group of members who have at least that rank."] - pub fn id_to_index( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::id_to_index::IdToIndex, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IdToIndex", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8, - 45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8, - 153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8, - ], - ) - } - #[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"] - #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] - pub fn index_to_id_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::index_to_id::IndexToId, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IndexToId", - vec![], - [ - 110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8, - 153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8, - 29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8, - 70u8, - ], - ) - } - #[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"] - #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] - pub fn index_to_id_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::index_to_id::IndexToId, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IndexToId", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8, - 153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8, - 29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8, - 70u8, - ], - ) - } - #[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"] - #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] - pub fn index_to_id( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::index_to_id::IndexToId, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "IndexToId", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8, - 153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8, - 29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8, - 70u8, - ], - ) - } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting::Voting, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Voting", - vec![], - [ - 180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8, - 220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8, - 243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8, - 175u8, 18u8, - ], - ) - } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting::Voting, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Voting", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8, - 220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8, - 243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8, - 175u8, 18u8, - ], - ) - } - #[doc = " Votes on a given proposal, if it is ongoing."] - pub fn voting( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting::Voting, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "Voting", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8, - 220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8, - 243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8, - 175u8, 18u8, - ], - ) - } - pub fn voting_cleanup_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting_cleanup::VotingCleanup, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "VotingCleanup", - vec![], - [ - 223u8, 130u8, 79u8, 104u8, 94u8, 221u8, 222u8, 72u8, 187u8, 95u8, - 231u8, 59u8, 28u8, 119u8, 191u8, 63u8, 40u8, 186u8, 58u8, 254u8, 14u8, - 233u8, 152u8, 36u8, 2u8, 231u8, 120u8, 13u8, 120u8, 211u8, 232u8, 11u8, - ], - ) - } - pub fn voting_cleanup( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::voting_cleanup::VotingCleanup, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "FellowshipCollective", - "VotingCleanup", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 223u8, 130u8, 79u8, 104u8, 94u8, 221u8, 222u8, 72u8, 187u8, 95u8, - 231u8, 59u8, 28u8, 119u8, 191u8, 63u8, 40u8, 186u8, 58u8, 254u8, 14u8, - 233u8, 152u8, 36u8, 2u8, 231u8, 120u8, 13u8, 120u8, 211u8, 232u8, 11u8, - ], - ) - } - } - } - } - pub mod fellowship_referenda { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_referenda::pallet::Error2; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_referenda::pallet::Call2; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::submit`]."] - pub struct Submit { - pub proposal_origin: ::std::boxed::Box, - pub proposal: submit::Proposal, - pub enactment_moment: submit::EnactmentMoment, - } - pub mod submit { + pub mod deletion_queue_counter { use super::runtime_types; - pub type ProposalOrigin = runtime_types::rococo_runtime::OriginCaller; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, - >; - pub type EnactmentMoment = - runtime_types::frame_support::traits::schedule::DispatchTime< - ::core::primitive::u32, + pub type DeletionQueueCounter = + runtime_types::pallet_contracts::storage::DeletionQueueManager; + } + pub mod migration_in_progress { + use super::runtime_types; + pub type MigrationInProgress = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >; } - impl ::subxt::blocks::StaticExtrinsic for Submit { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "submit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::place_decision_deposit`]."] - pub struct PlaceDecisionDeposit { - pub index: place_decision_deposit::Index, - } - pub mod place_decision_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "place_decision_deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::refund_decision_deposit`]."] - pub struct RefundDecisionDeposit { - pub index: refund_decision_deposit::Index, - } - pub mod refund_decision_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "refund_decision_deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel`]."] - pub struct Cancel { - pub index: cancel::Index, - } - pub mod cancel { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Cancel { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "cancel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::kill`]."] - pub struct Kill { - pub index: kill::Index, - } - pub mod kill { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for Kill { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "kill"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::nudge_referendum`]."] - pub struct NudgeReferendum { - pub index: nudge_referendum::Index, - } - pub mod nudge_referendum { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "nudge_referendum"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::one_fewer_deciding`]."] - pub struct OneFewerDeciding { - pub track: one_fewer_deciding::Track, - } - pub mod one_fewer_deciding { - use super::runtime_types; - pub type Track = ::core::primitive::u16; - } - impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "one_fewer_deciding"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::refund_submission_deposit`]."] - pub struct RefundSubmissionDeposit { - pub index: refund_submission_deposit::Index, - } - pub mod refund_submission_deposit { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "refund_submission_deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_metadata`]."] - pub struct SetMetadata { - pub index: set_metadata::Index, - pub maybe_hash: set_metadata::MaybeHash, - } - pub mod set_metadata { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; - } - impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "FellowshipReferenda"; - const CALL: &'static str = "set_metadata"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::submit`]."] - pub fn submit( - &self, - proposal_origin: types::submit::ProposalOrigin, - proposal: types::submit::Proposal, - enactment_moment: types::submit::EnactmentMoment, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "submit", - types::Submit { - proposal_origin: ::std::boxed::Box::new(proposal_origin), - proposal, - enactment_moment, - }, - [ - 116u8, 212u8, 158u8, 18u8, 89u8, 136u8, 153u8, 97u8, 43u8, 197u8, - 200u8, 161u8, 145u8, 102u8, 19u8, 25u8, 135u8, 13u8, 199u8, 101u8, - 107u8, 221u8, 244u8, 15u8, 192u8, 176u8, 3u8, 154u8, 248u8, 70u8, - 113u8, 69u8, - ], - ) - } - #[doc = "See [`Pallet::place_decision_deposit`]."] - pub fn place_decision_deposit( - &self, - index: types::place_decision_deposit::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "place_decision_deposit", - types::PlaceDecisionDeposit { index }, - [ - 247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8, - 203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8, - 184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8, - ], - ) - } - #[doc = "See [`Pallet::refund_decision_deposit`]."] - pub fn refund_decision_deposit( - &self, - index: types::refund_decision_deposit::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "refund_decision_deposit", - types::RefundDecisionDeposit { index }, - [ - 159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8, - 136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8, - 135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8, - ], - ) - } - #[doc = "See [`Pallet::cancel`]."] - pub fn cancel( - &self, - index: types::cancel::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "cancel", - types::Cancel { index }, - [ - 55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8, - 212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8, - 190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8, - 122u8, - ], - ) - } - #[doc = "See [`Pallet::kill`]."] - pub fn kill(&self, index: types::kill::Index) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "kill", - types::Kill { index }, - [ - 50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8, - 198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8, - 219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8, - 48u8, - ], - ) - } - #[doc = "See [`Pallet::nudge_referendum`]."] - pub fn nudge_referendum( - &self, - index: types::nudge_referendum::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "nudge_referendum", - types::NudgeReferendum { index }, - [ - 75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8, - 194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8, - 99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8, - 213u8, - ], - ) - } - #[doc = "See [`Pallet::one_fewer_deciding`]."] - pub fn one_fewer_deciding( - &self, - track: types::one_fewer_deciding::Track, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "one_fewer_deciding", - types::OneFewerDeciding { track }, - [ - 15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8, - 181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8, - 111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8, - 131u8, 167u8, - ], - ) - } - #[doc = "See [`Pallet::refund_submission_deposit`]."] - pub fn refund_submission_deposit( - &self, - index: types::refund_submission_deposit::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "refund_submission_deposit", - types::RefundSubmissionDeposit { index }, - [ - 20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8, - 23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8, - 82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8, - ], - ) - } - #[doc = "See [`Pallet::set_metadata`]."] - pub fn set_metadata( - &self, - index: types::set_metadata::Index, - maybe_hash: types::set_metadata::MaybeHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "FellowshipReferenda", - "set_metadata", - types::SetMetadata { index, maybe_hash }, - [ - 207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8, - 124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8, - 108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8, - 88u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_referenda::pallet::Event2; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been submitted."] - pub struct Submitted { - pub index: submitted::Index, - pub track: submitted::Track, - pub proposal: submitted::Proposal, - } - pub mod submitted { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Track = ::core::primitive::u16; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, - >; - } - impl ::subxt::events::StaticEvent for Submitted { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "Submitted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The decision deposit has been placed."] - pub struct DecisionDepositPlaced { - pub index: decision_deposit_placed::Index, - pub who: decision_deposit_placed::Who, - pub amount: decision_deposit_placed::Amount, - } - pub mod decision_deposit_placed { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for DecisionDepositPlaced { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "DecisionDepositPlaced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The decision deposit has been refunded."] - pub struct DecisionDepositRefunded { - pub index: decision_deposit_refunded::Index, - pub who: decision_deposit_refunded::Who, - pub amount: decision_deposit_refunded::Amount, - } - pub mod decision_deposit_refunded { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for DecisionDepositRefunded { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "DecisionDepositRefunded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A deposit has been slashed."] - pub struct DepositSlashed { - pub who: deposit_slashed::Who, - pub amount: deposit_slashed::Amount, - } - pub mod deposit_slashed { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for DepositSlashed { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "DepositSlashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has moved into the deciding phase."] - pub struct DecisionStarted { - pub index: decision_started::Index, - pub track: decision_started::Track, - pub proposal: decision_started::Proposal, - pub tally: decision_started::Tally, - } - pub mod decision_started { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Track = ::core::primitive::u16; - pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, - >; - pub type Tally = runtime_types::pallet_ranked_collective::Tally; - } - impl ::subxt::events::StaticEvent for DecisionStarted { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "DecisionStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ConfirmStarted { - pub index: confirm_started::Index, - } - pub mod confirm_started { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for ConfirmStarted { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "ConfirmStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ConfirmAborted { - pub index: confirm_aborted::Index, - } - pub mod confirm_aborted { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for ConfirmAborted { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "ConfirmAborted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has ended its confirmation phase and is ready for approval."] - pub struct Confirmed { - pub index: confirmed::Index, - pub tally: confirmed::Tally, - } - pub mod confirmed { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = runtime_types::pallet_ranked_collective::Tally; - } - impl ::subxt::events::StaticEvent for Confirmed { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "Confirmed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been approved and its proposal has been scheduled."] - pub struct Approved { - pub index: approved::Index, - } - pub mod approved { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "Approved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proposal has been rejected by referendum."] - pub struct Rejected { - pub index: rejected::Index, - pub tally: rejected::Tally, - } - pub mod rejected { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = runtime_types::pallet_ranked_collective::Tally; - } - impl ::subxt::events::StaticEvent for Rejected { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "Rejected"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been timed out without being decided."] - pub struct TimedOut { - pub index: timed_out::Index, - pub tally: timed_out::Tally, - } - pub mod timed_out { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = runtime_types::pallet_ranked_collective::Tally; - } - impl ::subxt::events::StaticEvent for TimedOut { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "TimedOut"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been cancelled."] - pub struct Cancelled { - pub index: cancelled::Index, - pub tally: cancelled::Tally, - } - pub mod cancelled { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = runtime_types::pallet_ranked_collective::Tally; - } - impl ::subxt::events::StaticEvent for Cancelled { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "Cancelled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A referendum has been killed."] - pub struct Killed { - pub index: killed::Index, - pub tally: killed::Tally, - } - pub mod killed { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Tally = runtime_types::pallet_ranked_collective::Tally; - } - impl ::subxt::events::StaticEvent for Killed { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "Killed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The submission deposit has been refunded."] - pub struct SubmissionDepositRefunded { - pub index: submission_deposit_refunded::Index, - pub who: submission_deposit_refunded::Who, - pub amount: submission_deposit_refunded::Amount, - } - pub mod submission_deposit_refunded { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "SubmissionDepositRefunded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata for a referendum has been set."] - pub struct MetadataSet { - pub index: metadata_set::Index, - pub hash: metadata_set::Hash, - } - pub mod metadata_set { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Hash = ::subxt::utils::H256; - } - impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "MetadataSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Metadata for a referendum has been cleared."] - pub struct MetadataCleared { - pub index: metadata_cleared::Index, - pub hash: metadata_cleared::Hash, - } - pub mod metadata_cleared { - use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Hash = ::subxt::utils::H256; - } - impl ::subxt::events::StaticEvent for MetadataCleared { - const PALLET: &'static str = "FellowshipReferenda"; - const EVENT: &'static str = "MetadataCleared"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod referendum_count { - use super::runtime_types; - pub type ReferendumCount = ::core::primitive::u32; - } - pub mod referendum_info_for { - use super::runtime_types; - pub type ReferendumInfoFor = - runtime_types::pallet_referenda::types::ReferendumInfo< - ::core::primitive::u16, - runtime_types::rococo_runtime::OriginCaller, - ::core::primitive::u32, - runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - ::core::primitive::u128, - runtime_types::pallet_ranked_collective::Tally, - ::subxt::utils::AccountId32, - (::core::primitive::u32, ::core::primitive::u32), - >; - pub type Param0 = ::core::primitive::u32; - } - pub mod track_queue { - use super::runtime_types; - pub type TrackQueue = - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u32, - ::core::primitive::u32, - )>; - pub type Param0 = ::core::primitive::u16; - } - pub mod deciding_count { - use super::runtime_types; - pub type DecidingCount = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u16; - } - pub mod metadata_of { - use super::runtime_types; - pub type MetadataOf = ::subxt::utils::H256; - pub type Param0 = ::core::primitive::u32; - } } pub struct StorageApi; impl StorageApi { - #[doc = " The next free referendum index, aka the number of referenda started so far."] - pub fn referendum_count( + #[doc = " A mapping from a contract's code hash to its code."] + pub fn pristine_code_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::referendum_count::ReferendumCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + types::pristine_code::PristineCode, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "ReferendumCount", + "Contracts", + "PristineCode", vec![], [ - 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, - 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, - 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, - 67u8, + 6u8, 31u8, 218u8, 40u8, 203u8, 188u8, 155u8, 242u8, 11u8, 64u8, 196u8, + 23u8, 70u8, 117u8, 21u8, 42u8, 68u8, 254u8, 90u8, 190u8, 155u8, 117u8, + 153u8, 198u8, 119u8, 35u8, 52u8, 217u8, 209u8, 144u8, 1u8, 66u8, ], ) } - #[doc = " Information concerning any given referendum."] - pub fn referendum_info_for_iter( + #[doc = " A mapping from a contract's code hash to its code."] + pub fn pristine_code( &self, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::referendum_info_for::ReferendumInfoFor, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "ReferendumInfoFor", - vec![], - [ - 154u8, 115u8, 139u8, 27u8, 56u8, 76u8, 212u8, 73u8, 155u8, 177u8, 26u8, - 156u8, 1u8, 163u8, 243u8, 143u8, 10u8, 188u8, 63u8, 63u8, 190u8, 158u8, - 142u8, 61u8, 245u8, 254u8, 11u8, 109u8, 170u8, 98u8, 77u8, 95u8, - ], - ) - } - #[doc = " Information concerning any given referendum."] - pub fn referendum_info_for( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::referendum_info_for::ReferendumInfoFor, + types::pristine_code::PristineCode, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "ReferendumInfoFor", + "Contracts", + "PristineCode", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 154u8, 115u8, 139u8, 27u8, 56u8, 76u8, 212u8, 73u8, 155u8, 177u8, 26u8, - 156u8, 1u8, 163u8, 243u8, 143u8, 10u8, 188u8, 63u8, 63u8, 190u8, 158u8, - 142u8, 61u8, 245u8, 254u8, 11u8, 109u8, 170u8, 98u8, 77u8, 95u8, + 6u8, 31u8, 218u8, 40u8, 203u8, 188u8, 155u8, 242u8, 11u8, 64u8, 196u8, + 23u8, 70u8, 117u8, 21u8, 42u8, 68u8, 254u8, 90u8, 190u8, 155u8, 117u8, + 153u8, 198u8, 119u8, 35u8, 52u8, 217u8, 209u8, 144u8, 1u8, 66u8, ], ) } - #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] - #[doc = " conviction-weighted approvals."] - #[doc = ""] - #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] - pub fn track_queue_iter( + #[doc = " A mapping from a contract's code hash to its code info."] + pub fn code_info_of_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::track_queue::TrackQueue, + types::code_info_of::CodeInfoOf, + (), (), - ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "TrackQueue", + "Contracts", + "CodeInfoOf", vec![], [ - 187u8, 113u8, 225u8, 99u8, 159u8, 207u8, 182u8, 41u8, 116u8, 136u8, - 119u8, 196u8, 152u8, 50u8, 192u8, 22u8, 171u8, 182u8, 237u8, 228u8, - 80u8, 255u8, 227u8, 141u8, 155u8, 83u8, 71u8, 131u8, 118u8, 109u8, - 186u8, 65u8, + 16u8, 119u8, 167u8, 116u8, 213u8, 33u8, 175u8, 218u8, 170u8, 250u8, + 110u8, 248u8, 215u8, 25u8, 10u8, 143u8, 21u8, 37u8, 88u8, 239u8, 35u8, + 53u8, 133u8, 126u8, 97u8, 32u8, 60u8, 8u8, 180u8, 123u8, 229u8, 163u8, ], ) } - #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] - #[doc = " conviction-weighted approvals."] - #[doc = ""] - #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] - pub fn track_queue( + #[doc = " A mapping from a contract's code hash to its code info."] + pub fn code_info_of( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::track_queue::TrackQueue, - ::subxt::storage::address::Yes, + types::code_info_of::CodeInfoOf, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "TrackQueue", + "Contracts", + "CodeInfoOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 187u8, 113u8, 225u8, 99u8, 159u8, 207u8, 182u8, 41u8, 116u8, 136u8, - 119u8, 196u8, 152u8, 50u8, 192u8, 22u8, 171u8, 182u8, 237u8, 228u8, - 80u8, 255u8, 227u8, 141u8, 155u8, 83u8, 71u8, 131u8, 118u8, 109u8, - 186u8, 65u8, + 16u8, 119u8, 167u8, 116u8, 213u8, 33u8, 175u8, 218u8, 170u8, 250u8, + 110u8, 248u8, 215u8, 25u8, 10u8, 143u8, 21u8, 37u8, 88u8, 239u8, 35u8, + 53u8, 133u8, 126u8, 97u8, 32u8, 60u8, 8u8, 180u8, 123u8, 229u8, 163u8, ], ) } - #[doc = " The number of referenda being decided currently."] - pub fn deciding_count_iter( + #[doc = " This is a **monotonic** counter incremented on contract instantiation."] + #[doc = ""] + #[doc = " This is used in order to generate unique trie ids for contracts."] + #[doc = " The trie id of a new contract is calculated from hash(account_id, nonce)."] + #[doc = " The nonce is required because otherwise the following sequence would lead to"] + #[doc = " a possible collision of storage:"] + #[doc = ""] + #[doc = " 1. Create a new contract."] + #[doc = " 2. Terminate the contract."] + #[doc = " 3. Immediately recreate the contract with the same account_id."] + #[doc = ""] + #[doc = " This is bad because the contents of a trie are deleted lazily and there might be"] + #[doc = " storage of the old instantiation still in it when the new contract is created. Please"] + #[doc = " note that we can't replace the counter by the block number because the sequence above"] + #[doc = " can happen in the same block. We also can't keep the account counter in memory only"] + #[doc = " because storage is the only way to communicate across different extrinsics in the"] + #[doc = " same block."] + #[doc = ""] + #[doc = " # Note"] + #[doc = ""] + #[doc = " Do not use it to determine the number of contracts. It won't be decremented if"] + #[doc = " a contract is destroyed."] + pub fn nonce( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::deciding_count::DecidingCount, + types::nonce::Nonce, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "DecidingCount", + "Contracts", + "Nonce", vec![], [ - 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, - 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, - 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, - 245u8, + 47u8, 101u8, 89u8, 252u8, 98u8, 25u8, 178u8, 154u8, 17u8, 57u8, 185u8, + 10u8, 133u8, 94u8, 73u8, 160u8, 137u8, 150u8, 97u8, 119u8, 8u8, 146u8, + 149u8, 146u8, 212u8, 60u8, 141u8, 24u8, 124u8, 28u8, 57u8, 19u8, ], ) } - #[doc = " The number of referenda being decided currently."] - pub fn deciding_count( + #[doc = " The code associated with a given account."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn contract_info_of_iter( &self, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::deciding_count::DecidingCount, + types::contract_info_of::ContractInfoOf, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Contracts", + "ContractInfoOf", + vec![], + [ + 107u8, 167u8, 76u8, 126u8, 66u8, 83u8, 0u8, 226u8, 45u8, 212u8, 83u8, + 148u8, 196u8, 99u8, 26u8, 78u8, 231u8, 152u8, 82u8, 47u8, 174u8, 142u8, + 85u8, 32u8, 246u8, 22u8, 96u8, 60u8, 186u8, 250u8, 176u8, 49u8, + ], + ) + } + #[doc = " The code associated with a given account."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn contract_info_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::contract_info_of::ContractInfoOf, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "DecidingCount", + "Contracts", + "ContractInfoOf", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, - 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, - 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, - 245u8, + 107u8, 167u8, 76u8, 126u8, 66u8, 83u8, 0u8, 226u8, 45u8, 212u8, 83u8, + 148u8, 196u8, 99u8, 26u8, 78u8, 231u8, 152u8, 82u8, 47u8, 174u8, 142u8, + 85u8, 32u8, 246u8, 22u8, 96u8, 60u8, 186u8, 250u8, 176u8, 49u8, ], ) } - #[doc = " The metadata is a general information concerning the referendum."] - #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] - #[doc = " dump or IPFS hash of a JSON file."] + #[doc = " Evicted contracts that await child trie deletion."] #[doc = ""] - #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] - #[doc = " large preimages."] - pub fn metadata_of_iter( + #[doc = " Child trie deletion is a heavy operation depending on the amount of storage items"] + #[doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."] + pub fn deletion_queue_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::metadata_of::MetadataOf, + types::deletion_queue::DeletionQueue, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "MetadataOf", + "Contracts", + "DeletionQueue", vec![], [ - 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, - 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, - 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, - 110u8, + 233u8, 193u8, 191u8, 44u8, 151u8, 46u8, 124u8, 188u8, 132u8, 227u8, + 107u8, 210u8, 37u8, 110u8, 172u8, 95u8, 12u8, 114u8, 63u8, 83u8, 60u8, + 163u8, 58u8, 174u8, 160u8, 47u8, 198u8, 156u8, 216u8, 182u8, 65u8, + 229u8, ], ) } - #[doc = " The metadata is a general information concerning the referendum."] - #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] - #[doc = " dump or IPFS hash of a JSON file."] + #[doc = " Evicted contracts that await child trie deletion."] #[doc = ""] - #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] - #[doc = " large preimages."] - pub fn metadata_of( + #[doc = " Child trie deletion is a heavy operation depending on the amount of storage items"] + #[doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."] + pub fn deletion_queue( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::metadata_of::MetadataOf, + types::deletion_queue::DeletionQueue, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "FellowshipReferenda", - "MetadataOf", + "Contracts", + "DeletionQueue", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, - 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, - 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, - 110u8, + 233u8, 193u8, 191u8, 44u8, 151u8, 46u8, 124u8, 188u8, 132u8, 227u8, + 107u8, 210u8, 37u8, 110u8, 172u8, 95u8, 12u8, 114u8, 63u8, 83u8, 60u8, + 163u8, 58u8, 174u8, 160u8, 47u8, 198u8, 156u8, 216u8, 182u8, 65u8, + 229u8, + ], + ) + } + #[doc = " A pair of monotonic counters used to track the latest contract marked for deletion"] + #[doc = " and the latest deleted contract in queue."] + pub fn deletion_queue_counter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deletion_queue_counter::DeletionQueueCounter, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Contracts", + "DeletionQueueCounter", + vec![], + [ + 124u8, 63u8, 32u8, 109u8, 8u8, 113u8, 105u8, 172u8, 87u8, 88u8, 244u8, + 191u8, 252u8, 196u8, 10u8, 137u8, 101u8, 87u8, 124u8, 220u8, 178u8, + 155u8, 163u8, 214u8, 116u8, 121u8, 129u8, 129u8, 173u8, 76u8, 188u8, + 41u8, + ], + ) + } + #[doc = " A migration can span across multiple blocks. This storage defines a cursor to track the"] + #[doc = " progress of the migration, enabling us to resume from the last completed position."] + pub fn migration_in_progress( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::migration_in_progress::MigrationInProgress, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Contracts", + "MigrationInProgress", + vec![], + [ + 238u8, 96u8, 248u8, 141u8, 247u8, 233u8, 27u8, 21u8, 187u8, 56u8, + 195u8, 67u8, 21u8, 215u8, 30u8, 236u8, 151u8, 163u8, 115u8, 117u8, + 154u8, 54u8, 37u8, 240u8, 136u8, 240u8, 35u8, 192u8, 168u8, 250u8, + 132u8, 63u8, ], ) } @@ -14434,13 +22328,32 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] - pub fn submission_deposit( + #[doc = " Cost schedule and limits."] + pub fn schedule( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Contracts", + "Schedule", + [ + 9u8, 147u8, 127u8, 14u8, 84u8, 221u8, 17u8, 92u8, 22u8, 227u8, 75u8, + 30u8, 137u8, 46u8, 99u8, 18u8, 247u8, 78u8, 38u8, 108u8, 133u8, 126u8, + 3u8, 183u8, 4u8, 187u8, 159u8, 46u8, 92u8, 227u8, 172u8, 251u8, + ], + ) + } + #[doc = " The amount of balance a caller has to pay for each byte of storage."] + #[doc = ""] + #[doc = " # Note"] + #[doc = ""] + #[doc = " Changing this value for an existing chain might need a storage migration."] + pub fn deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "FellowshipReferenda", - "SubmissionDeposit", + "Contracts", + "DepositPerByte", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -14448,11 +22361,65 @@ pub mod api { ], ) } - #[doc = " Maximum size of the referendum queue for a single track."] - pub fn max_queued(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " Fallback value to limit the storage deposit if it's not being set by the caller."] + pub fn default_deposit_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "FellowshipReferenda", - "MaxQueued", + "Contracts", + "DefaultDepositLimit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of balance a caller has to pay for each storage item."] + #[doc = ""] + #[doc = " # Note"] + #[doc = ""] + #[doc = " Changing this value for an existing chain might need a storage migration."] + pub fn deposit_per_item( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Contracts", + "DepositPerItem", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The percentage of the storage deposit that should be held for using a code hash."] + #[doc = " Instantiating a contract, or calling [`chain_extension::Ext::add_delegate_dependency`]"] + #[doc = " protects the code from being removed. In order to prevent abuse these actions are"] + #[doc = " protected with a percentage of the code deposit."] + pub fn code_hash_lockup_deposit_percent( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Contracts", + "CodeHashLockupDepositPercent", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + #[doc = " The maximum length of a contract code in bytes."] + #[doc = ""] + #[doc = " The value should be chosen carefully taking into the account the overall memory limit"] + #[doc = " your runtime has, as well as the [maximum allowed callstack"] + #[doc = " depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights."] + pub fn max_code_len(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Contracts", + "MaxCodeLen", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -14461,14 +22428,13 @@ pub mod api { ], ) } - #[doc = " The number of blocks after submission that a referendum must begin being decided by."] - #[doc = " Once this passes, then anyone may cancel the referendum."] - pub fn undeciding_timeout( + #[doc = " The maximum allowable length in bytes for storage keys."] + pub fn max_storage_key_len( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "FellowshipReferenda", - "UndecidingTimeout", + "Contracts", + "MaxStorageKeyLen", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -14477,15 +22443,14 @@ pub mod api { ], ) } - #[doc = " Quantization level for the referendum wakeup scheduler. A higher number will result in"] - #[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"] - #[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."] - pub fn alarm_interval( + #[doc = " The maximum number of delegate_dependencies that a contract can lock with"] + #[doc = " [`chain_extension::Ext::add_delegate_dependency`]."] + pub fn max_delegate_dependencies( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "FellowshipReferenda", - "AlarmInterval", + "Contracts", + "MaxDelegateDependencies", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -14494,925 +22459,71 @@ pub mod api { ], ) } - #[doc = " Information concerning the different referendum tracks."] - pub fn tracks( + #[doc = " Make contract callable functions marked as `#[unstable]` available."] + #[doc = ""] + #[doc = " Contracts that use `#[unstable]` functions won't be able to be uploaded unless"] + #[doc = " this is set to `true`. This is only meant for testnets and dev nodes in order to"] + #[doc = " experiment with new features."] + #[doc = ""] + #[doc = " # Warning"] + #[doc = ""] + #[doc = " Do **not** set to `true` on productions chains."] + pub fn unsafe_unstable_interface( &self, - ) -> ::subxt::constants::Address< - ::std::vec::Vec<( - ::core::primitive::u16, - runtime_types::pallet_referenda::types::TrackInfo< - ::core::primitive::u128, - ::core::primitive::u32, - >, - )>, - > { + ) -> ::subxt::constants::Address<::core::primitive::bool> { ::subxt::constants::Address::new_static( - "FellowshipReferenda", - "Tracks", + "Contracts", + "UnsafeUnstableInterface", [ - 35u8, 226u8, 207u8, 234u8, 184u8, 139u8, 187u8, 184u8, 128u8, 199u8, - 227u8, 15u8, 31u8, 196u8, 5u8, 207u8, 138u8, 174u8, 130u8, 201u8, - 200u8, 113u8, 86u8, 93u8, 221u8, 243u8, 229u8, 24u8, 18u8, 150u8, 56u8, - 159u8, + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, + 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, + 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, ], ) } - } - } - } - pub mod whitelist { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_whitelist::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_whitelist::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::whitelist_call`]."] - pub struct WhitelistCall { - pub call_hash: whitelist_call::CallHash, - } - pub mod whitelist_call { - use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; - } - impl ::subxt::blocks::StaticExtrinsic for WhitelistCall { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "whitelist_call"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_whitelisted_call`]."] - pub struct RemoveWhitelistedCall { - pub call_hash: remove_whitelisted_call::CallHash, - } - pub mod remove_whitelisted_call { - use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveWhitelistedCall { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "remove_whitelisted_call"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] - pub struct DispatchWhitelistedCall { - pub call_hash: dispatch_whitelisted_call::CallHash, - pub call_encoded_len: dispatch_whitelisted_call::CallEncodedLen, - pub call_weight_witness: dispatch_whitelisted_call::CallWeightWitness, - } - pub mod dispatch_whitelisted_call { - use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; - pub type CallEncodedLen = ::core::primitive::u32; - pub type CallWeightWitness = runtime_types::sp_weights::weight_v2::Weight; - } - impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCall { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "dispatch_whitelisted_call"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] - pub struct DispatchWhitelistedCallWithPreimage { - pub call: ::std::boxed::Box, - } - pub mod dispatch_whitelisted_call_with_preimage { - use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCallWithPreimage { - const PALLET: &'static str = "Whitelist"; - const CALL: &'static str = "dispatch_whitelisted_call_with_preimage"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::whitelist_call`]."] - pub fn whitelist_call( + #[doc = " The maximum length of the debug buffer in bytes."] + pub fn max_debug_buffer_len( &self, - call_hash: types::whitelist_call::CallHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Whitelist", - "whitelist_call", - types::WhitelistCall { call_hash }, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Contracts", + "MaxDebugBufferLen", [ - 121u8, 165u8, 49u8, 37u8, 127u8, 38u8, 126u8, 213u8, 115u8, 148u8, - 122u8, 211u8, 24u8, 91u8, 147u8, 27u8, 87u8, 210u8, 84u8, 104u8, 229u8, - 155u8, 133u8, 30u8, 34u8, 249u8, 107u8, 110u8, 31u8, 191u8, 128u8, - 28u8, + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } - #[doc = "See [`Pallet::remove_whitelisted_call`]."] - pub fn remove_whitelisted_call( + #[doc = " Type that bundles together all the runtime configurable interface types."] + #[doc = ""] + #[doc = " This is not a real config. We just mention the type here as constant so that"] + #[doc = " its type appears in the metadata. Only valid value is `()`."] + pub fn environment( &self, - call_hash: types::remove_whitelisted_call::CallHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Whitelist", - "remove_whitelisted_call", - types::RemoveWhitelistedCall { call_hash }, - [ - 30u8, 47u8, 13u8, 231u8, 165u8, 219u8, 246u8, 210u8, 11u8, 38u8, 219u8, - 218u8, 151u8, 226u8, 101u8, 175u8, 0u8, 239u8, 35u8, 46u8, 156u8, - 104u8, 145u8, 173u8, 105u8, 100u8, 21u8, 189u8, 123u8, 227u8, 196u8, - 40u8, - ], - ) - } - #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] - pub fn dispatch_whitelisted_call( - &self, - call_hash: types::dispatch_whitelisted_call::CallHash, - call_encoded_len: types::dispatch_whitelisted_call::CallEncodedLen, - call_weight_witness: types::dispatch_whitelisted_call::CallWeightWitness, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Whitelist", - "dispatch_whitelisted_call", - types::DispatchWhitelistedCall { - call_hash, - call_encoded_len, - call_weight_witness, - }, - [ - 112u8, 67u8, 72u8, 26u8, 3u8, 214u8, 86u8, 102u8, 29u8, 96u8, 222u8, - 24u8, 115u8, 15u8, 124u8, 160u8, 148u8, 184u8, 56u8, 162u8, 188u8, - 123u8, 213u8, 234u8, 208u8, 123u8, 133u8, 253u8, 43u8, 226u8, 66u8, - 116u8, - ], - ) - } - #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] - pub fn dispatch_whitelisted_call_with_preimage( - &self, - call: types::dispatch_whitelisted_call_with_preimage::Call, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Whitelist", - "dispatch_whitelisted_call_with_preimage", - types::DispatchWhitelistedCallWithPreimage { - call: ::std::boxed::Box::new(call), - }, - [ - 149u8, 115u8, 81u8, 76u8, 235u8, 167u8, 31u8, 227u8, 153u8, 46u8, - 233u8, 199u8, 94u8, 30u8, 253u8, 19u8, 189u8, 77u8, 151u8, 249u8, 68u8, - 207u8, 139u8, 67u8, 6u8, 193u8, 131u8, 123u8, 101u8, 100u8, 13u8, - 222u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_whitelist::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CallWhitelisted { - pub call_hash: call_whitelisted::CallHash, - } - pub mod call_whitelisted { - use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; - } - impl ::subxt::events::StaticEvent for CallWhitelisted { - const PALLET: &'static str = "Whitelist"; - const EVENT: &'static str = "CallWhitelisted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WhitelistedCallRemoved { - pub call_hash: whitelisted_call_removed::CallHash, - } - pub mod whitelisted_call_removed { - use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; - } - impl ::subxt::events::StaticEvent for WhitelistedCallRemoved { - const PALLET: &'static str = "Whitelist"; - const EVENT: &'static str = "WhitelistedCallRemoved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WhitelistedCallDispatched { - pub call_hash: whitelisted_call_dispatched::CallHash, - pub result: whitelisted_call_dispatched::Result, - } - pub mod whitelisted_call_dispatched { - use super::runtime_types; - pub type CallHash = ::subxt::utils::H256; - pub type Result = ::core::result::Result< - runtime_types::frame_support::dispatch::PostDispatchInfo, - runtime_types::sp_runtime::DispatchErrorWithPostInfo< - runtime_types::frame_support::dispatch::PostDispatchInfo, - >, - >; - } - impl ::subxt::events::StaticEvent for WhitelistedCallDispatched { - const PALLET: &'static str = "Whitelist"; - const EVENT: &'static str = "WhitelistedCallDispatched"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod whitelisted_call { - use super::runtime_types; - pub type WhitelistedCall = (); - pub type Param0 = ::subxt::utils::H256; - } - } - pub struct StorageApi; - impl StorageApi { - pub fn whitelisted_call_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::whitelisted_call::WhitelistedCall, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Whitelist", - "WhitelistedCall", - vec![], - [ - 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, - 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, - 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, - ], - ) - } - pub fn whitelisted_call( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::whitelisted_call::WhitelistedCall, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Whitelist", - "WhitelistedCall", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, - 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, - 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, - ], - ) - } - } - } - } - pub mod claims { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::claims::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::claims::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim`]."] - pub struct Claim { - pub dest: claim::Dest, - pub ethereum_signature: claim::EthereumSignature, - } - pub mod claim { - use super::runtime_types; - pub type Dest = ::subxt::utils::AccountId32; - pub type EthereumSignature = - runtime_types::polkadot_runtime_common::claims::EcdsaSignature; - } - impl ::subxt::blocks::StaticExtrinsic for Claim { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "claim"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::mint_claim`]."] - pub struct MintClaim { - pub who: mint_claim::Who, - pub value: mint_claim::Value, - pub vesting_schedule: mint_claim::VestingSchedule, - pub statement: mint_claim::Statement, - } - pub mod mint_claim { - use super::runtime_types; - pub type Who = runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type Value = ::core::primitive::u128; - pub type VestingSchedule = ::core::option::Option<( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - )>; - pub type Statement = ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, - >; - } - impl ::subxt::blocks::StaticExtrinsic for MintClaim { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "mint_claim"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_attest`]."] - pub struct ClaimAttest { - pub dest: claim_attest::Dest, - pub ethereum_signature: claim_attest::EthereumSignature, - pub statement: claim_attest::Statement, - } - pub mod claim_attest { - use super::runtime_types; - pub type Dest = ::subxt::utils::AccountId32; - pub type EthereumSignature = - runtime_types::polkadot_runtime_common::claims::EcdsaSignature; - pub type Statement = ::std::vec::Vec<::core::primitive::u8>; - } - impl ::subxt::blocks::StaticExtrinsic for ClaimAttest { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "claim_attest"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::attest`]."] - pub struct Attest { - pub statement: attest::Statement, - } - pub mod attest { - use super::runtime_types; - pub type Statement = ::std::vec::Vec<::core::primitive::u8>; - } - impl ::subxt::blocks::StaticExtrinsic for Attest { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "attest"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::move_claim`]."] - pub struct MoveClaim { - pub old: move_claim::Old, - pub new: move_claim::New, - pub maybe_preclaim: move_claim::MaybePreclaim, - } - pub mod move_claim { - use super::runtime_types; - pub type Old = runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type New = runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type MaybePreclaim = ::core::option::Option<::subxt::utils::AccountId32>; - } - impl ::subxt::blocks::StaticExtrinsic for MoveClaim { - const PALLET: &'static str = "Claims"; - const CALL: &'static str = "move_claim"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::claim`]."] - pub fn claim( - &self, - dest: types::claim::Dest, - ethereum_signature: types::claim::EthereumSignature, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Claims", - "claim", - types::Claim { - dest, - ethereum_signature, - }, - [ - 218u8, 236u8, 60u8, 12u8, 231u8, 72u8, 155u8, 30u8, 116u8, 126u8, - 145u8, 166u8, 135u8, 118u8, 22u8, 112u8, 212u8, 140u8, 129u8, 97u8, - 9u8, 241u8, 159u8, 140u8, 252u8, 128u8, 4u8, 175u8, 180u8, 133u8, 70u8, - 55u8, - ], - ) - } - #[doc = "See [`Pallet::mint_claim`]."] - pub fn mint_claim( - &self, - who: types::mint_claim::Who, - value: types::mint_claim::Value, - vesting_schedule: types::mint_claim::VestingSchedule, - statement: types::mint_claim::Statement, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Claims", - "mint_claim", - types::MintClaim { - who, - value, - vesting_schedule, - statement, - }, - [ - 59u8, 71u8, 27u8, 16u8, 177u8, 189u8, 53u8, 54u8, 86u8, 157u8, 122u8, - 182u8, 246u8, 113u8, 225u8, 10u8, 31u8, 253u8, 15u8, 48u8, 182u8, - 198u8, 38u8, 211u8, 90u8, 75u8, 10u8, 68u8, 70u8, 152u8, 141u8, 222u8, - ], - ) - } - #[doc = "See [`Pallet::claim_attest`]."] - pub fn claim_attest( - &self, - dest: types::claim_attest::Dest, - ethereum_signature: types::claim_attest::EthereumSignature, - statement: types::claim_attest::Statement, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Claims", - "claim_attest", - types::ClaimAttest { - dest, - ethereum_signature, - statement, - }, - [ - 61u8, 16u8, 39u8, 50u8, 23u8, 249u8, 217u8, 155u8, 138u8, 128u8, 247u8, - 214u8, 185u8, 7u8, 87u8, 108u8, 15u8, 43u8, 44u8, 224u8, 204u8, 39u8, - 219u8, 188u8, 197u8, 104u8, 120u8, 144u8, 152u8, 161u8, 244u8, 37u8, - ], - ) - } - #[doc = "See [`Pallet::attest`]."] - pub fn attest( - &self, - statement: types::attest::Statement, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Claims", - "attest", - types::Attest { statement }, - [ - 254u8, 56u8, 140u8, 129u8, 227u8, 155u8, 161u8, 107u8, 167u8, 148u8, - 167u8, 104u8, 139u8, 174u8, 204u8, 124u8, 126u8, 198u8, 165u8, 61u8, - 83u8, 197u8, 242u8, 13u8, 70u8, 153u8, 14u8, 62u8, 214u8, 129u8, 64u8, - 93u8, - ], - ) - } - #[doc = "See [`Pallet::move_claim`]."] - pub fn move_claim( - &self, - old: types::move_claim::Old, - new: types::move_claim::New, - maybe_preclaim: types::move_claim::MaybePreclaim, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Claims", - "move_claim", - types::MoveClaim { - old, - new, - maybe_preclaim, - }, - [ - 187u8, 200u8, 222u8, 83u8, 110u8, 49u8, 60u8, 134u8, 91u8, 215u8, 67u8, - 18u8, 187u8, 241u8, 191u8, 127u8, 222u8, 171u8, 151u8, 245u8, 161u8, - 196u8, 123u8, 99u8, 206u8, 110u8, 55u8, 82u8, 210u8, 151u8, 116u8, - 230u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::claims::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Someone claimed some DOTs."] - pub struct Claimed { - pub who: claimed::Who, - pub ethereum_address: claimed::EthereumAddress, - pub amount: claimed::Amount, - } - pub mod claimed { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type EthereumAddress = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "Claims"; - const EVENT: &'static str = "Claimed"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod claims { - use super::runtime_types; - pub type Claims = ::core::primitive::u128; - pub type Param0 = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; - } - pub mod total { - use super::runtime_types; - pub type Total = ::core::primitive::u128; - } - pub mod vesting { - use super::runtime_types; - pub type Vesting = ( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - ); - pub type Param0 = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; - } - pub mod signing { - use super::runtime_types; - pub type Signing = - runtime_types::polkadot_runtime_common::claims::StatementKind; - pub type Param0 = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; - } - pub mod preclaims { - use super::runtime_types; - pub type Preclaims = - runtime_types::polkadot_runtime_common::claims::EthereumAddress; - pub type Param0 = ::subxt::utils::AccountId32; - } - } - pub struct StorageApi; - impl StorageApi { - pub fn claims_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::claims::Claims, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Claims", - vec![], - [ - 148u8, 115u8, 159u8, 169u8, 36u8, 116u8, 15u8, 108u8, 57u8, 195u8, - 226u8, 180u8, 187u8, 112u8, 114u8, 63u8, 3u8, 205u8, 113u8, 141u8, - 149u8, 149u8, 118u8, 246u8, 45u8, 245u8, 148u8, 108u8, 22u8, 184u8, - 152u8, 132u8, - ], - ) - } - pub fn claims( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::claims::Claims, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Claims", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 148u8, 115u8, 159u8, 169u8, 36u8, 116u8, 15u8, 108u8, 57u8, 195u8, - 226u8, 180u8, 187u8, 112u8, 114u8, 63u8, 3u8, 205u8, 113u8, 141u8, - 149u8, 149u8, 118u8, 246u8, 45u8, 245u8, 148u8, 108u8, 22u8, 184u8, - 152u8, 132u8, - ], - ) - } - pub fn total( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::total::Total, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Total", - vec![], - [ - 188u8, 31u8, 219u8, 189u8, 49u8, 213u8, 203u8, 89u8, 125u8, 58u8, - 232u8, 159u8, 131u8, 155u8, 166u8, 113u8, 99u8, 24u8, 40u8, 242u8, - 118u8, 183u8, 108u8, 230u8, 135u8, 150u8, 84u8, 86u8, 118u8, 91u8, - 168u8, 62u8, - ], - ) - } - #[doc = " Vesting schedule for a claim."] - #[doc = " First balance is the total amount that should be held for vesting."] - #[doc = " Second balance is how much should be unlocked per block."] - #[doc = " The block number is when the vesting should start."] - pub fn vesting_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::vesting::Vesting, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Vesting", - vec![], - [ - 206u8, 106u8, 195u8, 101u8, 55u8, 137u8, 50u8, 105u8, 137u8, 87u8, - 230u8, 34u8, 255u8, 94u8, 210u8, 186u8, 179u8, 72u8, 24u8, 194u8, - 209u8, 173u8, 115u8, 65u8, 227u8, 224u8, 58u8, 113u8, 200u8, 166u8, - 108u8, 198u8, - ], - ) - } - #[doc = " Vesting schedule for a claim."] - #[doc = " First balance is the total amount that should be held for vesting."] - #[doc = " Second balance is how much should be unlocked per block."] - #[doc = " The block number is when the vesting should start."] - pub fn vesting( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::vesting::Vesting, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Vesting", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 206u8, 106u8, 195u8, 101u8, 55u8, 137u8, 50u8, 105u8, 137u8, 87u8, - 230u8, 34u8, 255u8, 94u8, 210u8, 186u8, 179u8, 72u8, 24u8, 194u8, - 209u8, 173u8, 115u8, 65u8, 227u8, 224u8, 58u8, 113u8, 200u8, 166u8, - 108u8, 198u8, - ], - ) - } - #[doc = " The statement kind that must be signed, if any."] - pub fn signing_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::signing::Signing, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Signing", - vec![], - [ - 111u8, 90u8, 178u8, 121u8, 241u8, 28u8, 169u8, 231u8, 61u8, 189u8, - 113u8, 207u8, 26u8, 153u8, 189u8, 15u8, 192u8, 25u8, 22u8, 22u8, 124u8, - 26u8, 191u8, 39u8, 130u8, 164u8, 34u8, 4u8, 44u8, 91u8, 82u8, 186u8, - ], - ) - } - #[doc = " The statement kind that must be signed, if any."] - pub fn signing( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::signing::Signing, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Signing", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 111u8, 90u8, 178u8, 121u8, 241u8, 28u8, 169u8, 231u8, 61u8, 189u8, - 113u8, 207u8, 26u8, 153u8, 189u8, 15u8, 192u8, 25u8, 22u8, 22u8, 124u8, - 26u8, 191u8, 39u8, 130u8, 164u8, 34u8, 4u8, 44u8, 91u8, 82u8, 186u8, - ], - ) - } - #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] - pub fn preclaims_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::preclaims::Preclaims, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Preclaims", - vec![], - [ - 197u8, 114u8, 147u8, 235u8, 203u8, 255u8, 94u8, 113u8, 151u8, 119u8, - 224u8, 147u8, 48u8, 246u8, 124u8, 38u8, 190u8, 237u8, 226u8, 65u8, - 91u8, 163u8, 129u8, 40u8, 71u8, 137u8, 220u8, 242u8, 51u8, 75u8, 3u8, - 204u8, - ], - ) - } - #[doc = " Pre-claimed Ethereum accounts, by the Account ID that they are claimed to."] - pub fn preclaims( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::preclaims::Preclaims, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Claims", - "Preclaims", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 197u8, 114u8, 147u8, 235u8, 203u8, 255u8, 94u8, 113u8, 151u8, 119u8, - 224u8, 147u8, 48u8, 246u8, 124u8, 38u8, 190u8, 237u8, 226u8, 65u8, - 91u8, 163u8, 129u8, 40u8, 71u8, 137u8, 220u8, 242u8, 51u8, 75u8, 3u8, - 204u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn prefix( - &self, - ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u8>> + ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( - "Claims", - "Prefix", + "Contracts", + "Environment", [ - 64u8, 190u8, 244u8, 122u8, 87u8, 182u8, 217u8, 16u8, 55u8, 223u8, - 128u8, 6u8, 112u8, 30u8, 236u8, 222u8, 153u8, 53u8, 247u8, 102u8, - 196u8, 31u8, 6u8, 186u8, 251u8, 209u8, 114u8, 125u8, 213u8, 222u8, - 240u8, 8u8, + 182u8, 82u8, 245u8, 21u8, 180u8, 187u8, 81u8, 79u8, 86u8, 189u8, 26u8, + 84u8, 118u8, 253u8, 81u8, 12u8, 20u8, 85u8, 197u8, 131u8, 60u8, 37u8, + 85u8, 26u8, 249u8, 76u8, 8u8, 40u8, 67u8, 30u8, 105u8, 1u8, ], ) } } } } - pub mod utility { + pub mod sudo { use super::root_mod; use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_utility::pallet::Error; + #[doc = "Error for the Sudo pallet."] + pub type Error = runtime_types::pallet_sudo::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_utility::pallet::Call; + pub type Call = runtime_types::pallet_sudo::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -15429,17 +22540,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::batch`]."] - pub struct Batch { - pub calls: batch::Calls, + #[doc = "See [`Pallet::sudo`]."] + pub struct Sudo { + pub call: ::std::boxed::Box, } - pub mod batch { + pub mod sudo { use super::runtime_types; - pub type Calls = ::std::vec::Vec; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; } - impl ::subxt::blocks::StaticExtrinsic for Batch { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "batch"; + impl ::subxt::blocks::StaticExtrinsic for Sudo { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15451,232 +22562,184 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::as_derivative`]."] - pub struct AsDerivative { - pub index: as_derivative::Index, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] + pub struct SudoUncheckedWeight { + pub call: ::std::boxed::Box, + pub weight: sudo_unchecked_weight::Weight, } - pub mod as_derivative { + pub mod sudo_unchecked_weight { use super::runtime_types; - pub type Index = ::core::primitive::u16; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - impl ::subxt::blocks::StaticExtrinsic for AsDerivative { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "as_derivative"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::batch_all`]."] - pub struct BatchAll { - pub calls: batch_all::Calls, - } - pub mod batch_all { - use super::runtime_types; - pub type Calls = ::std::vec::Vec; - } - impl ::subxt::blocks::StaticExtrinsic for BatchAll { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "batch_all"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::dispatch_as`]."] - pub struct DispatchAs { - pub as_origin: ::std::boxed::Box, - pub call: ::std::boxed::Box, - } - pub mod dispatch_as { - use super::runtime_types; - pub type AsOrigin = runtime_types::rococo_runtime::OriginCaller; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - impl ::subxt::blocks::StaticExtrinsic for DispatchAs { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "dispatch_as"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_batch`]."] - pub struct ForceBatch { - pub calls: force_batch::Calls, - } - pub mod force_batch { - use super::runtime_types; - pub type Calls = ::std::vec::Vec; - } - impl ::subxt::blocks::StaticExtrinsic for ForceBatch { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "force_batch"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::with_weight`]."] - pub struct WithWeight { - pub call: ::std::boxed::Box, - pub weight: with_weight::Weight, - } - pub mod with_weight { - use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; pub type Weight = runtime_types::sp_weights::weight_v2::Weight; } - impl ::subxt::blocks::StaticExtrinsic for WithWeight { - const PALLET: &'static str = "Utility"; - const CALL: &'static str = "with_weight"; + impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_unchecked_weight"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_key`]."] + pub struct SetKey { + pub new: set_key::New, + } + pub mod set_key { + use super::runtime_types; + pub type New = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetKey { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "set_key"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::sudo_as`]."] + pub struct SudoAs { + pub who: sudo_as::Who, + pub call: ::std::boxed::Box, + } + pub mod sudo_as { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + } + impl ::subxt::blocks::StaticExtrinsic for SudoAs { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_as"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_key`]."] + pub struct RemoveKey; + impl ::subxt::blocks::StaticExtrinsic for RemoveKey { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "remove_key"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::batch`]."] - pub fn batch( - &self, - calls: types::batch::Calls, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::sudo`]."] + pub fn sudo(&self, call: types::sudo::Call) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Utility", - "batch", - types::Batch { calls }, - [ - 78u8, 111u8, 192u8, 46u8, 34u8, 172u8, 232u8, 158u8, 67u8, 231u8, - 116u8, 182u8, 17u8, 178u8, 31u8, 98u8, 146u8, 71u8, 226u8, 56u8, 105u8, - 184u8, 75u8, 175u8, 78u8, 225u8, 25u8, 5u8, 226u8, 195u8, 199u8, 41u8, - ], - ) - } - #[doc = "See [`Pallet::as_derivative`]."] - pub fn as_derivative( - &self, - index: types::as_derivative::Index, - call: types::as_derivative::Call, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "as_derivative", - types::AsDerivative { - index, + "Sudo", + "sudo", + types::Sudo { call: ::std::boxed::Box::new(call), }, [ - 112u8, 49u8, 70u8, 206u8, 54u8, 117u8, 186u8, 83u8, 25u8, 68u8, 8u8, - 255u8, 91u8, 43u8, 254u8, 165u8, 230u8, 24u8, 104u8, 176u8, 236u8, - 166u8, 147u8, 244u8, 103u8, 208u8, 164u8, 26u8, 72u8, 44u8, 143u8, - 209u8, + 159u8, 248u8, 172u8, 109u8, 51u8, 161u8, 208u8, 202u8, 45u8, 240u8, + 224u8, 58u8, 157u8, 107u8, 180u8, 62u8, 120u8, 134u8, 215u8, 255u8, + 144u8, 203u8, 35u8, 160u8, 210u8, 119u8, 37u8, 110u8, 137u8, 177u8, + 183u8, 134u8, ], ) } - #[doc = "See [`Pallet::batch_all`]."] - pub fn batch_all( + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] + pub fn sudo_unchecked_weight( &self, - calls: types::batch_all::Calls, - ) -> ::subxt::tx::Payload { + call: types::sudo_unchecked_weight::Call, + weight: types::sudo_unchecked_weight::Weight, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Utility", - "batch_all", - types::BatchAll { calls }, - [ - 163u8, 4u8, 232u8, 21u8, 56u8, 119u8, 67u8, 62u8, 223u8, 193u8, 23u8, - 181u8, 202u8, 55u8, 186u8, 155u8, 169u8, 187u8, 213u8, 34u8, 153u8, - 255u8, 210u8, 170u8, 187u8, 212u8, 71u8, 92u8, 173u8, 145u8, 91u8, - 218u8, - ], - ) - } - #[doc = "See [`Pallet::dispatch_as`]."] - pub fn dispatch_as( - &self, - as_origin: types::dispatch_as::AsOrigin, - call: types::dispatch_as::Call, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "dispatch_as", - types::DispatchAs { - as_origin: ::std::boxed::Box::new(as_origin), - call: ::std::boxed::Box::new(call), - }, - [ - 91u8, 220u8, 144u8, 201u8, 69u8, 201u8, 58u8, 205u8, 190u8, 98u8, - 138u8, 115u8, 107u8, 54u8, 190u8, 44u8, 9u8, 46u8, 109u8, 80u8, 102u8, - 167u8, 139u8, 162u8, 61u8, 191u8, 159u8, 217u8, 207u8, 236u8, 20u8, - 213u8, - ], - ) - } - #[doc = "See [`Pallet::force_batch`]."] - pub fn force_batch( - &self, - calls: types::force_batch::Calls, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "force_batch", - types::ForceBatch { calls }, - [ - 255u8, 125u8, 65u8, 157u8, 224u8, 195u8, 44u8, 249u8, 206u8, 224u8, - 11u8, 66u8, 67u8, 139u8, 24u8, 136u8, 57u8, 79u8, 85u8, 26u8, 51u8, - 170u8, 205u8, 52u8, 181u8, 94u8, 125u8, 250u8, 163u8, 126u8, 140u8, - 43u8, - ], - ) - } - #[doc = "See [`Pallet::with_weight`]."] - pub fn with_weight( - &self, - call: types::with_weight::Call, - weight: types::with_weight::Weight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "with_weight", - types::WithWeight { + "Sudo", + "sudo_unchecked_weight", + types::SudoUncheckedWeight { call: ::std::boxed::Box::new(call), weight, }, [ - 187u8, 254u8, 162u8, 240u8, 54u8, 31u8, 44u8, 138u8, 164u8, 40u8, - 207u8, 170u8, 80u8, 220u8, 64u8, 162u8, 39u8, 87u8, 132u8, 169u8, 14u8, - 193u8, 69u8, 251u8, 171u8, 148u8, 107u8, 163u8, 73u8, 193u8, 46u8, - 26u8, + 104u8, 23u8, 243u8, 123u8, 43u8, 130u8, 62u8, 207u8, 216u8, 244u8, + 151u8, 109u8, 45u8, 185u8, 249u8, 51u8, 169u8, 202u8, 244u8, 43u8, + 177u8, 77u8, 76u8, 206u8, 245u8, 180u8, 190u8, 178u8, 233u8, 28u8, + 58u8, 52u8, + ], + ) + } + #[doc = "See [`Pallet::set_key`]."] + pub fn set_key( + &self, + new: types::set_key::New, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "set_key", + types::SetKey { new }, + [ + 247u8, 148u8, 125u8, 134u8, 90u8, 138u8, 216u8, 117u8, 246u8, 75u8, + 85u8, 242u8, 229u8, 203u8, 227u8, 242u8, 166u8, 28u8, 247u8, 215u8, + 35u8, 13u8, 243u8, 13u8, 4u8, 48u8, 175u8, 192u8, 63u8, 142u8, 13u8, + 94u8, + ], + ) + } + #[doc = "See [`Pallet::sudo_as`]."] + pub fn sudo_as( + &self, + who: types::sudo_as::Who, + call: types::sudo_as::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo_as", + types::SudoAs { + who, + call: ::std::boxed::Box::new(call), + }, + [ + 61u8, 122u8, 104u8, 231u8, 24u8, 188u8, 160u8, 35u8, 113u8, 239u8, + 67u8, 107u8, 56u8, 255u8, 11u8, 19u8, 233u8, 113u8, 239u8, 216u8, + 109u8, 27u8, 32u8, 155u8, 41u8, 148u8, 231u8, 197u8, 161u8, 248u8, + 242u8, 118u8, + ], + ) + } + #[doc = "See [`Pallet::remove_key`]."] + pub fn remove_key(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "remove_key", + types::RemoveKey {}, + [ + 133u8, 253u8, 54u8, 175u8, 202u8, 239u8, 5u8, 198u8, 180u8, 138u8, + 25u8, 28u8, 109u8, 40u8, 30u8, 56u8, 126u8, 100u8, 52u8, 205u8, 250u8, + 191u8, 61u8, 195u8, 172u8, 142u8, 184u8, 239u8, 247u8, 10u8, 211u8, + 79u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_utility::pallet::Event; + pub type Event = runtime_types::pallet_sudo::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -15689,131 +22752,893 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] - #[doc = "well as the error."] - pub struct BatchInterrupted { - pub index: batch_interrupted::Index, - pub error: batch_interrupted::Error, + #[doc = "A sudo call just took place."] + pub struct Sudid { + pub sudo_result: sudid::SudoResult, } - pub mod batch_interrupted { + pub mod sudid { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type Error = runtime_types::sp_runtime::DispatchError; - } - impl ::subxt::events::StaticEvent for BatchInterrupted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchInterrupted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Batch of dispatches completed fully with no error."] - pub struct BatchCompleted; - impl ::subxt::events::StaticEvent for BatchCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompleted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Batch of dispatches completed but has errors."] - pub struct BatchCompletedWithErrors; - impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "BatchCompletedWithErrors"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A single item within a Batch of dispatches has completed with no error."] - pub struct ItemCompleted; - impl ::subxt::events::StaticEvent for ItemCompleted { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemCompleted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A single item within a Batch of dispatches has completed with error."] - pub struct ItemFailed { - pub error: item_failed::Error, - } - pub mod item_failed { - use super::runtime_types; - pub type Error = runtime_types::sp_runtime::DispatchError; - } - impl ::subxt::events::StaticEvent for ItemFailed { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "ItemFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A call was dispatched."] - pub struct DispatchedAs { - pub result: dispatched_as::Result, - } - pub mod dispatched_as { - use super::runtime_types; - pub type Result = + pub type SudoResult = ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt::events::StaticEvent for DispatchedAs { - const PALLET: &'static str = "Utility"; - const EVENT: &'static str = "DispatchedAs"; + impl ::subxt::events::StaticEvent for Sudid { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "Sudid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The sudo key has been updated."] + pub struct KeyChanged { + pub old: key_changed::Old, + pub new: key_changed::New, + } + pub mod key_changed { + use super::runtime_types; + pub type Old = ::core::option::Option<::subxt::utils::AccountId32>; + pub type New = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for KeyChanged { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The key was permanently removed."] + pub struct KeyRemoved; + impl ::subxt::events::StaticEvent for KeyRemoved { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."] + pub struct SudoAsDone { + pub sudo_result: sudo_as_done::SudoResult, + } + pub mod sudo_as_done { + use super::runtime_types; + pub type SudoResult = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for SudoAsDone { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "SudoAsDone"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod key { + use super::runtime_types; + pub type Key = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The `AccountId` of the sudo key."] + pub fn key( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::key::Key, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Sudo", + "Key", + vec![], + [ + 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, + 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, + 36u8, 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, + ], + ) + } + } + } + } + pub mod im_online { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_im_online::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_im_online::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::heartbeat`]."] + pub struct Heartbeat { + pub heartbeat: heartbeat::Heartbeat, + pub signature: heartbeat::Signature, + } + pub mod heartbeat { + use super::runtime_types; + pub type Heartbeat = + runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>; + pub type Signature = + runtime_types::pallet_im_online::sr25519::app_sr25519::Signature; + } + impl ::subxt::blocks::StaticExtrinsic for Heartbeat { + const PALLET: &'static str = "ImOnline"; + const CALL: &'static str = "heartbeat"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::heartbeat`]."] + pub fn heartbeat( + &self, + heartbeat: types::heartbeat::Heartbeat, + signature: types::heartbeat::Signature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ImOnline", + "heartbeat", + types::Heartbeat { + heartbeat, + signature, + }, + [ + 41u8, 78u8, 115u8, 250u8, 94u8, 34u8, 215u8, 28u8, 33u8, 175u8, 203u8, + 205u8, 14u8, 40u8, 197u8, 51u8, 24u8, 198u8, 173u8, 32u8, 119u8, 154u8, + 213u8, 125u8, 219u8, 3u8, 128u8, 52u8, 166u8, 223u8, 241u8, 129u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_im_online::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new heartbeat was received from `AuthorityId`."] + pub struct HeartbeatReceived { + pub authority_id: heartbeat_received::AuthorityId, + } + pub mod heartbeat_received { + use super::runtime_types; + pub type AuthorityId = + runtime_types::pallet_im_online::sr25519::app_sr25519::Public; + } + impl ::subxt::events::StaticEvent for HeartbeatReceived { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "HeartbeatReceived"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "At the end of the session, no offence was committed."] + pub struct AllGood; + impl ::subxt::events::StaticEvent for AllGood { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "AllGood"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "At the end of the session, at least one validator was found to be offline."] + pub struct SomeOffline { + pub offline: some_offline::Offline, + } + pub mod some_offline { + use super::runtime_types; + pub type Offline = ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + )>; + } + impl ::subxt::events::StaticEvent for SomeOffline { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "SomeOffline"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod heartbeat_after { + use super::runtime_types; + pub type HeartbeatAfter = ::core::primitive::u32; + } + pub mod keys { + use super::runtime_types; + pub type Keys = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + >; + } + pub mod received_heartbeats { + use super::runtime_types; + pub type ReceivedHeartbeats = ::core::primitive::bool; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod authored_blocks { + use super::runtime_types; + pub type AuthoredBlocks = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The block number after which it's ok to send heartbeats in the current"] + #[doc = " session."] + #[doc = ""] + #[doc = " At the beginning of each session we set this to a value that should fall"] + #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] + #[doc = " the validators to produce a block in the current session, so that the"] + #[doc = " heartbeat later on will not be necessary."] + #[doc = ""] + #[doc = " This value will only be used as a fallback if we fail to get a proper session"] + #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] + #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] + pub fn heartbeat_after( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::heartbeat_after::HeartbeatAfter, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "HeartbeatAfter", + vec![], + [ + 36u8, 179u8, 76u8, 254u8, 3u8, 184u8, 154u8, 142u8, 70u8, 104u8, 44u8, + 244u8, 39u8, 97u8, 31u8, 31u8, 93u8, 228u8, 185u8, 224u8, 13u8, 160u8, + 231u8, 210u8, 110u8, 143u8, 116u8, 29u8, 0u8, 215u8, 217u8, 137u8, + ], + ) + } + #[doc = " The current set of keys that may issue a heartbeat."] + pub fn keys( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::keys::Keys, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "Keys", + vec![], + [ + 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, + 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, + 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, + 29u8, 218u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] + pub fn received_heartbeats_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::received_heartbeats::ReceivedHeartbeats, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "ReceivedHeartbeats", + vec![], + [ + 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, + 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, + 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] + pub fn received_heartbeats_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::received_heartbeats::ReceivedHeartbeats, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "ReceivedHeartbeats", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, + 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, + 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] + pub fn received_heartbeats( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::received_heartbeats::ReceivedHeartbeats, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "ReceivedHeartbeats", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, + 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, + 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::authored_blocks::AuthoredBlocks, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "AuthoredBlocks", + vec![], + [ + 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, + 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, + 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, + 233u8, 126u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::authored_blocks::AuthoredBlocks, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "AuthoredBlocks", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, + 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, + 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, + 233u8, 126u8, + ], + ) + } + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] + pub fn authored_blocks( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::authored_blocks::AuthoredBlocks, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "AuthoredBlocks", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, + 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, + 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, + 233u8, 126u8, + ], + ) + } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The limit on the number of batched calls."] - pub fn batched_calls_limit( + #[doc = " A configuration for base priority of unsigned transactions."] + #[doc = ""] + #[doc = " This is exposed so that it can be tuned for particular runtime, when"] + #[doc = " multiple pallets send unsigned transactions."] + pub fn unsigned_priority( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( - "Utility", - "batched_calls_limit", + "ImOnline", + "UnsignedPriority", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + } + } + } + pub mod authority_discovery { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod keys { + use super::runtime_types; + pub type Keys = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::sp_authority_discovery::app::Public, + >; + } + pub mod next_keys { + use super::runtime_types; + pub type NextKeys = + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::sp_authority_discovery::app::Public, + >; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Keys of the current authority set."] + pub fn keys( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::keys::Keys, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AuthorityDiscovery", + "Keys", + vec![], + [ + 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, + 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, + 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, + 29u8, 218u8, + ], + ) + } + #[doc = " Keys of the next authority set."] + pub fn next_keys( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_keys::NextKeys, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AuthorityDiscovery", + "NextKeys", + vec![], + [ + 171u8, 107u8, 15u8, 108u8, 125u8, 102u8, 193u8, 240u8, 127u8, 160u8, + 53u8, 1u8, 208u8, 36u8, 134u8, 4u8, 216u8, 26u8, 156u8, 143u8, 154u8, + 194u8, 153u8, 199u8, 46u8, 211u8, 153u8, 222u8, 244u8, 4u8, 165u8, 2u8, + ], + ) + } + } + } + } + pub mod offences { + use super::root_mod; + use super::runtime_types; + #[doc = "Events type."] + pub type Event = runtime_types::pallet_offences::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] + #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] + #[doc = "\\[kind, timeslot\\]."] + pub struct Offence { + pub kind: offence::Kind, + pub timeslot: offence::Timeslot, + } + pub mod offence { + use super::runtime_types; + pub type Kind = [::core::primitive::u8; 16usize]; + pub type Timeslot = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::events::StaticEvent for Offence { + const PALLET: &'static str = "Offences"; + const EVENT: &'static str = "Offence"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod reports { + use super::runtime_types; + pub type Reports = runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + runtime_types::sp_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ), + >; + pub type Param0 = ::subxt::utils::H256; + } + pub mod concurrent_reports_index { + use super::runtime_types; + pub type ConcurrentReportsIndex = ::std::vec::Vec<::subxt::utils::H256>; + pub type Param0 = [::core::primitive::u8; 16usize]; + pub type Param1 = [::core::primitive::u8]; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] + pub fn reports_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::reports::Reports, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "Reports", + vec![], + [ + 140u8, 14u8, 199u8, 180u8, 83u8, 5u8, 23u8, 57u8, 241u8, 41u8, 240u8, + 35u8, 80u8, 12u8, 115u8, 16u8, 2u8, 15u8, 22u8, 77u8, 25u8, 92u8, + 100u8, 39u8, 226u8, 55u8, 240u8, 80u8, 190u8, 196u8, 234u8, 177u8, + ], + ) + } + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] + pub fn reports( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::reports::Reports, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "Reports", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 140u8, 14u8, 199u8, 180u8, 83u8, 5u8, 23u8, 57u8, 241u8, 41u8, 240u8, + 35u8, 80u8, 12u8, 115u8, 16u8, 2u8, 15u8, 22u8, 77u8, 25u8, 92u8, + 100u8, 39u8, 226u8, 55u8, 240u8, 80u8, 190u8, 196u8, 234u8, 177u8, + ], + ) + } + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::concurrent_reports_index::ConcurrentReportsIndex, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + vec![], + [ + 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, + 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, + 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, + 247u8, + ], + ) + } + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::concurrent_reports_index::ConcurrentReportsIndex, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, + 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, + 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, + 247u8, + ], + ) + } + #[doc = " A vector of reports of the same kind that happened at the same time slot."] + pub fn concurrent_reports_index( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::concurrent_reports_index::ConcurrentReportsIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, + 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, + 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, + 247u8, + ], + ) + } + } + } + } + pub mod historical { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod historical_sessions { + use super::runtime_types; + pub type HistoricalSessions = (::subxt::utils::H256, ::core::primitive::u32); + pub type Param0 = ::core::primitive::u32; + } + pub mod stored_range { + use super::runtime_types; + pub type StoredRange = (::core::primitive::u32, ::core::primitive::u32); + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Mapping from historical session indices to session-data root hash and validator count."] + pub fn historical_sessions_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::historical_sessions::HistoricalSessions, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Historical", + "HistoricalSessions", + vec![], + [ + 9u8, 138u8, 247u8, 141u8, 178u8, 146u8, 124u8, 81u8, 162u8, 211u8, + 205u8, 149u8, 222u8, 254u8, 253u8, 188u8, 170u8, 242u8, 218u8, 41u8, + 124u8, 178u8, 109u8, 209u8, 163u8, 125u8, 225u8, 206u8, 249u8, 175u8, + 117u8, 75u8, + ], + ) + } + #[doc = " Mapping from historical session indices to session-data root hash and validator count."] + pub fn historical_sessions( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::historical_sessions::HistoricalSessions, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Historical", + "HistoricalSessions", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 9u8, 138u8, 247u8, 141u8, 178u8, 146u8, 124u8, 81u8, 162u8, 211u8, + 205u8, 149u8, 222u8, 254u8, 253u8, 188u8, 170u8, 242u8, 218u8, 41u8, + 124u8, 178u8, 109u8, 209u8, 163u8, 125u8, 225u8, 206u8, 249u8, 175u8, + 117u8, 75u8, + ], + ) + } + #[doc = " The range of historical sessions we store. [first, last)"] + pub fn stored_range( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::stored_range::StoredRange, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Historical", + "StoredRange", + vec![], + [ + 134u8, 32u8, 250u8, 13u8, 201u8, 25u8, 54u8, 243u8, 231u8, 81u8, 252u8, + 231u8, 68u8, 217u8, 235u8, 43u8, 22u8, 223u8, 220u8, 133u8, 198u8, + 218u8, 95u8, 152u8, 189u8, 87u8, 6u8, 228u8, 242u8, 59u8, 232u8, 59u8, + ], + ) + } + } + } + } + pub mod randomness_collective_flip { + use super::root_mod; + use super::runtime_types; + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod random_material { + use super::runtime_types; + pub type RandomMaterial = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"] + #[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"] + #[doc = " the oldest hash."] + pub fn random_material( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::random_material::RandomMaterial, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "RandomnessCollectiveFlip", + "RandomMaterial", + vec![], + [ + 195u8, 232u8, 244u8, 162u8, 110u8, 137u8, 66u8, 57u8, 51u8, 221u8, + 143u8, 38u8, 51u8, 183u8, 105u8, 245u8, 175u8, 13u8, 33u8, 192u8, 53u8, + 16u8, 161u8, 76u8, 219u8, 177u8, 144u8, 192u8, 96u8, 166u8, 117u8, + 247u8, ], ) } @@ -15849,8 +23674,10 @@ pub mod api { } pub mod add_registrar { use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Account = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { const PALLET: &'static str = "Identity"; @@ -16012,7 +23839,10 @@ pub mod api { pub mod set_account_id { use super::runtime_types; pub type Index = ::core::primitive::u32; - pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type New = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for SetAccountId { const PALLET: &'static str = "Identity"; @@ -16064,7 +23894,10 @@ pub mod api { pub mod provide_judgement { use super::runtime_types; pub type RegIndex = ::core::primitive::u32; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Judgement = runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>; pub type Identity = ::subxt::utils::H256; @@ -16089,7 +23922,10 @@ pub mod api { } pub mod kill_identity { use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for KillIdentity { const PALLET: &'static str = "Identity"; @@ -16112,7 +23948,10 @@ pub mod api { } pub mod add_sub { use super::runtime_types; - pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Sub = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Data = runtime_types::pallet_identity::types::Data; } impl ::subxt::blocks::StaticExtrinsic for AddSub { @@ -16136,7 +23975,10 @@ pub mod api { } pub mod rename_sub { use super::runtime_types; - pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Sub = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Data = runtime_types::pallet_identity::types::Data; } impl ::subxt::blocks::StaticExtrinsic for RenameSub { @@ -16159,7 +24001,10 @@ pub mod api { } pub mod remove_sub { use super::runtime_types; - pub type Sub = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Sub = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for RemoveSub { const PALLET: &'static str = "Identity"; @@ -16181,6 +24026,186 @@ pub mod api { const PALLET: &'static str = "Identity"; const CALL: &'static str = "quit_sub"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::add_username_authority`]."] + pub struct AddUsernameAuthority { + pub authority: add_username_authority::Authority, + pub suffix: add_username_authority::Suffix, + pub allocation: add_username_authority::Allocation, + } + pub mod add_username_authority { + use super::runtime_types; + pub type Authority = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Suffix = ::std::vec::Vec<::core::primitive::u8>; + pub type Allocation = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for AddUsernameAuthority { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_username_authority"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_username_authority`]."] + pub struct RemoveUsernameAuthority { + pub authority: remove_username_authority::Authority, + } + pub mod remove_username_authority { + use super::runtime_types; + pub type Authority = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveUsernameAuthority { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "remove_username_authority"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_username_for`]."] + pub struct SetUsernameFor { + pub who: set_username_for::Who, + pub username: set_username_for::Username, + pub signature: set_username_for::Signature, + } + pub mod set_username_for { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Username = ::std::vec::Vec<::core::primitive::u8>; + pub type Signature = + ::core::option::Option; + } + impl ::subxt::blocks::StaticExtrinsic for SetUsernameFor { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_username_for"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::accept_username`]."] + pub struct AcceptUsername { + pub username: accept_username::Username, + } + pub mod accept_username { + use super::runtime_types; + pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for AcceptUsername { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "accept_username"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_expired_approval`]."] + pub struct RemoveExpiredApproval { + pub username: remove_expired_approval::Username, + } + pub mod remove_expired_approval { + use super::runtime_types; + pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveExpiredApproval { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "remove_expired_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_primary_username`]."] + pub struct SetPrimaryUsername { + pub username: set_primary_username::Username, + } + pub mod set_primary_username { + use super::runtime_types; + pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetPrimaryUsername { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_primary_username"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_dangling_username`]."] + pub struct RemoveDanglingUsername { + pub username: remove_dangling_username::Username, + } + pub mod remove_dangling_username { + use super::runtime_types; + pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveDanglingUsername { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "remove_dangling_username"; + } } pub struct TransactionApi; impl TransactionApi { @@ -16194,9 +24219,9 @@ pub mod api { "add_registrar", types::AddRegistrar { account }, [ - 6u8, 131u8, 82u8, 191u8, 37u8, 240u8, 158u8, 187u8, 247u8, 98u8, 175u8, - 200u8, 147u8, 78u8, 88u8, 176u8, 227u8, 179u8, 184u8, 194u8, 91u8, 1u8, - 1u8, 20u8, 121u8, 4u8, 96u8, 94u8, 103u8, 140u8, 247u8, 253u8, + 206u8, 30u8, 240u8, 168u8, 67u8, 228u8, 17u8, 74u8, 26u8, 222u8, 61u8, + 15u8, 100u8, 25u8, 162u8, 159u8, 83u8, 110u8, 30u8, 52u8, 201u8, 49u8, + 115u8, 152u8, 142u8, 76u8, 14u8, 239u8, 184u8, 136u8, 195u8, 39u8, ], ) } @@ -16313,10 +24338,10 @@ pub mod api { "set_account_id", types::SetAccountId { index, new }, [ - 68u8, 57u8, 39u8, 134u8, 39u8, 82u8, 156u8, 107u8, 113u8, 99u8, 9u8, - 163u8, 58u8, 249u8, 247u8, 208u8, 38u8, 203u8, 54u8, 153u8, 116u8, - 143u8, 81u8, 46u8, 228u8, 149u8, 127u8, 115u8, 252u8, 83u8, 33u8, - 101u8, + 40u8, 151u8, 216u8, 253u8, 241u8, 117u8, 210u8, 208u8, 98u8, 94u8, + 228u8, 208u8, 122u8, 100u8, 86u8, 237u8, 240u8, 89u8, 90u8, 109u8, + 23u8, 255u8, 121u8, 176u8, 146u8, 10u8, 190u8, 175u8, 148u8, 228u8, + 176u8, 43u8, ], ) } @@ -16356,10 +24381,10 @@ pub mod api { identity, }, [ - 145u8, 188u8, 61u8, 236u8, 183u8, 49u8, 49u8, 149u8, 240u8, 184u8, - 202u8, 75u8, 69u8, 0u8, 95u8, 103u8, 132u8, 24u8, 107u8, 221u8, 236u8, - 75u8, 231u8, 125u8, 39u8, 189u8, 45u8, 202u8, 116u8, 123u8, 236u8, - 96u8, + 224u8, 108u8, 183u8, 113u8, 45u8, 239u8, 165u8, 94u8, 110u8, 181u8, + 66u8, 213u8, 45u8, 9u8, 132u8, 203u8, 55u8, 96u8, 19u8, 129u8, 0u8, + 240u8, 138u8, 193u8, 191u8, 188u8, 150u8, 5u8, 64u8, 188u8, 163u8, + 231u8, ], ) } @@ -16373,10 +24398,9 @@ pub mod api { "kill_identity", types::KillIdentity { target }, [ - 114u8, 249u8, 102u8, 62u8, 118u8, 105u8, 185u8, 61u8, 173u8, 52u8, - 57u8, 190u8, 102u8, 74u8, 108u8, 239u8, 142u8, 176u8, 116u8, 51u8, - 49u8, 197u8, 6u8, 183u8, 248u8, 202u8, 202u8, 140u8, 134u8, 59u8, - 103u8, 182u8, + 41u8, 147u8, 161u8, 132u8, 99u8, 63u8, 42u8, 219u8, 109u8, 209u8, 19u8, + 243u8, 61u8, 122u8, 16u8, 248u8, 110u8, 85u8, 71u8, 170u8, 38u8, 4u8, + 91u8, 173u8, 212u8, 55u8, 227u8, 51u8, 100u8, 5u8, 211u8, 177u8, ], ) } @@ -16391,9 +24415,9 @@ pub mod api { "add_sub", types::AddSub { sub, data }, [ - 3u8, 65u8, 137u8, 35u8, 238u8, 133u8, 56u8, 233u8, 37u8, 125u8, 221u8, - 186u8, 153u8, 74u8, 69u8, 196u8, 244u8, 82u8, 51u8, 7u8, 216u8, 29u8, - 18u8, 16u8, 198u8, 184u8, 0u8, 181u8, 71u8, 227u8, 144u8, 33u8, + 92u8, 68u8, 199u8, 2u8, 215u8, 177u8, 19u8, 216u8, 8u8, 79u8, 165u8, + 233u8, 254u8, 85u8, 115u8, 41u8, 103u8, 67u8, 61u8, 93u8, 204u8, 245u8, + 197u8, 120u8, 88u8, 70u8, 37u8, 22u8, 221u8, 5u8, 100u8, 78u8, ], ) } @@ -16408,10 +24432,9 @@ pub mod api { "rename_sub", types::RenameSub { sub, data }, [ - 252u8, 50u8, 201u8, 112u8, 49u8, 248u8, 223u8, 239u8, 219u8, 226u8, - 64u8, 68u8, 227u8, 20u8, 30u8, 24u8, 36u8, 77u8, 26u8, 235u8, 144u8, - 240u8, 11u8, 111u8, 145u8, 167u8, 184u8, 207u8, 173u8, 58u8, 152u8, - 202u8, + 54u8, 76u8, 163u8, 56u8, 90u8, 60u8, 49u8, 218u8, 100u8, 249u8, 177u8, + 33u8, 174u8, 122u8, 237u8, 205u8, 107u8, 232u8, 168u8, 155u8, 240u8, + 22u8, 97u8, 197u8, 174u8, 250u8, 8u8, 227u8, 10u8, 205u8, 188u8, 30u8, ], ) } @@ -16425,9 +24448,10 @@ pub mod api { "remove_sub", types::RemoveSub { sub }, [ - 95u8, 249u8, 171u8, 27u8, 100u8, 186u8, 67u8, 214u8, 226u8, 6u8, 118u8, - 39u8, 91u8, 122u8, 1u8, 87u8, 1u8, 226u8, 101u8, 9u8, 199u8, 167u8, - 84u8, 202u8, 141u8, 196u8, 80u8, 195u8, 15u8, 114u8, 140u8, 144u8, + 80u8, 67u8, 217u8, 201u8, 139u8, 178u8, 58u8, 253u8, 137u8, 193u8, + 133u8, 239u8, 21u8, 226u8, 14u8, 160u8, 110u8, 20u8, 35u8, 168u8, + 139u8, 199u8, 92u8, 125u8, 13u8, 52u8, 248u8, 63u8, 54u8, 166u8, 55u8, + 225u8, ], ) } @@ -16445,6 +24469,130 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::add_username_authority`]."] + pub fn add_username_authority( + &self, + authority: types::add_username_authority::Authority, + suffix: types::add_username_authority::Suffix, + allocation: types::add_username_authority::Allocation, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "add_username_authority", + types::AddUsernameAuthority { + authority, + suffix, + allocation, + }, + [ + 199u8, 210u8, 153u8, 166u8, 161u8, 195u8, 9u8, 47u8, 173u8, 238u8, + 124u8, 171u8, 48u8, 119u8, 163u8, 54u8, 220u8, 53u8, 40u8, 219u8, 52u8, + 215u8, 28u8, 123u8, 94u8, 178u8, 46u8, 93u8, 83u8, 11u8, 173u8, 106u8, + ], + ) + } + #[doc = "See [`Pallet::remove_username_authority`]."] + pub fn remove_username_authority( + &self, + authority: types::remove_username_authority::Authority, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "remove_username_authority", + types::RemoveUsernameAuthority { authority }, + [ + 179u8, 32u8, 157u8, 211u8, 10u8, 92u8, 0u8, 221u8, 77u8, 248u8, 227u8, + 117u8, 65u8, 183u8, 21u8, 103u8, 44u8, 180u8, 238u8, 55u8, 201u8, + 196u8, 17u8, 142u8, 74u8, 76u8, 26u8, 10u8, 29u8, 206u8, 166u8, 155u8, + ], + ) + } + #[doc = "See [`Pallet::set_username_for`]."] + pub fn set_username_for( + &self, + who: types::set_username_for::Who, + username: types::set_username_for::Username, + signature: types::set_username_for::Signature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_username_for", + types::SetUsernameFor { + who, + username, + signature, + }, + [ + 2u8, 132u8, 48u8, 100u8, 26u8, 161u8, 176u8, 128u8, 201u8, 9u8, 239u8, + 116u8, 188u8, 205u8, 2u8, 24u8, 91u8, 91u8, 199u8, 151u8, 248u8, 47u8, + 250u8, 83u8, 216u8, 218u8, 153u8, 119u8, 34u8, 47u8, 33u8, 219u8, + ], + ) + } + #[doc = "See [`Pallet::accept_username`]."] + pub fn accept_username( + &self, + username: types::accept_username::Username, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "accept_username", + types::AcceptUsername { username }, + [ + 247u8, 162u8, 83u8, 250u8, 214u8, 7u8, 12u8, 253u8, 227u8, 4u8, 95u8, + 71u8, 150u8, 218u8, 216u8, 86u8, 137u8, 37u8, 114u8, 188u8, 18u8, + 232u8, 229u8, 179u8, 172u8, 251u8, 70u8, 29u8, 18u8, 86u8, 33u8, 129u8, + ], + ) + } + #[doc = "See [`Pallet::remove_expired_approval`]."] + pub fn remove_expired_approval( + &self, + username: types::remove_expired_approval::Username, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "remove_expired_approval", + types::RemoveExpiredApproval { username }, + [ + 159u8, 171u8, 27u8, 97u8, 224u8, 171u8, 14u8, 89u8, 65u8, 213u8, 208u8, + 67u8, 118u8, 146u8, 0u8, 131u8, 82u8, 186u8, 142u8, 52u8, 173u8, 90u8, + 104u8, 107u8, 114u8, 202u8, 123u8, 222u8, 49u8, 53u8, 59u8, 61u8, + ], + ) + } + #[doc = "See [`Pallet::set_primary_username`]."] + pub fn set_primary_username( + &self, + username: types::set_primary_username::Username, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_primary_username", + types::SetPrimaryUsername { username }, + [ + 3u8, 25u8, 56u8, 26u8, 108u8, 165u8, 84u8, 231u8, 16u8, 4u8, 6u8, + 232u8, 141u8, 7u8, 254u8, 50u8, 26u8, 230u8, 66u8, 245u8, 255u8, 101u8, + 183u8, 234u8, 197u8, 186u8, 132u8, 197u8, 251u8, 84u8, 212u8, 162u8, + ], + ) + } + #[doc = "See [`Pallet::remove_dangling_username`]."] + pub fn remove_dangling_username( + &self, + username: types::remove_dangling_username::Username, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "remove_dangling_username", + types::RemoveDanglingUsername { username }, + [ + 220u8, 67u8, 52u8, 223u8, 169u8, 81u8, 202u8, 74u8, 199u8, 169u8, 89u8, + 60u8, 57u8, 153u8, 240u8, 105u8, 188u8, 222u8, 250u8, 247u8, 91u8, + 137u8, 37u8, 212u8, 10u8, 51u8, 9u8, 202u8, 165u8, 155u8, 222u8, 29u8, + ], + ) + } } } #[doc = "The `Event` enum of this pallet"] @@ -16694,6 +24842,179 @@ pub mod api { const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityRevoked"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A username authority was added."] + pub struct AuthorityAdded { + pub authority: authority_added::Authority, + } + pub mod authority_added { + use super::runtime_types; + pub type Authority = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for AuthorityAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "AuthorityAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A username authority was removed."] + pub struct AuthorityRemoved { + pub authority: authority_removed::Authority, + } + pub mod authority_removed { + use super::runtime_types; + pub type Authority = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for AuthorityRemoved { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "AuthorityRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A username was set for `who`."] + pub struct UsernameSet { + pub who: username_set::Who, + pub username: username_set::Username, + } + pub mod username_set { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::events::StaticEvent for UsernameSet { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "UsernameSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A username was queued, but `who` must accept it prior to `expiration`."] + pub struct UsernameQueued { + pub who: username_queued::Who, + pub username: username_queued::Username, + pub expiration: username_queued::Expiration, + } + pub mod username_queued { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Expiration = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for UsernameQueued { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "UsernameQueued"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A queued username passed its expiration without being claimed and was removed."] + pub struct PreapprovalExpired { + pub whose: preapproval_expired::Whose, + } + pub mod preapproval_expired { + use super::runtime_types; + pub type Whose = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for PreapprovalExpired { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "PreapprovalExpired"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A username was set as a primary and can be looked up from `who`."] + pub struct PrimaryUsernameSet { + pub who: primary_username_set::Who, + pub username: primary_username_set::Username, + } + pub mod primary_username_set { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::events::StaticEvent for PrimaryUsernameSet { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "PrimaryUsernameSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A dangling username (as in, a username corresponding to an account that has removed its"] + #[doc = "identity) has been removed."] + pub struct DanglingUsernameRemoved { + pub who: dangling_username_removed::Who, + pub username: dangling_username_removed::Username, + } + pub mod dangling_username_removed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Username = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::events::StaticEvent for DanglingUsernameRemoved { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "DanglingUsernameRemoved"; + } } pub mod storage { use super::runtime_types; @@ -16701,10 +25022,17 @@ pub mod api { use super::runtime_types; pub mod identity_of { use super::runtime_types; - pub type IdentityOf = runtime_types::pallet_identity::types::Registration< - ::core::primitive::u128, - runtime_types::pallet_identity::legacy::IdentityInfo, - >; + pub type IdentityOf = ( + runtime_types::pallet_identity::types::Registration< + ::core::primitive::u128, + runtime_types::pallet_identity::legacy::IdentityInfo, + >, + ::core::option::Option< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + ); pub type Param0 = ::subxt::utils::AccountId32; } pub mod super_of { @@ -16738,10 +25066,36 @@ pub mod api { >, >; } + pub mod username_authorities { + use super::runtime_types; + pub type UsernameAuthorities = + runtime_types::pallet_identity::types::AuthorityProperties< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod account_of_username { + use super::runtime_types; + pub type AccountOfUsername = ::subxt::utils::AccountId32; + pub type Param0 = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + pub mod pending_usernames { + use super::runtime_types; + pub type PendingUsernames = + (::subxt::utils::AccountId32, ::core::primitive::u32); + pub type Param0 = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } } pub struct StorageApi; impl StorageApi { - #[doc = " Information that is pertinent to identify the entity behind an account."] + #[doc = " Information that is pertinent to identify the entity behind an account. First item is the"] + #[doc = " registration, second is the account's primary username."] #[doc = ""] #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of_iter( @@ -16758,13 +25112,14 @@ pub mod api { "IdentityOf", vec![], [ - 112u8, 2u8, 209u8, 123u8, 138u8, 171u8, 80u8, 243u8, 226u8, 88u8, 81u8, - 49u8, 59u8, 172u8, 88u8, 180u8, 255u8, 119u8, 57u8, 16u8, 169u8, 149u8, - 77u8, 239u8, 73u8, 182u8, 28u8, 112u8, 150u8, 110u8, 65u8, 139u8, + 0u8, 73u8, 213u8, 52u8, 49u8, 235u8, 238u8, 43u8, 119u8, 12u8, 35u8, + 162u8, 230u8, 24u8, 246u8, 200u8, 44u8, 254u8, 13u8, 84u8, 10u8, 27u8, + 159u8, 6u8, 176u8, 125u8, 24u8, 212u8, 250u8, 154u8, 181u8, 12u8, ], ) } - #[doc = " Information that is pertinent to identify the entity behind an account."] + #[doc = " Information that is pertinent to identify the entity behind an account. First item is the"] + #[doc = " registration, second is the account's primary username."] #[doc = ""] #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of( @@ -16784,9 +25139,9 @@ pub mod api { _0.borrow(), )], [ - 112u8, 2u8, 209u8, 123u8, 138u8, 171u8, 80u8, 243u8, 226u8, 88u8, 81u8, - 49u8, 59u8, 172u8, 88u8, 180u8, 255u8, 119u8, 57u8, 16u8, 169u8, 149u8, - 77u8, 239u8, 73u8, 182u8, 28u8, 112u8, 150u8, 110u8, 65u8, 139u8, + 0u8, 73u8, 213u8, 52u8, 49u8, 235u8, 238u8, 43u8, 119u8, 12u8, 35u8, + 162u8, 230u8, 24u8, 246u8, 200u8, 44u8, 254u8, 13u8, 84u8, 10u8, 27u8, + 159u8, 6u8, 176u8, 125u8, 24u8, 212u8, 250u8, 154u8, 181u8, 12u8, ], ) } @@ -16917,13 +25272,170 @@ pub mod api { ], ) } + #[doc = " A map of the accounts who are authorized to grant usernames."] + pub fn username_authorities_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::username_authorities::UsernameAuthorities, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "UsernameAuthorities", + vec![], + [ + 89u8, 102u8, 60u8, 184u8, 127u8, 244u8, 3u8, 61u8, 209u8, 78u8, 178u8, + 44u8, 159u8, 27u8, 7u8, 0u8, 22u8, 116u8, 42u8, 240u8, 130u8, 93u8, + 214u8, 182u8, 79u8, 222u8, 19u8, 20u8, 34u8, 198u8, 164u8, 146u8, + ], + ) + } + #[doc = " A map of the accounts who are authorized to grant usernames."] + pub fn username_authorities( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::username_authorities::UsernameAuthorities, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "UsernameAuthorities", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 89u8, 102u8, 60u8, 184u8, 127u8, 244u8, 3u8, 61u8, 209u8, 78u8, 178u8, + 44u8, 159u8, 27u8, 7u8, 0u8, 22u8, 116u8, 42u8, 240u8, 130u8, 93u8, + 214u8, 182u8, 79u8, 222u8, 19u8, 20u8, 34u8, 198u8, 164u8, 146u8, + ], + ) + } + #[doc = " Reverse lookup from `username` to the `AccountId` that has registered it. The value should"] + #[doc = " be a key in the `IdentityOf` map, but it may not if the user has cleared their identity."] + #[doc = ""] + #[doc = " Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one"] + #[doc = " primary username."] + pub fn account_of_username_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account_of_username::AccountOfUsername, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "AccountOfUsername", + vec![], + [ + 131u8, 96u8, 207u8, 217u8, 223u8, 54u8, 51u8, 156u8, 8u8, 238u8, 134u8, + 57u8, 42u8, 110u8, 180u8, 107u8, 30u8, 109u8, 162u8, 110u8, 178u8, + 127u8, 151u8, 163u8, 89u8, 127u8, 181u8, 213u8, 74u8, 129u8, 207u8, + 15u8, + ], + ) + } + #[doc = " Reverse lookup from `username` to the `AccountId` that has registered it. The value should"] + #[doc = " be a key in the `IdentityOf` map, but it may not if the user has cleared their identity."] + #[doc = ""] + #[doc = " Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one"] + #[doc = " primary username."] + pub fn account_of_username( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account_of_username::AccountOfUsername, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "AccountOfUsername", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 131u8, 96u8, 207u8, 217u8, 223u8, 54u8, 51u8, 156u8, 8u8, 238u8, 134u8, + 57u8, 42u8, 110u8, 180u8, 107u8, 30u8, 109u8, 162u8, 110u8, 178u8, + 127u8, 151u8, 163u8, 89u8, 127u8, 181u8, 213u8, 74u8, 129u8, 207u8, + 15u8, + ], + ) + } + #[doc = " Usernames that an authority has granted, but that the account controller has not confirmed"] + #[doc = " that they want it. Used primarily in cases where the `AccountId` cannot provide a signature"] + #[doc = " because they are a pure proxy, multisig, etc. In order to confirm it, they should call"] + #[doc = " [`Call::accept_username`]."] + #[doc = ""] + #[doc = " First tuple item is the account and second is the acceptance deadline."] + pub fn pending_usernames_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pending_usernames::PendingUsernames, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "PendingUsernames", + vec![], + [ + 237u8, 213u8, 92u8, 249u8, 11u8, 169u8, 104u8, 7u8, 201u8, 133u8, + 164u8, 64u8, 191u8, 172u8, 169u8, 229u8, 206u8, 105u8, 190u8, 113u8, + 21u8, 13u8, 70u8, 74u8, 140u8, 125u8, 123u8, 48u8, 183u8, 181u8, 170u8, + 147u8, + ], + ) + } + #[doc = " Usernames that an authority has granted, but that the account controller has not confirmed"] + #[doc = " that they want it. Used primarily in cases where the `AccountId` cannot provide a signature"] + #[doc = " because they are a pure proxy, multisig, etc. In order to confirm it, they should call"] + #[doc = " [`Call::accept_username`]."] + #[doc = ""] + #[doc = " First tuple item is the account and second is the acceptance deadline."] + pub fn pending_usernames( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pending_usernames::PendingUsernames, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "PendingUsernames", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 237u8, 213u8, 92u8, 249u8, 11u8, 169u8, 104u8, 7u8, 201u8, 133u8, + 164u8, 64u8, 191u8, 172u8, 169u8, 229u8, 206u8, 105u8, 190u8, 113u8, + 21u8, 13u8, 70u8, 74u8, 140u8, 125u8, 123u8, 48u8, 183u8, 181u8, 170u8, + 147u8, + ], + ) + } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The amount held on deposit for a registered identity"] + #[doc = " The amount held on deposit for a registered identity."] pub fn basic_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -16996,6 +25508,51 @@ pub mod api { ], ) } + #[doc = " The number of blocks within which a username grant must be accepted."] + pub fn pending_username_expiration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Identity", + "PendingUsernameExpiration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum length of a suffix."] + pub fn max_suffix_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Identity", + "MaxSuffixLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum length of a username, including its suffix and any system-added delimiters."] + pub fn max_username_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Identity", + "MaxUsernameLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } } } } @@ -17068,7 +25625,10 @@ pub mod api { } pub mod vouch { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Value = ::core::primitive::u128; pub type Tip = ::core::primitive::u128; } @@ -17109,8 +25669,10 @@ pub mod api { } pub mod vote { use super::runtime_types; - pub type Candidate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Candidate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Approve = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for Vote { @@ -17198,8 +25760,10 @@ pub mod api { } pub mod found_society { use super::runtime_types; - pub type Founder = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Founder = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type MaxMembers = ::core::primitive::u32; pub type MaxIntake = ::core::primitive::u32; pub type MaxStrikes = ::core::primitive::u32; @@ -17243,7 +25807,10 @@ pub mod api { } pub mod judge_suspended_member { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Forgive = ::core::primitive::bool; } impl ::subxt::blocks::StaticExtrinsic for JudgeSuspendedMember { @@ -17482,9 +26049,10 @@ pub mod api { "vouch", types::Vouch { who, value, tip }, [ - 112u8, 149u8, 72u8, 181u8, 135u8, 149u8, 62u8, 134u8, 12u8, 214u8, 0u8, - 31u8, 142u8, 128u8, 27u8, 243u8, 210u8, 197u8, 72u8, 177u8, 164u8, - 112u8, 223u8, 28u8, 43u8, 149u8, 5u8, 249u8, 157u8, 150u8, 123u8, 58u8, + 208u8, 172u8, 126u8, 91u8, 141u8, 103u8, 175u8, 189u8, 28u8, 233u8, + 9u8, 137u8, 32u8, 22u8, 102u8, 101u8, 93u8, 52u8, 28u8, 120u8, 108u8, + 145u8, 201u8, 40u8, 59u8, 150u8, 179u8, 254u8, 105u8, 218u8, 136u8, + 48u8, ], ) } @@ -17513,9 +26081,9 @@ pub mod api { "vote", types::Vote { candidate, approve }, [ - 64u8, 168u8, 166u8, 195u8, 208u8, 246u8, 156u8, 39u8, 195u8, 28u8, - 153u8, 58u8, 52u8, 185u8, 166u8, 8u8, 108u8, 169u8, 44u8, 70u8, 244u8, - 244u8, 81u8, 27u8, 236u8, 79u8, 123u8, 176u8, 155u8, 40u8, 154u8, 70u8, + 79u8, 233u8, 21u8, 242u8, 105u8, 191u8, 60u8, 75u8, 51u8, 82u8, 185u8, + 85u8, 91u8, 238u8, 230u8, 193u8, 209u8, 110u8, 133u8, 3u8, 30u8, 37u8, + 102u8, 218u8, 197u8, 211u8, 84u8, 183u8, 60u8, 159u8, 171u8, 95u8, ], ) } @@ -17587,10 +26155,10 @@ pub mod api { rules, }, [ - 232u8, 23u8, 175u8, 166u8, 217u8, 99u8, 210u8, 160u8, 122u8, 68u8, - 169u8, 134u8, 248u8, 126u8, 186u8, 130u8, 97u8, 245u8, 69u8, 159u8, - 19u8, 52u8, 67u8, 144u8, 77u8, 154u8, 215u8, 67u8, 233u8, 96u8, 40u8, - 81u8, + 103u8, 216u8, 45u8, 112u8, 46u8, 147u8, 189u8, 49u8, 225u8, 3u8, 211u8, + 127u8, 114u8, 127u8, 203u8, 223u8, 40u8, 155u8, 220u8, 159u8, 169u8, + 165u8, 102u8, 110u8, 188u8, 61u8, 26u8, 95u8, 91u8, 129u8, 236u8, + 191u8, ], ) } @@ -17619,9 +26187,10 @@ pub mod api { "judge_suspended_member", types::JudgeSuspendedMember { who, forgive }, [ - 219u8, 45u8, 90u8, 201u8, 128u8, 28u8, 215u8, 68u8, 125u8, 127u8, 57u8, - 207u8, 25u8, 110u8, 162u8, 30u8, 211u8, 208u8, 192u8, 182u8, 69u8, - 151u8, 233u8, 84u8, 81u8, 72u8, 74u8, 253u8, 106u8, 46u8, 157u8, 21u8, + 12u8, 154u8, 175u8, 39u8, 6u8, 206u8, 140u8, 238u8, 236u8, 130u8, + 128u8, 69u8, 165u8, 185u8, 92u8, 21u8, 118u8, 16u8, 163u8, 41u8, 109u8, + 76u8, 212u8, 101u8, 172u8, 147u8, 127u8, 217u8, 136u8, 238u8, 234u8, + 24u8, ], ) } @@ -19150,9 +27719,11 @@ pub mod api { } pub mod as_recovered { use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Account = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for AsRecovered { const PALLET: &'static str = "Recovery"; @@ -19175,9 +27746,14 @@ pub mod api { } pub mod set_recovered { use super::runtime_types; - pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Rescuer = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Lost = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Rescuer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for SetRecovered { const PALLET: &'static str = "Recovery"; @@ -19225,8 +27801,10 @@ pub mod api { } pub mod initiate_recovery { use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Account = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for InitiateRecovery { const PALLET: &'static str = "Recovery"; @@ -19249,9 +27827,14 @@ pub mod api { } pub mod vouch_recovery { use super::runtime_types; - pub type Lost = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Rescuer = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Lost = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Rescuer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for VouchRecovery { const PALLET: &'static str = "Recovery"; @@ -19273,8 +27856,10 @@ pub mod api { } pub mod claim_recovery { use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Account = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for ClaimRecovery { const PALLET: &'static str = "Recovery"; @@ -19296,8 +27881,10 @@ pub mod api { } pub mod close_recovery { use super::runtime_types; - pub type Rescuer = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Rescuer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for CloseRecovery { const PALLET: &'static str = "Recovery"; @@ -19335,8 +27922,10 @@ pub mod api { } pub mod cancel_recovered { use super::runtime_types; - pub type Account = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Account = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for CancelRecovered { const PALLET: &'static str = "Recovery"; @@ -19359,10 +27948,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 226u8, 94u8, 208u8, 74u8, 163u8, 132u8, 180u8, 25u8, 34u8, 222u8, - 242u8, 194u8, 224u8, 188u8, 18u8, 229u8, 55u8, 248u8, 19u8, 244u8, - 182u8, 148u8, 138u8, 228u8, 2u8, 55u8, 50u8, 36u8, 32u8, 115u8, 147u8, - 149u8, + 144u8, 92u8, 42u8, 63u8, 145u8, 39u8, 226u8, 178u8, 227u8, 42u8, 92u8, + 228u8, 123u8, 103u8, 217u8, 96u8, 83u8, 115u8, 193u8, 77u8, 73u8, + 188u8, 54u8, 158u8, 89u8, 81u8, 207u8, 146u8, 100u8, 239u8, 33u8, + 180u8, ], ) } @@ -19377,9 +27966,9 @@ pub mod api { "set_recovered", types::SetRecovered { lost, rescuer }, [ - 194u8, 147u8, 14u8, 197u8, 132u8, 185u8, 122u8, 81u8, 61u8, 14u8, 10u8, - 177u8, 74u8, 184u8, 150u8, 217u8, 246u8, 149u8, 26u8, 165u8, 196u8, - 83u8, 230u8, 195u8, 213u8, 40u8, 51u8, 180u8, 23u8, 90u8, 3u8, 14u8, + 117u8, 39u8, 220u8, 182u8, 240u8, 38u8, 103u8, 16u8, 79u8, 212u8, 45u8, + 208u8, 159u8, 247u8, 60u8, 251u8, 232u8, 206u8, 241u8, 135u8, 85u8, + 144u8, 65u8, 1u8, 221u8, 184u8, 41u8, 145u8, 182u8, 15u8, 22u8, 190u8, ], ) } @@ -19415,9 +28004,10 @@ pub mod api { "initiate_recovery", types::InitiateRecovery { account }, [ - 60u8, 243u8, 229u8, 176u8, 221u8, 52u8, 44u8, 224u8, 233u8, 14u8, 89u8, - 100u8, 174u8, 74u8, 38u8, 32u8, 97u8, 48u8, 53u8, 74u8, 30u8, 242u8, - 19u8, 114u8, 145u8, 74u8, 69u8, 125u8, 227u8, 214u8, 144u8, 58u8, + 49u8, 125u8, 176u8, 157u8, 78u8, 220u8, 185u8, 126u8, 177u8, 52u8, + 124u8, 224u8, 136u8, 181u8, 69u8, 33u8, 6u8, 62u8, 103u8, 101u8, 140u8, + 222u8, 113u8, 236u8, 150u8, 127u8, 253u8, 239u8, 64u8, 216u8, 213u8, + 129u8, ], ) } @@ -19432,9 +28022,10 @@ pub mod api { "vouch_recovery", types::VouchRecovery { lost, rescuer }, [ - 97u8, 190u8, 60u8, 15u8, 191u8, 117u8, 1u8, 217u8, 62u8, 40u8, 210u8, - 1u8, 237u8, 111u8, 48u8, 196u8, 180u8, 154u8, 198u8, 12u8, 108u8, 42u8, - 6u8, 234u8, 2u8, 113u8, 163u8, 111u8, 80u8, 146u8, 6u8, 73u8, + 122u8, 87u8, 137u8, 159u8, 153u8, 249u8, 16u8, 189u8, 98u8, 54u8, + 176u8, 62u8, 238u8, 210u8, 10u8, 103u8, 197u8, 0u8, 87u8, 3u8, 102u8, + 169u8, 254u8, 227u8, 226u8, 126u8, 158u8, 86u8, 69u8, 48u8, 25u8, + 188u8, ], ) } @@ -19448,10 +28039,10 @@ pub mod api { "claim_recovery", types::ClaimRecovery { account }, [ - 41u8, 47u8, 162u8, 88u8, 13u8, 166u8, 130u8, 146u8, 218u8, 162u8, - 166u8, 33u8, 89u8, 129u8, 177u8, 178u8, 68u8, 128u8, 161u8, 229u8, - 207u8, 3u8, 57u8, 35u8, 211u8, 208u8, 74u8, 155u8, 183u8, 173u8, 74u8, - 56u8, + 76u8, 149u8, 46u8, 184u8, 9u8, 234u8, 34u8, 36u8, 33u8, 165u8, 12u8, + 80u8, 168u8, 145u8, 135u8, 10u8, 253u8, 218u8, 27u8, 102u8, 254u8, + 117u8, 47u8, 54u8, 107u8, 196u8, 109u8, 111u8, 42u8, 123u8, 137u8, + 192u8, ], ) } @@ -19465,10 +28056,10 @@ pub mod api { "close_recovery", types::CloseRecovery { rescuer }, [ - 161u8, 178u8, 117u8, 209u8, 119u8, 164u8, 135u8, 41u8, 25u8, 108u8, - 194u8, 175u8, 221u8, 65u8, 184u8, 137u8, 171u8, 97u8, 204u8, 61u8, - 159u8, 39u8, 192u8, 53u8, 246u8, 69u8, 113u8, 16u8, 170u8, 232u8, - 163u8, 10u8, + 167u8, 115u8, 144u8, 233u8, 170u8, 115u8, 246u8, 175u8, 130u8, 113u8, + 0u8, 119u8, 5u8, 25u8, 20u8, 161u8, 251u8, 40u8, 156u8, 40u8, 190u8, + 220u8, 33u8, 140u8, 49u8, 180u8, 235u8, 164u8, 69u8, 11u8, 237u8, + 186u8, ], ) } @@ -19496,10 +28087,10 @@ pub mod api { "cancel_recovered", types::CancelRecovered { account }, [ - 100u8, 222u8, 80u8, 226u8, 187u8, 188u8, 111u8, 58u8, 190u8, 5u8, - 178u8, 144u8, 37u8, 98u8, 71u8, 145u8, 28u8, 248u8, 222u8, 188u8, 53u8, - 21u8, 127u8, 176u8, 249u8, 166u8, 250u8, 59u8, 170u8, 33u8, 251u8, - 239u8, + 249u8, 156u8, 176u8, 13u8, 67u8, 100u8, 120u8, 49u8, 109u8, 219u8, + 217u8, 237u8, 254u8, 140u8, 163u8, 144u8, 227u8, 210u8, 118u8, 156u8, + 112u8, 242u8, 122u8, 130u8, 38u8, 211u8, 201u8, 223u8, 78u8, 90u8, + 21u8, 2u8, ], ) } @@ -19991,7 +28582,10 @@ pub mod api { } pub mod vest_other { use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for VestOther { const PALLET: &'static str = "Vesting"; @@ -20014,7 +28608,10 @@ pub mod api { } pub mod vested_transfer { use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, @@ -20042,8 +28639,14 @@ pub mod api { } pub mod force_vested_transfer { use super::runtime_types; - pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Source = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Schedule = runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, @@ -20094,7 +28697,10 @@ pub mod api { } pub mod force_remove_vesting_schedule { use super::runtime_types; - pub type Target = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type ScheduleIndex = ::core::primitive::u32; } impl ::subxt::blocks::StaticExtrinsic for ForceRemoveVestingSchedule { @@ -20128,9 +28734,9 @@ pub mod api { "vest_other", types::VestOther { target }, [ - 238u8, 92u8, 25u8, 149u8, 27u8, 211u8, 196u8, 31u8, 211u8, 28u8, 241u8, - 30u8, 128u8, 35u8, 0u8, 227u8, 202u8, 215u8, 186u8, 69u8, 216u8, 110u8, - 199u8, 120u8, 134u8, 141u8, 176u8, 224u8, 234u8, 42u8, 152u8, 128u8, + 19u8, 61u8, 216u8, 215u8, 68u8, 5u8, 173u8, 138u8, 29u8, 5u8, 46u8, + 138u8, 33u8, 189u8, 63u8, 251u8, 1u8, 79u8, 138u8, 166u8, 87u8, 154u8, + 141u8, 187u8, 28u8, 202u8, 144u8, 6u8, 231u8, 230u8, 197u8, 171u8, ], ) } @@ -20145,9 +28751,10 @@ pub mod api { "vested_transfer", types::VestedTransfer { target, schedule }, [ - 198u8, 133u8, 254u8, 5u8, 22u8, 170u8, 205u8, 79u8, 218u8, 30u8, 81u8, - 207u8, 227u8, 121u8, 132u8, 14u8, 217u8, 43u8, 66u8, 206u8, 15u8, 80u8, - 173u8, 208u8, 128u8, 72u8, 223u8, 175u8, 93u8, 69u8, 128u8, 88u8, + 26u8, 129u8, 240u8, 33u8, 142u8, 111u8, 251u8, 205u8, 249u8, 70u8, + 125u8, 91u8, 63u8, 157u8, 255u8, 17u8, 124u8, 220u8, 234u8, 10u8, 50u8, + 147u8, 197u8, 187u8, 140u8, 137u8, 177u8, 211u8, 238u8, 232u8, 171u8, + 113u8, ], ) } @@ -20167,10 +28774,10 @@ pub mod api { schedule, }, [ - 112u8, 17u8, 176u8, 133u8, 169u8, 192u8, 155u8, 217u8, 153u8, 36u8, - 230u8, 45u8, 9u8, 192u8, 2u8, 201u8, 165u8, 60u8, 206u8, 226u8, 95u8, - 86u8, 239u8, 196u8, 109u8, 62u8, 224u8, 237u8, 88u8, 74u8, 209u8, - 251u8, + 66u8, 102u8, 142u8, 167u8, 39u8, 125u8, 254u8, 11u8, 125u8, 191u8, + 221u8, 65u8, 201u8, 196u8, 153u8, 72u8, 139u8, 30u8, 248u8, 100u8, + 54u8, 79u8, 128u8, 211u8, 115u8, 108u8, 182u8, 201u8, 106u8, 255u8, + 4u8, 39u8, ], ) } @@ -20208,9 +28815,10 @@ pub mod api { schedule_index, }, [ - 211u8, 253u8, 60u8, 15u8, 20u8, 53u8, 23u8, 13u8, 45u8, 223u8, 136u8, - 183u8, 162u8, 143u8, 196u8, 188u8, 35u8, 64u8, 174u8, 16u8, 47u8, 13u8, - 147u8, 173u8, 120u8, 143u8, 75u8, 89u8, 128u8, 187u8, 9u8, 18u8, + 108u8, 122u8, 108u8, 117u8, 151u8, 129u8, 44u8, 239u8, 169u8, 231u8, + 237u8, 5u8, 74u8, 254u8, 229u8, 71u8, 240u8, 134u8, 128u8, 180u8, + 171u8, 240u8, 221u8, 38u8, 133u8, 95u8, 31u8, 168u8, 48u8, 6u8, 213u8, + 244u8, ], ) } @@ -20432,7 +29040,7 @@ pub mod api { pub type MaybePeriodic = ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for Schedule { const PALLET: &'static str = "Scheduler"; @@ -20487,7 +29095,7 @@ pub mod api { pub type MaybePeriodic = ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { const PALLET: &'static str = "Scheduler"; @@ -20538,7 +29146,7 @@ pub mod api { pub type MaybePeriodic = ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { const PALLET: &'static str = "Scheduler"; @@ -20569,7 +29177,7 @@ pub mod api { pub type MaybePeriodic = ::core::option::Option<(::core::primitive::u32, ::core::primitive::u32)>; pub type Priority = ::core::primitive::u8; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { const PALLET: &'static str = "Scheduler"; @@ -20596,9 +29204,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 122u8, 88u8, 251u8, 25u8, 239u8, 91u8, 220u8, 116u8, 155u8, 219u8, - 129u8, 170u8, 81u8, 4u8, 224u8, 195u8, 83u8, 196u8, 48u8, 159u8, 222u8, - 72u8, 2u8, 131u8, 14u8, 204u8, 21u8, 234u8, 2u8, 237u8, 69u8, 28u8, + 213u8, 96u8, 219u8, 169u8, 232u8, 165u8, 17u8, 115u8, 42u8, 231u8, + 34u8, 185u8, 108u8, 135u8, 52u8, 169u8, 221u8, 103u8, 164u8, 154u8, + 220u8, 147u8, 100u8, 252u8, 160u8, 134u8, 151u8, 119u8, 11u8, 21u8, + 118u8, 6u8, ], ) } @@ -20640,9 +29249,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 4u8, 172u8, 69u8, 211u8, 77u8, 162u8, 70u8, 8u8, 60u8, 79u8, 223u8, - 222u8, 210u8, 64u8, 116u8, 53u8, 161u8, 251u8, 28u8, 236u8, 12u8, - 212u8, 174u8, 0u8, 10u8, 78u8, 132u8, 232u8, 163u8, 44u8, 9u8, 200u8, + 50u8, 190u8, 24u8, 203u8, 72u8, 17u8, 179u8, 177u8, 197u8, 253u8, 38u8, + 203u8, 238u8, 55u8, 192u8, 190u8, 15u8, 64u8, 192u8, 251u8, 106u8, + 203u8, 197u8, 31u8, 30u8, 9u8, 171u8, 167u8, 42u8, 29u8, 223u8, 189u8, ], ) } @@ -20680,9 +29289,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 218u8, 190u8, 254u8, 33u8, 44u8, 21u8, 3u8, 225u8, 106u8, 85u8, 42u8, - 102u8, 206u8, 52u8, 225u8, 78u8, 220u8, 205u8, 130u8, 191u8, 223u8, - 152u8, 7u8, 46u8, 168u8, 251u8, 167u8, 72u8, 186u8, 102u8, 239u8, 95u8, + 162u8, 193u8, 186u8, 213u8, 186u8, 64u8, 196u8, 23u8, 212u8, 39u8, + 236u8, 193u8, 46u8, 49u8, 80u8, 240u8, 120u8, 222u8, 223u8, 147u8, + 242u8, 165u8, 202u8, 122u8, 102u8, 119u8, 127u8, 247u8, 118u8, 10u8, + 84u8, 165u8, ], ) } @@ -20706,9 +29316,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 87u8, 222u8, 30u8, 136u8, 12u8, 96u8, 70u8, 211u8, 190u8, 75u8, 247u8, - 231u8, 71u8, 59u8, 62u8, 126u8, 22u8, 4u8, 237u8, 153u8, 26u8, 180u8, - 88u8, 128u8, 69u8, 55u8, 31u8, 201u8, 227u8, 95u8, 38u8, 67u8, + 93u8, 31u8, 16u8, 89u8, 67u8, 35u8, 4u8, 10u8, 66u8, 205u8, 212u8, + 151u8, 69u8, 31u8, 107u8, 206u8, 63u8, 245u8, 143u8, 194u8, 7u8, 247u8, + 122u8, 100u8, 192u8, 49u8, 255u8, 209u8, 15u8, 5u8, 228u8, 217u8, ], ) } @@ -20881,11 +29491,11 @@ pub mod api { runtime_types::pallet_scheduler::Scheduled< [::core::primitive::u8; 32usize], runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::kitchensink_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, ::core::primitive::u32, - runtime_types::rococo_runtime::OriginCaller, + runtime_types::kitchensink_runtime::OriginCaller, ::subxt::utils::AccountId32, >, >, @@ -20935,9 +29545,10 @@ pub mod api { "Agenda", vec![], [ - 247u8, 226u8, 115u8, 70u8, 172u8, 69u8, 26u8, 24u8, 46u8, 202u8, 118u8, - 250u8, 111u8, 236u8, 77u8, 255u8, 26u8, 125u8, 18u8, 8u8, 24u8, 230u8, - 222u8, 140u8, 179u8, 235u8, 19u8, 161u8, 40u8, 78u8, 26u8, 173u8, + 173u8, 197u8, 75u8, 80u8, 255u8, 162u8, 16u8, 88u8, 137u8, 124u8, 63u8, + 64u8, 200u8, 151u8, 191u8, 167u8, 206u8, 49u8, 155u8, 239u8, 153u8, + 176u8, 84u8, 162u8, 178u8, 96u8, 239u8, 197u8, 116u8, 87u8, 155u8, + 112u8, ], ) } @@ -20959,9 +29570,10 @@ pub mod api { _0.borrow(), )], [ - 247u8, 226u8, 115u8, 70u8, 172u8, 69u8, 26u8, 24u8, 46u8, 202u8, 118u8, - 250u8, 111u8, 236u8, 77u8, 255u8, 26u8, 125u8, 18u8, 8u8, 24u8, 230u8, - 222u8, 140u8, 179u8, 235u8, 19u8, 161u8, 40u8, 78u8, 26u8, 173u8, + 173u8, 197u8, 75u8, 80u8, 255u8, 162u8, 16u8, 88u8, 137u8, 124u8, 63u8, + 64u8, 200u8, 151u8, 191u8, 167u8, 206u8, 49u8, 155u8, 239u8, 153u8, + 176u8, 84u8, 162u8, 178u8, 96u8, 239u8, 197u8, 116u8, 87u8, 155u8, + 112u8, ], ) } @@ -21060,13 +29672,13 @@ pub mod api { } } } - pub mod proxy { + pub mod glutton { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_proxy::pallet::Error; + pub type Error = runtime_types::pallet_glutton::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_proxy::pallet::Call; + pub type Call = runtime_types::pallet_glutton::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -21083,22 +29695,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::proxy`]."] - pub struct Proxy { - pub real: proxy::Real, - pub force_proxy_type: proxy::ForceProxyType, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::initialize_pallet`]."] + pub struct InitializePallet { + pub new_count: initialize_pallet::NewCount, + pub witness_count: initialize_pallet::WitnessCount, } - pub mod proxy { + pub mod initialize_pallet { use super::runtime_types; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ForceProxyType = - ::core::option::Option; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type NewCount = ::core::primitive::u32; + pub type WitnessCount = ::core::option::Option<::core::primitive::u32>; } - impl ::subxt::blocks::StaticExtrinsic for Proxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "proxy"; + impl ::subxt::blocks::StaticExtrinsic for InitializePallet { + const PALLET: &'static str = "Glutton"; + const CALL: &'static str = "initialize_pallet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21110,22 +29719,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_proxy`]."] - pub struct AddProxy { - pub delegate: add_proxy::Delegate, - pub proxy_type: add_proxy::ProxyType, - pub delay: add_proxy::Delay, + #[doc = "See [`Pallet::set_compute`]."] + pub struct SetCompute { + pub compute: set_compute::Compute, } - pub mod add_proxy { + pub mod set_compute { use super::runtime_types; - pub type Delegate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; + pub type Compute = runtime_types::sp_arithmetic::fixed_point::FixedU64; } - impl ::subxt::blocks::StaticExtrinsic for AddProxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "add_proxy"; + impl ::subxt::blocks::StaticExtrinsic for SetCompute { + const PALLET: &'static str = "Glutton"; + const CALL: &'static str = "set_compute"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21137,417 +29741,79 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_proxy`]."] - pub struct RemoveProxy { - pub delegate: remove_proxy::Delegate, - pub proxy_type: remove_proxy::ProxyType, - pub delay: remove_proxy::Delay, + #[doc = "See [`Pallet::set_storage`]."] + pub struct SetStorage { + pub storage: set_storage::Storage, } - pub mod remove_proxy { + pub mod set_storage { use super::runtime_types; - pub type Delegate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; + pub type Storage = runtime_types::sp_arithmetic::fixed_point::FixedU64; } - impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_proxy"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_proxies`]."] - pub struct RemoveProxies; - impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_proxies"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::create_pure`]."] - pub struct CreatePure { - pub proxy_type: create_pure::ProxyType, - pub delay: create_pure::Delay, - pub index: create_pure::Index, - } - pub mod create_pure { - use super::runtime_types; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; - pub type Index = ::core::primitive::u16; - } - impl ::subxt::blocks::StaticExtrinsic for CreatePure { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "create_pure"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::kill_pure`]."] - pub struct KillPure { - pub spawner: kill_pure::Spawner, - pub proxy_type: kill_pure::ProxyType, - pub index: kill_pure::Index, - #[codec(compact)] - pub height: kill_pure::Height, - #[codec(compact)] - pub ext_index: kill_pure::ExtIndex, - } - pub mod kill_pure { - use super::runtime_types; - pub type Spawner = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Index = ::core::primitive::u16; - pub type Height = ::core::primitive::u32; - pub type ExtIndex = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for KillPure { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "kill_pure"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::announce`]."] - pub struct Announce { - pub real: announce::Real, - pub call_hash: announce::CallHash, - } - pub mod announce { - use super::runtime_types; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type CallHash = ::subxt::utils::H256; - } - impl ::subxt::blocks::StaticExtrinsic for Announce { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "announce"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_announcement`]."] - pub struct RemoveAnnouncement { - pub real: remove_announcement::Real, - pub call_hash: remove_announcement::CallHash, - } - pub mod remove_announcement { - use super::runtime_types; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type CallHash = ::subxt::utils::H256; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "remove_announcement"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::reject_announcement`]."] - pub struct RejectAnnouncement { - pub delegate: reject_announcement::Delegate, - pub call_hash: reject_announcement::CallHash, - } - pub mod reject_announcement { - use super::runtime_types; - pub type Delegate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type CallHash = ::subxt::utils::H256; - } - impl ::subxt::blocks::StaticExtrinsic for RejectAnnouncement { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "reject_announcement"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::proxy_announced`]."] - pub struct ProxyAnnounced { - pub delegate: proxy_announced::Delegate, - pub real: proxy_announced::Real, - pub force_proxy_type: proxy_announced::ForceProxyType, - pub call: ::std::boxed::Box, - } - pub mod proxy_announced { - use super::runtime_types; - pub type Delegate = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Real = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type ForceProxyType = - ::core::option::Option; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { - const PALLET: &'static str = "Proxy"; - const CALL: &'static str = "proxy_announced"; + impl ::subxt::blocks::StaticExtrinsic for SetStorage { + const PALLET: &'static str = "Glutton"; + const CALL: &'static str = "set_storage"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::proxy`]."] - pub fn proxy( + #[doc = "See [`Pallet::initialize_pallet`]."] + pub fn initialize_pallet( &self, - real: types::proxy::Real, - force_proxy_type: types::proxy::ForceProxyType, - call: types::proxy::Call, - ) -> ::subxt::tx::Payload { + new_count: types::initialize_pallet::NewCount, + witness_count: types::initialize_pallet::WitnessCount, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "proxy", - types::Proxy { - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), + "Glutton", + "initialize_pallet", + types::InitializePallet { + new_count, + witness_count, }, [ - 244u8, 249u8, 206u8, 185u8, 48u8, 156u8, 194u8, 100u8, 198u8, 133u8, - 26u8, 248u8, 122u8, 194u8, 19u8, 42u8, 6u8, 201u8, 112u8, 79u8, 19u8, - 134u8, 145u8, 157u8, 129u8, 237u8, 139u8, 133u8, 227u8, 43u8, 56u8, - 153u8, + 34u8, 9u8, 131u8, 189u8, 170u8, 255u8, 224u8, 214u8, 15u8, 255u8, + 153u8, 180u8, 70u8, 243u8, 57u8, 135u8, 187u8, 249u8, 16u8, 200u8, + 122u8, 92u8, 178u8, 162u8, 227u8, 147u8, 184u8, 13u8, 134u8, 30u8, + 50u8, 160u8, ], ) } - #[doc = "See [`Pallet::add_proxy`]."] - pub fn add_proxy( + #[doc = "See [`Pallet::set_compute`]."] + pub fn set_compute( &self, - delegate: types::add_proxy::Delegate, - proxy_type: types::add_proxy::ProxyType, - delay: types::add_proxy::Delay, - ) -> ::subxt::tx::Payload { + compute: types::set_compute::Compute, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "add_proxy", - types::AddProxy { - delegate, - proxy_type, - delay, - }, + "Glutton", + "set_compute", + types::SetCompute { compute }, [ - 183u8, 95u8, 175u8, 194u8, 140u8, 90u8, 170u8, 28u8, 251u8, 192u8, - 151u8, 138u8, 76u8, 170u8, 207u8, 228u8, 169u8, 124u8, 19u8, 161u8, - 181u8, 87u8, 121u8, 214u8, 101u8, 16u8, 30u8, 122u8, 125u8, 33u8, - 156u8, 197u8, + 124u8, 36u8, 136u8, 102u8, 170u8, 231u8, 45u8, 86u8, 124u8, 59u8, 99u8, + 141u8, 154u8, 190u8, 145u8, 247u8, 196u8, 245u8, 37u8, 100u8, 3u8, + 30u8, 97u8, 184u8, 169u8, 217u8, 56u8, 232u8, 137u8, 103u8, 98u8, 61u8, ], ) } - #[doc = "See [`Pallet::remove_proxy`]."] - pub fn remove_proxy( + #[doc = "See [`Pallet::set_storage`]."] + pub fn set_storage( &self, - delegate: types::remove_proxy::Delegate, - proxy_type: types::remove_proxy::ProxyType, - delay: types::remove_proxy::Delay, - ) -> ::subxt::tx::Payload { + storage: types::set_storage::Storage, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Proxy", - "remove_proxy", - types::RemoveProxy { - delegate, - proxy_type, - delay, - }, + "Glutton", + "set_storage", + types::SetStorage { storage }, [ - 225u8, 127u8, 66u8, 209u8, 96u8, 176u8, 66u8, 143u8, 58u8, 248u8, 7u8, - 95u8, 206u8, 250u8, 239u8, 199u8, 58u8, 128u8, 118u8, 204u8, 148u8, - 80u8, 4u8, 147u8, 20u8, 29u8, 35u8, 188u8, 21u8, 175u8, 107u8, 223u8, - ], - ) - } - #[doc = "See [`Pallet::remove_proxies`]."] - pub fn remove_proxies(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "remove_proxies", - types::RemoveProxies {}, - [ - 1u8, 126u8, 36u8, 227u8, 185u8, 34u8, 218u8, 236u8, 125u8, 231u8, 68u8, - 185u8, 145u8, 63u8, 250u8, 225u8, 103u8, 3u8, 189u8, 37u8, 172u8, - 195u8, 197u8, 216u8, 99u8, 210u8, 240u8, 162u8, 158u8, 132u8, 24u8, - 6u8, - ], - ) - } - #[doc = "See [`Pallet::create_pure`]."] - pub fn create_pure( - &self, - proxy_type: types::create_pure::ProxyType, - delay: types::create_pure::Delay, - index: types::create_pure::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "create_pure", - types::CreatePure { - proxy_type, - delay, - index, - }, - [ - 224u8, 201u8, 76u8, 254u8, 224u8, 64u8, 123u8, 29u8, 77u8, 114u8, - 213u8, 47u8, 9u8, 51u8, 87u8, 4u8, 142u8, 93u8, 212u8, 229u8, 148u8, - 159u8, 143u8, 56u8, 0u8, 34u8, 249u8, 228u8, 37u8, 242u8, 188u8, 28u8, - ], - ) - } - #[doc = "See [`Pallet::kill_pure`]."] - pub fn kill_pure( - &self, - spawner: types::kill_pure::Spawner, - proxy_type: types::kill_pure::ProxyType, - index: types::kill_pure::Index, - height: types::kill_pure::Height, - ext_index: types::kill_pure::ExtIndex, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "kill_pure", - types::KillPure { - spawner, - proxy_type, - index, - height, - ext_index, - }, - [ - 59u8, 143u8, 9u8, 128u8, 44u8, 243u8, 110u8, 190u8, 82u8, 230u8, 253u8, - 123u8, 30u8, 59u8, 114u8, 141u8, 255u8, 162u8, 42u8, 179u8, 222u8, - 124u8, 235u8, 148u8, 5u8, 45u8, 254u8, 235u8, 75u8, 224u8, 58u8, 148u8, - ], - ) - } - #[doc = "See [`Pallet::announce`]."] - pub fn announce( - &self, - real: types::announce::Real, - call_hash: types::announce::CallHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "announce", - types::Announce { real, call_hash }, - [ - 105u8, 218u8, 232u8, 82u8, 80u8, 10u8, 11u8, 1u8, 93u8, 241u8, 121u8, - 198u8, 167u8, 218u8, 95u8, 15u8, 75u8, 122u8, 155u8, 233u8, 10u8, - 175u8, 145u8, 73u8, 214u8, 230u8, 67u8, 107u8, 23u8, 239u8, 69u8, - 240u8, - ], - ) - } - #[doc = "See [`Pallet::remove_announcement`]."] - pub fn remove_announcement( - &self, - real: types::remove_announcement::Real, - call_hash: types::remove_announcement::CallHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "remove_announcement", - types::RemoveAnnouncement { real, call_hash }, - [ - 40u8, 237u8, 179u8, 128u8, 201u8, 183u8, 20u8, 47u8, 99u8, 182u8, 81u8, - 31u8, 27u8, 212u8, 133u8, 36u8, 8u8, 248u8, 57u8, 230u8, 138u8, 80u8, - 241u8, 147u8, 69u8, 236u8, 156u8, 167u8, 205u8, 49u8, 60u8, 16u8, - ], - ) - } - #[doc = "See [`Pallet::reject_announcement`]."] - pub fn reject_announcement( - &self, - delegate: types::reject_announcement::Delegate, - call_hash: types::reject_announcement::CallHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "reject_announcement", - types::RejectAnnouncement { - delegate, - call_hash, - }, - [ - 150u8, 178u8, 49u8, 160u8, 211u8, 75u8, 58u8, 228u8, 121u8, 253u8, - 167u8, 72u8, 68u8, 105u8, 159u8, 52u8, 41u8, 155u8, 92u8, 26u8, 169u8, - 177u8, 102u8, 36u8, 1u8, 47u8, 87u8, 189u8, 223u8, 238u8, 244u8, 110u8, - ], - ) - } - #[doc = "See [`Pallet::proxy_announced`]."] - pub fn proxy_announced( - &self, - delegate: types::proxy_announced::Delegate, - real: types::proxy_announced::Real, - force_proxy_type: types::proxy_announced::ForceProxyType, - call: types::proxy_announced::Call, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Proxy", - "proxy_announced", - types::ProxyAnnounced { - delegate, - real, - force_proxy_type, - call: ::std::boxed::Box::new(call), - }, - [ - 217u8, 199u8, 199u8, 95u8, 222u8, 27u8, 176u8, 48u8, 0u8, 226u8, 245u8, - 221u8, 226u8, 48u8, 29u8, 233u8, 28u8, 187u8, 52u8, 17u8, 172u8, 42u8, - 88u8, 107u8, 61u8, 104u8, 65u8, 42u8, 35u8, 53u8, 80u8, 48u8, + 200u8, 142u8, 53u8, 174u8, 3u8, 112u8, 207u8, 252u8, 187u8, 200u8, + 82u8, 158u8, 107u8, 229u8, 213u8, 220u8, 16u8, 243u8, 22u8, 111u8, + 244u8, 24u8, 77u8, 201u8, 71u8, 13u8, 122u8, 251u8, 241u8, 1u8, 241u8, + 62u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_proxy::pallet::Event; + pub type Event = runtime_types::pallet_glutton::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -21560,18 +29826,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proxy was executed correctly, with the given."] - pub struct ProxyExecuted { - pub result: proxy_executed::Result, + #[doc = "The pallet has been (re)initialized."] + pub struct PalletInitialized { + pub reinit: pallet_initialized::Reinit, } - pub mod proxy_executed { + pub mod pallet_initialized { use super::runtime_types; - pub type Result = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + pub type Reinit = ::core::primitive::bool; } - impl ::subxt::events::StaticEvent for ProxyExecuted { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyExecuted"; + impl ::subxt::events::StaticEvent for PalletInitialized { + const PALLET: &'static str = "Glutton"; + const EVENT: &'static str = "PalletInitialized"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21583,24 +29848,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A pure account has been created by new proxy with given"] - #[doc = "disambiguation index and proxy type."] - pub struct PureCreated { - pub pure: pure_created::Pure, - pub who: pure_created::Who, - pub proxy_type: pure_created::ProxyType, - pub disambiguation_index: pure_created::DisambiguationIndex, + #[doc = "The computation limit has been updated."] + pub struct ComputationLimitSet { + pub compute: computation_limit_set::Compute, } - pub mod pure_created { + pub mod computation_limit_set { use super::runtime_types; - pub type Pure = ::subxt::utils::AccountId32; - pub type Who = ::subxt::utils::AccountId32; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type DisambiguationIndex = ::core::primitive::u16; + pub type Compute = runtime_types::sp_arithmetic::fixed_point::FixedU64; } - impl ::subxt::events::StaticEvent for PureCreated { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "PureCreated"; + impl ::subxt::events::StaticEvent for ComputationLimitSet { + const PALLET: &'static str = "Glutton"; + const EVENT: &'static str = "ComputationLimitSet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21612,805 +29870,169 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An announcement was placed to make a call in the future."] - pub struct Announced { - pub real: announced::Real, - pub proxy: announced::Proxy, - pub call_hash: announced::CallHash, + #[doc = "The storage limit has been updated."] + pub struct StorageLimitSet { + pub storage: storage_limit_set::Storage, } - pub mod announced { + pub mod storage_limit_set { use super::runtime_types; - pub type Real = ::subxt::utils::AccountId32; - pub type Proxy = ::subxt::utils::AccountId32; - pub type CallHash = ::subxt::utils::H256; + pub type Storage = runtime_types::sp_arithmetic::fixed_point::FixedU64; } - impl ::subxt::events::StaticEvent for Announced { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "Announced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proxy was added."] - pub struct ProxyAdded { - pub delegator: proxy_added::Delegator, - pub delegatee: proxy_added::Delegatee, - pub proxy_type: proxy_added::ProxyType, - pub delay: proxy_added::Delay, - } - pub mod proxy_added { - use super::runtime_types; - pub type Delegator = ::subxt::utils::AccountId32; - pub type Delegatee = ::subxt::utils::AccountId32; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for ProxyAdded { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyAdded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A proxy was removed."] - pub struct ProxyRemoved { - pub delegator: proxy_removed::Delegator, - pub delegatee: proxy_removed::Delegatee, - pub proxy_type: proxy_removed::ProxyType, - pub delay: proxy_removed::Delay, - } - pub mod proxy_removed { - use super::runtime_types; - pub type Delegator = ::subxt::utils::AccountId32; - pub type Delegatee = ::subxt::utils::AccountId32; - pub type ProxyType = runtime_types::rococo_runtime::ProxyType; - pub type Delay = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for ProxyRemoved { - const PALLET: &'static str = "Proxy"; - const EVENT: &'static str = "ProxyRemoved"; + impl ::subxt::events::StaticEvent for StorageLimitSet { + const PALLET: &'static str = "Glutton"; + const EVENT: &'static str = "StorageLimitSet"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod proxies { + pub mod compute { use super::runtime_types; - pub type Proxies = ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::ProxyDefinition< - ::subxt::utils::AccountId32, - runtime_types::rococo_runtime::ProxyType, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ); - pub type Param0 = ::subxt::utils::AccountId32; + pub type Compute = runtime_types::sp_arithmetic::fixed_point::FixedU64; } - pub mod announcements { + pub mod storage { use super::runtime_types; - pub type Announcements = ( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_proxy::Announcement< - ::subxt::utils::AccountId32, - ::subxt::utils::H256, - ::core::primitive::u32, - >, - >, - ::core::primitive::u128, - ); - pub type Param0 = ::subxt::utils::AccountId32; + pub type Storage = runtime_types::sp_arithmetic::fixed_point::FixedU64; + } + pub mod trash_data { + use super::runtime_types; + pub type TrashData = [::core::primitive::u8; 1024usize]; + pub type Param0 = ::core::primitive::u32; + } + pub mod trash_data_count { + use super::runtime_types; + pub type TrashDataCount = ::core::primitive::u32; } } pub struct StorageApi; impl StorageApi { - #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] - #[doc = " which are being delegated to, together with the amount held on deposit."] - pub fn proxies_iter( + #[doc = " The proportion of the remaining `ref_time` to consume during `on_idle`."] + #[doc = ""] + #[doc = " `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to"] + #[doc = " over `1.0` could stall the chain."] + pub fn compute( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::proxies::Proxies, + types::compute::Compute, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Proxy", - "Proxies", + "Glutton", + "Compute", vec![], [ - 92u8, 131u8, 10u8, 14u8, 241u8, 148u8, 230u8, 81u8, 54u8, 152u8, 147u8, - 180u8, 85u8, 28u8, 87u8, 215u8, 110u8, 13u8, 158u8, 207u8, 77u8, 102u8, - 97u8, 57u8, 179u8, 237u8, 153u8, 148u8, 99u8, 141u8, 15u8, 126u8, + 252u8, 224u8, 208u8, 219u8, 47u8, 169u8, 40u8, 21u8, 190u8, 130u8, + 83u8, 78u8, 131u8, 50u8, 36u8, 125u8, 44u8, 140u8, 191u8, 190u8, 149u8, + 94u8, 157u8, 223u8, 198u8, 77u8, 132u8, 19u8, 111u8, 222u8, 134u8, 1u8, ], ) } - #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] - #[doc = " which are being delegated to, together with the amount held on deposit."] - pub fn proxies( + #[doc = " The proportion of the remaining `proof_size` to consume during `on_idle`."] + #[doc = ""] + #[doc = " `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to"] + #[doc = " over `1.0` could stall the chain."] + pub fn storage( &self, - _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::proxies::Proxies, + types::storage::Storage, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "Proxy", - "Proxies", + "Glutton", + "Storage", + vec![], + [ + 53u8, 129u8, 114u8, 59u8, 25u8, 212u8, 236u8, 237u8, 158u8, 146u8, + 186u8, 229u8, 69u8, 12u8, 17u8, 101u8, 59u8, 215u8, 97u8, 179u8, 97u8, + 188u8, 179u8, 200u8, 112u8, 225u8, 191u8, 53u8, 140u8, 179u8, 119u8, + 63u8, + ], + ) + } + #[doc = " Storage map used for wasting proof size."] + #[doc = ""] + #[doc = " It contains no meaningful data - hence the name \"Trash\". The maximal number of entries is"] + #[doc = " set to 65k, which is just below the next jump at 16^4. This is important to reduce the proof"] + #[doc = " size benchmarking overestimate. The assumption here is that we won't have more than 65k *"] + #[doc = " 1KiB = 65MiB of proof size wasting in practice. However, this limit is not enforced, so the"] + #[doc = " pallet would also work out of the box with more entries, but its benchmarked proof weight"] + #[doc = " would possibly be underestimated in that case."] + pub fn trash_data_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::trash_data::TrashData, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Glutton", + "TrashData", + vec![], + [ + 145u8, 216u8, 185u8, 9u8, 132u8, 24u8, 201u8, 206u8, 120u8, 86u8, 91u8, + 89u8, 140u8, 141u8, 170u8, 195u8, 37u8, 102u8, 125u8, 167u8, 173u8, + 136u8, 4u8, 120u8, 96u8, 41u8, 89u8, 185u8, 57u8, 87u8, 3u8, 70u8, + ], + ) + } + #[doc = " Storage map used for wasting proof size."] + #[doc = ""] + #[doc = " It contains no meaningful data - hence the name \"Trash\". The maximal number of entries is"] + #[doc = " set to 65k, which is just below the next jump at 16^4. This is important to reduce the proof"] + #[doc = " size benchmarking overestimate. The assumption here is that we won't have more than 65k *"] + #[doc = " 1KiB = 65MiB of proof size wasting in practice. However, this limit is not enforced, so the"] + #[doc = " pallet would also work out of the box with more entries, but its benchmarked proof weight"] + #[doc = " would possibly be underestimated in that case."] + pub fn trash_data( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::trash_data::TrashData, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Glutton", + "TrashData", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 92u8, 131u8, 10u8, 14u8, 241u8, 148u8, 230u8, 81u8, 54u8, 152u8, 147u8, - 180u8, 85u8, 28u8, 87u8, 215u8, 110u8, 13u8, 158u8, 207u8, 77u8, 102u8, - 97u8, 57u8, 179u8, 237u8, 153u8, 148u8, 99u8, 141u8, 15u8, 126u8, + 145u8, 216u8, 185u8, 9u8, 132u8, 24u8, 201u8, 206u8, 120u8, 86u8, 91u8, + 89u8, 140u8, 141u8, 170u8, 195u8, 37u8, 102u8, 125u8, 167u8, 173u8, + 136u8, 4u8, 120u8, 96u8, 41u8, 89u8, 185u8, 57u8, 87u8, 3u8, 70u8, ], ) } - #[doc = " The announcements made by the proxy (key)."] - pub fn announcements_iter( + #[doc = " The current number of entries in `TrashData`."] + pub fn trash_data_count( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::announcements::Announcements, + types::trash_data_count::TrashDataCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Proxy", - "Announcements", + "Glutton", + "TrashDataCount", vec![], [ - 129u8, 228u8, 198u8, 210u8, 90u8, 69u8, 151u8, 198u8, 206u8, 174u8, - 148u8, 58u8, 134u8, 14u8, 53u8, 56u8, 234u8, 71u8, 84u8, 247u8, 246u8, - 207u8, 117u8, 221u8, 84u8, 72u8, 254u8, 215u8, 102u8, 49u8, 21u8, - 173u8, - ], - ) - } - #[doc = " The announcements made by the proxy (key)."] - pub fn announcements( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::announcements::Announcements, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Proxy", - "Announcements", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 129u8, 228u8, 198u8, 210u8, 90u8, 69u8, 151u8, 198u8, 206u8, 174u8, - 148u8, 58u8, 134u8, 14u8, 53u8, 56u8, 234u8, 71u8, 84u8, 247u8, 246u8, - 207u8, 117u8, 221u8, 84u8, 72u8, 254u8, 215u8, 102u8, 49u8, 21u8, - 173u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The base amount of currency needed to reserve for creating a proxy."] - #[doc = ""] - #[doc = " This is held for an additional storage item whose value size is"] - #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] - pub fn proxy_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Proxy", - "ProxyDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The amount of currency needed per proxy added."] - #[doc = ""] - #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] - #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] - #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] - pub fn proxy_deposit_factor( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Proxy", - "ProxyDepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The maximum amount of proxies allowed for a single account."] - pub fn max_proxies(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Proxy", - "MaxProxies", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] - pub fn max_pending(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Proxy", - "MaxPending", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The base amount of currency needed to reserve for creating an announcement."] - #[doc = ""] - #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] - #[doc = " bytes)."] - pub fn announcement_deposit_base( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Proxy", - "AnnouncementDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The amount of currency needed per announcement made."] - #[doc = ""] - #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] - #[doc = " into a pre-existing storage value."] - pub fn announcement_deposit_factor( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Proxy", - "AnnouncementDepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - } - } - } - pub mod multisig { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_multisig::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_multisig::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::as_multi_threshold_1`]."] - pub struct AsMultiThreshold1 { - pub other_signatories: as_multi_threshold1::OtherSignatories, - pub call: ::std::boxed::Box, - } - pub mod as_multi_threshold1 { - use super::runtime_types; - pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - } - impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "as_multi_threshold_1"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::as_multi`]."] - pub struct AsMulti { - pub threshold: as_multi::Threshold, - pub other_signatories: as_multi::OtherSignatories, - pub maybe_timepoint: as_multi::MaybeTimepoint, - pub call: ::std::boxed::Box, - pub max_weight: as_multi::MaxWeight, - } - pub mod as_multi { - use super::runtime_types; - pub type Threshold = ::core::primitive::u16; - pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type MaybeTimepoint = ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; - } - impl ::subxt::blocks::StaticExtrinsic for AsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "as_multi"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::approve_as_multi`]."] - pub struct ApproveAsMulti { - pub threshold: approve_as_multi::Threshold, - pub other_signatories: approve_as_multi::OtherSignatories, - pub maybe_timepoint: approve_as_multi::MaybeTimepoint, - pub call_hash: approve_as_multi::CallHash, - pub max_weight: approve_as_multi::MaxWeight, - } - pub mod approve_as_multi { - use super::runtime_types; - pub type Threshold = ::core::primitive::u16; - pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type MaybeTimepoint = ::core::option::Option< - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, - >; - pub type CallHash = [::core::primitive::u8; 32usize]; - pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; - } - impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "approve_as_multi"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_as_multi`]."] - pub struct CancelAsMulti { - pub threshold: cancel_as_multi::Threshold, - pub other_signatories: cancel_as_multi::OtherSignatories, - pub timepoint: cancel_as_multi::Timepoint, - pub call_hash: cancel_as_multi::CallHash, - } - pub mod cancel_as_multi { - use super::runtime_types; - pub type Threshold = ::core::primitive::u16; - pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Timepoint = - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; - pub type CallHash = [::core::primitive::u8; 32usize]; - } - impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { - const PALLET: &'static str = "Multisig"; - const CALL: &'static str = "cancel_as_multi"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::as_multi_threshold_1`]."] - pub fn as_multi_threshold_1( - &self, - other_signatories: types::as_multi_threshold1::OtherSignatories, - call: types::as_multi_threshold1::Call, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Multisig", - "as_multi_threshold_1", - types::AsMultiThreshold1 { - other_signatories, - call: ::std::boxed::Box::new(call), - }, - [ - 228u8, 69u8, 114u8, 33u8, 253u8, 99u8, 173u8, 184u8, 219u8, 170u8, - 155u8, 9u8, 231u8, 77u8, 180u8, 97u8, 26u8, 0u8, 97u8, 107u8, 112u8, - 223u8, 207u8, 156u8, 86u8, 17u8, 115u8, 211u8, 188u8, 122u8, 51u8, - 55u8, - ], - ) - } - #[doc = "See [`Pallet::as_multi`]."] - pub fn as_multi( - &self, - threshold: types::as_multi::Threshold, - other_signatories: types::as_multi::OtherSignatories, - maybe_timepoint: types::as_multi::MaybeTimepoint, - call: types::as_multi::Call, - max_weight: types::as_multi::MaxWeight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Multisig", - "as_multi", - types::AsMulti { - threshold, - other_signatories, - maybe_timepoint, - call: ::std::boxed::Box::new(call), - max_weight, - }, - [ - 110u8, 238u8, 2u8, 11u8, 232u8, 202u8, 100u8, 39u8, 103u8, 211u8, - 204u8, 203u8, 228u8, 31u8, 206u8, 103u8, 97u8, 57u8, 217u8, 24u8, - 229u8, 237u8, 56u8, 84u8, 220u8, 240u8, 169u8, 211u8, 26u8, 98u8, 37u8, - 0u8, - ], - ) - } - #[doc = "See [`Pallet::approve_as_multi`]."] - pub fn approve_as_multi( - &self, - threshold: types::approve_as_multi::Threshold, - other_signatories: types::approve_as_multi::OtherSignatories, - maybe_timepoint: types::approve_as_multi::MaybeTimepoint, - call_hash: types::approve_as_multi::CallHash, - max_weight: types::approve_as_multi::MaxWeight, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Multisig", - "approve_as_multi", - types::ApproveAsMulti { - threshold, - other_signatories, - maybe_timepoint, - call_hash, - max_weight, - }, - [ - 248u8, 46u8, 131u8, 35u8, 204u8, 12u8, 218u8, 150u8, 88u8, 131u8, 89u8, - 13u8, 95u8, 122u8, 87u8, 107u8, 136u8, 154u8, 92u8, 199u8, 108u8, 92u8, - 207u8, 171u8, 113u8, 8u8, 47u8, 248u8, 65u8, 26u8, 203u8, 135u8, - ], - ) - } - #[doc = "See [`Pallet::cancel_as_multi`]."] - pub fn cancel_as_multi( - &self, - threshold: types::cancel_as_multi::Threshold, - other_signatories: types::cancel_as_multi::OtherSignatories, - timepoint: types::cancel_as_multi::Timepoint, - call_hash: types::cancel_as_multi::CallHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Multisig", - "cancel_as_multi", - types::CancelAsMulti { - threshold, - other_signatories, - timepoint, - call_hash, - }, - [ - 212u8, 179u8, 123u8, 40u8, 209u8, 228u8, 181u8, 0u8, 109u8, 28u8, 27u8, - 48u8, 15u8, 47u8, 203u8, 54u8, 106u8, 114u8, 28u8, 118u8, 101u8, 201u8, - 95u8, 187u8, 46u8, 182u8, 4u8, 30u8, 227u8, 105u8, 14u8, 81u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_multisig::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new multisig operation has begun."] - pub struct NewMultisig { - pub approving: new_multisig::Approving, - pub multisig: new_multisig::Multisig, - pub call_hash: new_multisig::CallHash, - } - pub mod new_multisig { - use super::runtime_types; - pub type Approving = ::subxt::utils::AccountId32; - pub type Multisig = ::subxt::utils::AccountId32; - pub type CallHash = [::core::primitive::u8; 32usize]; - } - impl ::subxt::events::StaticEvent for NewMultisig { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "NewMultisig"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A multisig operation has been approved by someone."] - pub struct MultisigApproval { - pub approving: multisig_approval::Approving, - pub timepoint: multisig_approval::Timepoint, - pub multisig: multisig_approval::Multisig, - pub call_hash: multisig_approval::CallHash, - } - pub mod multisig_approval { - use super::runtime_types; - pub type Approving = ::subxt::utils::AccountId32; - pub type Timepoint = - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; - pub type Multisig = ::subxt::utils::AccountId32; - pub type CallHash = [::core::primitive::u8; 32usize]; - } - impl ::subxt::events::StaticEvent for MultisigApproval { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigApproval"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A multisig operation has been executed."] - pub struct MultisigExecuted { - pub approving: multisig_executed::Approving, - pub timepoint: multisig_executed::Timepoint, - pub multisig: multisig_executed::Multisig, - pub call_hash: multisig_executed::CallHash, - pub result: multisig_executed::Result, - } - pub mod multisig_executed { - use super::runtime_types; - pub type Approving = ::subxt::utils::AccountId32; - pub type Timepoint = - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; - pub type Multisig = ::subxt::utils::AccountId32; - pub type CallHash = [::core::primitive::u8; 32usize]; - pub type Result = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; - } - impl ::subxt::events::StaticEvent for MultisigExecuted { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigExecuted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A multisig operation has been cancelled."] - pub struct MultisigCancelled { - pub cancelling: multisig_cancelled::Cancelling, - pub timepoint: multisig_cancelled::Timepoint, - pub multisig: multisig_cancelled::Multisig, - pub call_hash: multisig_cancelled::CallHash, - } - pub mod multisig_cancelled { - use super::runtime_types; - pub type Cancelling = ::subxt::utils::AccountId32; - pub type Timepoint = - runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; - pub type Multisig = ::subxt::utils::AccountId32; - pub type CallHash = [::core::primitive::u8; 32usize]; - } - impl ::subxt::events::StaticEvent for MultisigCancelled { - const PALLET: &'static str = "Multisig"; - const EVENT: &'static str = "MultisigCancelled"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod multisigs { - use super::runtime_types; - pub type Multisigs = runtime_types::pallet_multisig::Multisig< - ::core::primitive::u32, - ::core::primitive::u128, - ::subxt::utils::AccountId32, - >; - pub type Param0 = ::subxt::utils::AccountId32; - pub type Param1 = [::core::primitive::u8; 32usize]; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The set of open multisig operations."] - pub fn multisigs_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::multisigs::Multisigs, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Multisig", - "Multisigs", - vec![], - [ - 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, - 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, - 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, - ], - ) - } - #[doc = " The set of open multisig operations."] - pub fn multisigs_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::multisigs::Multisigs, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Multisig", - "Multisigs", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, - 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, - 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, - ], - ) - } - #[doc = " The set of open multisig operations."] - pub fn multisigs( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::multisigs::Multisigs, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Multisig", - "Multisigs", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, - 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, - 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"] - #[doc = " store a dispatch call for later."] - #[doc = ""] - #[doc = " This is held for an additional storage item whose value size is"] - #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] - #[doc = " `32 + sizeof(AccountId)` bytes."] - pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Multisig", - "DepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] - #[doc = ""] - #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] - pub fn deposit_factor( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Multisig", - "DepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The maximum amount of signatories allowed in the multisig."] - pub fn max_signatories( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Multisig", - "MaxSignatories", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 187u8, 15u8, 175u8, 131u8, 13u8, 210u8, 77u8, 102u8, 20u8, 149u8, 4u8, + 140u8, 179u8, 87u8, 229u8, 13u8, 75u8, 113u8, 1u8, 79u8, 26u8, 115u8, + 112u8, 111u8, 24u8, 229u8, 90u8, 220u8, 24u8, 237u8, 252u8, 9u8, ], ) } @@ -22897,13 +30519,13 @@ pub mod api { } } } - pub mod asset_rate { + pub mod proxy { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_asset_rate::pallet::Error; + pub type Error = runtime_types::pallet_proxy::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_asset_rate::pallet::Call; + pub type Call = runtime_types::pallet_proxy::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -22920,20 +30542,25 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::create`]."] - pub struct Create { - pub asset_kind: ::std::boxed::Box, - pub rate: create::Rate, + #[doc = "See [`Pallet::proxy`]."] + pub struct Proxy { + pub real: proxy::Real, + pub force_proxy_type: proxy::ForceProxyType, + pub call: ::std::boxed::Box, } - pub mod create { + pub mod proxy { use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; - pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; + pub type Real = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type ForceProxyType = + ::core::option::Option; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; } - impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "AssetRate"; - const CALL: &'static str = "create"; + impl ::subxt::blocks::StaticExtrinsic for Proxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22945,20 +30572,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::update`]."] - pub struct Update { - pub asset_kind: ::std::boxed::Box, - pub rate: update::Rate, + #[doc = "See [`Pallet::add_proxy`]."] + pub struct AddProxy { + pub delegate: add_proxy::Delegate, + pub proxy_type: add_proxy::ProxyType, + pub delay: add_proxy::Delay, } - pub mod update { + pub mod add_proxy { use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; - pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type ProxyType = runtime_types::kitchensink_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for Update { - const PALLET: &'static str = "AssetRate"; - const CALL: &'static str = "update"; + impl ::subxt::blocks::StaticExtrinsic for AddProxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "add_proxy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22970,87 +30601,434 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove`]."] - pub struct Remove { - pub asset_kind: ::std::boxed::Box, + #[doc = "See [`Pallet::remove_proxy`]."] + pub struct RemoveProxy { + pub delegate: remove_proxy::Delegate, + pub proxy_type: remove_proxy::ProxyType, + pub delay: remove_proxy::Delay, } - pub mod remove { + pub mod remove_proxy { use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type ProxyType = runtime_types::kitchensink_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for Remove { - const PALLET: &'static str = "AssetRate"; - const CALL: &'static str = "remove"; + impl ::subxt::blocks::StaticExtrinsic for RemoveProxy { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_proxy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_proxies`]."] + pub struct RemoveProxies; + impl ::subxt::blocks::StaticExtrinsic for RemoveProxies { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_proxies"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::create_pure`]."] + pub struct CreatePure { + pub proxy_type: create_pure::ProxyType, + pub delay: create_pure::Delay, + pub index: create_pure::Index, + } + pub mod create_pure { + use super::runtime_types; + pub type ProxyType = runtime_types::kitchensink_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; + pub type Index = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for CreatePure { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "create_pure"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::kill_pure`]."] + pub struct KillPure { + pub spawner: kill_pure::Spawner, + pub proxy_type: kill_pure::ProxyType, + pub index: kill_pure::Index, + #[codec(compact)] + pub height: kill_pure::Height, + #[codec(compact)] + pub ext_index: kill_pure::ExtIndex, + } + pub mod kill_pure { + use super::runtime_types; + pub type Spawner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type ProxyType = runtime_types::kitchensink_runtime::ProxyType; + pub type Index = ::core::primitive::u16; + pub type Height = ::core::primitive::u32; + pub type ExtIndex = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for KillPure { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "kill_pure"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::announce`]."] + pub struct Announce { + pub real: announce::Real, + pub call_hash: announce::CallHash, + } + pub mod announce { + use super::runtime_types; + pub type Real = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type CallHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for Announce { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "announce"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_announcement`]."] + pub struct RemoveAnnouncement { + pub real: remove_announcement::Real, + pub call_hash: remove_announcement::CallHash, + } + pub mod remove_announcement { + use super::runtime_types; + pub type Real = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type CallHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "remove_announcement"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::reject_announcement`]."] + pub struct RejectAnnouncement { + pub delegate: reject_announcement::Delegate, + pub call_hash: reject_announcement::CallHash, + } + pub mod reject_announcement { + use super::runtime_types; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type CallHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for RejectAnnouncement { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "reject_announcement"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::proxy_announced`]."] + pub struct ProxyAnnounced { + pub delegate: proxy_announced::Delegate, + pub real: proxy_announced::Real, + pub force_proxy_type: proxy_announced::ForceProxyType, + pub call: ::std::boxed::Box, + } + pub mod proxy_announced { + use super::runtime_types; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Real = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type ForceProxyType = + ::core::option::Option; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + } + impl ::subxt::blocks::StaticExtrinsic for ProxyAnnounced { + const PALLET: &'static str = "Proxy"; + const CALL: &'static str = "proxy_announced"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::create`]."] - pub fn create( + #[doc = "See [`Pallet::proxy`]."] + pub fn proxy( &self, - asset_kind: types::create::AssetKind, - rate: types::create::Rate, - ) -> ::subxt::tx::Payload { + real: types::proxy::Real, + force_proxy_type: types::proxy::ForceProxyType, + call: types::proxy::Call, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "AssetRate", - "create", - types::Create { - asset_kind: ::std::boxed::Box::new(asset_kind), - rate, + "Proxy", + "proxy", + types::Proxy { + real, + force_proxy_type, + call: ::std::boxed::Box::new(call), }, [ - 154u8, 152u8, 38u8, 160u8, 110u8, 48u8, 11u8, 80u8, 92u8, 50u8, 177u8, - 170u8, 43u8, 6u8, 192u8, 234u8, 105u8, 114u8, 165u8, 178u8, 173u8, - 134u8, 92u8, 233u8, 123u8, 191u8, 176u8, 154u8, 222u8, 224u8, 32u8, - 183u8, + 245u8, 108u8, 60u8, 138u8, 53u8, 79u8, 9u8, 15u8, 71u8, 105u8, 238u8, + 87u8, 89u8, 194u8, 134u8, 120u8, 117u8, 5u8, 160u8, 50u8, 202u8, 94u8, + 122u8, 112u8, 83u8, 197u8, 215u8, 52u8, 184u8, 141u8, 160u8, 67u8, ], ) } - #[doc = "See [`Pallet::update`]."] - pub fn update( + #[doc = "See [`Pallet::add_proxy`]."] + pub fn add_proxy( &self, - asset_kind: types::update::AssetKind, - rate: types::update::Rate, - ) -> ::subxt::tx::Payload { + delegate: types::add_proxy::Delegate, + proxy_type: types::add_proxy::ProxyType, + delay: types::add_proxy::Delay, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "AssetRate", - "update", - types::Update { - asset_kind: ::std::boxed::Box::new(asset_kind), - rate, + "Proxy", + "add_proxy", + types::AddProxy { + delegate, + proxy_type, + delay, }, [ - 188u8, 71u8, 197u8, 156u8, 105u8, 63u8, 11u8, 90u8, 124u8, 227u8, - 146u8, 78u8, 93u8, 216u8, 100u8, 41u8, 128u8, 115u8, 66u8, 243u8, - 198u8, 61u8, 115u8, 30u8, 170u8, 218u8, 254u8, 203u8, 37u8, 141u8, - 67u8, 179u8, + 204u8, 72u8, 210u8, 131u8, 208u8, 235u8, 49u8, 164u8, 176u8, 120u8, + 226u8, 19u8, 100u8, 46u8, 136u8, 83u8, 28u8, 82u8, 28u8, 189u8, 183u8, + 197u8, 230u8, 153u8, 83u8, 93u8, 181u8, 39u8, 254u8, 203u8, 204u8, + 33u8, ], ) } - #[doc = "See [`Pallet::remove`]."] - pub fn remove( + #[doc = "See [`Pallet::remove_proxy`]."] + pub fn remove_proxy( &self, - asset_kind: types::remove::AssetKind, - ) -> ::subxt::tx::Payload { + delegate: types::remove_proxy::Delegate, + proxy_type: types::remove_proxy::ProxyType, + delay: types::remove_proxy::Delay, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "AssetRate", - "remove", - types::Remove { - asset_kind: ::std::boxed::Box::new(asset_kind), + "Proxy", + "remove_proxy", + types::RemoveProxy { + delegate, + proxy_type, + delay, }, [ - 229u8, 203u8, 96u8, 158u8, 162u8, 236u8, 80u8, 239u8, 106u8, 193u8, - 85u8, 234u8, 99u8, 87u8, 214u8, 214u8, 157u8, 55u8, 70u8, 91u8, 9u8, - 187u8, 105u8, 99u8, 134u8, 181u8, 56u8, 212u8, 152u8, 136u8, 100u8, - 32u8, + 70u8, 212u8, 164u8, 122u8, 14u8, 90u8, 249u8, 181u8, 124u8, 74u8, + 125u8, 62u8, 160u8, 66u8, 140u8, 46u8, 90u8, 52u8, 112u8, 22u8, 58u8, + 221u8, 48u8, 21u8, 202u8, 254u8, 59u8, 59u8, 219u8, 93u8, 159u8, 3u8, + ], + ) + } + #[doc = "See [`Pallet::remove_proxies`]."] + pub fn remove_proxies(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "remove_proxies", + types::RemoveProxies {}, + [ + 1u8, 126u8, 36u8, 227u8, 185u8, 34u8, 218u8, 236u8, 125u8, 231u8, 68u8, + 185u8, 145u8, 63u8, 250u8, 225u8, 103u8, 3u8, 189u8, 37u8, 172u8, + 195u8, 197u8, 216u8, 99u8, 210u8, 240u8, 162u8, 158u8, 132u8, 24u8, + 6u8, + ], + ) + } + #[doc = "See [`Pallet::create_pure`]."] + pub fn create_pure( + &self, + proxy_type: types::create_pure::ProxyType, + delay: types::create_pure::Delay, + index: types::create_pure::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "create_pure", + types::CreatePure { + proxy_type, + delay, + index, + }, + [ + 124u8, 25u8, 141u8, 194u8, 131u8, 102u8, 15u8, 29u8, 77u8, 240u8, 98u8, + 39u8, 164u8, 93u8, 7u8, 231u8, 142u8, 56u8, 94u8, 150u8, 0u8, 12u8, + 158u8, 156u8, 176u8, 76u8, 49u8, 153u8, 212u8, 110u8, 160u8, 96u8, + ], + ) + } + #[doc = "See [`Pallet::kill_pure`]."] + pub fn kill_pure( + &self, + spawner: types::kill_pure::Spawner, + proxy_type: types::kill_pure::ProxyType, + index: types::kill_pure::Index, + height: types::kill_pure::Height, + ext_index: types::kill_pure::ExtIndex, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "kill_pure", + types::KillPure { + spawner, + proxy_type, + index, + height, + ext_index, + }, + [ + 98u8, 106u8, 30u8, 90u8, 102u8, 185u8, 75u8, 250u8, 152u8, 147u8, + 247u8, 65u8, 117u8, 204u8, 170u8, 38u8, 241u8, 241u8, 204u8, 218u8, + 112u8, 61u8, 221u8, 172u8, 53u8, 108u8, 134u8, 89u8, 17u8, 91u8, 202u8, + 204u8, + ], + ) + } + #[doc = "See [`Pallet::announce`]."] + pub fn announce( + &self, + real: types::announce::Real, + call_hash: types::announce::CallHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "announce", + types::Announce { real, call_hash }, + [ + 32u8, 88u8, 145u8, 33u8, 55u8, 44u8, 136u8, 153u8, 26u8, 111u8, 73u8, + 15u8, 247u8, 188u8, 14u8, 236u8, 221u8, 222u8, 60u8, 97u8, 71u8, 229u8, + 18u8, 120u8, 182u8, 43u8, 67u8, 248u8, 169u8, 80u8, 170u8, 207u8, + ], + ) + } + #[doc = "See [`Pallet::remove_announcement`]."] + pub fn remove_announcement( + &self, + real: types::remove_announcement::Real, + call_hash: types::remove_announcement::CallHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "remove_announcement", + types::RemoveAnnouncement { real, call_hash }, + [ + 195u8, 224u8, 61u8, 33u8, 27u8, 100u8, 168u8, 18u8, 105u8, 23u8, 220u8, + 168u8, 207u8, 231u8, 136u8, 46u8, 181u8, 85u8, 15u8, 151u8, 126u8, + 227u8, 97u8, 162u8, 232u8, 39u8, 45u8, 255u8, 44u8, 167u8, 237u8, 38u8, + ], + ) + } + #[doc = "See [`Pallet::reject_announcement`]."] + pub fn reject_announcement( + &self, + delegate: types::reject_announcement::Delegate, + call_hash: types::reject_announcement::CallHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "reject_announcement", + types::RejectAnnouncement { + delegate, + call_hash, + }, + [ + 29u8, 140u8, 243u8, 165u8, 143u8, 166u8, 205u8, 203u8, 111u8, 196u8, + 11u8, 2u8, 4u8, 230u8, 11u8, 136u8, 249u8, 139u8, 224u8, 242u8, 96u8, + 146u8, 118u8, 210u8, 104u8, 77u8, 168u8, 28u8, 67u8, 244u8, 91u8, 65u8, + ], + ) + } + #[doc = "See [`Pallet::proxy_announced`]."] + pub fn proxy_announced( + &self, + delegate: types::proxy_announced::Delegate, + real: types::proxy_announced::Real, + force_proxy_type: types::proxy_announced::ForceProxyType, + call: types::proxy_announced::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Proxy", + "proxy_announced", + types::ProxyAnnounced { + delegate, + real, + force_proxy_type, + call: ::std::boxed::Box::new(call), + }, + [ + 219u8, 164u8, 220u8, 187u8, 24u8, 194u8, 181u8, 76u8, 201u8, 19u8, + 116u8, 111u8, 209u8, 155u8, 188u8, 250u8, 147u8, 213u8, 123u8, 99u8, + 250u8, 4u8, 90u8, 71u8, 114u8, 85u8, 202u8, 141u8, 172u8, 83u8, 35u8, + 76u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_asset_rate::pallet::Event; + pub type Event = runtime_types::pallet_proxy::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -23063,19 +31041,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AssetRateCreated { - pub asset_kind: asset_rate_created::AssetKind, - pub rate: asset_rate_created::Rate, + #[doc = "A proxy was executed correctly, with the given."] + pub struct ProxyExecuted { + pub result: proxy_executed::Result, } - pub mod asset_rate_created { + pub mod proxy_executed { use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; - pub type Rate = runtime_types::sp_arithmetic::fixed_point::FixedU128; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; } - impl ::subxt::events::StaticEvent for AssetRateCreated { - const PALLET: &'static str = "AssetRate"; - const EVENT: &'static str = "AssetRateCreated"; + impl ::subxt::events::StaticEvent for ProxyExecuted { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23087,17 +31064,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AssetRateRemoved { - pub asset_kind: asset_rate_removed::AssetKind, + #[doc = "A pure account has been created by new proxy with given"] + #[doc = "disambiguation index and proxy type."] + pub struct PureCreated { + pub pure: pure_created::Pure, + pub who: pure_created::Who, + pub proxy_type: pure_created::ProxyType, + pub disambiguation_index: pure_created::DisambiguationIndex, } - pub mod asset_rate_removed { + pub mod pure_created { use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Pure = ::subxt::utils::AccountId32; + pub type Who = ::subxt::utils::AccountId32; + pub type ProxyType = runtime_types::kitchensink_runtime::ProxyType; + pub type DisambiguationIndex = ::core::primitive::u16; } - impl ::subxt::events::StaticEvent for AssetRateRemoved { - const PALLET: &'static str = "AssetRate"; - const EVENT: &'static str = "AssetRateRemoved"; + impl ::subxt::events::StaticEvent for PureCreated { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "PureCreated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23109,83 +31093,803 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AssetRateUpdated { - pub asset_kind: asset_rate_updated::AssetKind, - pub old: asset_rate_updated::Old, - pub new: asset_rate_updated::New, + #[doc = "An announcement was placed to make a call in the future."] + pub struct Announced { + pub real: announced::Real, + pub proxy: announced::Proxy, + pub call_hash: announced::CallHash, } - pub mod asset_rate_updated { + pub mod announced { use super::runtime_types; - pub type AssetKind = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; - pub type Old = runtime_types::sp_arithmetic::fixed_point::FixedU128; - pub type New = runtime_types::sp_arithmetic::fixed_point::FixedU128; + pub type Real = ::subxt::utils::AccountId32; + pub type Proxy = ::subxt::utils::AccountId32; + pub type CallHash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for AssetRateUpdated { - const PALLET: &'static str = "AssetRate"; - const EVENT: &'static str = "AssetRateUpdated"; + impl ::subxt::events::StaticEvent for Announced { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "Announced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proxy was added."] + pub struct ProxyAdded { + pub delegator: proxy_added::Delegator, + pub delegatee: proxy_added::Delegatee, + pub proxy_type: proxy_added::ProxyType, + pub delay: proxy_added::Delay, + } + pub mod proxy_added { + use super::runtime_types; + pub type Delegator = ::subxt::utils::AccountId32; + pub type Delegatee = ::subxt::utils::AccountId32; + pub type ProxyType = runtime_types::kitchensink_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ProxyAdded { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proxy was removed."] + pub struct ProxyRemoved { + pub delegator: proxy_removed::Delegator, + pub delegatee: proxy_removed::Delegatee, + pub proxy_type: proxy_removed::ProxyType, + pub delay: proxy_removed::Delay, + } + pub mod proxy_removed { + use super::runtime_types; + pub type Delegator = ::subxt::utils::AccountId32; + pub type Delegatee = ::subxt::utils::AccountId32; + pub type ProxyType = runtime_types::kitchensink_runtime::ProxyType; + pub type Delay = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ProxyRemoved { + const PALLET: &'static str = "Proxy"; + const EVENT: &'static str = "ProxyRemoved"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod conversion_rate_to_native { + pub mod proxies { use super::runtime_types; - pub type ConversionRateToNative = - runtime_types::sp_arithmetic::fixed_point::FixedU128; - pub type Param0 = - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset; + pub type Proxies = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::ProxyDefinition< + ::subxt::utils::AccountId32, + runtime_types::kitchensink_runtime::ProxyType, + ::core::primitive::u32, + >, + >, + ::core::primitive::u128, + ); + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod announcements { + use super::runtime_types; + pub type Announcements = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_proxy::Announcement< + ::subxt::utils::AccountId32, + ::subxt::utils::H256, + ::core::primitive::u32, + >, + >, + ::core::primitive::u128, + ); + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; impl StorageApi { - #[doc = " Maps an asset to its fixed point representation in the native balance."] - #[doc = ""] - #[doc = " E.g. `native_amount = asset_amount * ConversionRateToNative::::get(asset_kind)`"] - pub fn conversion_rate_to_native_iter( + #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] + #[doc = " which are being delegated to, together with the amount held on deposit."] + pub fn proxies_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::conversion_rate_to_native::ConversionRateToNative, - (), + types::proxies::Proxies, (), ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "AssetRate", - "ConversionRateToNative", + "Proxy", + "Proxies", vec![], [ - 211u8, 210u8, 178u8, 27u8, 157u8, 1u8, 68u8, 252u8, 84u8, 174u8, 141u8, - 185u8, 177u8, 39u8, 49u8, 35u8, 65u8, 254u8, 204u8, 246u8, 132u8, 59u8, - 190u8, 228u8, 135u8, 237u8, 161u8, 35u8, 21u8, 114u8, 88u8, 174u8, + 4u8, 17u8, 7u8, 89u8, 200u8, 45u8, 53u8, 207u8, 68u8, 119u8, 255u8, + 29u8, 191u8, 56u8, 116u8, 169u8, 231u8, 219u8, 60u8, 182u8, 214u8, 8u8, + 59u8, 61u8, 222u8, 179u8, 37u8, 218u8, 23u8, 144u8, 173u8, 242u8, ], ) } - #[doc = " Maps an asset to its fixed point representation in the native balance."] - #[doc = ""] - #[doc = " E.g. `native_amount = asset_amount * ConversionRateToNative::::get(asset_kind)`"] - pub fn conversion_rate_to_native( + #[doc = " The set of account proxies. Maps the account which has delegated to the accounts"] + #[doc = " which are being delegated to, together with the amount held on deposit."] + pub fn proxies( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::conversion_rate_to_native::ConversionRateToNative, + types::proxies::Proxies, + ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, - (), (), > { ::subxt::storage::address::Address::new_static( - "AssetRate", - "ConversionRateToNative", + "Proxy", + "Proxies", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 211u8, 210u8, 178u8, 27u8, 157u8, 1u8, 68u8, 252u8, 84u8, 174u8, 141u8, - 185u8, 177u8, 39u8, 49u8, 35u8, 65u8, 254u8, 204u8, 246u8, 132u8, 59u8, - 190u8, 228u8, 135u8, 237u8, 161u8, 35u8, 21u8, 114u8, 88u8, 174u8, + 4u8, 17u8, 7u8, 89u8, 200u8, 45u8, 53u8, 207u8, 68u8, 119u8, 255u8, + 29u8, 191u8, 56u8, 116u8, 169u8, 231u8, 219u8, 60u8, 182u8, 214u8, 8u8, + 59u8, 61u8, 222u8, 179u8, 37u8, 218u8, 23u8, 144u8, 173u8, 242u8, + ], + ) + } + #[doc = " The announcements made by the proxy (key)."] + pub fn announcements_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::announcements::Announcements, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Proxy", + "Announcements", + vec![], + [ + 129u8, 228u8, 198u8, 210u8, 90u8, 69u8, 151u8, 198u8, 206u8, 174u8, + 148u8, 58u8, 134u8, 14u8, 53u8, 56u8, 234u8, 71u8, 84u8, 247u8, 246u8, + 207u8, 117u8, 221u8, 84u8, 72u8, 254u8, 215u8, 102u8, 49u8, 21u8, + 173u8, + ], + ) + } + #[doc = " The announcements made by the proxy (key)."] + pub fn announcements( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::announcements::Announcements, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Proxy", + "Announcements", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 129u8, 228u8, 198u8, 210u8, 90u8, 69u8, 151u8, 198u8, 206u8, 174u8, + 148u8, 58u8, 134u8, 14u8, 53u8, 56u8, 234u8, 71u8, 84u8, 247u8, 246u8, + 207u8, 117u8, 221u8, 84u8, 72u8, 254u8, 215u8, 102u8, 49u8, 21u8, + 173u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The base amount of currency needed to reserve for creating a proxy."] + #[doc = ""] + #[doc = " This is held for an additional storage item whose value size is"] + #[doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] + pub fn proxy_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Proxy", + "ProxyDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of currency needed per proxy added."] + #[doc = ""] + #[doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] + #[doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] + #[doc = " into account `32 + proxy_type.encode().len()` bytes of data."] + pub fn proxy_deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Proxy", + "ProxyDepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum amount of proxies allowed for a single account."] + pub fn max_proxies(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Proxy", + "MaxProxies", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] + pub fn max_pending(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Proxy", + "MaxPending", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The base amount of currency needed to reserve for creating an announcement."] + #[doc = ""] + #[doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] + #[doc = " bytes)."] + pub fn announcement_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Proxy", + "AnnouncementDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of currency needed per announcement made."] + #[doc = ""] + #[doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] + #[doc = " into a pre-existing storage value."] + pub fn announcement_deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Proxy", + "AnnouncementDepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + } + } + } + pub mod multisig { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_multisig::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_multisig::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::as_multi_threshold_1`]."] + pub struct AsMultiThreshold1 { + pub other_signatories: as_multi_threshold1::OtherSignatories, + pub call: ::std::boxed::Box, + } + pub mod as_multi_threshold1 { + use super::runtime_types; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + } + impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi_threshold_1"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::as_multi`]."] + pub struct AsMulti { + pub threshold: as_multi::Threshold, + pub other_signatories: as_multi::OtherSignatories, + pub maybe_timepoint: as_multi::MaybeTimepoint, + pub call: ::std::boxed::Box, + pub max_weight: as_multi::MaxWeight, + } + pub mod as_multi { + use super::runtime_types; + pub type Threshold = ::core::primitive::u16; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type MaybeTimepoint = ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + >; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; + } + impl ::subxt::blocks::StaticExtrinsic for AsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::approve_as_multi`]."] + pub struct ApproveAsMulti { + pub threshold: approve_as_multi::Threshold, + pub other_signatories: approve_as_multi::OtherSignatories, + pub maybe_timepoint: approve_as_multi::MaybeTimepoint, + pub call_hash: approve_as_multi::CallHash, + pub max_weight: approve_as_multi::MaxWeight, + } + pub mod approve_as_multi { + use super::runtime_types; + pub type Threshold = ::core::primitive::u16; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type MaybeTimepoint = ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, + >; + pub type CallHash = [::core::primitive::u8; 32usize]; + pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; + } + impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "approve_as_multi"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_as_multi`]."] + pub struct CancelAsMulti { + pub threshold: cancel_as_multi::Threshold, + pub other_signatories: cancel_as_multi::OtherSignatories, + pub timepoint: cancel_as_multi::Timepoint, + pub call_hash: cancel_as_multi::CallHash, + } + pub mod cancel_as_multi { + use super::runtime_types; + pub type Threshold = ::core::primitive::u16; + pub type OtherSignatories = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Timepoint = + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; + pub type CallHash = [::core::primitive::u8; 32usize]; + } + impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "cancel_as_multi"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::as_multi_threshold_1`]."] + pub fn as_multi_threshold_1( + &self, + other_signatories: types::as_multi_threshold1::OtherSignatories, + call: types::as_multi_threshold1::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "as_multi_threshold_1", + types::AsMultiThreshold1 { + other_signatories, + call: ::std::boxed::Box::new(call), + }, + [ + 206u8, 30u8, 48u8, 115u8, 16u8, 15u8, 212u8, 238u8, 159u8, 242u8, 33u8, + 26u8, 94u8, 231u8, 101u8, 242u8, 199u8, 15u8, 95u8, 67u8, 153u8, 169u8, + 216u8, 136u8, 185u8, 181u8, 110u8, 185u8, 16u8, 45u8, 216u8, 245u8, + ], + ) + } + #[doc = "See [`Pallet::as_multi`]."] + pub fn as_multi( + &self, + threshold: types::as_multi::Threshold, + other_signatories: types::as_multi::OtherSignatories, + maybe_timepoint: types::as_multi::MaybeTimepoint, + call: types::as_multi::Call, + max_weight: types::as_multi::MaxWeight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "as_multi", + types::AsMulti { + threshold, + other_signatories, + maybe_timepoint, + call: ::std::boxed::Box::new(call), + max_weight, + }, + [ + 143u8, 29u8, 10u8, 135u8, 103u8, 192u8, 203u8, 231u8, 99u8, 38u8, 71u8, + 99u8, 245u8, 169u8, 222u8, 201u8, 215u8, 183u8, 252u8, 136u8, 82u8, + 19u8, 3u8, 145u8, 35u8, 147u8, 156u8, 59u8, 46u8, 236u8, 181u8, 150u8, + ], + ) + } + #[doc = "See [`Pallet::approve_as_multi`]."] + pub fn approve_as_multi( + &self, + threshold: types::approve_as_multi::Threshold, + other_signatories: types::approve_as_multi::OtherSignatories, + maybe_timepoint: types::approve_as_multi::MaybeTimepoint, + call_hash: types::approve_as_multi::CallHash, + max_weight: types::approve_as_multi::MaxWeight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "approve_as_multi", + types::ApproveAsMulti { + threshold, + other_signatories, + maybe_timepoint, + call_hash, + max_weight, + }, + [ + 248u8, 46u8, 131u8, 35u8, 204u8, 12u8, 218u8, 150u8, 88u8, 131u8, 89u8, + 13u8, 95u8, 122u8, 87u8, 107u8, 136u8, 154u8, 92u8, 199u8, 108u8, 92u8, + 207u8, 171u8, 113u8, 8u8, 47u8, 248u8, 65u8, 26u8, 203u8, 135u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_as_multi`]."] + pub fn cancel_as_multi( + &self, + threshold: types::cancel_as_multi::Threshold, + other_signatories: types::cancel_as_multi::OtherSignatories, + timepoint: types::cancel_as_multi::Timepoint, + call_hash: types::cancel_as_multi::CallHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "cancel_as_multi", + types::CancelAsMulti { + threshold, + other_signatories, + timepoint, + call_hash, + }, + [ + 212u8, 179u8, 123u8, 40u8, 209u8, 228u8, 181u8, 0u8, 109u8, 28u8, 27u8, + 48u8, 15u8, 47u8, 203u8, 54u8, 106u8, 114u8, 28u8, 118u8, 101u8, 201u8, + 95u8, 187u8, 46u8, 182u8, 4u8, 30u8, 227u8, 105u8, 14u8, 81u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_multisig::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new multisig operation has begun."] + pub struct NewMultisig { + pub approving: new_multisig::Approving, + pub multisig: new_multisig::Multisig, + pub call_hash: new_multisig::CallHash, + } + pub mod new_multisig { + use super::runtime_types; + pub type Approving = ::subxt::utils::AccountId32; + pub type Multisig = ::subxt::utils::AccountId32; + pub type CallHash = [::core::primitive::u8; 32usize]; + } + impl ::subxt::events::StaticEvent for NewMultisig { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "NewMultisig"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A multisig operation has been approved by someone."] + pub struct MultisigApproval { + pub approving: multisig_approval::Approving, + pub timepoint: multisig_approval::Timepoint, + pub multisig: multisig_approval::Multisig, + pub call_hash: multisig_approval::CallHash, + } + pub mod multisig_approval { + use super::runtime_types; + pub type Approving = ::subxt::utils::AccountId32; + pub type Timepoint = + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; + pub type Multisig = ::subxt::utils::AccountId32; + pub type CallHash = [::core::primitive::u8; 32usize]; + } + impl ::subxt::events::StaticEvent for MultisigApproval { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigApproval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A multisig operation has been executed."] + pub struct MultisigExecuted { + pub approving: multisig_executed::Approving, + pub timepoint: multisig_executed::Timepoint, + pub multisig: multisig_executed::Multisig, + pub call_hash: multisig_executed::CallHash, + pub result: multisig_executed::Result, + } + pub mod multisig_executed { + use super::runtime_types; + pub type Approving = ::subxt::utils::AccountId32; + pub type Timepoint = + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; + pub type Multisig = ::subxt::utils::AccountId32; + pub type CallHash = [::core::primitive::u8; 32usize]; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for MultisigExecuted { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A multisig operation has been cancelled."] + pub struct MultisigCancelled { + pub cancelling: multisig_cancelled::Cancelling, + pub timepoint: multisig_cancelled::Timepoint, + pub multisig: multisig_cancelled::Multisig, + pub call_hash: multisig_cancelled::CallHash, + } + pub mod multisig_cancelled { + use super::runtime_types; + pub type Cancelling = ::subxt::utils::AccountId32; + pub type Timepoint = + runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>; + pub type Multisig = ::subxt::utils::AccountId32; + pub type CallHash = [::core::primitive::u8; 32usize]; + } + impl ::subxt::events::StaticEvent for MultisigCancelled { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigCancelled"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod multisigs { + use super::runtime_types; + pub type Multisigs = runtime_types::pallet_multisig::Multisig< + ::core::primitive::u32, + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = [::core::primitive::u8; 32usize]; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The set of open multisig operations."] + pub fn multisigs_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::multisigs::Multisigs, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Multisig", + "Multisigs", + vec![], + [ + 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, + 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, + 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, + ], + ) + } + #[doc = " The set of open multisig operations."] + pub fn multisigs_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::multisigs::Multisigs, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Multisig", + "Multisigs", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, + 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, + 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, + ], + ) + } + #[doc = " The set of open multisig operations."] + pub fn multisigs( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::multisigs::Multisigs, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Multisig", + "Multisigs", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 154u8, 109u8, 45u8, 18u8, 155u8, 151u8, 81u8, 28u8, 86u8, 127u8, 189u8, + 151u8, 49u8, 61u8, 12u8, 149u8, 84u8, 61u8, 110u8, 197u8, 200u8, 140u8, + 37u8, 100u8, 14u8, 162u8, 158u8, 161u8, 48u8, 117u8, 102u8, 61u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"] + #[doc = " store a dispatch call for later."] + #[doc = ""] + #[doc = " This is held for an additional storage item whose value size is"] + #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] + #[doc = " `32 + sizeof(AccountId)` bytes."] + pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Multisig", + "DepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] + #[doc = ""] + #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] + pub fn deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Multisig", + "DepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum amount of signatories allowed in the multisig."] + pub fn max_signatories( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Multisig", + "MaxSignatories", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, ], ) } @@ -23274,8 +31978,10 @@ pub mod api { pub mod propose_curator { use super::runtime_types; pub type BountyId = ::core::primitive::u32; - pub type Curator = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Curator = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; pub type Fee = ::core::primitive::u128; } impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { @@ -23347,8 +32053,10 @@ pub mod api { pub mod award_bounty { use super::runtime_types; pub type BountyId = ::core::primitive::u32; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Beneficiary = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for AwardBounty { const PALLET: &'static str = "Bounties"; @@ -23478,9 +32186,10 @@ pub mod api { fee, }, [ - 238u8, 102u8, 86u8, 97u8, 169u8, 16u8, 133u8, 41u8, 24u8, 247u8, 149u8, - 200u8, 95u8, 213u8, 45u8, 62u8, 41u8, 247u8, 170u8, 62u8, 211u8, 194u8, - 5u8, 108u8, 129u8, 145u8, 108u8, 67u8, 84u8, 97u8, 237u8, 54u8, + 137u8, 37u8, 180u8, 149u8, 223u8, 16u8, 83u8, 160u8, 153u8, 149u8, + 137u8, 167u8, 231u8, 100u8, 142u8, 13u8, 43u8, 161u8, 108u8, 121u8, + 202u8, 196u8, 35u8, 176u8, 203u8, 87u8, 23u8, 226u8, 89u8, 222u8, 47u8, + 112u8, ], ) } @@ -23531,9 +32240,9 @@ pub mod api { beneficiary, }, [ - 231u8, 248u8, 65u8, 2u8, 199u8, 19u8, 126u8, 23u8, 206u8, 206u8, 230u8, - 77u8, 53u8, 152u8, 230u8, 234u8, 211u8, 153u8, 82u8, 149u8, 93u8, 91u8, - 19u8, 72u8, 214u8, 92u8, 65u8, 207u8, 142u8, 168u8, 133u8, 87u8, + 130u8, 148u8, 63u8, 19u8, 102u8, 114u8, 81u8, 70u8, 249u8, 32u8, 175u8, + 81u8, 140u8, 195u8, 98u8, 221u8, 153u8, 148u8, 196u8, 104u8, 15u8, + 91u8, 153u8, 51u8, 2u8, 179u8, 35u8, 136u8, 12u8, 219u8, 27u8, 100u8, ], ) } @@ -24168,13 +32877,13 @@ pub mod api { } } } - pub mod child_bounties { + pub mod tips { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_child_bounties::pallet::Error; + pub type Error = runtime_types::pallet_tips::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_child_bounties::pallet::Call; + pub type Call = runtime_types::pallet_tips::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -24191,23 +32900,22 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_child_bounty`]."] - pub struct AddChildBounty { - #[codec(compact)] - pub parent_bounty_id: add_child_bounty::ParentBountyId, - #[codec(compact)] - pub value: add_child_bounty::Value, - pub description: add_child_bounty::Description, + #[doc = "See [`Pallet::report_awesome`]."] + pub struct ReportAwesome { + pub reason: report_awesome::Reason, + pub who: report_awesome::Who, } - pub mod add_child_bounty { + pub mod report_awesome { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type Value = ::core::primitive::u128; - pub type Description = ::std::vec::Vec<::core::primitive::u8>; + pub type Reason = ::std::vec::Vec<::core::primitive::u8>; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } - impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "add_child_bounty"; + impl ::subxt::blocks::StaticExtrinsic for ReportAwesome { + const PALLET: &'static str = "Tips"; + const CALL: &'static str = "report_awesome"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24219,27 +32927,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::propose_curator`]."] - pub struct ProposeCurator { - #[codec(compact)] - pub parent_bounty_id: propose_curator::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: propose_curator::ChildBountyId, - pub curator: propose_curator::Curator, - #[codec(compact)] - pub fee: propose_curator::Fee, + #[doc = "See [`Pallet::retract_tip`]."] + pub struct RetractTip { + pub hash: retract_tip::Hash, } - pub mod propose_curator { + pub mod retract_tip { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; - pub type Curator = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Fee = ::core::primitive::u128; + pub type Hash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "propose_curator"; + impl ::subxt::blocks::StaticExtrinsic for RetractTip { + const PALLET: &'static str = "Tips"; + const CALL: &'static str = "retract_tip"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24251,21 +32949,25 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::accept_curator`]."] - pub struct AcceptCurator { + #[doc = "See [`Pallet::tip_new`]."] + pub struct TipNew { + pub reason: tip_new::Reason, + pub who: tip_new::Who, #[codec(compact)] - pub parent_bounty_id: accept_curator::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: accept_curator::ChildBountyId, + pub tip_value: tip_new::TipValue, } - pub mod accept_curator { + pub mod tip_new { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; + pub type Reason = ::std::vec::Vec<::core::primitive::u8>; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type TipValue = ::core::primitive::u128; } - impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "accept_curator"; + impl ::subxt::blocks::StaticExtrinsic for TipNew { + const PALLET: &'static str = "Tips"; + const CALL: &'static str = "tip_new"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24277,21 +32979,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::unassign_curator`]."] - pub struct UnassignCurator { + #[doc = "See [`Pallet::tip`]."] + pub struct Tip { + pub hash: tip::Hash, #[codec(compact)] - pub parent_bounty_id: unassign_curator::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: unassign_curator::ChildBountyId, + pub tip_value: tip::TipValue, } - pub mod unassign_curator { + pub mod tip { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; + pub type TipValue = ::core::primitive::u128; } - impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "unassign_curator"; + impl ::subxt::blocks::StaticExtrinsic for Tip { + const PALLET: &'static str = "Tips"; + const CALL: &'static str = "tip"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24303,24 +33004,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::award_child_bounty`]."] - pub struct AwardChildBounty { - #[codec(compact)] - pub parent_bounty_id: award_child_bounty::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: award_child_bounty::ChildBountyId, - pub beneficiary: award_child_bounty::Beneficiary, + #[doc = "See [`Pallet::close_tip`]."] + pub struct CloseTip { + pub hash: close_tip::Hash, } - pub mod award_child_bounty { + pub mod close_tip { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; - pub type Beneficiary = - ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Hash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "award_child_bounty"; + impl ::subxt::blocks::StaticExtrinsic for CloseTip { + const PALLET: &'static str = "Tips"; + const CALL: &'static str = "close_tip"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24332,206 +33026,133 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::claim_child_bounty`]."] - pub struct ClaimChildBounty { - #[codec(compact)] - pub parent_bounty_id: claim_child_bounty::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: claim_child_bounty::ChildBountyId, + #[doc = "See [`Pallet::slash_tip`]."] + pub struct SlashTip { + pub hash: slash_tip::Hash, } - pub mod claim_child_bounty { + pub mod slash_tip { use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; } - impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "claim_child_bounty"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::close_child_bounty`]."] - pub struct CloseChildBounty { - #[codec(compact)] - pub parent_bounty_id: close_child_bounty::ParentBountyId, - #[codec(compact)] - pub child_bounty_id: close_child_bounty::ChildBountyId, - } - pub mod close_child_bounty { - use super::runtime_types; - pub type ParentBountyId = ::core::primitive::u32; - pub type ChildBountyId = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { - const PALLET: &'static str = "ChildBounties"; - const CALL: &'static str = "close_child_bounty"; + impl ::subxt::blocks::StaticExtrinsic for SlashTip { + const PALLET: &'static str = "Tips"; + const CALL: &'static str = "slash_tip"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::add_child_bounty`]."] - pub fn add_child_bounty( + #[doc = "See [`Pallet::report_awesome`]."] + pub fn report_awesome( &self, - parent_bounty_id: types::add_child_bounty::ParentBountyId, - value: types::add_child_bounty::Value, - description: types::add_child_bounty::Description, - ) -> ::subxt::tx::Payload { + reason: types::report_awesome::Reason, + who: types::report_awesome::Who, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "add_child_bounty", - types::AddChildBounty { - parent_bounty_id, - value, - description, - }, + "Tips", + "report_awesome", + types::ReportAwesome { reason, who }, [ - 249u8, 159u8, 185u8, 144u8, 114u8, 142u8, 104u8, 215u8, 136u8, 52u8, - 255u8, 125u8, 54u8, 243u8, 220u8, 171u8, 254u8, 49u8, 105u8, 134u8, - 137u8, 221u8, 100u8, 111u8, 72u8, 38u8, 184u8, 122u8, 72u8, 204u8, - 182u8, 123u8, + 179u8, 206u8, 30u8, 167u8, 50u8, 227u8, 206u8, 81u8, 3u8, 149u8, 196u8, + 178u8, 144u8, 181u8, 100u8, 1u8, 150u8, 213u8, 53u8, 190u8, 10u8, 46u8, + 164u8, 90u8, 92u8, 168u8, 177u8, 114u8, 8u8, 10u8, 87u8, 161u8, ], ) } - #[doc = "See [`Pallet::propose_curator`]."] - pub fn propose_curator( + #[doc = "See [`Pallet::retract_tip`]."] + pub fn retract_tip( &self, - parent_bounty_id: types::propose_curator::ParentBountyId, - child_bounty_id: types::propose_curator::ChildBountyId, - curator: types::propose_curator::Curator, - fee: types::propose_curator::Fee, - ) -> ::subxt::tx::Payload { + hash: types::retract_tip::Hash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "propose_curator", - types::ProposeCurator { - parent_bounty_id, - child_bounty_id, - curator, - fee, - }, + "Tips", + "retract_tip", + types::RetractTip { hash }, [ - 30u8, 186u8, 200u8, 181u8, 73u8, 219u8, 129u8, 195u8, 100u8, 30u8, - 36u8, 9u8, 131u8, 110u8, 136u8, 145u8, 146u8, 44u8, 96u8, 207u8, 74u8, - 59u8, 61u8, 94u8, 186u8, 184u8, 89u8, 170u8, 126u8, 64u8, 234u8, 177u8, + 127u8, 232u8, 112u8, 136u8, 48u8, 227u8, 202u8, 51u8, 78u8, 191u8, + 248u8, 44u8, 159u8, 76u8, 101u8, 107u8, 212u8, 55u8, 85u8, 250u8, + 222u8, 181u8, 58u8, 130u8, 53u8, 103u8, 190u8, 31u8, 113u8, 195u8, + 186u8, 44u8, ], ) } - #[doc = "See [`Pallet::accept_curator`]."] - pub fn accept_curator( + #[doc = "See [`Pallet::tip_new`]."] + pub fn tip_new( &self, - parent_bounty_id: types::accept_curator::ParentBountyId, - child_bounty_id: types::accept_curator::ChildBountyId, - ) -> ::subxt::tx::Payload { + reason: types::tip_new::Reason, + who: types::tip_new::Who, + tip_value: types::tip_new::TipValue, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "accept_curator", - types::AcceptCurator { - parent_bounty_id, - child_bounty_id, + "Tips", + "tip_new", + types::TipNew { + reason, + who, + tip_value, }, [ - 80u8, 117u8, 237u8, 83u8, 230u8, 230u8, 159u8, 136u8, 87u8, 17u8, - 239u8, 110u8, 190u8, 12u8, 52u8, 63u8, 171u8, 118u8, 82u8, 168u8, - 190u8, 255u8, 91u8, 85u8, 117u8, 226u8, 51u8, 28u8, 116u8, 230u8, - 137u8, 123u8, + 123u8, 206u8, 77u8, 163u8, 106u8, 193u8, 145u8, 239u8, 161u8, 60u8, + 29u8, 198u8, 49u8, 41u8, 174u8, 91u8, 100u8, 10u8, 80u8, 124u8, 17u8, + 222u8, 54u8, 237u8, 47u8, 213u8, 234u8, 7u8, 62u8, 77u8, 69u8, 23u8, ], ) } - #[doc = "See [`Pallet::unassign_curator`]."] - pub fn unassign_curator( + #[doc = "See [`Pallet::tip`]."] + pub fn tip( &self, - parent_bounty_id: types::unassign_curator::ParentBountyId, - child_bounty_id: types::unassign_curator::ChildBountyId, - ) -> ::subxt::tx::Payload { + hash: types::tip::Hash, + tip_value: types::tip::TipValue, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "unassign_curator", - types::UnassignCurator { - parent_bounty_id, - child_bounty_id, - }, + "Tips", + "tip", + types::Tip { hash, tip_value }, [ - 120u8, 208u8, 75u8, 141u8, 220u8, 153u8, 79u8, 28u8, 255u8, 227u8, - 239u8, 10u8, 243u8, 116u8, 0u8, 226u8, 205u8, 208u8, 91u8, 193u8, - 154u8, 81u8, 169u8, 240u8, 120u8, 48u8, 102u8, 35u8, 25u8, 136u8, 92u8, - 141u8, + 241u8, 5u8, 164u8, 248u8, 140u8, 60u8, 29u8, 9u8, 63u8, 208u8, 249u8, + 210u8, 221u8, 173u8, 70u8, 240u8, 50u8, 131u8, 80u8, 236u8, 131u8, + 101u8, 191u8, 49u8, 94u8, 216u8, 74u8, 234u8, 184u8, 167u8, 159u8, + 176u8, ], ) } - #[doc = "See [`Pallet::award_child_bounty`]."] - pub fn award_child_bounty( + #[doc = "See [`Pallet::close_tip`]."] + pub fn close_tip( &self, - parent_bounty_id: types::award_child_bounty::ParentBountyId, - child_bounty_id: types::award_child_bounty::ChildBountyId, - beneficiary: types::award_child_bounty::Beneficiary, - ) -> ::subxt::tx::Payload { + hash: types::close_tip::Hash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "award_child_bounty", - types::AwardChildBounty { - parent_bounty_id, - child_bounty_id, - beneficiary, - }, + "Tips", + "close_tip", + types::CloseTip { hash }, [ - 45u8, 172u8, 88u8, 8u8, 142u8, 34u8, 30u8, 132u8, 61u8, 31u8, 187u8, - 174u8, 21u8, 5u8, 248u8, 185u8, 142u8, 193u8, 29u8, 83u8, 225u8, 213u8, - 153u8, 247u8, 67u8, 219u8, 58u8, 206u8, 102u8, 55u8, 218u8, 154u8, + 85u8, 213u8, 248u8, 146u8, 90u8, 110u8, 217u8, 109u8, 78u8, 6u8, 104u8, + 71u8, 184u8, 209u8, 148u8, 81u8, 145u8, 71u8, 151u8, 174u8, 25u8, + 238u8, 48u8, 0u8, 51u8, 102u8, 155u8, 143u8, 130u8, 157u8, 100u8, + 246u8, ], ) } - #[doc = "See [`Pallet::claim_child_bounty`]."] - pub fn claim_child_bounty( + #[doc = "See [`Pallet::slash_tip`]."] + pub fn slash_tip( &self, - parent_bounty_id: types::claim_child_bounty::ParentBountyId, - child_bounty_id: types::claim_child_bounty::ChildBountyId, - ) -> ::subxt::tx::Payload { + hash: types::slash_tip::Hash, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ChildBounties", - "claim_child_bounty", - types::ClaimChildBounty { - parent_bounty_id, - child_bounty_id, - }, + "Tips", + "slash_tip", + types::SlashTip { hash }, [ - 114u8, 134u8, 242u8, 240u8, 103u8, 141u8, 181u8, 214u8, 193u8, 222u8, - 23u8, 19u8, 68u8, 174u8, 190u8, 60u8, 94u8, 235u8, 14u8, 115u8, 155u8, - 199u8, 0u8, 106u8, 37u8, 144u8, 92u8, 188u8, 2u8, 149u8, 235u8, 244u8, - ], - ) - } - #[doc = "See [`Pallet::close_child_bounty`]."] - pub fn close_child_bounty( - &self, - parent_bounty_id: types::close_child_bounty::ParentBountyId, - child_bounty_id: types::close_child_bounty::ChildBountyId, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ChildBounties", - "close_child_bounty", - types::CloseChildBounty { - parent_bounty_id, - child_bounty_id, - }, - [ - 121u8, 20u8, 81u8, 13u8, 102u8, 102u8, 162u8, 24u8, 133u8, 35u8, 203u8, - 58u8, 28u8, 195u8, 114u8, 31u8, 254u8, 252u8, 118u8, 57u8, 30u8, 211u8, - 217u8, 124u8, 148u8, 244u8, 144u8, 224u8, 39u8, 155u8, 162u8, 91u8, + 127u8, 21u8, 252u8, 189u8, 121u8, 103u8, 54u8, 155u8, 71u8, 81u8, + 109u8, 0u8, 159u8, 151u8, 62u8, 81u8, 104u8, 31u8, 2u8, 83u8, 248u8, + 141u8, 252u8, 162u8, 173u8, 189u8, 252u8, 249u8, 54u8, 142u8, 108u8, + 19u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_child_bounties::pallet::Event; + pub type Event = runtime_types::pallet_tips::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -24544,19 +33165,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is added."] - pub struct Added { - pub index: added::Index, - pub child_index: added::ChildIndex, + #[doc = "A new tip suggestion has been opened."] + pub struct NewTip { + pub tip_hash: new_tip::TipHash, } - pub mod added { + pub mod new_tip { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type ChildIndex = ::core::primitive::u32; + pub type TipHash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for Added { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Added"; + impl ::subxt::events::StaticEvent for NewTip { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "NewTip"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24568,21 +33187,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is awarded to a beneficiary."] - pub struct Awarded { - pub index: awarded::Index, - pub child_index: awarded::ChildIndex, - pub beneficiary: awarded::Beneficiary, + #[doc = "A tip suggestion has reached threshold and is closing."] + pub struct TipClosing { + pub tip_hash: tip_closing::TipHash, } - pub mod awarded { + pub mod tip_closing { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type ChildIndex = ::core::primitive::u32; - pub type Beneficiary = ::subxt::utils::AccountId32; + pub type TipHash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Awarded"; + impl ::subxt::events::StaticEvent for TipClosing { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipClosing"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24594,23 +33209,21 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is claimed by beneficiary."] - pub struct Claimed { - pub index: claimed::Index, - pub child_index: claimed::ChildIndex, - pub payout: claimed::Payout, - pub beneficiary: claimed::Beneficiary, + #[doc = "A tip suggestion has been closed."] + pub struct TipClosed { + pub tip_hash: tip_closed::TipHash, + pub who: tip_closed::Who, + pub payout: tip_closed::Payout, } - pub mod claimed { + pub mod tip_closed { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type ChildIndex = ::core::primitive::u32; + pub type TipHash = ::subxt::utils::H256; + pub type Who = ::subxt::utils::AccountId32; pub type Payout = ::core::primitive::u128; - pub type Beneficiary = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Claimed { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Claimed"; + impl ::subxt::events::StaticEvent for TipClosed { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipClosed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24622,289 +33235,162 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A child-bounty is cancelled."] - pub struct Canceled { - pub index: canceled::Index, - pub child_index: canceled::ChildIndex, + #[doc = "A tip suggestion has been retracted."] + pub struct TipRetracted { + pub tip_hash: tip_retracted::TipHash, } - pub mod canceled { + pub mod tip_retracted { use super::runtime_types; - pub type Index = ::core::primitive::u32; - pub type ChildIndex = ::core::primitive::u32; + pub type TipHash = ::subxt::utils::H256; } - impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "ChildBounties"; - const EVENT: &'static str = "Canceled"; + impl ::subxt::events::StaticEvent for TipRetracted { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipRetracted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A tip suggestion has been slashed."] + pub struct TipSlashed { + pub tip_hash: tip_slashed::TipHash, + pub finder: tip_slashed::Finder, + pub deposit: tip_slashed::Deposit, + } + pub mod tip_slashed { + use super::runtime_types; + pub type TipHash = ::subxt::utils::H256; + pub type Finder = ::subxt::utils::AccountId32; + pub type Deposit = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for TipSlashed { + const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipSlashed"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod child_bounty_count { + pub mod tips { use super::runtime_types; - pub type ChildBountyCount = ::core::primitive::u32; - } - pub mod parent_child_bounties { - use super::runtime_types; - pub type ParentChildBounties = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u32; - } - pub mod child_bounties { - use super::runtime_types; - pub type ChildBounties = runtime_types::pallet_child_bounties::ChildBounty< + pub type Tips = runtime_types::pallet_tips::OpenTip< ::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::u32, + ::subxt::utils::H256, >; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::core::primitive::u32; + pub type Param0 = ::subxt::utils::H256; } - pub mod child_bounty_descriptions { + pub mod reasons { use super::runtime_types; - pub type ChildBountyDescriptions = - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >; - pub type Param0 = ::core::primitive::u32; - } - pub mod children_curator_fees { - use super::runtime_types; - pub type ChildrenCuratorFees = ::core::primitive::u128; - pub type Param0 = ::core::primitive::u32; + pub type Reasons = ::std::vec::Vec<::core::primitive::u8>; + pub type Param0 = ::subxt::utils::H256; } } pub struct StorageApi; impl StorageApi { - #[doc = " Number of total child bounties."] - pub fn child_bounty_count( + #[doc = " TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value."] + #[doc = " This has the insecure enumerable hash function since the key itself is already"] + #[doc = " guaranteed to be a secure hash."] + pub fn tips_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::child_bounty_count::ChildBountyCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + types::tips::Tips, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyCount", + "Tips", + "Tips", vec![], [ - 206u8, 1u8, 40u8, 132u8, 51u8, 139u8, 234u8, 20u8, 89u8, 86u8, 247u8, - 107u8, 169u8, 252u8, 5u8, 180u8, 218u8, 24u8, 232u8, 94u8, 82u8, 135u8, - 24u8, 16u8, 134u8, 23u8, 201u8, 86u8, 12u8, 19u8, 199u8, 0u8, + 25u8, 31u8, 187u8, 85u8, 122u8, 104u8, 176u8, 120u8, 135u8, 32u8, + 135u8, 148u8, 193u8, 43u8, 143u8, 235u8, 82u8, 96u8, 162u8, 200u8, + 125u8, 117u8, 170u8, 70u8, 47u8, 248u8, 153u8, 70u8, 22u8, 194u8, 31u8, + 150u8, ], ) } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] - pub fn parent_child_bounties_iter( + #[doc = " TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value."] + #[doc = " This has the insecure enumerable hash function since the key itself is already"] + #[doc = " guaranteed to be a secure hash."] + pub fn tips( &self, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::parent_child_bounties::ParentChildBounties, + types::tips::Tips, + ::subxt::storage::address::Yes, (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ParentChildBounties", - vec![], - [ - 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, - 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, - 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, - ], - ) - } - #[doc = " Number of child bounties per parent bounty."] - #[doc = " Map of parent bounty index to number of child bounties."] - pub fn parent_child_bounties( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::parent_child_bounties::ParentChildBounties, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ParentChildBounties", + "Tips", + "Tips", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, - 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, - 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, + 25u8, 31u8, 187u8, 85u8, 122u8, 104u8, 176u8, 120u8, 135u8, 32u8, + 135u8, 148u8, 193u8, 43u8, 143u8, 235u8, 82u8, 96u8, 162u8, 200u8, + 125u8, 117u8, 170u8, 70u8, 47u8, 248u8, 153u8, 70u8, 22u8, 194u8, 31u8, + 150u8, ], ) } - #[doc = " Child bounties that have been added."] - pub fn child_bounties_iter( + #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] + #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] + pub fn reasons_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::child_bounties::ChildBounties, + types::reasons::Reasons, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", + "Tips", + "Reasons", vec![], [ - 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, - 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, - 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, - 242u8, 147u8, + 99u8, 184u8, 64u8, 230u8, 54u8, 162u8, 73u8, 188u8, 49u8, 219u8, 170u8, + 2u8, 72u8, 75u8, 239u8, 136u8, 114u8, 93u8, 94u8, 195u8, 229u8, 55u8, + 188u8, 121u8, 214u8, 250u8, 115u8, 61u8, 221u8, 173u8, 14u8, 68u8, ], ) } - #[doc = " Child bounties that have been added."] - pub fn child_bounties_iter1( + #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] + #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] + pub fn reasons( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::child_bounties::ChildBounties, - (), - (), + types::reasons::Reasons, ::subxt::storage::address::Yes, + (), + (), > { ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", + "Tips", + "Reasons", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, - 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, - 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, - 242u8, 147u8, - ], - ) - } - #[doc = " Child bounties that have been added."] - pub fn child_bounties( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::child_bounties::ChildBounties, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBounties", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, - 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, - 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, - 242u8, 147u8, - ], - ) - } - #[doc = " The description of each child-bounty."] - pub fn child_bounty_descriptions_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::child_bounty_descriptions::ChildBountyDescriptions, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyDescriptions", - vec![], - [ - 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, - 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, - 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, - ], - ) - } - #[doc = " The description of each child-bounty."] - pub fn child_bounty_descriptions( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::child_bounty_descriptions::ChildBountyDescriptions, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildBountyDescriptions", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, - 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, - 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, - ], - ) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] - pub fn children_curator_fees_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::children_curator_fees::ChildrenCuratorFees, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildrenCuratorFees", - vec![], - [ - 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, - 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, - 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, - ], - ) - } - #[doc = " The cumulative child-bounty curator fee for each parent bounty."] - pub fn children_curator_fees( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::children_curator_fees::ChildrenCuratorFees, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ChildBounties", - "ChildrenCuratorFees", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, - 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, - 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, + 99u8, 184u8, 64u8, 230u8, 54u8, 162u8, 73u8, 188u8, 49u8, 219u8, 170u8, + 2u8, 72u8, 75u8, 239u8, 136u8, 114u8, 93u8, 94u8, 195u8, 229u8, 55u8, + 188u8, 121u8, 214u8, 250u8, 115u8, 61u8, 221u8, 173u8, 14u8, 68u8, ], ) } @@ -24914,13 +33400,15 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " Maximum number of child bounties that can be added to a parent bounty."] - pub fn max_active_child_bounty_count( + #[doc = " Maximum acceptable reason length."] + #[doc = ""] + #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] + pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "ChildBounties", - "MaxActiveChildBountyCount", + "Tips", + "MaximumReasonLength", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -24929,13 +33417,13 @@ pub mod api { ], ) } - #[doc = " Minimum value for a child-bounty."] - pub fn child_bounty_value_minimum( + #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] + pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "ChildBounties", - "ChildBountyValueMinimum", + "Tips", + "DataDepositPerByte", [ 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, @@ -24943,6 +33431,5811 @@ pub mod api { ], ) } + #[doc = " The period for which a tip remains open after is has achieved threshold tippers."] + pub fn tip_countdown(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Tips", + "TipCountdown", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The percent of the final tip which goes to the original reporter of the tip."] + pub fn tip_finders_fee( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Tips", + "TipFindersFee", + [ + 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, + 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, + 47u8, 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, + 122u8, + ], + ) + } + #[doc = " The non-zero amount held on deposit for placing a tip report."] + pub fn tip_report_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Tips", + "TipReportDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum amount for a single tip."] + pub fn max_tip_amount( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Tips", + "MaxTipAmount", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + } + } + } + pub mod assets { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_assets::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_assets::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::create`]."] + pub struct Create { + #[codec(compact)] + pub id: create::Id, + pub admin: create::Admin, + pub min_balance: create::MinBalance, + } + pub mod create { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type MinBalance = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_create`]."] + pub struct ForceCreate { + #[codec(compact)] + pub id: force_create::Id, + pub owner: force_create::Owner, + pub is_sufficient: force_create::IsSufficient, + #[codec(compact)] + pub min_balance: force_create::MinBalance, + } + pub mod force_create { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type IsSufficient = ::core::primitive::bool; + pub type MinBalance = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for ForceCreate { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::start_destroy`]."] + pub struct StartDestroy { + #[codec(compact)] + pub id: start_destroy::Id, + } + pub mod start_destroy { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for StartDestroy { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "start_destroy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::destroy_accounts`]."] + pub struct DestroyAccounts { + #[codec(compact)] + pub id: destroy_accounts::Id, + } + pub mod destroy_accounts { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for DestroyAccounts { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "destroy_accounts"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::destroy_approvals`]."] + pub struct DestroyApprovals { + #[codec(compact)] + pub id: destroy_approvals::Id, + } + pub mod destroy_approvals { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for DestroyApprovals { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "destroy_approvals"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::finish_destroy`]."] + pub struct FinishDestroy { + #[codec(compact)] + pub id: finish_destroy::Id, + } + pub mod finish_destroy { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for FinishDestroy { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "finish_destroy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::mint`]."] + pub struct Mint { + #[codec(compact)] + pub id: mint::Id, + pub beneficiary: mint::Beneficiary, + #[codec(compact)] + pub amount: mint::Amount, + } + pub mod mint { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Mint { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "mint"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::burn`]."] + pub struct Burn { + #[codec(compact)] + pub id: burn::Id, + pub who: burn::Who, + #[codec(compact)] + pub amount: burn::Amount, + } + pub mod burn { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Burn { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "burn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer`]."] + pub struct Transfer { + #[codec(compact)] + pub id: transfer::Id, + pub target: transfer::Target, + #[codec(compact)] + pub amount: transfer::Amount, + } + pub mod transfer { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer_keep_alive`]."] + pub struct TransferKeepAlive { + #[codec(compact)] + pub id: transfer_keep_alive::Id, + pub target: transfer_keep_alive::Target, + #[codec(compact)] + pub amount: transfer_keep_alive::Amount, + } + pub mod transfer_keep_alive { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "transfer_keep_alive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_transfer`]."] + pub struct ForceTransfer { + #[codec(compact)] + pub id: force_transfer::Id, + pub source: force_transfer::Source, + pub dest: force_transfer::Dest, + #[codec(compact)] + pub amount: force_transfer::Amount, + } + pub mod force_transfer { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Source = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::freeze`]."] + pub struct Freeze { + #[codec(compact)] + pub id: freeze::Id, + pub who: freeze::Who, + } + pub mod freeze { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Freeze { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "freeze"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::thaw`]."] + pub struct Thaw { + #[codec(compact)] + pub id: thaw::Id, + pub who: thaw::Who, + } + pub mod thaw { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Thaw { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "thaw"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::freeze_asset`]."] + pub struct FreezeAsset { + #[codec(compact)] + pub id: freeze_asset::Id, + } + pub mod freeze_asset { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for FreezeAsset { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "freeze_asset"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::thaw_asset`]."] + pub struct ThawAsset { + #[codec(compact)] + pub id: thaw_asset::Id, + } + pub mod thaw_asset { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ThawAsset { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "thaw_asset"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer_ownership`]."] + pub struct TransferOwnership { + #[codec(compact)] + pub id: transfer_ownership::Id, + pub owner: transfer_ownership::Owner, + } + pub mod transfer_ownership { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for TransferOwnership { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "transfer_ownership"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_team`]."] + pub struct SetTeam { + #[codec(compact)] + pub id: set_team::Id, + pub issuer: set_team::Issuer, + pub admin: set_team::Admin, + pub freezer: set_team::Freezer, + } + pub mod set_team { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Issuer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Freezer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetTeam { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "set_team"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + #[codec(compact)] + pub id: set_metadata::Id, + pub name: set_metadata::Name, + pub symbol: set_metadata::Symbol, + pub decimals: set_metadata::Decimals, + } + pub mod set_metadata { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Name = ::std::vec::Vec<::core::primitive::u8>; + pub type Symbol = ::std::vec::Vec<::core::primitive::u8>; + pub type Decimals = ::core::primitive::u8; + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_metadata`]."] + pub struct ClearMetadata { + #[codec(compact)] + pub id: clear_metadata::Id, + } + pub mod clear_metadata { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClearMetadata { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "clear_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_set_metadata`]."] + pub struct ForceSetMetadata { + #[codec(compact)] + pub id: force_set_metadata::Id, + pub name: force_set_metadata::Name, + pub symbol: force_set_metadata::Symbol, + pub decimals: force_set_metadata::Decimals, + pub is_frozen: force_set_metadata::IsFrozen, + } + pub mod force_set_metadata { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Name = ::std::vec::Vec<::core::primitive::u8>; + pub type Symbol = ::std::vec::Vec<::core::primitive::u8>; + pub type Decimals = ::core::primitive::u8; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetMetadata { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_clear_metadata`]."] + pub struct ForceClearMetadata { + #[codec(compact)] + pub id: force_clear_metadata::Id, + } + pub mod force_clear_metadata { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ForceClearMetadata { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_clear_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_asset_status`]."] + pub struct ForceAssetStatus { + #[codec(compact)] + pub id: force_asset_status::Id, + pub owner: force_asset_status::Owner, + pub issuer: force_asset_status::Issuer, + pub admin: force_asset_status::Admin, + pub freezer: force_asset_status::Freezer, + #[codec(compact)] + pub min_balance: force_asset_status::MinBalance, + pub is_sufficient: force_asset_status::IsSufficient, + pub is_frozen: force_asset_status::IsFrozen, + } + pub mod force_asset_status { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Issuer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Freezer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type MinBalance = ::core::primitive::u128; + pub type IsSufficient = ::core::primitive::bool; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for ForceAssetStatus { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_asset_status"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::approve_transfer`]."] + pub struct ApproveTransfer { + #[codec(compact)] + pub id: approve_transfer::Id, + pub delegate: approve_transfer::Delegate, + #[codec(compact)] + pub amount: approve_transfer::Amount, + } + pub mod approve_transfer { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for ApproveTransfer { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "approve_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_approval`]."] + pub struct CancelApproval { + #[codec(compact)] + pub id: cancel_approval::Id, + pub delegate: cancel_approval::Delegate, + } + pub mod cancel_approval { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for CancelApproval { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "cancel_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_cancel_approval`]."] + pub struct ForceCancelApproval { + #[codec(compact)] + pub id: force_cancel_approval::Id, + pub owner: force_cancel_approval::Owner, + pub delegate: force_cancel_approval::Delegate, + } + pub mod force_cancel_approval { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ForceCancelApproval { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "force_cancel_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer_approved`]."] + pub struct TransferApproved { + #[codec(compact)] + pub id: transfer_approved::Id, + pub owner: transfer_approved::Owner, + pub destination: transfer_approved::Destination, + #[codec(compact)] + pub amount: transfer_approved::Amount, + } + pub mod transfer_approved { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Destination = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for TransferApproved { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "transfer_approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::touch`]."] + pub struct Touch { + #[codec(compact)] + pub id: touch::Id, + } + pub mod touch { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Touch { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "touch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::refund`]."] + pub struct Refund { + #[codec(compact)] + pub id: refund::Id, + pub allow_burn: refund::AllowBurn, + } + pub mod refund { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type AllowBurn = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for Refund { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "refund"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_min_balance`]."] + pub struct SetMinBalance { + #[codec(compact)] + pub id: set_min_balance::Id, + pub min_balance: set_min_balance::MinBalance, + } + pub mod set_min_balance { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type MinBalance = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for SetMinBalance { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "set_min_balance"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::touch_other`]."] + pub struct TouchOther { + #[codec(compact)] + pub id: touch_other::Id, + pub who: touch_other::Who, + } + pub mod touch_other { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for TouchOther { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "touch_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::refund_other`]."] + pub struct RefundOther { + #[codec(compact)] + pub id: refund_other::Id, + pub who: refund_other::Who, + } + pub mod refund_other { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for RefundOther { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "refund_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::block`]."] + pub struct Block { + #[codec(compact)] + pub id: block::Id, + pub who: block::Who, + } + pub mod block { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Block { + const PALLET: &'static str = "Assets"; + const CALL: &'static str = "block"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::create`]."] + pub fn create( + &self, + id: types::create::Id, + admin: types::create::Admin, + min_balance: types::create::MinBalance, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "create", + types::Create { + id, + admin, + min_balance, + }, + [ + 50u8, 20u8, 212u8, 67u8, 78u8, 147u8, 18u8, 40u8, 79u8, 223u8, 74u8, + 160u8, 112u8, 204u8, 22u8, 86u8, 83u8, 240u8, 152u8, 184u8, 153u8, + 142u8, 199u8, 29u8, 45u8, 61u8, 47u8, 65u8, 140u8, 79u8, 214u8, 196u8, + ], + ) + } + #[doc = "See [`Pallet::force_create`]."] + pub fn force_create( + &self, + id: types::force_create::Id, + owner: types::force_create::Owner, + is_sufficient: types::force_create::IsSufficient, + min_balance: types::force_create::MinBalance, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "force_create", + types::ForceCreate { + id, + owner, + is_sufficient, + min_balance, + }, + [ + 6u8, 243u8, 38u8, 54u8, 55u8, 40u8, 84u8, 79u8, 95u8, 85u8, 20u8, + 170u8, 39u8, 163u8, 188u8, 168u8, 144u8, 102u8, 35u8, 240u8, 49u8, + 37u8, 51u8, 243u8, 136u8, 108u8, 145u8, 98u8, 205u8, 195u8, 88u8, + 183u8, + ], + ) + } + #[doc = "See [`Pallet::start_destroy`]."] + pub fn start_destroy( + &self, + id: types::start_destroy::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "start_destroy", + types::StartDestroy { id }, + [ + 125u8, 82u8, 151u8, 106u8, 25u8, 49u8, 68u8, 203u8, 247u8, 175u8, + 117u8, 230u8, 84u8, 98u8, 172u8, 73u8, 233u8, 218u8, 212u8, 198u8, + 69u8, 35u8, 15u8, 179u8, 161u8, 205u8, 190u8, 109u8, 198u8, 214u8, + 65u8, 164u8, + ], + ) + } + #[doc = "See [`Pallet::destroy_accounts`]."] + pub fn destroy_accounts( + &self, + id: types::destroy_accounts::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "destroy_accounts", + types::DestroyAccounts { id }, + [ + 236u8, 102u8, 233u8, 170u8, 179u8, 46u8, 42u8, 29u8, 200u8, 116u8, + 62u8, 114u8, 233u8, 59u8, 217u8, 215u8, 109u8, 232u8, 147u8, 95u8, + 255u8, 248u8, 119u8, 222u8, 216u8, 165u8, 138u8, 47u8, 28u8, 56u8, + 204u8, 93u8, + ], + ) + } + #[doc = "See [`Pallet::destroy_approvals`]."] + pub fn destroy_approvals( + &self, + id: types::destroy_approvals::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "destroy_approvals", + types::DestroyApprovals { id }, + [ + 34u8, 35u8, 15u8, 44u8, 239u8, 232u8, 88u8, 130u8, 130u8, 87u8, 171u8, + 255u8, 247u8, 179u8, 14u8, 35u8, 47u8, 223u8, 32u8, 232u8, 41u8, 105u8, + 207u8, 199u8, 90u8, 136u8, 144u8, 139u8, 252u8, 76u8, 177u8, 106u8, + ], + ) + } + #[doc = "See [`Pallet::finish_destroy`]."] + pub fn finish_destroy( + &self, + id: types::finish_destroy::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "finish_destroy", + types::FinishDestroy { id }, + [ + 132u8, 67u8, 78u8, 84u8, 240u8, 51u8, 176u8, 119u8, 48u8, 34u8, 153u8, + 37u8, 25u8, 171u8, 21u8, 164u8, 53u8, 214u8, 36u8, 149u8, 20u8, 240u8, + 123u8, 195u8, 170u8, 162u8, 118u8, 81u8, 176u8, 218u8, 114u8, 113u8, + ], + ) + } + #[doc = "See [`Pallet::mint`]."] + pub fn mint( + &self, + id: types::mint::Id, + beneficiary: types::mint::Beneficiary, + amount: types::mint::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "mint", + types::Mint { + id, + beneficiary, + amount, + }, + [ + 70u8, 254u8, 32u8, 174u8, 90u8, 67u8, 219u8, 176u8, 25u8, 146u8, 103u8, + 70u8, 45u8, 57u8, 148u8, 25u8, 17u8, 19u8, 8u8, 88u8, 37u8, 194u8, + 57u8, 148u8, 83u8, 73u8, 126u8, 105u8, 198u8, 92u8, 254u8, 57u8, + ], + ) + } + #[doc = "See [`Pallet::burn`]."] + pub fn burn( + &self, + id: types::burn::Id, + who: types::burn::Who, + amount: types::burn::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "burn", + types::Burn { id, who, amount }, + [ + 167u8, 63u8, 169u8, 13u8, 75u8, 38u8, 96u8, 62u8, 117u8, 87u8, 96u8, + 223u8, 148u8, 13u8, 0u8, 106u8, 160u8, 2u8, 137u8, 26u8, 218u8, 131u8, + 231u8, 109u8, 50u8, 61u8, 147u8, 112u8, 137u8, 176u8, 12u8, 35u8, + ], + ) + } + #[doc = "See [`Pallet::transfer`]."] + pub fn transfer( + &self, + id: types::transfer::Id, + target: types::transfer::Target, + amount: types::transfer::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "transfer", + types::Transfer { id, target, amount }, + [ + 17u8, 121u8, 138u8, 208u8, 193u8, 102u8, 33u8, 42u8, 154u8, 148u8, + 174u8, 40u8, 193u8, 125u8, 114u8, 210u8, 177u8, 118u8, 213u8, 117u8, + 91u8, 158u8, 183u8, 56u8, 177u8, 99u8, 171u8, 245u8, 44u8, 254u8, + 161u8, 170u8, + ], + ) + } + #[doc = "See [`Pallet::transfer_keep_alive`]."] + pub fn transfer_keep_alive( + &self, + id: types::transfer_keep_alive::Id, + target: types::transfer_keep_alive::Target, + amount: types::transfer_keep_alive::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "transfer_keep_alive", + types::TransferKeepAlive { id, target, amount }, + [ + 40u8, 113u8, 217u8, 62u8, 208u8, 178u8, 66u8, 127u8, 125u8, 233u8, + 180u8, 33u8, 149u8, 7u8, 148u8, 117u8, 119u8, 228u8, 228u8, 143u8, + 67u8, 63u8, 178u8, 65u8, 203u8, 165u8, 138u8, 247u8, 3u8, 244u8, 250u8, + 194u8, + ], + ) + } + #[doc = "See [`Pallet::force_transfer`]."] + pub fn force_transfer( + &self, + id: types::force_transfer::Id, + source: types::force_transfer::Source, + dest: types::force_transfer::Dest, + amount: types::force_transfer::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "force_transfer", + types::ForceTransfer { + id, + source, + dest, + amount, + }, + [ + 123u8, 230u8, 150u8, 245u8, 50u8, 87u8, 121u8, 127u8, 51u8, 226u8, + 27u8, 240u8, 40u8, 146u8, 255u8, 237u8, 59u8, 197u8, 89u8, 97u8, 9u8, + 166u8, 95u8, 61u8, 12u8, 52u8, 89u8, 120u8, 183u8, 143u8, 142u8, 138u8, + ], + ) + } + #[doc = "See [`Pallet::freeze`]."] + pub fn freeze( + &self, + id: types::freeze::Id, + who: types::freeze::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "freeze", + types::Freeze { id, who }, + [ + 241u8, 249u8, 194u8, 15u8, 80u8, 208u8, 159u8, 130u8, 101u8, 207u8, + 176u8, 118u8, 11u8, 113u8, 152u8, 80u8, 8u8, 96u8, 91u8, 236u8, 67u8, + 203u8, 12u8, 57u8, 195u8, 233u8, 49u8, 88u8, 64u8, 238u8, 172u8, 184u8, + ], + ) + } + #[doc = "See [`Pallet::thaw`]."] + pub fn thaw( + &self, + id: types::thaw::Id, + who: types::thaw::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "thaw", + types::Thaw { id, who }, + [ + 39u8, 232u8, 118u8, 210u8, 41u8, 119u8, 32u8, 98u8, 223u8, 112u8, 56u8, + 82u8, 19u8, 62u8, 33u8, 41u8, 181u8, 87u8, 6u8, 200u8, 110u8, 187u8, + 6u8, 164u8, 158u8, 193u8, 165u8, 174u8, 114u8, 189u8, 94u8, 53u8, + ], + ) + } + #[doc = "See [`Pallet::freeze_asset`]."] + pub fn freeze_asset( + &self, + id: types::freeze_asset::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "freeze_asset", + types::FreezeAsset { id }, + [ + 75u8, 237u8, 183u8, 112u8, 112u8, 123u8, 250u8, 203u8, 169u8, 51u8, + 218u8, 35u8, 159u8, 23u8, 21u8, 10u8, 167u8, 84u8, 161u8, 212u8, 124u8, + 236u8, 88u8, 175u8, 48u8, 195u8, 33u8, 145u8, 141u8, 156u8, 31u8, + 250u8, + ], + ) + } + #[doc = "See [`Pallet::thaw_asset`]."] + pub fn thaw_asset( + &self, + id: types::thaw_asset::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "thaw_asset", + types::ThawAsset { id }, + [ + 151u8, 6u8, 170u8, 114u8, 55u8, 8u8, 5u8, 194u8, 251u8, 78u8, 232u8, + 181u8, 157u8, 62u8, 16u8, 39u8, 79u8, 119u8, 205u8, 198u8, 199u8, 26u8, + 92u8, 162u8, 169u8, 173u8, 93u8, 51u8, 7u8, 79u8, 198u8, 77u8, + ], + ) + } + #[doc = "See [`Pallet::transfer_ownership`]."] + pub fn transfer_ownership( + &self, + id: types::transfer_ownership::Id, + owner: types::transfer_ownership::Owner, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "transfer_ownership", + types::TransferOwnership { id, owner }, + [ + 143u8, 40u8, 170u8, 77u8, 122u8, 29u8, 153u8, 97u8, 19u8, 119u8, 183u8, + 43u8, 70u8, 1u8, 175u8, 201u8, 229u8, 157u8, 244u8, 78u8, 6u8, 70u8, + 102u8, 120u8, 209u8, 154u8, 240u8, 1u8, 138u8, 25u8, 11u8, 247u8, + ], + ) + } + #[doc = "See [`Pallet::set_team`]."] + pub fn set_team( + &self, + id: types::set_team::Id, + issuer: types::set_team::Issuer, + admin: types::set_team::Admin, + freezer: types::set_team::Freezer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "set_team", + types::SetTeam { + id, + issuer, + admin, + freezer, + }, + [ + 15u8, 171u8, 200u8, 62u8, 164u8, 159u8, 145u8, 133u8, 12u8, 99u8, 81u8, + 43u8, 162u8, 163u8, 25u8, 126u8, 104u8, 141u8, 202u8, 91u8, 24u8, + 237u8, 172u8, 173u8, 18u8, 253u8, 114u8, 32u8, 178u8, 172u8, 216u8, + 135u8, + ], + ) + } + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + id: types::set_metadata::Id, + name: types::set_metadata::Name, + symbol: types::set_metadata::Symbol, + decimals: types::set_metadata::Decimals, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "set_metadata", + types::SetMetadata { + id, + name, + symbol, + decimals, + }, + [ + 215u8, 66u8, 15u8, 17u8, 88u8, 174u8, 77u8, 75u8, 229u8, 155u8, 160u8, + 34u8, 108u8, 194u8, 88u8, 238u8, 131u8, 97u8, 234u8, 102u8, 71u8, 56u8, + 70u8, 248u8, 211u8, 85u8, 72u8, 92u8, 71u8, 222u8, 190u8, 91u8, + ], + ) + } + #[doc = "See [`Pallet::clear_metadata`]."] + pub fn clear_metadata( + &self, + id: types::clear_metadata::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "clear_metadata", + types::ClearMetadata { id }, + [ + 68u8, 172u8, 6u8, 158u8, 237u8, 254u8, 22u8, 4u8, 254u8, 157u8, 179u8, + 168u8, 105u8, 114u8, 56u8, 166u8, 213u8, 38u8, 188u8, 195u8, 99u8, + 43u8, 142u8, 220u8, 94u8, 248u8, 51u8, 226u8, 233u8, 114u8, 86u8, 93u8, + ], + ) + } + #[doc = "See [`Pallet::force_set_metadata`]."] + pub fn force_set_metadata( + &self, + id: types::force_set_metadata::Id, + name: types::force_set_metadata::Name, + symbol: types::force_set_metadata::Symbol, + decimals: types::force_set_metadata::Decimals, + is_frozen: types::force_set_metadata::IsFrozen, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "force_set_metadata", + types::ForceSetMetadata { + id, + name, + symbol, + decimals, + is_frozen, + }, + [ + 76u8, 90u8, 182u8, 13u8, 133u8, 248u8, 94u8, 136u8, 169u8, 114u8, + 151u8, 20u8, 106u8, 89u8, 78u8, 228u8, 22u8, 29u8, 68u8, 8u8, 54u8, + 47u8, 1u8, 186u8, 45u8, 167u8, 14u8, 112u8, 34u8, 43u8, 91u8, 140u8, + ], + ) + } + #[doc = "See [`Pallet::force_clear_metadata`]."] + pub fn force_clear_metadata( + &self, + id: types::force_clear_metadata::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "force_clear_metadata", + types::ForceClearMetadata { id }, + [ + 2u8, 224u8, 84u8, 48u8, 130u8, 132u8, 79u8, 38u8, 217u8, 17u8, 165u8, + 139u8, 89u8, 53u8, 116u8, 184u8, 32u8, 91u8, 122u8, 39u8, 85u8, 40u8, + 213u8, 216u8, 135u8, 171u8, 50u8, 69u8, 202u8, 28u8, 166u8, 147u8, + ], + ) + } + #[doc = "See [`Pallet::force_asset_status`]."] + pub fn force_asset_status( + &self, + id: types::force_asset_status::Id, + owner: types::force_asset_status::Owner, + issuer: types::force_asset_status::Issuer, + admin: types::force_asset_status::Admin, + freezer: types::force_asset_status::Freezer, + min_balance: types::force_asset_status::MinBalance, + is_sufficient: types::force_asset_status::IsSufficient, + is_frozen: types::force_asset_status::IsFrozen, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "force_asset_status", + types::ForceAssetStatus { + id, + owner, + issuer, + admin, + freezer, + min_balance, + is_sufficient, + is_frozen, + }, + [ + 139u8, 192u8, 217u8, 175u8, 205u8, 173u8, 255u8, 77u8, 134u8, 166u8, + 13u8, 253u8, 196u8, 95u8, 226u8, 24u8, 125u8, 113u8, 43u8, 80u8, 128u8, + 52u8, 37u8, 181u8, 111u8, 23u8, 116u8, 104u8, 132u8, 175u8, 236u8, 8u8, + ], + ) + } + #[doc = "See [`Pallet::approve_transfer`]."] + pub fn approve_transfer( + &self, + id: types::approve_transfer::Id, + delegate: types::approve_transfer::Delegate, + amount: types::approve_transfer::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "approve_transfer", + types::ApproveTransfer { + id, + delegate, + amount, + }, + [ + 58u8, 214u8, 19u8, 180u8, 17u8, 231u8, 68u8, 212u8, 23u8, 225u8, 165u8, + 207u8, 145u8, 229u8, 234u8, 82u8, 43u8, 160u8, 204u8, 135u8, 180u8, + 184u8, 50u8, 26u8, 33u8, 183u8, 237u8, 49u8, 137u8, 248u8, 33u8, 27u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_approval`]."] + pub fn cancel_approval( + &self, + id: types::cancel_approval::Id, + delegate: types::cancel_approval::Delegate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "cancel_approval", + types::CancelApproval { id, delegate }, + [ + 50u8, 115u8, 122u8, 220u8, 102u8, 246u8, 247u8, 191u8, 90u8, 82u8, + 16u8, 18u8, 6u8, 61u8, 135u8, 141u8, 249u8, 36u8, 248u8, 144u8, 139u8, + 42u8, 75u8, 134u8, 125u8, 125u8, 4u8, 75u8, 111u8, 47u8, 141u8, 159u8, + ], + ) + } + #[doc = "See [`Pallet::force_cancel_approval`]."] + pub fn force_cancel_approval( + &self, + id: types::force_cancel_approval::Id, + owner: types::force_cancel_approval::Owner, + delegate: types::force_cancel_approval::Delegate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "force_cancel_approval", + types::ForceCancelApproval { + id, + owner, + delegate, + }, + [ + 226u8, 41u8, 94u8, 88u8, 137u8, 106u8, 9u8, 54u8, 94u8, 169u8, 154u8, + 252u8, 41u8, 18u8, 106u8, 62u8, 225u8, 226u8, 86u8, 33u8, 189u8, 253u8, + 246u8, 28u8, 17u8, 71u8, 183u8, 143u8, 139u8, 192u8, 104u8, 8u8, + ], + ) + } + #[doc = "See [`Pallet::transfer_approved`]."] + pub fn transfer_approved( + &self, + id: types::transfer_approved::Id, + owner: types::transfer_approved::Owner, + destination: types::transfer_approved::Destination, + amount: types::transfer_approved::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "transfer_approved", + types::TransferApproved { + id, + owner, + destination, + amount, + }, + [ + 144u8, 143u8, 154u8, 130u8, 236u8, 227u8, 202u8, 54u8, 139u8, 128u8, + 166u8, 94u8, 61u8, 8u8, 165u8, 146u8, 57u8, 245u8, 194u8, 176u8, 50u8, + 69u8, 36u8, 206u8, 166u8, 103u8, 254u8, 99u8, 75u8, 233u8, 117u8, + 156u8, + ], + ) + } + #[doc = "See [`Pallet::touch`]."] + pub fn touch(&self, id: types::touch::Id) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "touch", + types::Touch { id }, + [ + 50u8, 185u8, 46u8, 134u8, 136u8, 31u8, 191u8, 34u8, 215u8, 150u8, 73u8, + 103u8, 140u8, 36u8, 95u8, 156u8, 201u8, 152u8, 32u8, 165u8, 47u8, 86u8, + 163u8, 255u8, 8u8, 251u8, 176u8, 138u8, 165u8, 48u8, 12u8, 27u8, + ], + ) + } + #[doc = "See [`Pallet::refund`]."] + pub fn refund( + &self, + id: types::refund::Id, + allow_burn: types::refund::AllowBurn, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "refund", + types::Refund { id, allow_burn }, + [ + 218u8, 207u8, 8u8, 41u8, 154u8, 250u8, 117u8, 174u8, 143u8, 133u8, + 34u8, 113u8, 171u8, 18u8, 177u8, 227u8, 146u8, 92u8, 12u8, 226u8, + 101u8, 230u8, 246u8, 162u8, 32u8, 73u8, 138u8, 158u8, 95u8, 226u8, + 75u8, 95u8, + ], + ) + } + #[doc = "See [`Pallet::set_min_balance`]."] + pub fn set_min_balance( + &self, + id: types::set_min_balance::Id, + min_balance: types::set_min_balance::MinBalance, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "set_min_balance", + types::SetMinBalance { id, min_balance }, + [ + 141u8, 241u8, 137u8, 50u8, 232u8, 122u8, 252u8, 104u8, 185u8, 170u8, + 246u8, 0u8, 20u8, 128u8, 136u8, 155u8, 62u8, 243u8, 4u8, 221u8, 42u8, + 225u8, 16u8, 245u8, 58u8, 127u8, 84u8, 193u8, 175u8, 165u8, 35u8, 49u8, + ], + ) + } + #[doc = "See [`Pallet::touch_other`]."] + pub fn touch_other( + &self, + id: types::touch_other::Id, + who: types::touch_other::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "touch_other", + types::TouchOther { id, who }, + [ + 156u8, 42u8, 226u8, 150u8, 123u8, 47u8, 218u8, 73u8, 214u8, 62u8, + 222u8, 90u8, 216u8, 11u8, 238u8, 14u8, 17u8, 175u8, 152u8, 147u8, + 233u8, 255u8, 46u8, 51u8, 20u8, 86u8, 181u8, 65u8, 127u8, 45u8, 7u8, + 82u8, + ], + ) + } + #[doc = "See [`Pallet::refund_other`]."] + pub fn refund_other( + &self, + id: types::refund_other::Id, + who: types::refund_other::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "refund_other", + types::RefundOther { id, who }, + [ + 75u8, 82u8, 239u8, 58u8, 200u8, 72u8, 150u8, 30u8, 234u8, 9u8, 40u8, + 189u8, 153u8, 172u8, 120u8, 98u8, 191u8, 252u8, 234u8, 73u8, 112u8, + 252u8, 253u8, 64u8, 24u8, 0u8, 245u8, 11u8, 200u8, 219u8, 143u8, 195u8, + ], + ) + } + #[doc = "See [`Pallet::block`]."] + pub fn block( + &self, + id: types::block::Id, + who: types::block::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Assets", + "block", + types::Block { id, who }, + [ + 50u8, 143u8, 86u8, 73u8, 118u8, 162u8, 216u8, 153u8, 78u8, 233u8, + 158u8, 125u8, 11u8, 24u8, 162u8, 109u8, 33u8, 28u8, 30u8, 109u8, 80u8, + 79u8, 8u8, 68u8, 57u8, 111u8, 62u8, 239u8, 71u8, 82u8, 221u8, 8u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_assets::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset class was created."] + pub struct Created { + pub asset_id: created::AssetId, + pub creator: created::Creator, + pub owner: created::Owner, + } + pub mod created { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Creator = ::subxt::utils::AccountId32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Created { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Created"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some assets were issued."] + pub struct Issued { + pub asset_id: issued::AssetId, + pub owner: issued::Owner, + pub amount: issued::Amount, + } + pub mod issued { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Issued { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Issued"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some assets were transferred."] + pub struct Transferred { + pub asset_id: transferred::AssetId, + pub from: transferred::From, + pub to: transferred::To, + pub amount: transferred::Amount, + } + pub mod transferred { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Transferred { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Transferred"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some assets were destroyed."] + pub struct Burned { + pub asset_id: burned::AssetId, + pub owner: burned::Owner, + pub balance: burned::Balance, + } + pub mod burned { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Balance = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Burned { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Burned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The management team changed."] + pub struct TeamChanged { + pub asset_id: team_changed::AssetId, + pub issuer: team_changed::Issuer, + pub admin: team_changed::Admin, + pub freezer: team_changed::Freezer, + } + pub mod team_changed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Issuer = ::subxt::utils::AccountId32; + pub type Admin = ::subxt::utils::AccountId32; + pub type Freezer = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for TeamChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "TeamChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The owner changed."] + pub struct OwnerChanged { + pub asset_id: owner_changed::AssetId, + pub owner: owner_changed::Owner, + } + pub mod owner_changed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for OwnerChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "OwnerChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was frozen."] + pub struct Frozen { + pub asset_id: frozen::AssetId, + pub who: frozen::Who, + } + pub mod frozen { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Frozen { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Frozen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was thawed."] + pub struct Thawed { + pub asset_id: thawed::AssetId, + pub who: thawed::Who, + } + pub mod thawed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Thawed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Thawed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset `asset_id` was frozen."] + pub struct AssetFrozen { + pub asset_id: asset_frozen::AssetId, + } + pub mod asset_frozen { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AssetFrozen { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetFrozen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset `asset_id` was thawed."] + pub struct AssetThawed { + pub asset_id: asset_thawed::AssetId, + } + pub mod asset_thawed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AssetThawed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetThawed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Accounts were destroyed for given asset."] + pub struct AccountsDestroyed { + pub asset_id: accounts_destroyed::AssetId, + pub accounts_destroyed: accounts_destroyed::AccountsDestroyed, + pub accounts_remaining: accounts_destroyed::AccountsRemaining, + } + pub mod accounts_destroyed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type AccountsDestroyed = ::core::primitive::u32; + pub type AccountsRemaining = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AccountsDestroyed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AccountsDestroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Approvals were destroyed for given asset."] + pub struct ApprovalsDestroyed { + pub asset_id: approvals_destroyed::AssetId, + pub approvals_destroyed: approvals_destroyed::ApprovalsDestroyed, + pub approvals_remaining: approvals_destroyed::ApprovalsRemaining, + } + pub mod approvals_destroyed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type ApprovalsDestroyed = ::core::primitive::u32; + pub type ApprovalsRemaining = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ApprovalsDestroyed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ApprovalsDestroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An asset class is in the process of being destroyed."] + pub struct DestructionStarted { + pub asset_id: destruction_started::AssetId, + } + pub mod destruction_started { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for DestructionStarted { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "DestructionStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An asset class was destroyed."] + pub struct Destroyed { + pub asset_id: destroyed::AssetId, + } + pub mod destroyed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Destroyed { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Destroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset class was force-created."] + pub struct ForceCreated { + pub asset_id: force_created::AssetId, + pub owner: force_created::Owner, + } + pub mod force_created { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ForceCreated { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ForceCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New metadata has been set for an asset."] + pub struct MetadataSet { + pub asset_id: metadata_set::AssetId, + pub name: metadata_set::Name, + pub symbol: metadata_set::Symbol, + pub decimals: metadata_set::Decimals, + pub is_frozen: metadata_set::IsFrozen, + } + pub mod metadata_set { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Name = ::std::vec::Vec<::core::primitive::u8>; + pub type Symbol = ::std::vec::Vec<::core::primitive::u8>; + pub type Decimals = ::core::primitive::u8; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been cleared for an asset."] + pub struct MetadataCleared { + pub asset_id: metadata_cleared::AssetId, + } + pub mod metadata_cleared { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "MetadataCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "(Additional) funds have been approved for transfer to a destination account."] + pub struct ApprovedTransfer { + pub asset_id: approved_transfer::AssetId, + pub source: approved_transfer::Source, + pub delegate: approved_transfer::Delegate, + pub amount: approved_transfer::Amount, + } + pub mod approved_transfer { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Source = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for ApprovedTransfer { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ApprovedTransfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An approval for account `delegate` was cancelled by `owner`."] + pub struct ApprovalCancelled { + pub asset_id: approval_cancelled::AssetId, + pub owner: approval_cancelled::Owner, + pub delegate: approval_cancelled::Delegate, + } + pub mod approval_cancelled { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ApprovalCancelled { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "ApprovalCancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] + #[doc = "the approved `delegate`."] + pub struct TransferredApproved { + pub asset_id: transferred_approved::AssetId, + pub owner: transferred_approved::Owner, + pub delegate: transferred_approved::Delegate, + pub destination: transferred_approved::Destination, + pub amount: transferred_approved::Amount, + } + pub mod transferred_approved { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + pub type Destination = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for TransferredApproved { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "TransferredApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An asset has had its attributes changed by the `Force` origin."] + pub struct AssetStatusChanged { + pub asset_id: asset_status_changed::AssetId, + } + pub mod asset_status_changed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AssetStatusChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetStatusChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The min_balance of an asset has been updated by the asset owner."] + pub struct AssetMinBalanceChanged { + pub asset_id: asset_min_balance_changed::AssetId, + pub new_min_balance: asset_min_balance_changed::NewMinBalance, + } + pub mod asset_min_balance_changed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type NewMinBalance = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for AssetMinBalanceChanged { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "AssetMinBalanceChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was created with a deposit from `depositor`."] + pub struct Touched { + pub asset_id: touched::AssetId, + pub who: touched::Who, + pub depositor: touched::Depositor, + } + pub mod touched { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Depositor = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Touched { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Touched"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was blocked."] + pub struct Blocked { + pub asset_id: blocked::AssetId, + pub who: blocked::Who, + } + pub mod blocked { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Blocked { + const PALLET: &'static str = "Assets"; + const EVENT: &'static str = "Blocked"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod asset { + use super::runtime_types; + pub type Asset = runtime_types::pallet_assets::types::AssetDetails< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod account { + use super::runtime_types; + pub type Account = runtime_types::pallet_assets::types::AssetAccount< + ::core::primitive::u128, + ::core::primitive::u128, + (), + ::subxt::utils::AccountId32, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod approvals { + use super::runtime_types; + pub type Approvals = runtime_types::pallet_assets::types::Approval< + ::core::primitive::u128, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + pub type Param2 = ::subxt::utils::AccountId32; + } + pub mod metadata { + use super::runtime_types; + pub type Metadata = runtime_types::pallet_assets::types::AssetMetadata< + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >; + pub type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of an asset."] + pub fn asset_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::asset::Asset, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Asset", + vec![], + [ + 159u8, 234u8, 177u8, 31u8, 58u8, 51u8, 173u8, 184u8, 250u8, 169u8, + 246u8, 122u8, 54u8, 19u8, 232u8, 60u8, 0u8, 165u8, 12u8, 101u8, 93u8, + 169u8, 23u8, 34u8, 154u8, 44u8, 134u8, 128u8, 97u8, 71u8, 167u8, 224u8, + ], + ) + } + #[doc = " Details of an asset."] + pub fn asset( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::asset::Asset, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Asset", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 159u8, 234u8, 177u8, 31u8, 58u8, 51u8, 173u8, 184u8, 250u8, 169u8, + 246u8, 122u8, 54u8, 19u8, 232u8, 60u8, 0u8, 165u8, 12u8, 101u8, 93u8, + 169u8, 23u8, 34u8, 154u8, 44u8, 134u8, 128u8, 97u8, 71u8, 167u8, 224u8, + ], + ) + } + #[doc = " The holdings of a specific account for a specific asset."] + pub fn account_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Account", + vec![], + [ + 188u8, 242u8, 133u8, 64u8, 0u8, 11u8, 57u8, 146u8, 60u8, 137u8, 35u8, + 23u8, 183u8, 200u8, 242u8, 8u8, 94u8, 158u8, 218u8, 13u8, 104u8, 215u8, + 87u8, 86u8, 69u8, 200u8, 11u8, 51u8, 6u8, 65u8, 216u8, 102u8, + ], + ) + } + #[doc = " The holdings of a specific account for a specific asset."] + pub fn account_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Account", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 188u8, 242u8, 133u8, 64u8, 0u8, 11u8, 57u8, 146u8, 60u8, 137u8, 35u8, + 23u8, 183u8, 200u8, 242u8, 8u8, 94u8, 158u8, 218u8, 13u8, 104u8, 215u8, + 87u8, 86u8, 69u8, 200u8, 11u8, 51u8, 6u8, 65u8, 216u8, 102u8, + ], + ) + } + #[doc = " The holdings of a specific account for a specific asset."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Account", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 188u8, 242u8, 133u8, 64u8, 0u8, 11u8, 57u8, 146u8, 60u8, 137u8, 35u8, + 23u8, 183u8, 200u8, 242u8, 8u8, 94u8, 158u8, 218u8, 13u8, 104u8, 215u8, + 87u8, 86u8, 69u8, 200u8, 11u8, 51u8, 6u8, 65u8, 216u8, 102u8, + ], + ) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::approvals::Approvals, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Approvals", + vec![], + [ + 122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8, + 68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8, + 218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8, + ], + ) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::approvals::Approvals, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Approvals", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8, + 68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8, + 218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8, + ], + ) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals_iter2( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::approvals::Approvals, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Approvals", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8, + 68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8, + 218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8, + ], + ) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + _2: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::approvals::Approvals, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Approvals", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), + ], + [ + 122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8, + 68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8, + 218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8, + ], + ) + } + #[doc = " Metadata of an asset."] + pub fn metadata_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata::Metadata, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Metadata", + vec![], + [ + 129u8, 202u8, 244u8, 77u8, 55u8, 81u8, 86u8, 106u8, 20u8, 153u8, 209u8, + 69u8, 199u8, 107u8, 111u8, 49u8, 88u8, 157u8, 84u8, 41u8, 198u8, 190u8, + 234u8, 218u8, 68u8, 207u8, 87u8, 217u8, 73u8, 66u8, 211u8, 163u8, + ], + ) + } + #[doc = " Metadata of an asset."] + pub fn metadata( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata::Metadata, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Assets", + "Metadata", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 129u8, 202u8, 244u8, 77u8, 55u8, 81u8, 86u8, 106u8, 20u8, 153u8, 209u8, + 69u8, 199u8, 107u8, 111u8, 49u8, 88u8, 157u8, 84u8, 41u8, 198u8, 190u8, + 234u8, 218u8, 68u8, 207u8, 87u8, 217u8, 73u8, 66u8, 211u8, 163u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call."] + #[doc = ""] + #[doc = " Must be configured to result in a weight that makes each call fit in a block."] + pub fn remove_items_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Assets", + "RemoveItemsLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved for an asset."] + pub fn asset_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Assets", + "AssetDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of funds that must be reserved for a non-provider asset account to be"] + #[doc = " maintained."] + pub fn asset_account_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Assets", + "AssetAccountDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved when adding metadata to your asset."] + pub fn metadata_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Assets", + "MetadataDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The additional funds that must be reserved for the number of bytes you store in your"] + #[doc = " metadata."] + pub fn metadata_deposit_per_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Assets", + "MetadataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of funds that must be reserved when creating a new approval."] + pub fn approval_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Assets", + "ApprovalDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum length of a name or symbol stored on-chain."] + pub fn string_limit(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Assets", + "StringLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod pool_assets { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_assets::pallet::Error2; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_assets::pallet::Call2; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::create`]."] + pub struct Create { + #[codec(compact)] + pub id: create::Id, + pub admin: create::Admin, + pub min_balance: create::MinBalance, + } + pub mod create { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type MinBalance = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_create`]."] + pub struct ForceCreate { + #[codec(compact)] + pub id: force_create::Id, + pub owner: force_create::Owner, + pub is_sufficient: force_create::IsSufficient, + #[codec(compact)] + pub min_balance: force_create::MinBalance, + } + pub mod force_create { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type IsSufficient = ::core::primitive::bool; + pub type MinBalance = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for ForceCreate { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "force_create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::start_destroy`]."] + pub struct StartDestroy { + #[codec(compact)] + pub id: start_destroy::Id, + } + pub mod start_destroy { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for StartDestroy { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "start_destroy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::destroy_accounts`]."] + pub struct DestroyAccounts { + #[codec(compact)] + pub id: destroy_accounts::Id, + } + pub mod destroy_accounts { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for DestroyAccounts { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "destroy_accounts"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::destroy_approvals`]."] + pub struct DestroyApprovals { + #[codec(compact)] + pub id: destroy_approvals::Id, + } + pub mod destroy_approvals { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for DestroyApprovals { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "destroy_approvals"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::finish_destroy`]."] + pub struct FinishDestroy { + #[codec(compact)] + pub id: finish_destroy::Id, + } + pub mod finish_destroy { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for FinishDestroy { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "finish_destroy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::mint`]."] + pub struct Mint { + #[codec(compact)] + pub id: mint::Id, + pub beneficiary: mint::Beneficiary, + #[codec(compact)] + pub amount: mint::Amount, + } + pub mod mint { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Mint { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "mint"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::burn`]."] + pub struct Burn { + #[codec(compact)] + pub id: burn::Id, + pub who: burn::Who, + #[codec(compact)] + pub amount: burn::Amount, + } + pub mod burn { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Burn { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "burn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer`]."] + pub struct Transfer { + #[codec(compact)] + pub id: transfer::Id, + pub target: transfer::Target, + #[codec(compact)] + pub amount: transfer::Amount, + } + pub mod transfer { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer_keep_alive`]."] + pub struct TransferKeepAlive { + #[codec(compact)] + pub id: transfer_keep_alive::Id, + pub target: transfer_keep_alive::Target, + #[codec(compact)] + pub amount: transfer_keep_alive::Amount, + } + pub mod transfer_keep_alive { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "transfer_keep_alive"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_transfer`]."] + pub struct ForceTransfer { + #[codec(compact)] + pub id: force_transfer::Id, + pub source: force_transfer::Source, + pub dest: force_transfer::Dest, + #[codec(compact)] + pub amount: force_transfer::Amount, + } + pub mod force_transfer { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Source = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::freeze`]."] + pub struct Freeze { + #[codec(compact)] + pub id: freeze::Id, + pub who: freeze::Who, + } + pub mod freeze { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Freeze { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "freeze"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::thaw`]."] + pub struct Thaw { + #[codec(compact)] + pub id: thaw::Id, + pub who: thaw::Who, + } + pub mod thaw { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Thaw { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "thaw"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::freeze_asset`]."] + pub struct FreezeAsset { + #[codec(compact)] + pub id: freeze_asset::Id, + } + pub mod freeze_asset { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for FreezeAsset { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "freeze_asset"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::thaw_asset`]."] + pub struct ThawAsset { + #[codec(compact)] + pub id: thaw_asset::Id, + } + pub mod thaw_asset { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ThawAsset { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "thaw_asset"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer_ownership`]."] + pub struct TransferOwnership { + #[codec(compact)] + pub id: transfer_ownership::Id, + pub owner: transfer_ownership::Owner, + } + pub mod transfer_ownership { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for TransferOwnership { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "transfer_ownership"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_team`]."] + pub struct SetTeam { + #[codec(compact)] + pub id: set_team::Id, + pub issuer: set_team::Issuer, + pub admin: set_team::Admin, + pub freezer: set_team::Freezer, + } + pub mod set_team { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Issuer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Freezer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetTeam { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "set_team"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + #[codec(compact)] + pub id: set_metadata::Id, + pub name: set_metadata::Name, + pub symbol: set_metadata::Symbol, + pub decimals: set_metadata::Decimals, + } + pub mod set_metadata { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Name = ::std::vec::Vec<::core::primitive::u8>; + pub type Symbol = ::std::vec::Vec<::core::primitive::u8>; + pub type Decimals = ::core::primitive::u8; + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_metadata`]."] + pub struct ClearMetadata { + #[codec(compact)] + pub id: clear_metadata::Id, + } + pub mod clear_metadata { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClearMetadata { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "clear_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_set_metadata`]."] + pub struct ForceSetMetadata { + #[codec(compact)] + pub id: force_set_metadata::Id, + pub name: force_set_metadata::Name, + pub symbol: force_set_metadata::Symbol, + pub decimals: force_set_metadata::Decimals, + pub is_frozen: force_set_metadata::IsFrozen, + } + pub mod force_set_metadata { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Name = ::std::vec::Vec<::core::primitive::u8>; + pub type Symbol = ::std::vec::Vec<::core::primitive::u8>; + pub type Decimals = ::core::primitive::u8; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetMetadata { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "force_set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_clear_metadata`]."] + pub struct ForceClearMetadata { + #[codec(compact)] + pub id: force_clear_metadata::Id, + } + pub mod force_clear_metadata { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ForceClearMetadata { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "force_clear_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_asset_status`]."] + pub struct ForceAssetStatus { + #[codec(compact)] + pub id: force_asset_status::Id, + pub owner: force_asset_status::Owner, + pub issuer: force_asset_status::Issuer, + pub admin: force_asset_status::Admin, + pub freezer: force_asset_status::Freezer, + #[codec(compact)] + pub min_balance: force_asset_status::MinBalance, + pub is_sufficient: force_asset_status::IsSufficient, + pub is_frozen: force_asset_status::IsFrozen, + } + pub mod force_asset_status { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Issuer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Freezer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type MinBalance = ::core::primitive::u128; + pub type IsSufficient = ::core::primitive::bool; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for ForceAssetStatus { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "force_asset_status"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::approve_transfer`]."] + pub struct ApproveTransfer { + #[codec(compact)] + pub id: approve_transfer::Id, + pub delegate: approve_transfer::Delegate, + #[codec(compact)] + pub amount: approve_transfer::Amount, + } + pub mod approve_transfer { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for ApproveTransfer { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "approve_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_approval`]."] + pub struct CancelApproval { + #[codec(compact)] + pub id: cancel_approval::Id, + pub delegate: cancel_approval::Delegate, + } + pub mod cancel_approval { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for CancelApproval { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "cancel_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_cancel_approval`]."] + pub struct ForceCancelApproval { + #[codec(compact)] + pub id: force_cancel_approval::Id, + pub owner: force_cancel_approval::Owner, + pub delegate: force_cancel_approval::Delegate, + } + pub mod force_cancel_approval { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ForceCancelApproval { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "force_cancel_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer_approved`]."] + pub struct TransferApproved { + #[codec(compact)] + pub id: transfer_approved::Id, + pub owner: transfer_approved::Owner, + pub destination: transfer_approved::Destination, + #[codec(compact)] + pub amount: transfer_approved::Amount, + } + pub mod transfer_approved { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Destination = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for TransferApproved { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "transfer_approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::touch`]."] + pub struct Touch { + #[codec(compact)] + pub id: touch::Id, + } + pub mod touch { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Touch { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "touch"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::refund`]."] + pub struct Refund { + #[codec(compact)] + pub id: refund::Id, + pub allow_burn: refund::AllowBurn, + } + pub mod refund { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type AllowBurn = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for Refund { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "refund"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_min_balance`]."] + pub struct SetMinBalance { + #[codec(compact)] + pub id: set_min_balance::Id, + pub min_balance: set_min_balance::MinBalance, + } + pub mod set_min_balance { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type MinBalance = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for SetMinBalance { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "set_min_balance"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::touch_other`]."] + pub struct TouchOther { + #[codec(compact)] + pub id: touch_other::Id, + pub who: touch_other::Who, + } + pub mod touch_other { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for TouchOther { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "touch_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::refund_other`]."] + pub struct RefundOther { + #[codec(compact)] + pub id: refund_other::Id, + pub who: refund_other::Who, + } + pub mod refund_other { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for RefundOther { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "refund_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::block`]."] + pub struct Block { + #[codec(compact)] + pub id: block::Id, + pub who: block::Who, + } + pub mod block { + use super::runtime_types; + pub type Id = ::core::primitive::u32; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Block { + const PALLET: &'static str = "PoolAssets"; + const CALL: &'static str = "block"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::create`]."] + pub fn create( + &self, + id: types::create::Id, + admin: types::create::Admin, + min_balance: types::create::MinBalance, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "create", + types::Create { + id, + admin, + min_balance, + }, + [ + 50u8, 20u8, 212u8, 67u8, 78u8, 147u8, 18u8, 40u8, 79u8, 223u8, 74u8, + 160u8, 112u8, 204u8, 22u8, 86u8, 83u8, 240u8, 152u8, 184u8, 153u8, + 142u8, 199u8, 29u8, 45u8, 61u8, 47u8, 65u8, 140u8, 79u8, 214u8, 196u8, + ], + ) + } + #[doc = "See [`Pallet::force_create`]."] + pub fn force_create( + &self, + id: types::force_create::Id, + owner: types::force_create::Owner, + is_sufficient: types::force_create::IsSufficient, + min_balance: types::force_create::MinBalance, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "force_create", + types::ForceCreate { + id, + owner, + is_sufficient, + min_balance, + }, + [ + 6u8, 243u8, 38u8, 54u8, 55u8, 40u8, 84u8, 79u8, 95u8, 85u8, 20u8, + 170u8, 39u8, 163u8, 188u8, 168u8, 144u8, 102u8, 35u8, 240u8, 49u8, + 37u8, 51u8, 243u8, 136u8, 108u8, 145u8, 98u8, 205u8, 195u8, 88u8, + 183u8, + ], + ) + } + #[doc = "See [`Pallet::start_destroy`]."] + pub fn start_destroy( + &self, + id: types::start_destroy::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "start_destroy", + types::StartDestroy { id }, + [ + 125u8, 82u8, 151u8, 106u8, 25u8, 49u8, 68u8, 203u8, 247u8, 175u8, + 117u8, 230u8, 84u8, 98u8, 172u8, 73u8, 233u8, 218u8, 212u8, 198u8, + 69u8, 35u8, 15u8, 179u8, 161u8, 205u8, 190u8, 109u8, 198u8, 214u8, + 65u8, 164u8, + ], + ) + } + #[doc = "See [`Pallet::destroy_accounts`]."] + pub fn destroy_accounts( + &self, + id: types::destroy_accounts::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "destroy_accounts", + types::DestroyAccounts { id }, + [ + 236u8, 102u8, 233u8, 170u8, 179u8, 46u8, 42u8, 29u8, 200u8, 116u8, + 62u8, 114u8, 233u8, 59u8, 217u8, 215u8, 109u8, 232u8, 147u8, 95u8, + 255u8, 248u8, 119u8, 222u8, 216u8, 165u8, 138u8, 47u8, 28u8, 56u8, + 204u8, 93u8, + ], + ) + } + #[doc = "See [`Pallet::destroy_approvals`]."] + pub fn destroy_approvals( + &self, + id: types::destroy_approvals::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "destroy_approvals", + types::DestroyApprovals { id }, + [ + 34u8, 35u8, 15u8, 44u8, 239u8, 232u8, 88u8, 130u8, 130u8, 87u8, 171u8, + 255u8, 247u8, 179u8, 14u8, 35u8, 47u8, 223u8, 32u8, 232u8, 41u8, 105u8, + 207u8, 199u8, 90u8, 136u8, 144u8, 139u8, 252u8, 76u8, 177u8, 106u8, + ], + ) + } + #[doc = "See [`Pallet::finish_destroy`]."] + pub fn finish_destroy( + &self, + id: types::finish_destroy::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "finish_destroy", + types::FinishDestroy { id }, + [ + 132u8, 67u8, 78u8, 84u8, 240u8, 51u8, 176u8, 119u8, 48u8, 34u8, 153u8, + 37u8, 25u8, 171u8, 21u8, 164u8, 53u8, 214u8, 36u8, 149u8, 20u8, 240u8, + 123u8, 195u8, 170u8, 162u8, 118u8, 81u8, 176u8, 218u8, 114u8, 113u8, + ], + ) + } + #[doc = "See [`Pallet::mint`]."] + pub fn mint( + &self, + id: types::mint::Id, + beneficiary: types::mint::Beneficiary, + amount: types::mint::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "mint", + types::Mint { + id, + beneficiary, + amount, + }, + [ + 70u8, 254u8, 32u8, 174u8, 90u8, 67u8, 219u8, 176u8, 25u8, 146u8, 103u8, + 70u8, 45u8, 57u8, 148u8, 25u8, 17u8, 19u8, 8u8, 88u8, 37u8, 194u8, + 57u8, 148u8, 83u8, 73u8, 126u8, 105u8, 198u8, 92u8, 254u8, 57u8, + ], + ) + } + #[doc = "See [`Pallet::burn`]."] + pub fn burn( + &self, + id: types::burn::Id, + who: types::burn::Who, + amount: types::burn::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "burn", + types::Burn { id, who, amount }, + [ + 167u8, 63u8, 169u8, 13u8, 75u8, 38u8, 96u8, 62u8, 117u8, 87u8, 96u8, + 223u8, 148u8, 13u8, 0u8, 106u8, 160u8, 2u8, 137u8, 26u8, 218u8, 131u8, + 231u8, 109u8, 50u8, 61u8, 147u8, 112u8, 137u8, 176u8, 12u8, 35u8, + ], + ) + } + #[doc = "See [`Pallet::transfer`]."] + pub fn transfer( + &self, + id: types::transfer::Id, + target: types::transfer::Target, + amount: types::transfer::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "transfer", + types::Transfer { id, target, amount }, + [ + 17u8, 121u8, 138u8, 208u8, 193u8, 102u8, 33u8, 42u8, 154u8, 148u8, + 174u8, 40u8, 193u8, 125u8, 114u8, 210u8, 177u8, 118u8, 213u8, 117u8, + 91u8, 158u8, 183u8, 56u8, 177u8, 99u8, 171u8, 245u8, 44u8, 254u8, + 161u8, 170u8, + ], + ) + } + #[doc = "See [`Pallet::transfer_keep_alive`]."] + pub fn transfer_keep_alive( + &self, + id: types::transfer_keep_alive::Id, + target: types::transfer_keep_alive::Target, + amount: types::transfer_keep_alive::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "transfer_keep_alive", + types::TransferKeepAlive { id, target, amount }, + [ + 40u8, 113u8, 217u8, 62u8, 208u8, 178u8, 66u8, 127u8, 125u8, 233u8, + 180u8, 33u8, 149u8, 7u8, 148u8, 117u8, 119u8, 228u8, 228u8, 143u8, + 67u8, 63u8, 178u8, 65u8, 203u8, 165u8, 138u8, 247u8, 3u8, 244u8, 250u8, + 194u8, + ], + ) + } + #[doc = "See [`Pallet::force_transfer`]."] + pub fn force_transfer( + &self, + id: types::force_transfer::Id, + source: types::force_transfer::Source, + dest: types::force_transfer::Dest, + amount: types::force_transfer::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "force_transfer", + types::ForceTransfer { + id, + source, + dest, + amount, + }, + [ + 123u8, 230u8, 150u8, 245u8, 50u8, 87u8, 121u8, 127u8, 51u8, 226u8, + 27u8, 240u8, 40u8, 146u8, 255u8, 237u8, 59u8, 197u8, 89u8, 97u8, 9u8, + 166u8, 95u8, 61u8, 12u8, 52u8, 89u8, 120u8, 183u8, 143u8, 142u8, 138u8, + ], + ) + } + #[doc = "See [`Pallet::freeze`]."] + pub fn freeze( + &self, + id: types::freeze::Id, + who: types::freeze::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "freeze", + types::Freeze { id, who }, + [ + 241u8, 249u8, 194u8, 15u8, 80u8, 208u8, 159u8, 130u8, 101u8, 207u8, + 176u8, 118u8, 11u8, 113u8, 152u8, 80u8, 8u8, 96u8, 91u8, 236u8, 67u8, + 203u8, 12u8, 57u8, 195u8, 233u8, 49u8, 88u8, 64u8, 238u8, 172u8, 184u8, + ], + ) + } + #[doc = "See [`Pallet::thaw`]."] + pub fn thaw( + &self, + id: types::thaw::Id, + who: types::thaw::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "thaw", + types::Thaw { id, who }, + [ + 39u8, 232u8, 118u8, 210u8, 41u8, 119u8, 32u8, 98u8, 223u8, 112u8, 56u8, + 82u8, 19u8, 62u8, 33u8, 41u8, 181u8, 87u8, 6u8, 200u8, 110u8, 187u8, + 6u8, 164u8, 158u8, 193u8, 165u8, 174u8, 114u8, 189u8, 94u8, 53u8, + ], + ) + } + #[doc = "See [`Pallet::freeze_asset`]."] + pub fn freeze_asset( + &self, + id: types::freeze_asset::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "freeze_asset", + types::FreezeAsset { id }, + [ + 75u8, 237u8, 183u8, 112u8, 112u8, 123u8, 250u8, 203u8, 169u8, 51u8, + 218u8, 35u8, 159u8, 23u8, 21u8, 10u8, 167u8, 84u8, 161u8, 212u8, 124u8, + 236u8, 88u8, 175u8, 48u8, 195u8, 33u8, 145u8, 141u8, 156u8, 31u8, + 250u8, + ], + ) + } + #[doc = "See [`Pallet::thaw_asset`]."] + pub fn thaw_asset( + &self, + id: types::thaw_asset::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "thaw_asset", + types::ThawAsset { id }, + [ + 151u8, 6u8, 170u8, 114u8, 55u8, 8u8, 5u8, 194u8, 251u8, 78u8, 232u8, + 181u8, 157u8, 62u8, 16u8, 39u8, 79u8, 119u8, 205u8, 198u8, 199u8, 26u8, + 92u8, 162u8, 169u8, 173u8, 93u8, 51u8, 7u8, 79u8, 198u8, 77u8, + ], + ) + } + #[doc = "See [`Pallet::transfer_ownership`]."] + pub fn transfer_ownership( + &self, + id: types::transfer_ownership::Id, + owner: types::transfer_ownership::Owner, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "transfer_ownership", + types::TransferOwnership { id, owner }, + [ + 143u8, 40u8, 170u8, 77u8, 122u8, 29u8, 153u8, 97u8, 19u8, 119u8, 183u8, + 43u8, 70u8, 1u8, 175u8, 201u8, 229u8, 157u8, 244u8, 78u8, 6u8, 70u8, + 102u8, 120u8, 209u8, 154u8, 240u8, 1u8, 138u8, 25u8, 11u8, 247u8, + ], + ) + } + #[doc = "See [`Pallet::set_team`]."] + pub fn set_team( + &self, + id: types::set_team::Id, + issuer: types::set_team::Issuer, + admin: types::set_team::Admin, + freezer: types::set_team::Freezer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "set_team", + types::SetTeam { + id, + issuer, + admin, + freezer, + }, + [ + 15u8, 171u8, 200u8, 62u8, 164u8, 159u8, 145u8, 133u8, 12u8, 99u8, 81u8, + 43u8, 162u8, 163u8, 25u8, 126u8, 104u8, 141u8, 202u8, 91u8, 24u8, + 237u8, 172u8, 173u8, 18u8, 253u8, 114u8, 32u8, 178u8, 172u8, 216u8, + 135u8, + ], + ) + } + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + id: types::set_metadata::Id, + name: types::set_metadata::Name, + symbol: types::set_metadata::Symbol, + decimals: types::set_metadata::Decimals, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "set_metadata", + types::SetMetadata { + id, + name, + symbol, + decimals, + }, + [ + 215u8, 66u8, 15u8, 17u8, 88u8, 174u8, 77u8, 75u8, 229u8, 155u8, 160u8, + 34u8, 108u8, 194u8, 88u8, 238u8, 131u8, 97u8, 234u8, 102u8, 71u8, 56u8, + 70u8, 248u8, 211u8, 85u8, 72u8, 92u8, 71u8, 222u8, 190u8, 91u8, + ], + ) + } + #[doc = "See [`Pallet::clear_metadata`]."] + pub fn clear_metadata( + &self, + id: types::clear_metadata::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "clear_metadata", + types::ClearMetadata { id }, + [ + 68u8, 172u8, 6u8, 158u8, 237u8, 254u8, 22u8, 4u8, 254u8, 157u8, 179u8, + 168u8, 105u8, 114u8, 56u8, 166u8, 213u8, 38u8, 188u8, 195u8, 99u8, + 43u8, 142u8, 220u8, 94u8, 248u8, 51u8, 226u8, 233u8, 114u8, 86u8, 93u8, + ], + ) + } + #[doc = "See [`Pallet::force_set_metadata`]."] + pub fn force_set_metadata( + &self, + id: types::force_set_metadata::Id, + name: types::force_set_metadata::Name, + symbol: types::force_set_metadata::Symbol, + decimals: types::force_set_metadata::Decimals, + is_frozen: types::force_set_metadata::IsFrozen, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "force_set_metadata", + types::ForceSetMetadata { + id, + name, + symbol, + decimals, + is_frozen, + }, + [ + 76u8, 90u8, 182u8, 13u8, 133u8, 248u8, 94u8, 136u8, 169u8, 114u8, + 151u8, 20u8, 106u8, 89u8, 78u8, 228u8, 22u8, 29u8, 68u8, 8u8, 54u8, + 47u8, 1u8, 186u8, 45u8, 167u8, 14u8, 112u8, 34u8, 43u8, 91u8, 140u8, + ], + ) + } + #[doc = "See [`Pallet::force_clear_metadata`]."] + pub fn force_clear_metadata( + &self, + id: types::force_clear_metadata::Id, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "force_clear_metadata", + types::ForceClearMetadata { id }, + [ + 2u8, 224u8, 84u8, 48u8, 130u8, 132u8, 79u8, 38u8, 217u8, 17u8, 165u8, + 139u8, 89u8, 53u8, 116u8, 184u8, 32u8, 91u8, 122u8, 39u8, 85u8, 40u8, + 213u8, 216u8, 135u8, 171u8, 50u8, 69u8, 202u8, 28u8, 166u8, 147u8, + ], + ) + } + #[doc = "See [`Pallet::force_asset_status`]."] + pub fn force_asset_status( + &self, + id: types::force_asset_status::Id, + owner: types::force_asset_status::Owner, + issuer: types::force_asset_status::Issuer, + admin: types::force_asset_status::Admin, + freezer: types::force_asset_status::Freezer, + min_balance: types::force_asset_status::MinBalance, + is_sufficient: types::force_asset_status::IsSufficient, + is_frozen: types::force_asset_status::IsFrozen, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "force_asset_status", + types::ForceAssetStatus { + id, + owner, + issuer, + admin, + freezer, + min_balance, + is_sufficient, + is_frozen, + }, + [ + 139u8, 192u8, 217u8, 175u8, 205u8, 173u8, 255u8, 77u8, 134u8, 166u8, + 13u8, 253u8, 196u8, 95u8, 226u8, 24u8, 125u8, 113u8, 43u8, 80u8, 128u8, + 52u8, 37u8, 181u8, 111u8, 23u8, 116u8, 104u8, 132u8, 175u8, 236u8, 8u8, + ], + ) + } + #[doc = "See [`Pallet::approve_transfer`]."] + pub fn approve_transfer( + &self, + id: types::approve_transfer::Id, + delegate: types::approve_transfer::Delegate, + amount: types::approve_transfer::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "approve_transfer", + types::ApproveTransfer { + id, + delegate, + amount, + }, + [ + 58u8, 214u8, 19u8, 180u8, 17u8, 231u8, 68u8, 212u8, 23u8, 225u8, 165u8, + 207u8, 145u8, 229u8, 234u8, 82u8, 43u8, 160u8, 204u8, 135u8, 180u8, + 184u8, 50u8, 26u8, 33u8, 183u8, 237u8, 49u8, 137u8, 248u8, 33u8, 27u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_approval`]."] + pub fn cancel_approval( + &self, + id: types::cancel_approval::Id, + delegate: types::cancel_approval::Delegate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "cancel_approval", + types::CancelApproval { id, delegate }, + [ + 50u8, 115u8, 122u8, 220u8, 102u8, 246u8, 247u8, 191u8, 90u8, 82u8, + 16u8, 18u8, 6u8, 61u8, 135u8, 141u8, 249u8, 36u8, 248u8, 144u8, 139u8, + 42u8, 75u8, 134u8, 125u8, 125u8, 4u8, 75u8, 111u8, 47u8, 141u8, 159u8, + ], + ) + } + #[doc = "See [`Pallet::force_cancel_approval`]."] + pub fn force_cancel_approval( + &self, + id: types::force_cancel_approval::Id, + owner: types::force_cancel_approval::Owner, + delegate: types::force_cancel_approval::Delegate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "force_cancel_approval", + types::ForceCancelApproval { + id, + owner, + delegate, + }, + [ + 226u8, 41u8, 94u8, 88u8, 137u8, 106u8, 9u8, 54u8, 94u8, 169u8, 154u8, + 252u8, 41u8, 18u8, 106u8, 62u8, 225u8, 226u8, 86u8, 33u8, 189u8, 253u8, + 246u8, 28u8, 17u8, 71u8, 183u8, 143u8, 139u8, 192u8, 104u8, 8u8, + ], + ) + } + #[doc = "See [`Pallet::transfer_approved`]."] + pub fn transfer_approved( + &self, + id: types::transfer_approved::Id, + owner: types::transfer_approved::Owner, + destination: types::transfer_approved::Destination, + amount: types::transfer_approved::Amount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "transfer_approved", + types::TransferApproved { + id, + owner, + destination, + amount, + }, + [ + 144u8, 143u8, 154u8, 130u8, 236u8, 227u8, 202u8, 54u8, 139u8, 128u8, + 166u8, 94u8, 61u8, 8u8, 165u8, 146u8, 57u8, 245u8, 194u8, 176u8, 50u8, + 69u8, 36u8, 206u8, 166u8, 103u8, 254u8, 99u8, 75u8, 233u8, 117u8, + 156u8, + ], + ) + } + #[doc = "See [`Pallet::touch`]."] + pub fn touch(&self, id: types::touch::Id) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "touch", + types::Touch { id }, + [ + 50u8, 185u8, 46u8, 134u8, 136u8, 31u8, 191u8, 34u8, 215u8, 150u8, 73u8, + 103u8, 140u8, 36u8, 95u8, 156u8, 201u8, 152u8, 32u8, 165u8, 47u8, 86u8, + 163u8, 255u8, 8u8, 251u8, 176u8, 138u8, 165u8, 48u8, 12u8, 27u8, + ], + ) + } + #[doc = "See [`Pallet::refund`]."] + pub fn refund( + &self, + id: types::refund::Id, + allow_burn: types::refund::AllowBurn, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "refund", + types::Refund { id, allow_burn }, + [ + 218u8, 207u8, 8u8, 41u8, 154u8, 250u8, 117u8, 174u8, 143u8, 133u8, + 34u8, 113u8, 171u8, 18u8, 177u8, 227u8, 146u8, 92u8, 12u8, 226u8, + 101u8, 230u8, 246u8, 162u8, 32u8, 73u8, 138u8, 158u8, 95u8, 226u8, + 75u8, 95u8, + ], + ) + } + #[doc = "See [`Pallet::set_min_balance`]."] + pub fn set_min_balance( + &self, + id: types::set_min_balance::Id, + min_balance: types::set_min_balance::MinBalance, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "set_min_balance", + types::SetMinBalance { id, min_balance }, + [ + 141u8, 241u8, 137u8, 50u8, 232u8, 122u8, 252u8, 104u8, 185u8, 170u8, + 246u8, 0u8, 20u8, 128u8, 136u8, 155u8, 62u8, 243u8, 4u8, 221u8, 42u8, + 225u8, 16u8, 245u8, 58u8, 127u8, 84u8, 193u8, 175u8, 165u8, 35u8, 49u8, + ], + ) + } + #[doc = "See [`Pallet::touch_other`]."] + pub fn touch_other( + &self, + id: types::touch_other::Id, + who: types::touch_other::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "touch_other", + types::TouchOther { id, who }, + [ + 156u8, 42u8, 226u8, 150u8, 123u8, 47u8, 218u8, 73u8, 214u8, 62u8, + 222u8, 90u8, 216u8, 11u8, 238u8, 14u8, 17u8, 175u8, 152u8, 147u8, + 233u8, 255u8, 46u8, 51u8, 20u8, 86u8, 181u8, 65u8, 127u8, 45u8, 7u8, + 82u8, + ], + ) + } + #[doc = "See [`Pallet::refund_other`]."] + pub fn refund_other( + &self, + id: types::refund_other::Id, + who: types::refund_other::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "refund_other", + types::RefundOther { id, who }, + [ + 75u8, 82u8, 239u8, 58u8, 200u8, 72u8, 150u8, 30u8, 234u8, 9u8, 40u8, + 189u8, 153u8, 172u8, 120u8, 98u8, 191u8, 252u8, 234u8, 73u8, 112u8, + 252u8, 253u8, 64u8, 24u8, 0u8, 245u8, 11u8, 200u8, 219u8, 143u8, 195u8, + ], + ) + } + #[doc = "See [`Pallet::block`]."] + pub fn block( + &self, + id: types::block::Id, + who: types::block::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "PoolAssets", + "block", + types::Block { id, who }, + [ + 50u8, 143u8, 86u8, 73u8, 118u8, 162u8, 216u8, 153u8, 78u8, 233u8, + 158u8, 125u8, 11u8, 24u8, 162u8, 109u8, 33u8, 28u8, 30u8, 109u8, 80u8, + 79u8, 8u8, 68u8, 57u8, 111u8, 62u8, 239u8, 71u8, 82u8, 221u8, 8u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_assets::pallet::Event2; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset class was created."] + pub struct Created { + pub asset_id: created::AssetId, + pub creator: created::Creator, + pub owner: created::Owner, + } + pub mod created { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Creator = ::subxt::utils::AccountId32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Created { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "Created"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some assets were issued."] + pub struct Issued { + pub asset_id: issued::AssetId, + pub owner: issued::Owner, + pub amount: issued::Amount, + } + pub mod issued { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Issued { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "Issued"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some assets were transferred."] + pub struct Transferred { + pub asset_id: transferred::AssetId, + pub from: transferred::From, + pub to: transferred::To, + pub amount: transferred::Amount, + } + pub mod transferred { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Transferred { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "Transferred"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some assets were destroyed."] + pub struct Burned { + pub asset_id: burned::AssetId, + pub owner: burned::Owner, + pub balance: burned::Balance, + } + pub mod burned { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Balance = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Burned { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "Burned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The management team changed."] + pub struct TeamChanged { + pub asset_id: team_changed::AssetId, + pub issuer: team_changed::Issuer, + pub admin: team_changed::Admin, + pub freezer: team_changed::Freezer, + } + pub mod team_changed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Issuer = ::subxt::utils::AccountId32; + pub type Admin = ::subxt::utils::AccountId32; + pub type Freezer = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for TeamChanged { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "TeamChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The owner changed."] + pub struct OwnerChanged { + pub asset_id: owner_changed::AssetId, + pub owner: owner_changed::Owner, + } + pub mod owner_changed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for OwnerChanged { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "OwnerChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was frozen."] + pub struct Frozen { + pub asset_id: frozen::AssetId, + pub who: frozen::Who, + } + pub mod frozen { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Frozen { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "Frozen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was thawed."] + pub struct Thawed { + pub asset_id: thawed::AssetId, + pub who: thawed::Who, + } + pub mod thawed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Thawed { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "Thawed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset `asset_id` was frozen."] + pub struct AssetFrozen { + pub asset_id: asset_frozen::AssetId, + } + pub mod asset_frozen { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AssetFrozen { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "AssetFrozen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset `asset_id` was thawed."] + pub struct AssetThawed { + pub asset_id: asset_thawed::AssetId, + } + pub mod asset_thawed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AssetThawed { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "AssetThawed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Accounts were destroyed for given asset."] + pub struct AccountsDestroyed { + pub asset_id: accounts_destroyed::AssetId, + pub accounts_destroyed: accounts_destroyed::AccountsDestroyed, + pub accounts_remaining: accounts_destroyed::AccountsRemaining, + } + pub mod accounts_destroyed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type AccountsDestroyed = ::core::primitive::u32; + pub type AccountsRemaining = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AccountsDestroyed { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "AccountsDestroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Approvals were destroyed for given asset."] + pub struct ApprovalsDestroyed { + pub asset_id: approvals_destroyed::AssetId, + pub approvals_destroyed: approvals_destroyed::ApprovalsDestroyed, + pub approvals_remaining: approvals_destroyed::ApprovalsRemaining, + } + pub mod approvals_destroyed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type ApprovalsDestroyed = ::core::primitive::u32; + pub type ApprovalsRemaining = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ApprovalsDestroyed { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "ApprovalsDestroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An asset class is in the process of being destroyed."] + pub struct DestructionStarted { + pub asset_id: destruction_started::AssetId, + } + pub mod destruction_started { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for DestructionStarted { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "DestructionStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An asset class was destroyed."] + pub struct Destroyed { + pub asset_id: destroyed::AssetId, + } + pub mod destroyed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Destroyed { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "Destroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some asset class was force-created."] + pub struct ForceCreated { + pub asset_id: force_created::AssetId, + pub owner: force_created::Owner, + } + pub mod force_created { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ForceCreated { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "ForceCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New metadata has been set for an asset."] + pub struct MetadataSet { + pub asset_id: metadata_set::AssetId, + pub name: metadata_set::Name, + pub symbol: metadata_set::Symbol, + pub decimals: metadata_set::Decimals, + pub is_frozen: metadata_set::IsFrozen, + } + pub mod metadata_set { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Name = ::std::vec::Vec<::core::primitive::u8>; + pub type Symbol = ::std::vec::Vec<::core::primitive::u8>; + pub type Decimals = ::core::primitive::u8; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been cleared for an asset."] + pub struct MetadataCleared { + pub asset_id: metadata_cleared::AssetId, + } + pub mod metadata_cleared { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "MetadataCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "(Additional) funds have been approved for transfer to a destination account."] + pub struct ApprovedTransfer { + pub asset_id: approved_transfer::AssetId, + pub source: approved_transfer::Source, + pub delegate: approved_transfer::Delegate, + pub amount: approved_transfer::Amount, + } + pub mod approved_transfer { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Source = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for ApprovedTransfer { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "ApprovedTransfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An approval for account `delegate` was cancelled by `owner`."] + pub struct ApprovalCancelled { + pub asset_id: approval_cancelled::AssetId, + pub owner: approval_cancelled::Owner, + pub delegate: approval_cancelled::Delegate, + } + pub mod approval_cancelled { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ApprovalCancelled { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "ApprovalCancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] + #[doc = "the approved `delegate`."] + pub struct TransferredApproved { + pub asset_id: transferred_approved::AssetId, + pub owner: transferred_approved::Owner, + pub delegate: transferred_approved::Delegate, + pub destination: transferred_approved::Destination, + pub amount: transferred_approved::Amount, + } + pub mod transferred_approved { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + pub type Destination = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for TransferredApproved { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "TransferredApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An asset has had its attributes changed by the `Force` origin."] + pub struct AssetStatusChanged { + pub asset_id: asset_status_changed::AssetId, + } + pub mod asset_status_changed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AssetStatusChanged { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "AssetStatusChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The min_balance of an asset has been updated by the asset owner."] + pub struct AssetMinBalanceChanged { + pub asset_id: asset_min_balance_changed::AssetId, + pub new_min_balance: asset_min_balance_changed::NewMinBalance, + } + pub mod asset_min_balance_changed { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type NewMinBalance = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for AssetMinBalanceChanged { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "AssetMinBalanceChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was created with a deposit from `depositor`."] + pub struct Touched { + pub asset_id: touched::AssetId, + pub who: touched::Who, + pub depositor: touched::Depositor, + } + pub mod touched { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Depositor = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Touched { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "Touched"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some account `who` was blocked."] + pub struct Blocked { + pub asset_id: blocked::AssetId, + pub who: blocked::Who, + } + pub mod blocked { + use super::runtime_types; + pub type AssetId = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Blocked { + const PALLET: &'static str = "PoolAssets"; + const EVENT: &'static str = "Blocked"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod asset { + use super::runtime_types; + pub type Asset = runtime_types::pallet_assets::types::AssetDetails< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod account { + use super::runtime_types; + pub type Account = runtime_types::pallet_assets::types::AssetAccount< + ::core::primitive::u128, + ::core::primitive::u128, + (), + ::subxt::utils::AccountId32, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod approvals { + use super::runtime_types; + pub type Approvals = runtime_types::pallet_assets::types::Approval< + ::core::primitive::u128, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + pub type Param2 = ::subxt::utils::AccountId32; + } + pub mod metadata { + use super::runtime_types; + pub type Metadata = runtime_types::pallet_assets::types::AssetMetadata< + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >; + pub type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of an asset."] + pub fn asset_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::asset::Asset, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Asset", + vec![], + [ + 159u8, 234u8, 177u8, 31u8, 58u8, 51u8, 173u8, 184u8, 250u8, 169u8, + 246u8, 122u8, 54u8, 19u8, 232u8, 60u8, 0u8, 165u8, 12u8, 101u8, 93u8, + 169u8, 23u8, 34u8, 154u8, 44u8, 134u8, 128u8, 97u8, 71u8, 167u8, 224u8, + ], + ) + } + #[doc = " Details of an asset."] + pub fn asset( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::asset::Asset, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Asset", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 159u8, 234u8, 177u8, 31u8, 58u8, 51u8, 173u8, 184u8, 250u8, 169u8, + 246u8, 122u8, 54u8, 19u8, 232u8, 60u8, 0u8, 165u8, 12u8, 101u8, 93u8, + 169u8, 23u8, 34u8, 154u8, 44u8, 134u8, 128u8, 97u8, 71u8, 167u8, 224u8, + ], + ) + } + #[doc = " The holdings of a specific account for a specific asset."] + pub fn account_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Account", + vec![], + [ + 188u8, 242u8, 133u8, 64u8, 0u8, 11u8, 57u8, 146u8, 60u8, 137u8, 35u8, + 23u8, 183u8, 200u8, 242u8, 8u8, 94u8, 158u8, 218u8, 13u8, 104u8, 215u8, + 87u8, 86u8, 69u8, 200u8, 11u8, 51u8, 6u8, 65u8, 216u8, 102u8, + ], + ) + } + #[doc = " The holdings of a specific account for a specific asset."] + pub fn account_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Account", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 188u8, 242u8, 133u8, 64u8, 0u8, 11u8, 57u8, 146u8, 60u8, 137u8, 35u8, + 23u8, 183u8, 200u8, 242u8, 8u8, 94u8, 158u8, 218u8, 13u8, 104u8, 215u8, + 87u8, 86u8, 69u8, 200u8, 11u8, 51u8, 6u8, 65u8, 216u8, 102u8, + ], + ) + } + #[doc = " The holdings of a specific account for a specific asset."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Account", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 188u8, 242u8, 133u8, 64u8, 0u8, 11u8, 57u8, 146u8, 60u8, 137u8, 35u8, + 23u8, 183u8, 200u8, 242u8, 8u8, 94u8, 158u8, 218u8, 13u8, 104u8, 215u8, + 87u8, 86u8, 69u8, 200u8, 11u8, 51u8, 6u8, 65u8, 216u8, 102u8, + ], + ) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::approvals::Approvals, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Approvals", + vec![], + [ + 122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8, + 68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8, + 218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8, + ], + ) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::approvals::Approvals, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Approvals", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8, + 68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8, + 218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8, + ], + ) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals_iter2( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::approvals::Approvals, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Approvals", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8, + 68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8, + 218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8, + ], + ) + } + #[doc = " Approved balance transfers. First balance is the amount approved for transfer. Second"] + #[doc = " is the amount of `T::Currency` reserved for storing this."] + #[doc = " First key is the asset ID, second key is the owner and third key is the delegate."] + pub fn approvals( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + _2: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::approvals::Approvals, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Approvals", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), + ], + [ + 122u8, 92u8, 51u8, 45u8, 200u8, 200u8, 182u8, 208u8, 18u8, 47u8, 139u8, + 68u8, 254u8, 15u8, 152u8, 110u8, 3u8, 138u8, 13u8, 183u8, 5u8, 185u8, + 218u8, 44u8, 93u8, 28u8, 56u8, 189u8, 125u8, 127u8, 123u8, 8u8, + ], + ) + } + #[doc = " Metadata of an asset."] + pub fn metadata_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata::Metadata, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Metadata", + vec![], + [ + 129u8, 202u8, 244u8, 77u8, 55u8, 81u8, 86u8, 106u8, 20u8, 153u8, 209u8, + 69u8, 199u8, 107u8, 111u8, 49u8, 88u8, 157u8, 84u8, 41u8, 198u8, 190u8, + 234u8, 218u8, 68u8, 207u8, 87u8, 217u8, 73u8, 66u8, 211u8, 163u8, + ], + ) + } + #[doc = " Metadata of an asset."] + pub fn metadata( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata::Metadata, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "PoolAssets", + "Metadata", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 129u8, 202u8, 244u8, 77u8, 55u8, 81u8, 86u8, 106u8, 20u8, 153u8, 209u8, + 69u8, 199u8, 107u8, 111u8, 49u8, 88u8, 157u8, 84u8, 41u8, 198u8, 190u8, + 234u8, 218u8, 68u8, 207u8, 87u8, 217u8, 73u8, 66u8, 211u8, 163u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call."] + #[doc = ""] + #[doc = " Must be configured to result in a weight that makes each call fit in a block."] + pub fn remove_items_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "PoolAssets", + "RemoveItemsLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved for an asset."] + pub fn asset_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "PoolAssets", + "AssetDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of funds that must be reserved for a non-provider asset account to be"] + #[doc = " maintained."] + pub fn asset_account_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "PoolAssets", + "AssetAccountDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved when adding metadata to your asset."] + pub fn metadata_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "PoolAssets", + "MetadataDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The additional funds that must be reserved for the number of bytes you store in your"] + #[doc = " metadata."] + pub fn metadata_deposit_per_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "PoolAssets", + "MetadataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The amount of funds that must be reserved when creating a new approval."] + pub fn approval_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "PoolAssets", + "ApprovalDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum length of a name or symbol stored on-chain."] + pub fn string_limit(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "PoolAssets", + "StringLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod lottery { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_lottery::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_lottery::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::buy_ticket`]."] + pub struct BuyTicket { + pub call: ::std::boxed::Box, + } + pub mod buy_ticket { + use super::runtime_types; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + } + impl ::subxt::blocks::StaticExtrinsic for BuyTicket { + const PALLET: &'static str = "Lottery"; + const CALL: &'static str = "buy_ticket"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_calls`]."] + pub struct SetCalls { + pub calls: set_calls::Calls, + } + pub mod set_calls { + use super::runtime_types; + pub type Calls = + ::std::vec::Vec; + } + impl ::subxt::blocks::StaticExtrinsic for SetCalls { + const PALLET: &'static str = "Lottery"; + const CALL: &'static str = "set_calls"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::start_lottery`]."] + pub struct StartLottery { + pub price: start_lottery::Price, + pub length: start_lottery::Length, + pub delay: start_lottery::Delay, + pub repeat: start_lottery::Repeat, + } + pub mod start_lottery { + use super::runtime_types; + pub type Price = ::core::primitive::u128; + pub type Length = ::core::primitive::u32; + pub type Delay = ::core::primitive::u32; + pub type Repeat = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for StartLottery { + const PALLET: &'static str = "Lottery"; + const CALL: &'static str = "start_lottery"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::stop_repeat`]."] + pub struct StopRepeat; + impl ::subxt::blocks::StaticExtrinsic for StopRepeat { + const PALLET: &'static str = "Lottery"; + const CALL: &'static str = "stop_repeat"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::buy_ticket`]."] + pub fn buy_ticket( + &self, + call: types::buy_ticket::Call, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Lottery", + "buy_ticket", + types::BuyTicket { + call: ::std::boxed::Box::new(call), + }, + [ + 171u8, 210u8, 49u8, 29u8, 192u8, 177u8, 129u8, 202u8, 201u8, 45u8, + 219u8, 174u8, 93u8, 76u8, 43u8, 180u8, 5u8, 133u8, 134u8, 202u8, 106u8, + 143u8, 42u8, 230u8, 1u8, 236u8, 0u8, 156u8, 22u8, 97u8, 163u8, 118u8, + ], + ) + } + #[doc = "See [`Pallet::set_calls`]."] + pub fn set_calls( + &self, + calls: types::set_calls::Calls, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Lottery", + "set_calls", + types::SetCalls { calls }, + [ + 11u8, 238u8, 4u8, 44u8, 201u8, 139u8, 129u8, 118u8, 168u8, 249u8, + 175u8, 50u8, 237u8, 70u8, 3u8, 79u8, 231u8, 245u8, 38u8, 12u8, 198u8, + 81u8, 23u8, 143u8, 28u8, 228u8, 108u8, 20u8, 26u8, 104u8, 110u8, 157u8, + ], + ) + } + #[doc = "See [`Pallet::start_lottery`]."] + pub fn start_lottery( + &self, + price: types::start_lottery::Price, + length: types::start_lottery::Length, + delay: types::start_lottery::Delay, + repeat: types::start_lottery::Repeat, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Lottery", + "start_lottery", + types::StartLottery { + price, + length, + delay, + repeat, + }, + [ + 81u8, 48u8, 182u8, 223u8, 192u8, 148u8, 66u8, 199u8, 239u8, 25u8, 62u8, + 38u8, 223u8, 3u8, 211u8, 244u8, 39u8, 189u8, 129u8, 7u8, 190u8, 22u8, + 68u8, 13u8, 4u8, 197u8, 146u8, 202u8, 201u8, 37u8, 205u8, 221u8, + ], + ) + } + #[doc = "See [`Pallet::stop_repeat`]."] + pub fn stop_repeat(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Lottery", + "stop_repeat", + types::StopRepeat {}, + [ + 242u8, 122u8, 161u8, 14u8, 43u8, 115u8, 234u8, 131u8, 235u8, 234u8, + 89u8, 21u8, 109u8, 83u8, 119u8, 77u8, 116u8, 57u8, 98u8, 56u8, 150u8, + 123u8, 251u8, 97u8, 211u8, 136u8, 219u8, 174u8, 156u8, 92u8, 72u8, + 251u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_lottery::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A lottery has been started!"] + pub struct LotteryStarted; + impl ::subxt::events::StaticEvent for LotteryStarted { + const PALLET: &'static str = "Lottery"; + const EVENT: &'static str = "LotteryStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new set of calls have been set!"] + pub struct CallsUpdated; + impl ::subxt::events::StaticEvent for CallsUpdated { + const PALLET: &'static str = "Lottery"; + const EVENT: &'static str = "CallsUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A winner has been chosen!"] + pub struct Winner { + pub winner: winner::Winner, + pub lottery_balance: winner::LotteryBalance, + } + pub mod winner { + use super::runtime_types; + pub type Winner = ::subxt::utils::AccountId32; + pub type LotteryBalance = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Winner { + const PALLET: &'static str = "Lottery"; + const EVENT: &'static str = "Winner"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A ticket has been bought!"] + pub struct TicketBought { + pub who: ticket_bought::Who, + pub call_index: ticket_bought::CallIndex, + } + pub mod ticket_bought { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type CallIndex = (::core::primitive::u8, ::core::primitive::u8); + } + impl ::subxt::events::StaticEvent for TicketBought { + const PALLET: &'static str = "Lottery"; + const EVENT: &'static str = "TicketBought"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod lottery_index { + use super::runtime_types; + pub type LotteryIndex = ::core::primitive::u32; + } + pub mod lottery { + use super::runtime_types; + pub type Lottery = runtime_types::pallet_lottery::LotteryConfig< + ::core::primitive::u32, + ::core::primitive::u128, + >; + } + pub mod participants { + use super::runtime_types; + pub type Participants = ( + ::core::primitive::u32, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u8, + ::core::primitive::u8, + )>, + ); + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod tickets_count { + use super::runtime_types; + pub type TicketsCount = ::core::primitive::u32; + } + pub mod tickets { + use super::runtime_types; + pub type Tickets = ::subxt::utils::AccountId32; + pub type Param0 = ::core::primitive::u32; + } + pub mod call_indices { + use super::runtime_types; + pub type CallIndices = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u8, + ::core::primitive::u8, + )>; + } + } + pub struct StorageApi; + impl StorageApi { + pub fn lottery_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::lottery_index::LotteryIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Lottery", + "LotteryIndex", + vec![], + [ + 10u8, 241u8, 0u8, 255u8, 87u8, 44u8, 63u8, 86u8, 15u8, 18u8, 34u8, + 242u8, 36u8, 184u8, 159u8, 90u8, 5u8, 197u8, 107u8, 138u8, 104u8, 96u8, + 209u8, 197u8, 144u8, 91u8, 165u8, 217u8, 249u8, 113u8, 14u8, 174u8, + ], + ) + } + #[doc = " The configuration for the current lottery."] + pub fn lottery( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::lottery::Lottery, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Lottery", + "Lottery", + vec![], + [ + 93u8, 24u8, 250u8, 24u8, 38u8, 37u8, 32u8, 18u8, 218u8, 41u8, 1u8, + 246u8, 2u8, 158u8, 168u8, 255u8, 97u8, 73u8, 157u8, 189u8, 223u8, 14u8, + 132u8, 26u8, 100u8, 87u8, 234u8, 176u8, 158u8, 43u8, 171u8, 61u8, + ], + ) + } + #[doc = " Users who have purchased a ticket. (Lottery Index, Tickets Purchased)"] + pub fn participants_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::participants::Participants, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Lottery", + "Participants", + vec![], + [ + 45u8, 89u8, 144u8, 182u8, 232u8, 192u8, 232u8, 105u8, 247u8, 19u8, + 130u8, 145u8, 235u8, 94u8, 236u8, 85u8, 9u8, 156u8, 118u8, 189u8, + 164u8, 105u8, 246u8, 124u8, 109u8, 133u8, 122u8, 101u8, 235u8, 130u8, + 191u8, 150u8, + ], + ) + } + #[doc = " Users who have purchased a ticket. (Lottery Index, Tickets Purchased)"] + pub fn participants( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::participants::Participants, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Lottery", + "Participants", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 45u8, 89u8, 144u8, 182u8, 232u8, 192u8, 232u8, 105u8, 247u8, 19u8, + 130u8, 145u8, 235u8, 94u8, 236u8, 85u8, 9u8, 156u8, 118u8, 189u8, + 164u8, 105u8, 246u8, 124u8, 109u8, 133u8, 122u8, 101u8, 235u8, 130u8, + 191u8, 150u8, + ], + ) + } + #[doc = " Total number of tickets sold."] + pub fn tickets_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::tickets_count::TicketsCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Lottery", + "TicketsCount", + vec![], + [ + 93u8, 186u8, 110u8, 45u8, 66u8, 145u8, 114u8, 176u8, 130u8, 140u8, + 153u8, 239u8, 225u8, 118u8, 73u8, 88u8, 131u8, 225u8, 115u8, 14u8, + 12u8, 107u8, 199u8, 220u8, 206u8, 29u8, 49u8, 83u8, 88u8, 157u8, 73u8, + 100u8, + ], + ) + } + #[doc = " Each ticket's owner."] + #[doc = ""] + #[doc = " May have residual storage from previous lotteries. Use `TicketsCount` to see which ones"] + #[doc = " are actually valid ticket mappings."] + pub fn tickets_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::tickets::Tickets, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Lottery", + "Tickets", + vec![], + [ + 124u8, 47u8, 251u8, 82u8, 222u8, 232u8, 159u8, 52u8, 71u8, 176u8, 80u8, + 4u8, 109u8, 75u8, 17u8, 1u8, 244u8, 173u8, 127u8, 149u8, 75u8, 11u8, + 188u8, 178u8, 211u8, 138u8, 99u8, 85u8, 17u8, 160u8, 132u8, 134u8, + ], + ) + } + #[doc = " Each ticket's owner."] + #[doc = ""] + #[doc = " May have residual storage from previous lotteries. Use `TicketsCount` to see which ones"] + #[doc = " are actually valid ticket mappings."] + pub fn tickets( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::tickets::Tickets, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Lottery", + "Tickets", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 124u8, 47u8, 251u8, 82u8, 222u8, 232u8, 159u8, 52u8, 71u8, 176u8, 80u8, + 4u8, 109u8, 75u8, 17u8, 1u8, 244u8, 173u8, 127u8, 149u8, 75u8, 11u8, + 188u8, 178u8, 211u8, 138u8, 99u8, 85u8, 17u8, 160u8, 132u8, 134u8, + ], + ) + } + #[doc = " The calls stored in this pallet to be used in an active lottery if configured"] + #[doc = " by `Config::ValidateCall`."] + pub fn call_indices( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::call_indices::CallIndices, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Lottery", + "CallIndices", + vec![], + [ + 195u8, 93u8, 130u8, 161u8, 195u8, 189u8, 176u8, 64u8, 236u8, 54u8, + 226u8, 217u8, 177u8, 116u8, 250u8, 30u8, 60u8, 243u8, 48u8, 155u8, + 24u8, 137u8, 16u8, 84u8, 192u8, 239u8, 77u8, 250u8, 149u8, 19u8, 168u8, + 211u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The Lottery's pallet id"] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Lottery", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + #[doc = " The max number of calls available in a single lottery."] + pub fn max_calls(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Lottery", + "MaxCalls", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Number of time we should try to generate a random number that has no modulo bias."] + #[doc = " The larger this number, the more potential computation is used for picking the winner,"] + #[doc = " but also the more likely that the chosen winner is done fairly."] + pub fn max_generate_random( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Lottery", + "MaxGenerateRandom", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } } } } @@ -25788,10404 +40081,13 @@ pub mod api { } } } - pub mod nis_counterpart_balances { + pub mod uniques { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_balances::pallet::Error2; + pub type Error = runtime_types::pallet_uniques::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_balances::pallet::Call2; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer_allow_death`]."] - pub struct TransferAllowDeath { - pub dest: transfer_allow_death::Dest, - #[codec(compact)] - pub value: transfer_allow_death::Value, - } - pub mod transfer_allow_death { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { - const PALLET: &'static str = "NisCounterpartBalances"; - const CALL: &'static str = "transfer_allow_death"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_transfer`]."] - pub struct ForceTransfer { - pub source: force_transfer::Source, - pub dest: force_transfer::Dest, - #[codec(compact)] - pub value: force_transfer::Value, - } - pub mod force_transfer { - use super::runtime_types; - pub type Source = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "NisCounterpartBalances"; - const CALL: &'static str = "force_transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer_keep_alive`]."] - pub struct TransferKeepAlive { - pub dest: transfer_keep_alive::Dest, - #[codec(compact)] - pub value: transfer_keep_alive::Value, - } - pub mod transfer_keep_alive { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Value = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { - const PALLET: &'static str = "NisCounterpartBalances"; - const CALL: &'static str = "transfer_keep_alive"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::transfer_all`]."] - pub struct TransferAll { - pub dest: transfer_all::Dest, - pub keep_alive: transfer_all::KeepAlive, - } - pub mod transfer_all { - use super::runtime_types; - pub type Dest = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type KeepAlive = ::core::primitive::bool; - } - impl ::subxt::blocks::StaticExtrinsic for TransferAll { - const PALLET: &'static str = "NisCounterpartBalances"; - const CALL: &'static str = "transfer_all"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_unreserve`]."] - pub struct ForceUnreserve { - pub who: force_unreserve::Who, - pub amount: force_unreserve::Amount, - } - pub mod force_unreserve { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { - const PALLET: &'static str = "NisCounterpartBalances"; - const CALL: &'static str = "force_unreserve"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::upgrade_accounts`]."] - pub struct UpgradeAccounts { - pub who: upgrade_accounts::Who, - } - pub mod upgrade_accounts { - use super::runtime_types; - pub type Who = ::std::vec::Vec<::subxt::utils::AccountId32>; - } - impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { - const PALLET: &'static str = "NisCounterpartBalances"; - const CALL: &'static str = "upgrade_accounts"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_set_balance`]."] - pub struct ForceSetBalance { - pub who: force_set_balance::Who, - #[codec(compact)] - pub new_free: force_set_balance::NewFree, - } - pub mod force_set_balance { - use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type NewFree = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { - const PALLET: &'static str = "NisCounterpartBalances"; - const CALL: &'static str = "force_set_balance"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::transfer_allow_death`]."] - pub fn transfer_allow_death( - &self, - dest: types::transfer_allow_death::Dest, - value: types::transfer_allow_death::Value, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NisCounterpartBalances", - "transfer_allow_death", - types::TransferAllowDeath { dest, value }, - [ - 51u8, 166u8, 195u8, 10u8, 139u8, 218u8, 55u8, 130u8, 6u8, 194u8, 35u8, - 140u8, 27u8, 205u8, 214u8, 222u8, 102u8, 43u8, 143u8, 145u8, 86u8, - 219u8, 210u8, 147u8, 13u8, 39u8, 51u8, 21u8, 237u8, 179u8, 132u8, - 130u8, - ], - ) - } - #[doc = "See [`Pallet::force_transfer`]."] - pub fn force_transfer( - &self, - source: types::force_transfer::Source, - dest: types::force_transfer::Dest, - value: types::force_transfer::Value, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NisCounterpartBalances", - "force_transfer", - types::ForceTransfer { - source, - dest, - value, - }, - [ - 154u8, 93u8, 222u8, 27u8, 12u8, 248u8, 63u8, 213u8, 224u8, 86u8, 250u8, - 153u8, 249u8, 102u8, 83u8, 160u8, 79u8, 125u8, 105u8, 222u8, 77u8, - 180u8, 90u8, 105u8, 81u8, 217u8, 60u8, 25u8, 213u8, 51u8, 185u8, 96u8, - ], - ) - } - #[doc = "See [`Pallet::transfer_keep_alive`]."] - pub fn transfer_keep_alive( - &self, - dest: types::transfer_keep_alive::Dest, - value: types::transfer_keep_alive::Value, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NisCounterpartBalances", - "transfer_keep_alive", - types::TransferKeepAlive { dest, value }, - [ - 245u8, 14u8, 190u8, 193u8, 32u8, 210u8, 74u8, 92u8, 25u8, 182u8, 76u8, - 55u8, 247u8, 83u8, 114u8, 75u8, 143u8, 236u8, 117u8, 25u8, 54u8, 157u8, - 208u8, 207u8, 233u8, 89u8, 70u8, 161u8, 235u8, 242u8, 222u8, 59u8, - ], - ) - } - #[doc = "See [`Pallet::transfer_all`]."] - pub fn transfer_all( - &self, - dest: types::transfer_all::Dest, - keep_alive: types::transfer_all::KeepAlive, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NisCounterpartBalances", - "transfer_all", - types::TransferAll { dest, keep_alive }, - [ - 105u8, 132u8, 49u8, 144u8, 195u8, 250u8, 34u8, 46u8, 213u8, 248u8, - 112u8, 188u8, 81u8, 228u8, 136u8, 18u8, 67u8, 172u8, 37u8, 38u8, 238u8, - 9u8, 34u8, 15u8, 67u8, 34u8, 148u8, 195u8, 223u8, 29u8, 154u8, 6u8, - ], - ) - } - #[doc = "See [`Pallet::force_unreserve`]."] - pub fn force_unreserve( - &self, - who: types::force_unreserve::Who, - amount: types::force_unreserve::Amount, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NisCounterpartBalances", - "force_unreserve", - types::ForceUnreserve { who, amount }, - [ - 142u8, 151u8, 64u8, 205u8, 46u8, 64u8, 62u8, 122u8, 108u8, 49u8, 223u8, - 140u8, 120u8, 153u8, 35u8, 165u8, 187u8, 38u8, 157u8, 200u8, 123u8, - 199u8, 198u8, 168u8, 208u8, 159u8, 39u8, 134u8, 92u8, 103u8, 84u8, - 171u8, - ], - ) - } - #[doc = "See [`Pallet::upgrade_accounts`]."] - pub fn upgrade_accounts( - &self, - who: types::upgrade_accounts::Who, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NisCounterpartBalances", - "upgrade_accounts", - types::UpgradeAccounts { who }, - [ - 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8, 224u8, - 233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8, - 214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, 98u8, 226u8, - ], - ) - } - #[doc = "See [`Pallet::force_set_balance`]."] - pub fn force_set_balance( - &self, - who: types::force_set_balance::Who, - new_free: types::force_set_balance::NewFree, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "NisCounterpartBalances", - "force_set_balance", - types::ForceSetBalance { who, new_free }, - [ - 114u8, 229u8, 59u8, 204u8, 180u8, 83u8, 17u8, 4u8, 59u8, 4u8, 55u8, - 39u8, 151u8, 196u8, 124u8, 60u8, 209u8, 65u8, 193u8, 11u8, 44u8, 164u8, - 116u8, 93u8, 169u8, 30u8, 199u8, 165u8, 55u8, 231u8, 223u8, 43u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_balances::pallet::Event2; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was created with some free balance."] - pub struct Endowed { - pub account: endowed::Account, - pub free_balance: endowed::FreeBalance, - } - pub mod endowed { - use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type FreeBalance = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Endowed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] - #[doc = "resulting in an outright loss."] - pub struct DustLost { - pub account: dust_lost::Account, - pub amount: dust_lost::Amount, - } - pub mod dust_lost { - use super::runtime_types; - pub type Account = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "DustLost"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Transfer succeeded."] - pub struct Transfer { - pub from: transfer::From, - pub to: transfer::To, - pub amount: transfer::Amount, - } - pub mod transfer { - use super::runtime_types; - pub type From = ::subxt::utils::AccountId32; - pub type To = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Transfer { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Transfer"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A balance was set by root."] - pub struct BalanceSet { - pub who: balance_set::Who, - pub free: balance_set::Free, - } - pub mod balance_set { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Free = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for BalanceSet { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "BalanceSet"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was reserved (moved from free to reserved)."] - pub struct Reserved { - pub who: reserved::Who, - pub amount: reserved::Amount, - } - pub mod reserved { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - pub struct Unreserved { - pub who: unreserved::Who, - pub amount: unreserved::Amount, - } - pub mod unreserved { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was moved from the reserve of the first account to the second account."] - #[doc = "Final argument indicates the destination balance type."] - pub struct ReserveRepatriated { - pub from: reserve_repatriated::From, - pub to: reserve_repatriated::To, - pub amount: reserve_repatriated::Amount, - pub destination_status: reserve_repatriated::DestinationStatus, - } - pub mod reserve_repatriated { - use super::runtime_types; - pub type From = ::subxt::utils::AccountId32; - pub type To = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - pub type DestinationStatus = - runtime_types::frame_support::traits::tokens::misc::BalanceStatus; - } - impl ::subxt::events::StaticEvent for ReserveRepatriated { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "ReserveRepatriated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was deposited (e.g. for transaction fees)."] - pub struct Deposit { - pub who: deposit::Who, - pub amount: deposit::Amount, - } - pub mod deposit { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] - pub struct Withdraw { - pub who: withdraw::Who, - pub amount: withdraw::Amount, - } - pub mod withdraw { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Withdraw { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Withdraw"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] - pub struct Slashed { - pub who: slashed::Who, - pub amount: slashed::Amount, - } - pub mod slashed { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Slashed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was minted into an account."] - pub struct Minted { - pub who: minted::Who, - pub amount: minted::Amount, - } - pub mod minted { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Minted { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Minted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was burned from an account."] - pub struct Burned { - pub who: burned::Who, - pub amount: burned::Amount, - } - pub mod burned { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Burned { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Burned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was suspended from an account (it can be restored later)."] - pub struct Suspended { - pub who: suspended::Who, - pub amount: suspended::Amount, - } - pub mod suspended { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Suspended { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Suspended"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some amount was restored into an account."] - pub struct Restored { - pub who: restored::Who, - pub amount: restored::Amount, - } - pub mod restored { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Restored { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Restored"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An account was upgraded."] - pub struct Upgraded { - pub who: upgraded::Who, - } - pub mod upgraded { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - } - impl ::subxt::events::StaticEvent for Upgraded { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Upgraded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] - pub struct Issued { - pub amount: issued::Amount, - } - pub mod issued { - use super::runtime_types; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Issued { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Issued"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] - pub struct Rescinded { - pub amount: rescinded::Amount, - } - pub mod rescinded { - use super::runtime_types; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Rescinded { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Rescinded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was locked."] - pub struct Locked { - pub who: locked::Who, - pub amount: locked::Amount, - } - pub mod locked { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Locked { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Locked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was unlocked."] - pub struct Unlocked { - pub who: unlocked::Who, - pub amount: unlocked::Amount, - } - pub mod unlocked { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Unlocked { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Unlocked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was frozen."] - pub struct Frozen { - pub who: frozen::Who, - pub amount: frozen::Amount, - } - pub mod frozen { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Frozen { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Frozen"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some balance was thawed."] - pub struct Thawed { - pub who: thawed::Who, - pub amount: thawed::Amount, - } - pub mod thawed { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Thawed { - const PALLET: &'static str = "NisCounterpartBalances"; - const EVENT: &'static str = "Thawed"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod total_issuance { - use super::runtime_types; - pub type TotalIssuance = ::core::primitive::u128; - } - pub mod inactive_issuance { - use super::runtime_types; - pub type InactiveIssuance = ::core::primitive::u128; - } - pub mod account { - use super::runtime_types; - pub type Account = - runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>; - pub type Param0 = ::subxt::utils::AccountId32; - } - pub mod locks { - use super::runtime_types; - pub type Locks = - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_balances::types::BalanceLock< - ::core::primitive::u128, - >, - >; - pub type Param0 = ::subxt::utils::AccountId32; - } - pub mod reserves { - use super::runtime_types; - pub type Reserves = runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::ReserveData< - [::core::primitive::u8; 8usize], - ::core::primitive::u128, - >, - >; - pub type Param0 = ::subxt::utils::AccountId32; - } - pub mod holds { - use super::runtime_types; - pub type Holds = runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - runtime_types::rococo_runtime::RuntimeHoldReason, - ::core::primitive::u128, - >, - >; - pub type Param0 = ::subxt::utils::AccountId32; - } - pub mod freezes { - use super::runtime_types; - pub type Freezes = runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::pallet_balances::types::IdAmount< - (), - ::core::primitive::u128, - >, - >; - pub type Param0 = ::subxt::utils::AccountId32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The total units issued in the system."] - pub fn total_issuance( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::total_issuance::TotalIssuance, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "TotalIssuance", - vec![], - [ - 116u8, 70u8, 119u8, 194u8, 69u8, 37u8, 116u8, 206u8, 171u8, 70u8, - 171u8, 210u8, 226u8, 111u8, 184u8, 204u8, 206u8, 11u8, 68u8, 72u8, - 255u8, 19u8, 194u8, 11u8, 27u8, 194u8, 81u8, 204u8, 59u8, 224u8, 202u8, - 185u8, - ], - ) - } - #[doc = " The total units of outstanding deactivated balance in the system."] - pub fn inactive_issuance( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::inactive_issuance::InactiveIssuance, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "InactiveIssuance", - vec![], - [ - 212u8, 185u8, 19u8, 50u8, 250u8, 72u8, 173u8, 50u8, 4u8, 104u8, 161u8, - 249u8, 77u8, 247u8, 204u8, 248u8, 11u8, 18u8, 57u8, 4u8, 82u8, 110u8, - 30u8, 216u8, 16u8, 37u8, 87u8, 67u8, 189u8, 235u8, 214u8, 155u8, - ], - ) - } - #[doc = " The Balances pallet example of storing the balance of an account."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " You can also store the balance of an account in the `System` pallet."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = System"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] - #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] - #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] - #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] - pub fn account_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::account::Account, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Account", - vec![], - [ - 213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8, - 90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8, - 18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8, - ], - ) - } - #[doc = " The Balances pallet example of storing the balance of an account."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " You can also store the balance of an account in the `System` pallet."] - #[doc = ""] - #[doc = " # Example"] - #[doc = ""] - #[doc = " ```nocompile"] - #[doc = " impl pallet_balances::Config for Runtime {"] - #[doc = " type AccountStore = System"] - #[doc = " }"] - #[doc = " ```"] - #[doc = ""] - #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] - #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] - #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] - #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] - pub fn account( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::account::Account, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Account", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8, - 90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8, - 18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8, - ], - ) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] - pub fn locks_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::locks::Locks, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Locks", - vec![], - [ - 10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8, - 167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8, - 13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8, - ], - ) - } - #[doc = " Any liquidity locks on some account balances."] - #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] - pub fn locks( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::locks::Locks, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Locks", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8, - 167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8, - 13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8, - ], - ) - } - #[doc = " Named reserves on some account balances."] - pub fn reserves_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::reserves::Reserves, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Reserves", - vec![], - [ - 112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8, - 140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8, - 106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8, - ], - ) - } - #[doc = " Named reserves on some account balances."] - pub fn reserves( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::reserves::Reserves, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Reserves", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8, - 140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8, - 106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8, - ], - ) - } - #[doc = " Holds on account balances."] - pub fn holds_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::holds::Holds, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Holds", - vec![], - [ - 72u8, 161u8, 107u8, 123u8, 240u8, 3u8, 198u8, 75u8, 46u8, 131u8, 122u8, - 141u8, 253u8, 141u8, 232u8, 192u8, 146u8, 54u8, 174u8, 162u8, 48u8, - 165u8, 226u8, 233u8, 12u8, 227u8, 23u8, 17u8, 237u8, 179u8, 193u8, - 166u8, - ], - ) - } - #[doc = " Holds on account balances."] - pub fn holds( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::holds::Holds, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Holds", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 72u8, 161u8, 107u8, 123u8, 240u8, 3u8, 198u8, 75u8, 46u8, 131u8, 122u8, - 141u8, 253u8, 141u8, 232u8, 192u8, 146u8, 54u8, 174u8, 162u8, 48u8, - 165u8, 226u8, 233u8, 12u8, 227u8, 23u8, 17u8, 237u8, 179u8, 193u8, - 166u8, - ], - ) - } - #[doc = " Freeze locks on account balances."] - pub fn freezes_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::freezes::Freezes, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Freezes", - vec![], - [ - 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, - 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, - 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, - ], - ) - } - #[doc = " Freeze locks on account balances."] - pub fn freezes( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::freezes::Freezes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "NisCounterpartBalances", - "Freezes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, - 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, - 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!"] - #[doc = ""] - #[doc = " If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for"] - #[doc = " this pallet. However, you do so at your own risk: this will open up a major DoS vector."] - #[doc = " In case you have multiple sources of provider references, you may also get unexpected"] - #[doc = " behaviour if you set this to zero."] - #[doc = ""] - #[doc = " Bottom line: Do yourself a favour and make it at least one!"] - pub fn existential_deposit( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "NisCounterpartBalances", - "ExistentialDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The maximum number of locks that should exist on an account."] - #[doc = " Not strictly enforced, but used for weight estimation."] - pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "NisCounterpartBalances", - "MaxLocks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of named reserves that can exist on an account."] - pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "NisCounterpartBalances", - "MaxReserves", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of holds that can exist on an account at any time."] - pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "NisCounterpartBalances", - "MaxHolds", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] - pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "NisCounterpartBalances", - "MaxFreezes", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod parachains_origin { - use super::root_mod; - use super::runtime_types; - } - pub mod configuration { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::configuration::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::configuration::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] - pub struct SetValidationUpgradeCooldown { - pub new: set_validation_upgrade_cooldown::New, - } - pub mod set_validation_upgrade_cooldown { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetValidationUpgradeCooldown { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_validation_upgrade_cooldown"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_validation_upgrade_delay`]."] - pub struct SetValidationUpgradeDelay { - pub new: set_validation_upgrade_delay::New, - } - pub mod set_validation_upgrade_delay { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetValidationUpgradeDelay { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_validation_upgrade_delay"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_code_retention_period`]."] - pub struct SetCodeRetentionPeriod { - pub new: set_code_retention_period::New, - } - pub mod set_code_retention_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetCodeRetentionPeriod { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_code_retention_period"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_code_size`]."] - pub struct SetMaxCodeSize { - pub new: set_max_code_size::New, - } - pub mod set_max_code_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxCodeSize { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_code_size"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_pov_size`]."] - pub struct SetMaxPovSize { - pub new: set_max_pov_size::New, - } - pub mod set_max_pov_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxPovSize { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_pov_size"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_head_data_size`]."] - pub struct SetMaxHeadDataSize { - pub new: set_max_head_data_size::New, - } - pub mod set_max_head_data_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxHeadDataSize { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_head_data_size"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_on_demand_cores`]."] - pub struct SetOnDemandCores { - pub new: set_on_demand_cores::New, - } - pub mod set_on_demand_cores { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetOnDemandCores { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_on_demand_cores"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_on_demand_retries`]."] - pub struct SetOnDemandRetries { - pub new: set_on_demand_retries::New, - } - pub mod set_on_demand_retries { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetOnDemandRetries { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_on_demand_retries"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_group_rotation_frequency`]."] - pub struct SetGroupRotationFrequency { - pub new: set_group_rotation_frequency::New, - } - pub mod set_group_rotation_frequency { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetGroupRotationFrequency { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_group_rotation_frequency"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_paras_availability_period`]."] - pub struct SetParasAvailabilityPeriod { - pub new: set_paras_availability_period::New, - } - pub mod set_paras_availability_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetParasAvailabilityPeriod { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_paras_availability_period"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_scheduling_lookahead`]."] - pub struct SetSchedulingLookahead { - pub new: set_scheduling_lookahead::New, - } - pub mod set_scheduling_lookahead { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetSchedulingLookahead { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_scheduling_lookahead"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_validators_per_core`]."] - pub struct SetMaxValidatorsPerCore { - pub new: set_max_validators_per_core::New, - } - pub mod set_max_validators_per_core { - use super::runtime_types; - pub type New = ::core::option::Option<::core::primitive::u32>; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxValidatorsPerCore { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_validators_per_core"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_validators`]."] - pub struct SetMaxValidators { - pub new: set_max_validators::New, - } - pub mod set_max_validators { - use super::runtime_types; - pub type New = ::core::option::Option<::core::primitive::u32>; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxValidators { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_validators"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_dispute_period`]."] - pub struct SetDisputePeriod { - pub new: set_dispute_period::New, - } - pub mod set_dispute_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetDisputePeriod { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_dispute_period"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] - pub struct SetDisputePostConclusionAcceptancePeriod { - pub new: set_dispute_post_conclusion_acceptance_period::New, - } - pub mod set_dispute_post_conclusion_acceptance_period { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetDisputePostConclusionAcceptancePeriod { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_dispute_post_conclusion_acceptance_period"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_no_show_slots`]."] - pub struct SetNoShowSlots { - pub new: set_no_show_slots::New, - } - pub mod set_no_show_slots { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetNoShowSlots { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_no_show_slots"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_n_delay_tranches`]."] - pub struct SetNDelayTranches { - pub new: set_n_delay_tranches::New, - } - pub mod set_n_delay_tranches { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetNDelayTranches { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_n_delay_tranches"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] - pub struct SetZerothDelayTrancheWidth { - pub new: set_zeroth_delay_tranche_width::New, - } - pub mod set_zeroth_delay_tranche_width { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetZerothDelayTrancheWidth { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_zeroth_delay_tranche_width"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_needed_approvals`]."] - pub struct SetNeededApprovals { - pub new: set_needed_approvals::New, - } - pub mod set_needed_approvals { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetNeededApprovals { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_needed_approvals"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] - pub struct SetRelayVrfModuloSamples { - pub new: set_relay_vrf_modulo_samples::New, - } - pub mod set_relay_vrf_modulo_samples { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetRelayVrfModuloSamples { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_relay_vrf_modulo_samples"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_upward_queue_count`]."] - pub struct SetMaxUpwardQueueCount { - pub new: set_max_upward_queue_count::New, - } - pub mod set_max_upward_queue_count { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardQueueCount { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_upward_queue_count"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_upward_queue_size`]."] - pub struct SetMaxUpwardQueueSize { - pub new: set_max_upward_queue_size::New, - } - pub mod set_max_upward_queue_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardQueueSize { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_upward_queue_size"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_downward_message_size`]."] - pub struct SetMaxDownwardMessageSize { - pub new: set_max_downward_message_size::New, - } - pub mod set_max_downward_message_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxDownwardMessageSize { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_downward_message_size"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_upward_message_size`]."] - pub struct SetMaxUpwardMessageSize { - pub new: set_max_upward_message_size::New, - } - pub mod set_max_upward_message_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardMessageSize { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_upward_message_size"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] - pub struct SetMaxUpwardMessageNumPerCandidate { - pub new: set_max_upward_message_num_per_candidate::New, - } - pub mod set_max_upward_message_num_per_candidate { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxUpwardMessageNumPerCandidate { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_max_upward_message_num_per_candidate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] - pub struct SetHrmpOpenRequestTtl { - pub new: set_hrmp_open_request_ttl::New, - } - pub mod set_hrmp_open_request_ttl { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpOpenRequestTtl { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_open_request_ttl"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_hrmp_sender_deposit`]."] - pub struct SetHrmpSenderDeposit { - pub new: set_hrmp_sender_deposit::New, - } - pub mod set_hrmp_sender_deposit { - use super::runtime_types; - pub type New = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpSenderDeposit { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_sender_deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] - pub struct SetHrmpRecipientDeposit { - pub new: set_hrmp_recipient_deposit::New, - } - pub mod set_hrmp_recipient_deposit { - use super::runtime_types; - pub type New = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpRecipientDeposit { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_recipient_deposit"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] - pub struct SetHrmpChannelMaxCapacity { - pub new: set_hrmp_channel_max_capacity::New, - } - pub mod set_hrmp_channel_max_capacity { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxCapacity { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_channel_max_capacity"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] - pub struct SetHrmpChannelMaxTotalSize { - pub new: set_hrmp_channel_max_total_size::New, - } - pub mod set_hrmp_channel_max_total_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxTotalSize { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_channel_max_total_size"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] - pub struct SetHrmpMaxParachainInboundChannels { - pub new: set_hrmp_max_parachain_inbound_channels::New, - } - pub mod set_hrmp_max_parachain_inbound_channels { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParachainInboundChannels { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_max_parachain_inbound_channels"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] - pub struct SetHrmpChannelMaxMessageSize { - pub new: set_hrmp_channel_max_message_size::New, - } - pub mod set_hrmp_channel_max_message_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpChannelMaxMessageSize { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_channel_max_message_size"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] - pub struct SetHrmpMaxParachainOutboundChannels { - pub new: set_hrmp_max_parachain_outbound_channels::New, - } - pub mod set_hrmp_max_parachain_outbound_channels { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxParachainOutboundChannels { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_max_parachain_outbound_channels"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] - pub struct SetHrmpMaxMessageNumPerCandidate { - pub new: set_hrmp_max_message_num_per_candidate::New, - } - pub mod set_hrmp_max_message_num_per_candidate { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetHrmpMaxMessageNumPerCandidate { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_hrmp_max_message_num_per_candidate"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_pvf_voting_ttl`]."] - pub struct SetPvfVotingTtl { - pub new: set_pvf_voting_ttl::New, - } - pub mod set_pvf_voting_ttl { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetPvfVotingTtl { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_pvf_voting_ttl"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] - pub struct SetMinimumValidationUpgradeDelay { - pub new: set_minimum_validation_upgrade_delay::New, - } - pub mod set_minimum_validation_upgrade_delay { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMinimumValidationUpgradeDelay { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_minimum_validation_upgrade_delay"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_bypass_consistency_check`]."] - pub struct SetBypassConsistencyCheck { - pub new: set_bypass_consistency_check::New, - } - pub mod set_bypass_consistency_check { - use super::runtime_types; - pub type New = ::core::primitive::bool; - } - impl ::subxt::blocks::StaticExtrinsic for SetBypassConsistencyCheck { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_bypass_consistency_check"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_async_backing_params`]."] - pub struct SetAsyncBackingParams { - pub new: set_async_backing_params::New, - } - pub mod set_async_backing_params { - use super::runtime_types; - pub type New = - runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams; - } - impl ::subxt::blocks::StaticExtrinsic for SetAsyncBackingParams { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_async_backing_params"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_executor_params`]."] - pub struct SetExecutorParams { - pub new: set_executor_params::New, - } - pub mod set_executor_params { - use super::runtime_types; - pub type New = - runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams; - } - impl ::subxt::blocks::StaticExtrinsic for SetExecutorParams { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_executor_params"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_on_demand_base_fee`]."] - pub struct SetOnDemandBaseFee { - pub new: set_on_demand_base_fee::New, - } - pub mod set_on_demand_base_fee { - use super::runtime_types; - pub type New = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for SetOnDemandBaseFee { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_on_demand_base_fee"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_on_demand_fee_variability`]."] - pub struct SetOnDemandFeeVariability { - pub new: set_on_demand_fee_variability::New, - } - pub mod set_on_demand_fee_variability { - use super::runtime_types; - pub type New = runtime_types::sp_arithmetic::per_things::Perbill; - } - impl ::subxt::blocks::StaticExtrinsic for SetOnDemandFeeVariability { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_on_demand_fee_variability"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_on_demand_queue_max_size`]."] - pub struct SetOnDemandQueueMaxSize { - pub new: set_on_demand_queue_max_size::New, - } - pub mod set_on_demand_queue_max_size { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetOnDemandQueueMaxSize { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_on_demand_queue_max_size"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_on_demand_target_queue_utilization`]."] - pub struct SetOnDemandTargetQueueUtilization { - pub new: set_on_demand_target_queue_utilization::New, - } - pub mod set_on_demand_target_queue_utilization { - use super::runtime_types; - pub type New = runtime_types::sp_arithmetic::per_things::Perbill; - } - impl ::subxt::blocks::StaticExtrinsic for SetOnDemandTargetQueueUtilization { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_on_demand_target_queue_utilization"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_on_demand_ttl`]."] - pub struct SetOnDemandTtl { - pub new: set_on_demand_ttl::New, - } - pub mod set_on_demand_ttl { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetOnDemandTtl { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_on_demand_ttl"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_minimum_backing_votes`]."] - pub struct SetMinimumBackingVotes { - pub new: set_minimum_backing_votes::New, - } - pub mod set_minimum_backing_votes { - use super::runtime_types; - pub type New = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMinimumBackingVotes { - const PALLET: &'static str = "Configuration"; - const CALL: &'static str = "set_minimum_backing_votes"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] - pub fn set_validation_upgrade_cooldown( - &self, - new: types::set_validation_upgrade_cooldown::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_validation_upgrade_cooldown", - types::SetValidationUpgradeCooldown { new }, - [ - 233u8, 224u8, 19u8, 198u8, 27u8, 104u8, 64u8, 248u8, 223u8, 51u8, - 175u8, 162u8, 183u8, 43u8, 108u8, 246u8, 162u8, 210u8, 53u8, 56u8, - 174u8, 203u8, 79u8, 143u8, 13u8, 101u8, 100u8, 11u8, 127u8, 76u8, 71u8, - 228u8, - ], - ) - } - #[doc = "See [`Pallet::set_validation_upgrade_delay`]."] - pub fn set_validation_upgrade_delay( - &self, - new: types::set_validation_upgrade_delay::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_validation_upgrade_delay", - types::SetValidationUpgradeDelay { new }, - [ - 13u8, 139u8, 210u8, 115u8, 20u8, 121u8, 55u8, 118u8, 101u8, 236u8, - 95u8, 79u8, 46u8, 44u8, 129u8, 129u8, 60u8, 198u8, 13u8, 17u8, 115u8, - 187u8, 181u8, 37u8, 75u8, 153u8, 13u8, 196u8, 49u8, 204u8, 26u8, 198u8, - ], - ) - } - #[doc = "See [`Pallet::set_code_retention_period`]."] - pub fn set_code_retention_period( - &self, - new: types::set_code_retention_period::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_code_retention_period", - types::SetCodeRetentionPeriod { new }, - [ - 169u8, 77u8, 107u8, 175u8, 172u8, 177u8, 169u8, 194u8, 219u8, 6u8, - 192u8, 40u8, 55u8, 241u8, 128u8, 111u8, 95u8, 67u8, 173u8, 247u8, - 220u8, 66u8, 45u8, 76u8, 108u8, 137u8, 220u8, 194u8, 86u8, 41u8, 245u8, - 226u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_code_size`]."] - pub fn set_max_code_size( - &self, - new: types::set_max_code_size::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_code_size", - types::SetMaxCodeSize { new }, - [ - 122u8, 74u8, 244u8, 226u8, 89u8, 175u8, 191u8, 163u8, 34u8, 79u8, - 118u8, 254u8, 236u8, 215u8, 8u8, 182u8, 71u8, 180u8, 224u8, 165u8, - 226u8, 242u8, 124u8, 34u8, 38u8, 27u8, 29u8, 140u8, 187u8, 93u8, 131u8, - 168u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_pov_size`]."] - pub fn set_max_pov_size( - &self, - new: types::set_max_pov_size::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_pov_size", - types::SetMaxPovSize { new }, - [ - 170u8, 106u8, 163u8, 4u8, 27u8, 72u8, 250u8, 59u8, 133u8, 128u8, 177u8, - 209u8, 22u8, 42u8, 230u8, 40u8, 192u8, 198u8, 56u8, 195u8, 31u8, 20u8, - 35u8, 196u8, 119u8, 183u8, 141u8, 38u8, 52u8, 54u8, 31u8, 122u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_head_data_size`]."] - pub fn set_max_head_data_size( - &self, - new: types::set_max_head_data_size::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_head_data_size", - types::SetMaxHeadDataSize { new }, - [ - 216u8, 146u8, 104u8, 253u8, 123u8, 192u8, 123u8, 82u8, 149u8, 22u8, - 31u8, 107u8, 67u8, 102u8, 163u8, 239u8, 57u8, 183u8, 93u8, 20u8, 126u8, - 39u8, 36u8, 242u8, 252u8, 68u8, 150u8, 121u8, 147u8, 186u8, 39u8, - 181u8, - ], - ) - } - #[doc = "See [`Pallet::set_on_demand_cores`]."] - pub fn set_on_demand_cores( - &self, - new: types::set_on_demand_cores::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_on_demand_cores", - types::SetOnDemandCores { new }, - [ - 157u8, 26u8, 82u8, 103u8, 83u8, 214u8, 92u8, 176u8, 93u8, 70u8, 32u8, - 217u8, 139u8, 30u8, 145u8, 237u8, 34u8, 121u8, 190u8, 17u8, 128u8, - 243u8, 241u8, 181u8, 85u8, 141u8, 107u8, 70u8, 121u8, 119u8, 20u8, - 104u8, - ], - ) - } - #[doc = "See [`Pallet::set_on_demand_retries`]."] - pub fn set_on_demand_retries( - &self, - new: types::set_on_demand_retries::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_on_demand_retries", - types::SetOnDemandRetries { new }, - [ - 228u8, 78u8, 216u8, 66u8, 17u8, 51u8, 84u8, 14u8, 80u8, 67u8, 24u8, - 138u8, 177u8, 108u8, 203u8, 87u8, 240u8, 125u8, 111u8, 223u8, 216u8, - 212u8, 69u8, 236u8, 216u8, 178u8, 166u8, 145u8, 115u8, 47u8, 147u8, - 235u8, - ], - ) - } - #[doc = "See [`Pallet::set_group_rotation_frequency`]."] - pub fn set_group_rotation_frequency( - &self, - new: types::set_group_rotation_frequency::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_group_rotation_frequency", - types::SetGroupRotationFrequency { new }, - [ - 33u8, 142u8, 63u8, 205u8, 128u8, 109u8, 157u8, 33u8, 122u8, 91u8, 57u8, - 223u8, 134u8, 80u8, 108u8, 187u8, 147u8, 120u8, 104u8, 170u8, 32u8, - 135u8, 102u8, 38u8, 82u8, 20u8, 123u8, 211u8, 245u8, 91u8, 134u8, 44u8, - ], - ) - } - #[doc = "See [`Pallet::set_paras_availability_period`]."] - pub fn set_paras_availability_period( - &self, - new: types::set_paras_availability_period::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_paras_availability_period", - types::SetParasAvailabilityPeriod { new }, - [ - 83u8, 171u8, 219u8, 129u8, 231u8, 54u8, 45u8, 19u8, 167u8, 21u8, 232u8, - 205u8, 166u8, 83u8, 234u8, 101u8, 205u8, 248u8, 74u8, 39u8, 130u8, - 15u8, 92u8, 39u8, 239u8, 111u8, 215u8, 165u8, 149u8, 11u8, 89u8, 119u8, - ], - ) - } - #[doc = "See [`Pallet::set_scheduling_lookahead`]."] - pub fn set_scheduling_lookahead( - &self, - new: types::set_scheduling_lookahead::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_scheduling_lookahead", - types::SetSchedulingLookahead { new }, - [ - 176u8, 115u8, 251u8, 197u8, 19u8, 106u8, 253u8, 224u8, 149u8, 96u8, - 238u8, 106u8, 19u8, 19u8, 89u8, 249u8, 186u8, 89u8, 144u8, 116u8, - 251u8, 30u8, 157u8, 237u8, 125u8, 153u8, 86u8, 6u8, 251u8, 170u8, 73u8, - 216u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_validators_per_core`]."] - pub fn set_max_validators_per_core( - &self, - new: types::set_max_validators_per_core::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_validators_per_core", - types::SetMaxValidatorsPerCore { new }, - [ - 152u8, 112u8, 244u8, 133u8, 209u8, 166u8, 55u8, 155u8, 12u8, 216u8, - 62u8, 111u8, 81u8, 52u8, 194u8, 121u8, 172u8, 201u8, 204u8, 139u8, - 198u8, 238u8, 9u8, 49u8, 119u8, 236u8, 46u8, 0u8, 179u8, 234u8, 92u8, - 45u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_validators`]."] - pub fn set_max_validators( - &self, - new: types::set_max_validators::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_validators", - types::SetMaxValidators { new }, - [ - 219u8, 76u8, 191u8, 139u8, 250u8, 154u8, 232u8, 176u8, 248u8, 154u8, - 185u8, 89u8, 135u8, 151u8, 183u8, 132u8, 72u8, 63u8, 101u8, 183u8, - 142u8, 169u8, 163u8, 226u8, 24u8, 139u8, 78u8, 155u8, 3u8, 136u8, - 142u8, 137u8, - ], - ) - } - #[doc = "See [`Pallet::set_dispute_period`]."] - pub fn set_dispute_period( - &self, - new: types::set_dispute_period::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_dispute_period", - types::SetDisputePeriod { new }, - [ - 104u8, 229u8, 235u8, 207u8, 136u8, 207u8, 181u8, 99u8, 0u8, 84u8, - 200u8, 244u8, 220u8, 52u8, 64u8, 26u8, 232u8, 212u8, 242u8, 190u8, - 67u8, 180u8, 171u8, 200u8, 181u8, 23u8, 32u8, 240u8, 231u8, 217u8, - 23u8, 146u8, - ], - ) - } - #[doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] - pub fn set_dispute_post_conclusion_acceptance_period( - &self, - new: types::set_dispute_post_conclusion_acceptance_period::New, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_dispute_post_conclusion_acceptance_period", - types::SetDisputePostConclusionAcceptancePeriod { new }, - [ - 251u8, 176u8, 139u8, 76u8, 7u8, 246u8, 198u8, 190u8, 39u8, 249u8, 95u8, - 226u8, 53u8, 186u8, 112u8, 101u8, 229u8, 80u8, 240u8, 185u8, 108u8, - 228u8, 91u8, 103u8, 128u8, 218u8, 231u8, 210u8, 164u8, 197u8, 84u8, - 149u8, - ], - ) - } - #[doc = "See [`Pallet::set_no_show_slots`]."] - pub fn set_no_show_slots( - &self, - new: types::set_no_show_slots::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_no_show_slots", - types::SetNoShowSlots { new }, - [ - 123u8, 204u8, 253u8, 222u8, 224u8, 215u8, 247u8, 154u8, 225u8, 79u8, - 29u8, 171u8, 107u8, 216u8, 215u8, 14u8, 8u8, 230u8, 49u8, 97u8, 20u8, - 84u8, 70u8, 33u8, 254u8, 63u8, 186u8, 7u8, 184u8, 135u8, 74u8, 139u8, - ], - ) - } - #[doc = "See [`Pallet::set_n_delay_tranches`]."] - pub fn set_n_delay_tranches( - &self, - new: types::set_n_delay_tranches::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_n_delay_tranches", - types::SetNDelayTranches { new }, - [ - 157u8, 177u8, 251u8, 227u8, 118u8, 250u8, 129u8, 254u8, 33u8, 250u8, - 61u8, 148u8, 189u8, 92u8, 49u8, 119u8, 107u8, 40u8, 255u8, 119u8, - 241u8, 188u8, 109u8, 240u8, 229u8, 169u8, 31u8, 62u8, 174u8, 14u8, - 247u8, 235u8, - ], - ) - } - #[doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] - pub fn set_zeroth_delay_tranche_width( - &self, - new: types::set_zeroth_delay_tranche_width::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_zeroth_delay_tranche_width", - types::SetZerothDelayTrancheWidth { new }, - [ - 30u8, 195u8, 15u8, 51u8, 210u8, 159u8, 254u8, 207u8, 121u8, 172u8, - 107u8, 241u8, 55u8, 100u8, 159u8, 55u8, 76u8, 47u8, 86u8, 93u8, 221u8, - 34u8, 136u8, 97u8, 224u8, 141u8, 46u8, 181u8, 246u8, 137u8, 79u8, 57u8, - ], - ) - } - #[doc = "See [`Pallet::set_needed_approvals`]."] - pub fn set_needed_approvals( - &self, - new: types::set_needed_approvals::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_needed_approvals", - types::SetNeededApprovals { new }, - [ - 245u8, 105u8, 16u8, 120u8, 28u8, 231u8, 6u8, 50u8, 143u8, 102u8, 1u8, - 97u8, 224u8, 232u8, 187u8, 164u8, 200u8, 31u8, 129u8, 139u8, 79u8, - 170u8, 14u8, 147u8, 117u8, 13u8, 98u8, 16u8, 64u8, 169u8, 46u8, 41u8, - ], - ) - } - #[doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] - pub fn set_relay_vrf_modulo_samples( - &self, - new: types::set_relay_vrf_modulo_samples::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_relay_vrf_modulo_samples", - types::SetRelayVrfModuloSamples { new }, - [ - 96u8, 100u8, 42u8, 61u8, 244u8, 226u8, 135u8, 187u8, 56u8, 193u8, - 247u8, 236u8, 38u8, 40u8, 242u8, 222u8, 176u8, 209u8, 211u8, 217u8, - 178u8, 32u8, 160u8, 56u8, 23u8, 60u8, 222u8, 166u8, 134u8, 72u8, 153u8, - 14u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_upward_queue_count`]."] - pub fn set_max_upward_queue_count( - &self, - new: types::set_max_upward_queue_count::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_upward_queue_count", - types::SetMaxUpwardQueueCount { new }, - [ - 187u8, 102u8, 178u8, 141u8, 245u8, 8u8, 221u8, 174u8, 128u8, 239u8, - 104u8, 120u8, 202u8, 220u8, 46u8, 27u8, 175u8, 26u8, 1u8, 170u8, 193u8, - 70u8, 176u8, 13u8, 223u8, 57u8, 153u8, 161u8, 228u8, 175u8, 226u8, - 202u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_upward_queue_size`]."] - pub fn set_max_upward_queue_size( - &self, - new: types::set_max_upward_queue_size::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_upward_queue_size", - types::SetMaxUpwardQueueSize { new }, - [ - 245u8, 234u8, 151u8, 232u8, 49u8, 193u8, 60u8, 21u8, 103u8, 238u8, - 194u8, 73u8, 238u8, 160u8, 48u8, 88u8, 143u8, 197u8, 110u8, 230u8, - 213u8, 149u8, 171u8, 94u8, 77u8, 6u8, 139u8, 191u8, 158u8, 62u8, 181u8, - 32u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_downward_message_size`]."] - pub fn set_max_downward_message_size( - &self, - new: types::set_max_downward_message_size::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_downward_message_size", - types::SetMaxDownwardMessageSize { new }, - [ - 63u8, 112u8, 231u8, 193u8, 226u8, 6u8, 119u8, 35u8, 60u8, 34u8, 85u8, - 15u8, 168u8, 16u8, 176u8, 116u8, 169u8, 114u8, 42u8, 208u8, 89u8, - 188u8, 22u8, 145u8, 248u8, 87u8, 74u8, 168u8, 0u8, 202u8, 112u8, 13u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_upward_message_size`]."] - pub fn set_max_upward_message_size( - &self, - new: types::set_max_upward_message_size::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_upward_message_size", - types::SetMaxUpwardMessageSize { new }, - [ - 237u8, 108u8, 33u8, 245u8, 65u8, 209u8, 201u8, 97u8, 126u8, 194u8, - 195u8, 8u8, 144u8, 223u8, 148u8, 242u8, 97u8, 214u8, 38u8, 231u8, - 123u8, 143u8, 34u8, 199u8, 100u8, 183u8, 211u8, 111u8, 250u8, 245u8, - 10u8, 38u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] - pub fn set_max_upward_message_num_per_candidate( - &self, - new: types::set_max_upward_message_num_per_candidate::New, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_max_upward_message_num_per_candidate", - types::SetMaxUpwardMessageNumPerCandidate { new }, - [ - 183u8, 121u8, 87u8, 193u8, 8u8, 160u8, 107u8, 80u8, 50u8, 8u8, 75u8, - 185u8, 195u8, 248u8, 75u8, 174u8, 210u8, 108u8, 149u8, 20u8, 66u8, - 153u8, 20u8, 203u8, 92u8, 99u8, 27u8, 69u8, 212u8, 212u8, 35u8, 49u8, - ], - ) - } - #[doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] - pub fn set_hrmp_open_request_ttl( - &self, - new: types::set_hrmp_open_request_ttl::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_open_request_ttl", - types::SetHrmpOpenRequestTtl { new }, - [ - 233u8, 46u8, 165u8, 59u8, 196u8, 77u8, 161u8, 124u8, 252u8, 98u8, 8u8, - 52u8, 80u8, 17u8, 12u8, 50u8, 25u8, 127u8, 143u8, 252u8, 230u8, 10u8, - 193u8, 251u8, 167u8, 73u8, 40u8, 63u8, 203u8, 119u8, 208u8, 254u8, - ], - ) - } - #[doc = "See [`Pallet::set_hrmp_sender_deposit`]."] - pub fn set_hrmp_sender_deposit( - &self, - new: types::set_hrmp_sender_deposit::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_sender_deposit", - types::SetHrmpSenderDeposit { new }, - [ - 4u8, 141u8, 15u8, 87u8, 237u8, 39u8, 225u8, 108u8, 159u8, 240u8, 121u8, - 212u8, 225u8, 155u8, 168u8, 28u8, 61u8, 119u8, 232u8, 216u8, 194u8, - 172u8, 147u8, 16u8, 50u8, 100u8, 146u8, 146u8, 69u8, 252u8, 94u8, 47u8, - ], - ) - } - #[doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] - pub fn set_hrmp_recipient_deposit( - &self, - new: types::set_hrmp_recipient_deposit::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_recipient_deposit", - types::SetHrmpRecipientDeposit { new }, - [ - 242u8, 193u8, 202u8, 91u8, 69u8, 252u8, 101u8, 52u8, 162u8, 107u8, - 165u8, 69u8, 90u8, 150u8, 62u8, 239u8, 167u8, 2u8, 221u8, 3u8, 231u8, - 252u8, 82u8, 125u8, 212u8, 174u8, 47u8, 216u8, 219u8, 237u8, 242u8, - 144u8, - ], - ) - } - #[doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] - pub fn set_hrmp_channel_max_capacity( - &self, - new: types::set_hrmp_channel_max_capacity::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_channel_max_capacity", - types::SetHrmpChannelMaxCapacity { new }, - [ - 140u8, 138u8, 197u8, 45u8, 144u8, 102u8, 150u8, 172u8, 110u8, 6u8, - 99u8, 130u8, 62u8, 217u8, 119u8, 110u8, 180u8, 132u8, 102u8, 161u8, - 78u8, 59u8, 209u8, 44u8, 120u8, 183u8, 13u8, 88u8, 89u8, 15u8, 224u8, - 224u8, - ], - ) - } - #[doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] - pub fn set_hrmp_channel_max_total_size( - &self, - new: types::set_hrmp_channel_max_total_size::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_channel_max_total_size", - types::SetHrmpChannelMaxTotalSize { new }, - [ - 149u8, 21u8, 229u8, 107u8, 125u8, 28u8, 17u8, 155u8, 45u8, 230u8, 50u8, - 64u8, 16u8, 171u8, 24u8, 58u8, 246u8, 57u8, 247u8, 20u8, 34u8, 217u8, - 206u8, 157u8, 40u8, 205u8, 187u8, 205u8, 199u8, 24u8, 115u8, 214u8, - ], - ) - } - #[doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] - pub fn set_hrmp_max_parachain_inbound_channels( - &self, - new: types::set_hrmp_max_parachain_inbound_channels::New, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_max_parachain_inbound_channels", - types::SetHrmpMaxParachainInboundChannels { new }, - [ - 203u8, 10u8, 55u8, 21u8, 21u8, 254u8, 74u8, 97u8, 34u8, 117u8, 160u8, - 183u8, 168u8, 235u8, 11u8, 9u8, 137u8, 141u8, 150u8, 80u8, 32u8, 41u8, - 118u8, 40u8, 28u8, 74u8, 155u8, 7u8, 63u8, 217u8, 39u8, 104u8, - ], - ) - } - #[doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] - pub fn set_hrmp_channel_max_message_size( - &self, - new: types::set_hrmp_channel_max_message_size::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_channel_max_message_size", - types::SetHrmpChannelMaxMessageSize { new }, - [ - 153u8, 216u8, 55u8, 31u8, 189u8, 173u8, 23u8, 6u8, 213u8, 103u8, 205u8, - 154u8, 115u8, 105u8, 84u8, 133u8, 94u8, 254u8, 47u8, 128u8, 130u8, - 114u8, 227u8, 102u8, 214u8, 146u8, 215u8, 183u8, 179u8, 151u8, 43u8, - 187u8, - ], - ) - } - #[doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] - pub fn set_hrmp_max_parachain_outbound_channels( - &self, - new: types::set_hrmp_max_parachain_outbound_channels::New, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_max_parachain_outbound_channels", - types::SetHrmpMaxParachainOutboundChannels { new }, - [ - 91u8, 100u8, 158u8, 17u8, 123u8, 31u8, 6u8, 92u8, 80u8, 92u8, 83u8, - 195u8, 234u8, 207u8, 55u8, 88u8, 75u8, 81u8, 219u8, 131u8, 234u8, 5u8, - 75u8, 236u8, 57u8, 93u8, 70u8, 145u8, 255u8, 171u8, 25u8, 174u8, - ], - ) - } - #[doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] - pub fn set_hrmp_max_message_num_per_candidate( - &self, - new: types::set_hrmp_max_message_num_per_candidate::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_hrmp_max_message_num_per_candidate", - types::SetHrmpMaxMessageNumPerCandidate { new }, - [ - 179u8, 44u8, 231u8, 12u8, 166u8, 160u8, 223u8, 164u8, 218u8, 173u8, - 157u8, 49u8, 16u8, 220u8, 0u8, 224u8, 67u8, 194u8, 210u8, 207u8, 237u8, - 96u8, 96u8, 24u8, 71u8, 237u8, 30u8, 152u8, 105u8, 245u8, 157u8, 218u8, - ], - ) - } - #[doc = "See [`Pallet::set_pvf_voting_ttl`]."] - pub fn set_pvf_voting_ttl( - &self, - new: types::set_pvf_voting_ttl::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_pvf_voting_ttl", - types::SetPvfVotingTtl { new }, - [ - 115u8, 135u8, 76u8, 222u8, 214u8, 80u8, 103u8, 250u8, 194u8, 34u8, - 129u8, 245u8, 216u8, 69u8, 166u8, 247u8, 138u8, 94u8, 135u8, 228u8, - 90u8, 145u8, 2u8, 244u8, 73u8, 178u8, 61u8, 251u8, 21u8, 197u8, 202u8, - 246u8, - ], - ) - } - #[doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] - pub fn set_minimum_validation_upgrade_delay( - &self, - new: types::set_minimum_validation_upgrade_delay::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_minimum_validation_upgrade_delay", - types::SetMinimumValidationUpgradeDelay { new }, - [ - 143u8, 217u8, 201u8, 206u8, 206u8, 244u8, 116u8, 118u8, 13u8, 169u8, - 132u8, 125u8, 253u8, 178u8, 196u8, 12u8, 251u8, 32u8, 201u8, 133u8, - 50u8, 59u8, 37u8, 169u8, 198u8, 112u8, 136u8, 47u8, 205u8, 141u8, - 191u8, 212u8, - ], - ) - } - #[doc = "See [`Pallet::set_bypass_consistency_check`]."] - pub fn set_bypass_consistency_check( - &self, - new: types::set_bypass_consistency_check::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_bypass_consistency_check", - types::SetBypassConsistencyCheck { new }, - [ - 11u8, 211u8, 68u8, 221u8, 178u8, 108u8, 101u8, 55u8, 107u8, 135u8, - 203u8, 112u8, 173u8, 161u8, 23u8, 104u8, 95u8, 200u8, 46u8, 231u8, - 114u8, 3u8, 8u8, 89u8, 147u8, 141u8, 55u8, 65u8, 125u8, 45u8, 218u8, - 78u8, - ], - ) - } - #[doc = "See [`Pallet::set_async_backing_params`]."] - pub fn set_async_backing_params( - &self, - new: types::set_async_backing_params::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_async_backing_params", - types::SetAsyncBackingParams { new }, - [ - 28u8, 148u8, 243u8, 41u8, 68u8, 91u8, 113u8, 162u8, 126u8, 115u8, - 122u8, 220u8, 126u8, 19u8, 119u8, 236u8, 20u8, 112u8, 181u8, 76u8, - 191u8, 225u8, 44u8, 207u8, 85u8, 246u8, 10u8, 167u8, 132u8, 211u8, - 14u8, 83u8, - ], - ) - } - #[doc = "See [`Pallet::set_executor_params`]."] - pub fn set_executor_params( - &self, - new: types::set_executor_params::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_executor_params", - types::SetExecutorParams { new }, - [ - 219u8, 27u8, 25u8, 162u8, 61u8, 189u8, 61u8, 32u8, 101u8, 139u8, 89u8, - 51u8, 191u8, 223u8, 94u8, 145u8, 109u8, 247u8, 22u8, 64u8, 178u8, 97u8, - 239u8, 0u8, 125u8, 20u8, 62u8, 210u8, 110u8, 79u8, 225u8, 43u8, - ], - ) - } - #[doc = "See [`Pallet::set_on_demand_base_fee`]."] - pub fn set_on_demand_base_fee( - &self, - new: types::set_on_demand_base_fee::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_on_demand_base_fee", - types::SetOnDemandBaseFee { new }, - [ - 181u8, 205u8, 34u8, 186u8, 152u8, 91u8, 76u8, 55u8, 128u8, 116u8, 44u8, - 32u8, 71u8, 33u8, 247u8, 146u8, 134u8, 15u8, 181u8, 229u8, 105u8, 67u8, - 148u8, 214u8, 211u8, 84u8, 93u8, 122u8, 235u8, 204u8, 63u8, 13u8, - ], - ) - } - #[doc = "See [`Pallet::set_on_demand_fee_variability`]."] - pub fn set_on_demand_fee_variability( - &self, - new: types::set_on_demand_fee_variability::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_on_demand_fee_variability", - types::SetOnDemandFeeVariability { new }, - [ - 255u8, 132u8, 238u8, 200u8, 152u8, 248u8, 89u8, 87u8, 160u8, 38u8, - 38u8, 7u8, 137u8, 178u8, 176u8, 10u8, 63u8, 250u8, 95u8, 68u8, 39u8, - 147u8, 5u8, 214u8, 223u8, 44u8, 225u8, 10u8, 233u8, 155u8, 202u8, - 232u8, - ], - ) - } - #[doc = "See [`Pallet::set_on_demand_queue_max_size`]."] - pub fn set_on_demand_queue_max_size( - &self, - new: types::set_on_demand_queue_max_size::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_on_demand_queue_max_size", - types::SetOnDemandQueueMaxSize { new }, - [ - 207u8, 222u8, 29u8, 91u8, 8u8, 250u8, 0u8, 153u8, 230u8, 206u8, 87u8, - 4u8, 248u8, 28u8, 120u8, 55u8, 24u8, 45u8, 103u8, 75u8, 25u8, 239u8, - 61u8, 238u8, 11u8, 63u8, 82u8, 219u8, 154u8, 27u8, 130u8, 173u8, - ], - ) - } - #[doc = "See [`Pallet::set_on_demand_target_queue_utilization`]."] - pub fn set_on_demand_target_queue_utilization( - &self, - new: types::set_on_demand_target_queue_utilization::New, - ) -> ::subxt::tx::Payload - { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_on_demand_target_queue_utilization", - types::SetOnDemandTargetQueueUtilization { new }, - [ - 78u8, 98u8, 234u8, 149u8, 254u8, 231u8, 174u8, 232u8, 246u8, 16u8, - 218u8, 142u8, 156u8, 247u8, 70u8, 214u8, 144u8, 159u8, 71u8, 241u8, - 178u8, 102u8, 251u8, 153u8, 208u8, 222u8, 121u8, 139u8, 66u8, 146u8, - 94u8, 147u8, - ], - ) - } - #[doc = "See [`Pallet::set_on_demand_ttl`]."] - pub fn set_on_demand_ttl( - &self, - new: types::set_on_demand_ttl::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_on_demand_ttl", - types::SetOnDemandTtl { new }, - [ - 248u8, 250u8, 204u8, 180u8, 134u8, 226u8, 77u8, 206u8, 21u8, 247u8, - 184u8, 68u8, 164u8, 54u8, 230u8, 135u8, 237u8, 226u8, 62u8, 253u8, - 116u8, 47u8, 31u8, 202u8, 110u8, 225u8, 211u8, 105u8, 72u8, 175u8, - 171u8, 169u8, - ], - ) - } - #[doc = "See [`Pallet::set_minimum_backing_votes`]."] - pub fn set_minimum_backing_votes( - &self, - new: types::set_minimum_backing_votes::New, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Configuration", - "set_minimum_backing_votes", - types::SetMinimumBackingVotes { new }, - [ - 55u8, 209u8, 98u8, 156u8, 31u8, 150u8, 61u8, 19u8, 3u8, 55u8, 113u8, - 209u8, 171u8, 143u8, 241u8, 93u8, 178u8, 169u8, 39u8, 241u8, 98u8, - 53u8, 12u8, 148u8, 175u8, 50u8, 164u8, 38u8, 34u8, 183u8, 105u8, 178u8, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod active_config { - use super::runtime_types; - pub type ActiveConfig = runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ; - } - pub mod pending_configs { - use super::runtime_types; - pub type PendingConfigs = :: std :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_runtime_parachains :: configuration :: HostConfiguration < :: core :: primitive :: u32 > ,) > ; - } - pub mod bypass_consistency_check { - use super::runtime_types; - pub type BypassConsistencyCheck = ::core::primitive::bool; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The active configuration for the current session."] - pub fn active_config( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::active_config::ActiveConfig, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Configuration", - "ActiveConfig", - vec![], - [ - 126u8, 223u8, 107u8, 199u8, 21u8, 114u8, 19u8, 172u8, 27u8, 108u8, - 189u8, 165u8, 33u8, 220u8, 57u8, 81u8, 137u8, 242u8, 204u8, 148u8, - 61u8, 161u8, 156u8, 36u8, 20u8, 172u8, 117u8, 30u8, 152u8, 210u8, - 207u8, 161u8, - ], - ) - } - #[doc = " Pending configuration changes."] - #[doc = ""] - #[doc = " This is a list of configuration changes, each with a session index at which it should"] - #[doc = " be applied."] - #[doc = ""] - #[doc = " The list is sorted ascending by session index. Also, this list can only contain at most"] - #[doc = " 2 items: for the next session and for the `scheduled_session`."] - pub fn pending_configs( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pending_configs::PendingConfigs, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Configuration", - "PendingConfigs", - vec![], - [ - 105u8, 89u8, 53u8, 156u8, 60u8, 53u8, 196u8, 187u8, 5u8, 122u8, 186u8, - 196u8, 162u8, 133u8, 254u8, 178u8, 130u8, 143u8, 90u8, 23u8, 234u8, - 105u8, 9u8, 121u8, 142u8, 123u8, 136u8, 166u8, 95u8, 215u8, 176u8, - 46u8, - ], - ) - } - #[doc = " If this is set, then the configuration setters will bypass the consistency checks. This"] - #[doc = " is meant to be used only as the last resort."] - pub fn bypass_consistency_check( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::bypass_consistency_check::BypassConsistencyCheck, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Configuration", - "BypassConsistencyCheck", - vec![], - [ - 109u8, 201u8, 130u8, 189u8, 167u8, 112u8, 171u8, 180u8, 100u8, 146u8, - 23u8, 174u8, 199u8, 230u8, 185u8, 155u8, 178u8, 45u8, 24u8, 66u8, - 211u8, 234u8, 11u8, 103u8, 148u8, 12u8, 247u8, 101u8, 147u8, 18u8, - 11u8, 89u8, - ], - ) - } - } - } - } - pub mod paras_shared { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::shared::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - } - pub struct TransactionApi; - impl TransactionApi {} - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod current_session_index { - use super::runtime_types; - pub type CurrentSessionIndex = ::core::primitive::u32; - } - pub mod active_validator_indices { - use super::runtime_types; - pub type ActiveValidatorIndices = - ::std::vec::Vec; - } - pub mod active_validator_keys { - use super::runtime_types; - pub type ActiveValidatorKeys = ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::validator_app::Public, - >; - } - pub mod allowed_relay_parents { - use super::runtime_types; - pub type AllowedRelayParents = runtime_types :: polkadot_runtime_parachains :: shared :: AllowedRelayParentsTracker < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > ; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The current session index."] - pub fn current_session_index( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::current_session_index::CurrentSessionIndex, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasShared", - "CurrentSessionIndex", - vec![], - [ - 250u8, 164u8, 179u8, 84u8, 199u8, 245u8, 116u8, 48u8, 86u8, 127u8, - 50u8, 117u8, 236u8, 41u8, 107u8, 238u8, 151u8, 236u8, 68u8, 78u8, - 152u8, 5u8, 155u8, 107u8, 69u8, 197u8, 222u8, 94u8, 150u8, 2u8, 31u8, - 191u8, - ], - ) - } - #[doc = " All the validators actively participating in parachain consensus."] - #[doc = " Indices are into the broader validator set."] - pub fn active_validator_indices( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::active_validator_indices::ActiveValidatorIndices, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasShared", - "ActiveValidatorIndices", - vec![], - [ - 80u8, 207u8, 217u8, 195u8, 69u8, 151u8, 27u8, 205u8, 227u8, 89u8, 71u8, - 180u8, 91u8, 116u8, 82u8, 193u8, 108u8, 115u8, 40u8, 247u8, 160u8, - 39u8, 85u8, 99u8, 42u8, 87u8, 54u8, 168u8, 230u8, 201u8, 212u8, 39u8, - ], - ) - } - #[doc = " The parachain attestation keys of the validators actively participating in parachain"] - #[doc = " consensus. This should be the same length as `ActiveValidatorIndices`."] - pub fn active_validator_keys( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::active_validator_keys::ActiveValidatorKeys, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasShared", - "ActiveValidatorKeys", - vec![], - [ - 155u8, 151u8, 155u8, 8u8, 23u8, 38u8, 91u8, 12u8, 94u8, 69u8, 228u8, - 185u8, 14u8, 219u8, 215u8, 98u8, 235u8, 222u8, 157u8, 180u8, 230u8, - 121u8, 205u8, 167u8, 156u8, 134u8, 180u8, 213u8, 87u8, 61u8, 174u8, - 222u8, - ], - ) - } - #[doc = " All allowed relay-parents."] - pub fn allowed_relay_parents( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::allowed_relay_parents::AllowedRelayParents, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasShared", - "AllowedRelayParents", - vec![], - [ - 12u8, 170u8, 241u8, 120u8, 39u8, 216u8, 90u8, 37u8, 119u8, 212u8, - 161u8, 90u8, 233u8, 124u8, 92u8, 43u8, 212u8, 206u8, 153u8, 103u8, - 156u8, 79u8, 74u8, 7u8, 60u8, 35u8, 86u8, 16u8, 0u8, 224u8, 202u8, - 61u8, - ], - ) - } - } - } - } - pub mod para_inclusion { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - } - pub struct TransactionApi; - impl TransactionApi {} - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A candidate was backed. `[candidate, head_data]`"] - pub struct CandidateBacked( - pub candidate_backed::Field0, - pub candidate_backed::Field1, - pub candidate_backed::Field2, - pub candidate_backed::Field3, - ); - pub mod candidate_backed { - use super::runtime_types; - pub type Field0 = - runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>; - pub type Field1 = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type Field2 = runtime_types::polkadot_primitives::v6::CoreIndex; - pub type Field3 = runtime_types::polkadot_primitives::v6::GroupIndex; - } - impl ::subxt::events::StaticEvent for CandidateBacked { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "CandidateBacked"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A candidate was included. `[candidate, head_data]`"] - pub struct CandidateIncluded( - pub candidate_included::Field0, - pub candidate_included::Field1, - pub candidate_included::Field2, - pub candidate_included::Field3, - ); - pub mod candidate_included { - use super::runtime_types; - pub type Field0 = - runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>; - pub type Field1 = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type Field2 = runtime_types::polkadot_primitives::v6::CoreIndex; - pub type Field3 = runtime_types::polkadot_primitives::v6::GroupIndex; - } - impl ::subxt::events::StaticEvent for CandidateIncluded { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "CandidateIncluded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A candidate timed out. `[candidate, head_data]`"] - pub struct CandidateTimedOut( - pub candidate_timed_out::Field0, - pub candidate_timed_out::Field1, - pub candidate_timed_out::Field2, - ); - pub mod candidate_timed_out { - use super::runtime_types; - pub type Field0 = - runtime_types::polkadot_primitives::v6::CandidateReceipt<::subxt::utils::H256>; - pub type Field1 = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type Field2 = runtime_types::polkadot_primitives::v6::CoreIndex; - } - impl ::subxt::events::StaticEvent for CandidateTimedOut { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "CandidateTimedOut"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some upward messages have been received and will be processed."] - pub struct UpwardMessagesReceived { - pub from: upward_messages_received::From, - pub count: upward_messages_received::Count, - } - pub mod upward_messages_received { - use super::runtime_types; - pub type From = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Count = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for UpwardMessagesReceived { - const PALLET: &'static str = "ParaInclusion"; - const EVENT: &'static str = "UpwardMessagesReceived"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod availability_bitfields { - use super::runtime_types; - pub type AvailabilityBitfields = runtime_types :: polkadot_runtime_parachains :: inclusion :: AvailabilityBitfieldRecord < :: core :: primitive :: u32 > ; - pub type Param0 = runtime_types::polkadot_primitives::v6::ValidatorIndex; - } - pub mod pending_availability { - use super::runtime_types; - pub type PendingAvailability = runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: utils :: H256 , :: core :: primitive :: u32 > ; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod pending_availability_commitments { - use super::runtime_types; - pub type PendingAvailabilityCommitments = - runtime_types::polkadot_primitives::v6::CandidateCommitments< - ::core::primitive::u32, - >; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] - pub fn availability_bitfields_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::availability_bitfields::AvailabilityBitfields, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParaInclusion", - "AvailabilityBitfields", - vec![], - [ - 163u8, 169u8, 217u8, 160u8, 147u8, 165u8, 186u8, 21u8, 171u8, 177u8, - 74u8, 69u8, 55u8, 205u8, 46u8, 13u8, 253u8, 83u8, 55u8, 190u8, 22u8, - 61u8, 32u8, 209u8, 54u8, 120u8, 187u8, 39u8, 114u8, 70u8, 212u8, 170u8, - ], - ) - } - #[doc = " The latest bitfield for each validator, referred to by their index in the validator set."] - pub fn availability_bitfields( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::availability_bitfields::AvailabilityBitfields, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaInclusion", - "AvailabilityBitfields", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 163u8, 169u8, 217u8, 160u8, 147u8, 165u8, 186u8, 21u8, 171u8, 177u8, - 74u8, 69u8, 55u8, 205u8, 46u8, 13u8, 253u8, 83u8, 55u8, 190u8, 22u8, - 61u8, 32u8, 209u8, 54u8, 120u8, 187u8, 39u8, 114u8, 70u8, 212u8, 170u8, - ], - ) - } - #[doc = " Candidates pending availability by `ParaId`."] - pub fn pending_availability_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pending_availability::PendingAvailability, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParaInclusion", - "PendingAvailability", - vec![], - [ - 164u8, 175u8, 34u8, 182u8, 190u8, 147u8, 42u8, 185u8, 162u8, 130u8, - 33u8, 159u8, 234u8, 242u8, 90u8, 119u8, 2u8, 195u8, 48u8, 150u8, 135u8, - 87u8, 8u8, 142u8, 243u8, 142u8, 57u8, 121u8, 225u8, 218u8, 22u8, 132u8, - ], - ) - } - #[doc = " Candidates pending availability by `ParaId`."] - pub fn pending_availability( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pending_availability::PendingAvailability, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaInclusion", - "PendingAvailability", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 164u8, 175u8, 34u8, 182u8, 190u8, 147u8, 42u8, 185u8, 162u8, 130u8, - 33u8, 159u8, 234u8, 242u8, 90u8, 119u8, 2u8, 195u8, 48u8, 150u8, 135u8, - 87u8, 8u8, 142u8, 243u8, 142u8, 57u8, 121u8, 225u8, 218u8, 22u8, 132u8, - ], - ) - } - #[doc = " The commitments of candidates pending availability, by `ParaId`."] - pub fn pending_availability_commitments_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pending_availability_commitments::PendingAvailabilityCommitments, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParaInclusion", - "PendingAvailabilityCommitments", - vec![], - [ - 196u8, 210u8, 210u8, 16u8, 246u8, 105u8, 121u8, 178u8, 5u8, 48u8, 40u8, - 183u8, 63u8, 147u8, 48u8, 74u8, 20u8, 83u8, 76u8, 84u8, 41u8, 30u8, - 182u8, 246u8, 164u8, 108u8, 113u8, 16u8, 169u8, 64u8, 97u8, 202u8, - ], - ) - } - #[doc = " The commitments of candidates pending availability, by `ParaId`."] - pub fn pending_availability_commitments( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pending_availability_commitments::PendingAvailabilityCommitments, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaInclusion", - "PendingAvailabilityCommitments", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 196u8, 210u8, 210u8, 16u8, 246u8, 105u8, 121u8, 178u8, 5u8, 48u8, 40u8, - 183u8, 63u8, 147u8, 48u8, 74u8, 20u8, 83u8, 76u8, 84u8, 41u8, 30u8, - 182u8, 246u8, 164u8, 108u8, 113u8, 16u8, 169u8, 64u8, 97u8, 202u8, - ], - ) - } - } - } - } - pub mod para_inherent { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::enter`]."] - pub struct Enter { - pub data: enter::Data, - } - pub mod enter { - use super::runtime_types; - pub type Data = runtime_types::polkadot_primitives::v6::InherentData< - runtime_types::sp_runtime::generic::header::Header<::core::primitive::u32>, - >; - } - impl ::subxt::blocks::StaticExtrinsic for Enter { - const PALLET: &'static str = "ParaInherent"; - const CALL: &'static str = "enter"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::enter`]."] - pub fn enter( - &self, - data: types::enter::Data, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ParaInherent", - "enter", - types::Enter { data }, - [ - 145u8, 120u8, 158u8, 39u8, 139u8, 223u8, 236u8, 209u8, 253u8, 108u8, - 188u8, 21u8, 23u8, 61u8, 25u8, 171u8, 30u8, 203u8, 161u8, 117u8, 90u8, - 55u8, 50u8, 107u8, 26u8, 52u8, 26u8, 158u8, 56u8, 218u8, 186u8, 142u8, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod included { - use super::runtime_types; - pub type Included = (); - } - pub mod on_chain_votes { - use super::runtime_types; - pub type OnChainVotes = - runtime_types::polkadot_primitives::v6::ScrapedOnChainVotes< - ::subxt::utils::H256, - >; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Whether the paras inherent was included within this block."] - #[doc = ""] - #[doc = " The `Option<()>` is effectively a `bool`, but it never hits storage in the `None` variant"] - #[doc = " due to the guarantees of FRAME's storage APIs."] - #[doc = ""] - #[doc = " If this is `None` at the end of the block, we panic and render the block invalid."] - pub fn included( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::included::Included, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaInherent", - "Included", - vec![], - [ - 108u8, 164u8, 163u8, 34u8, 27u8, 124u8, 202u8, 167u8, 48u8, 130u8, - 155u8, 211u8, 148u8, 130u8, 76u8, 16u8, 5u8, 250u8, 211u8, 174u8, 90u8, - 77u8, 198u8, 153u8, 175u8, 168u8, 131u8, 244u8, 27u8, 93u8, 60u8, 46u8, - ], - ) - } - #[doc = " Scraped on chain data for extracting resolved disputes as well as backing votes."] - pub fn on_chain_votes( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::on_chain_votes::OnChainVotes, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaInherent", - "OnChainVotes", - vec![], - [ - 200u8, 210u8, 42u8, 153u8, 85u8, 71u8, 171u8, 108u8, 148u8, 212u8, - 108u8, 61u8, 178u8, 77u8, 129u8, 90u8, 120u8, 218u8, 228u8, 152u8, - 120u8, 226u8, 29u8, 82u8, 239u8, 146u8, 41u8, 164u8, 193u8, 207u8, - 246u8, 115u8, - ], - ) - } - } - } - } - pub mod para_scheduler { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod validator_groups { - use super::runtime_types; - pub type ValidatorGroups = ::std::vec::Vec< - ::std::vec::Vec, - >; - } - pub mod availability_cores { - use super::runtime_types; - pub type AvailabilityCores = ::std::vec::Vec< - runtime_types::polkadot_runtime_parachains::scheduler::pallet::CoreOccupied< - ::core::primitive::u32, - >, - >; - } - pub mod session_start_block { - use super::runtime_types; - pub type SessionStartBlock = ::core::primitive::u32; - } - pub mod claim_queue { - use super::runtime_types; - pub type ClaimQueue = :: subxt :: utils :: KeyedVec < runtime_types :: polkadot_primitives :: v6 :: CoreIndex , :: std :: vec :: Vec < :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: scheduler :: pallet :: ParasEntry < :: core :: primitive :: u32 > > > > ; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " All the validator groups. One for each core. Indices are into `ActiveValidators` - not the"] - #[doc = " broader set of Polkadot validators, but instead just the subset used for parachains during"] - #[doc = " this session."] - #[doc = ""] - #[doc = " Bound: The number of cores is the sum of the numbers of parachains and parathread"] - #[doc = " multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe"] - #[doc = " upper bound at 10k."] - pub fn validator_groups( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::validator_groups::ValidatorGroups, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaScheduler", - "ValidatorGroups", - vec![], - [ - 129u8, 58u8, 65u8, 112u8, 4u8, 172u8, 167u8, 19u8, 96u8, 154u8, 159u8, - 83u8, 94u8, 125u8, 60u8, 43u8, 60u8, 70u8, 1u8, 58u8, 222u8, 31u8, - 73u8, 53u8, 71u8, 181u8, 49u8, 64u8, 212u8, 90u8, 128u8, 185u8, - ], - ) - } - #[doc = " One entry for each availability core. Entries are `None` if the core is not currently"] - #[doc = " occupied. Can be temporarily `Some` if scheduled but not occupied."] - #[doc = " The i'th parachain belongs to the i'th core, with the remaining cores all being"] - #[doc = " parathread-multiplexers."] - #[doc = ""] - #[doc = " Bounded by the maximum of either of these two values:"] - #[doc = " * The number of parachains and parathread multiplexers"] - #[doc = " * The number of validators divided by `configuration.max_validators_per_core`."] - pub fn availability_cores( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::availability_cores::AvailabilityCores, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaScheduler", - "AvailabilityCores", - vec![], - [ - 134u8, 59u8, 206u8, 4u8, 69u8, 72u8, 73u8, 25u8, 139u8, 152u8, 202u8, - 43u8, 224u8, 77u8, 64u8, 57u8, 218u8, 245u8, 254u8, 222u8, 227u8, 95u8, - 119u8, 134u8, 218u8, 47u8, 154u8, 233u8, 229u8, 172u8, 100u8, 86u8, - ], - ) - } - #[doc = " The block number where the session start occurred. Used to track how many group rotations"] - #[doc = " have occurred."] - #[doc = ""] - #[doc = " Note that in the context of parachains modules the session change is signaled during"] - #[doc = " the block and enacted at the end of the block (at the finalization stage, to be exact)."] - #[doc = " Thus for all intents and purposes the effect of the session change is observed at the"] - #[doc = " block following the session change, block number of which we save in this storage value."] - pub fn session_start_block( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::session_start_block::SessionStartBlock, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaScheduler", - "SessionStartBlock", - vec![], - [ - 185u8, 76u8, 120u8, 75u8, 154u8, 31u8, 33u8, 243u8, 16u8, 77u8, 100u8, - 249u8, 21u8, 44u8, 199u8, 195u8, 37u8, 9u8, 218u8, 148u8, 222u8, 90u8, - 113u8, 34u8, 152u8, 215u8, 114u8, 134u8, 81u8, 139u8, 164u8, 71u8, - ], - ) - } - #[doc = " One entry for each availability core. The `VecDeque` represents the assignments to be"] - #[doc = " scheduled on that core. `None` is used to signal to not schedule the next para of the core"] - #[doc = " as there is one currently being scheduled. Not using `None` here would overwrite the"] - #[doc = " `CoreState` in the runtime API. The value contained here will not be valid after the end of"] - #[doc = " a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block."] - pub fn claim_queue( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::claim_queue::ClaimQueue, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaScheduler", - "ClaimQueue", - vec![], - [ - 132u8, 78u8, 109u8, 225u8, 170u8, 78u8, 17u8, 53u8, 56u8, 218u8, 14u8, - 17u8, 230u8, 247u8, 11u8, 223u8, 18u8, 98u8, 92u8, 164u8, 223u8, 143u8, - 241u8, 64u8, 185u8, 108u8, 228u8, 137u8, 122u8, 100u8, 29u8, 239u8, - ], - ) - } - } - } - } - pub mod paras { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::paras::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::paras::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_set_current_code`]."] - pub struct ForceSetCurrentCode { - pub para: force_set_current_code::Para, - pub new_code: force_set_current_code::NewCode, - } - pub mod force_set_current_code { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentCode { - const PALLET: &'static str = "Paras"; - const CALL: &'static str = "force_set_current_code"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_set_current_head`]."] - pub struct ForceSetCurrentHead { - pub para: force_set_current_head::Para, - pub new_head: force_set_current_head::NewHead, - } - pub mod force_set_current_head { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - } - impl ::subxt::blocks::StaticExtrinsic for ForceSetCurrentHead { - const PALLET: &'static str = "Paras"; - const CALL: &'static str = "force_set_current_head"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_schedule_code_upgrade`]."] - pub struct ForceScheduleCodeUpgrade { - pub para: force_schedule_code_upgrade::Para, - pub new_code: force_schedule_code_upgrade::NewCode, - pub relay_parent_number: force_schedule_code_upgrade::RelayParentNumber, - } - pub mod force_schedule_code_upgrade { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - pub type RelayParentNumber = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceScheduleCodeUpgrade { - const PALLET: &'static str = "Paras"; - const CALL: &'static str = "force_schedule_code_upgrade"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_note_new_head`]."] - pub struct ForceNoteNewHead { - pub para: force_note_new_head::Para, - pub new_head: force_note_new_head::NewHead, - } - pub mod force_note_new_head { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - } - impl ::subxt::blocks::StaticExtrinsic for ForceNoteNewHead { - const PALLET: &'static str = "Paras"; - const CALL: &'static str = "force_note_new_head"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_queue_action`]."] - pub struct ForceQueueAction { - pub para: force_queue_action::Para, - } - pub mod force_queue_action { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for ForceQueueAction { - const PALLET: &'static str = "Paras"; - const CALL: &'static str = "force_queue_action"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_trusted_validation_code`]."] - pub struct AddTrustedValidationCode { - pub validation_code: add_trusted_validation_code::ValidationCode, - } - pub mod add_trusted_validation_code { - use super::runtime_types; - pub type ValidationCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - impl ::subxt::blocks::StaticExtrinsic for AddTrustedValidationCode { - const PALLET: &'static str = "Paras"; - const CALL: &'static str = "add_trusted_validation_code"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::poke_unused_validation_code`]."] - pub struct PokeUnusedValidationCode { - pub validation_code_hash: poke_unused_validation_code::ValidationCodeHash, - } - pub mod poke_unused_validation_code { - use super::runtime_types; - pub type ValidationCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - } - impl ::subxt::blocks::StaticExtrinsic for PokeUnusedValidationCode { - const PALLET: &'static str = "Paras"; - const CALL: &'static str = "poke_unused_validation_code"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::include_pvf_check_statement`]."] - pub struct IncludePvfCheckStatement { - pub stmt: include_pvf_check_statement::Stmt, - pub signature: include_pvf_check_statement::Signature, - } - pub mod include_pvf_check_statement { - use super::runtime_types; - pub type Stmt = runtime_types::polkadot_primitives::v6::PvfCheckStatement; - pub type Signature = - runtime_types::polkadot_primitives::v6::validator_app::Signature; - } - impl ::subxt::blocks::StaticExtrinsic for IncludePvfCheckStatement { - const PALLET: &'static str = "Paras"; - const CALL: &'static str = "include_pvf_check_statement"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_set_most_recent_context`]."] - pub struct ForceSetMostRecentContext { - pub para: force_set_most_recent_context::Para, - pub context: force_set_most_recent_context::Context, - } - pub mod force_set_most_recent_context { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Context = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceSetMostRecentContext { - const PALLET: &'static str = "Paras"; - const CALL: &'static str = "force_set_most_recent_context"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::force_set_current_code`]."] - pub fn force_set_current_code( - &self, - para: types::force_set_current_code::Para, - new_code: types::force_set_current_code::NewCode, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Paras", - "force_set_current_code", - types::ForceSetCurrentCode { para, new_code }, - [ - 204u8, 159u8, 184u8, 235u8, 65u8, 225u8, 223u8, 130u8, 139u8, 140u8, - 219u8, 58u8, 142u8, 253u8, 236u8, 239u8, 148u8, 190u8, 27u8, 234u8, - 165u8, 125u8, 129u8, 235u8, 98u8, 33u8, 172u8, 71u8, 90u8, 41u8, 182u8, - 80u8, - ], - ) - } - #[doc = "See [`Pallet::force_set_current_head`]."] - pub fn force_set_current_head( - &self, - para: types::force_set_current_head::Para, - new_head: types::force_set_current_head::NewHead, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Paras", - "force_set_current_head", - types::ForceSetCurrentHead { para, new_head }, - [ - 184u8, 247u8, 184u8, 248u8, 89u8, 64u8, 18u8, 193u8, 254u8, 71u8, - 220u8, 195u8, 124u8, 212u8, 178u8, 169u8, 155u8, 189u8, 11u8, 135u8, - 247u8, 39u8, 253u8, 196u8, 111u8, 242u8, 189u8, 91u8, 226u8, 219u8, - 232u8, 238u8, - ], - ) - } - #[doc = "See [`Pallet::force_schedule_code_upgrade`]."] - pub fn force_schedule_code_upgrade( - &self, - para: types::force_schedule_code_upgrade::Para, - new_code: types::force_schedule_code_upgrade::NewCode, - relay_parent_number: types::force_schedule_code_upgrade::RelayParentNumber, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Paras", - "force_schedule_code_upgrade", - types::ForceScheduleCodeUpgrade { - para, - new_code, - relay_parent_number, - }, - [ - 131u8, 179u8, 138u8, 151u8, 167u8, 191u8, 2u8, 68u8, 85u8, 111u8, - 166u8, 65u8, 67u8, 52u8, 201u8, 41u8, 132u8, 128u8, 35u8, 177u8, 91u8, - 185u8, 114u8, 2u8, 123u8, 133u8, 164u8, 121u8, 170u8, 243u8, 223u8, - 61u8, - ], - ) - } - #[doc = "See [`Pallet::force_note_new_head`]."] - pub fn force_note_new_head( - &self, - para: types::force_note_new_head::Para, - new_head: types::force_note_new_head::NewHead, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Paras", - "force_note_new_head", - types::ForceNoteNewHead { para, new_head }, - [ - 215u8, 12u8, 228u8, 208u8, 7u8, 24u8, 207u8, 60u8, 183u8, 241u8, 212u8, - 203u8, 139u8, 149u8, 9u8, 236u8, 77u8, 15u8, 242u8, 70u8, 62u8, 204u8, - 187u8, 91u8, 110u8, 73u8, 210u8, 2u8, 8u8, 118u8, 182u8, 171u8, - ], - ) - } - #[doc = "See [`Pallet::force_queue_action`]."] - pub fn force_queue_action( - &self, - para: types::force_queue_action::Para, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Paras", - "force_queue_action", - types::ForceQueueAction { para }, - [ - 112u8, 247u8, 239u8, 8u8, 91u8, 23u8, 111u8, 84u8, 179u8, 61u8, 235u8, - 49u8, 140u8, 110u8, 40u8, 226u8, 150u8, 253u8, 146u8, 193u8, 136u8, - 133u8, 100u8, 127u8, 38u8, 165u8, 159u8, 17u8, 205u8, 190u8, 6u8, - 117u8, - ], - ) - } - #[doc = "See [`Pallet::add_trusted_validation_code`]."] - pub fn add_trusted_validation_code( - &self, - validation_code: types::add_trusted_validation_code::ValidationCode, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Paras", - "add_trusted_validation_code", - types::AddTrustedValidationCode { validation_code }, - [ - 196u8, 123u8, 133u8, 223u8, 3u8, 205u8, 127u8, 23u8, 82u8, 201u8, - 107u8, 47u8, 23u8, 75u8, 139u8, 198u8, 178u8, 171u8, 160u8, 61u8, - 132u8, 250u8, 76u8, 110u8, 3u8, 144u8, 90u8, 253u8, 89u8, 141u8, 162u8, - 135u8, - ], - ) - } - #[doc = "See [`Pallet::poke_unused_validation_code`]."] - pub fn poke_unused_validation_code( - &self, - validation_code_hash: types::poke_unused_validation_code::ValidationCodeHash, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Paras", - "poke_unused_validation_code", - types::PokeUnusedValidationCode { - validation_code_hash, - }, - [ - 180u8, 53u8, 213u8, 27u8, 150u8, 195u8, 50u8, 1u8, 62u8, 246u8, 244u8, - 229u8, 115u8, 202u8, 55u8, 140u8, 108u8, 28u8, 245u8, 66u8, 165u8, - 128u8, 105u8, 221u8, 7u8, 87u8, 242u8, 19u8, 88u8, 132u8, 36u8, 32u8, - ], - ) - } - #[doc = "See [`Pallet::include_pvf_check_statement`]."] - pub fn include_pvf_check_statement( - &self, - stmt: types::include_pvf_check_statement::Stmt, - signature: types::include_pvf_check_statement::Signature, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Paras", - "include_pvf_check_statement", - types::IncludePvfCheckStatement { stmt, signature }, - [ - 104u8, 113u8, 121u8, 186u8, 41u8, 70u8, 254u8, 44u8, 207u8, 94u8, 61u8, - 148u8, 106u8, 240u8, 165u8, 223u8, 231u8, 190u8, 157u8, 97u8, 55u8, - 90u8, 229u8, 112u8, 129u8, 224u8, 29u8, 180u8, 242u8, 203u8, 195u8, - 19u8, - ], - ) - } - #[doc = "See [`Pallet::force_set_most_recent_context`]."] - pub fn force_set_most_recent_context( - &self, - para: types::force_set_most_recent_context::Para, - context: types::force_set_most_recent_context::Context, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Paras", - "force_set_most_recent_context", - types::ForceSetMostRecentContext { para, context }, - [ - 243u8, 17u8, 20u8, 229u8, 91u8, 87u8, 42u8, 159u8, 119u8, 61u8, 201u8, - 246u8, 79u8, 151u8, 209u8, 183u8, 35u8, 31u8, 2u8, 210u8, 187u8, 105u8, - 66u8, 106u8, 119u8, 241u8, 63u8, 63u8, 233u8, 68u8, 244u8, 137u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::paras::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current code has been updated for a Para. `para_id`"] - pub struct CurrentCodeUpdated(pub current_code_updated::Field0); - pub mod current_code_updated { - use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for CurrentCodeUpdated { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "CurrentCodeUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Current head has been updated for a Para. `para_id`"] - pub struct CurrentHeadUpdated(pub current_head_updated::Field0); - pub mod current_head_updated { - use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for CurrentHeadUpdated { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "CurrentHeadUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A code upgrade has been scheduled for a Para. `para_id`"] - pub struct CodeUpgradeScheduled(pub code_upgrade_scheduled::Field0); - pub mod code_upgrade_scheduled { - use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for CodeUpgradeScheduled { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "CodeUpgradeScheduled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new head has been noted for a Para. `para_id`"] - pub struct NewHeadNoted(pub new_head_noted::Field0); - pub mod new_head_noted { - use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for NewHeadNoted { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "NewHeadNoted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A para has been queued to execute pending actions. `para_id`"] - pub struct ActionQueued(pub action_queued::Field0, pub action_queued::Field1); - pub mod action_queued { - use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Field1 = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for ActionQueued { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "ActionQueued"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The given para either initiated or subscribed to a PVF check for the given validation"] - #[doc = "code. `code_hash` `para_id`"] - pub struct PvfCheckStarted( - pub pvf_check_started::Field0, - pub pvf_check_started::Field1, - ); - pub mod pvf_check_started { - use super::runtime_types; - pub type Field0 = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; - pub type Field1 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for PvfCheckStarted { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "PvfCheckStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The given validation code was accepted by the PVF pre-checking vote."] - #[doc = "`code_hash` `para_id`"] - pub struct PvfCheckAccepted( - pub pvf_check_accepted::Field0, - pub pvf_check_accepted::Field1, - ); - pub mod pvf_check_accepted { - use super::runtime_types; - pub type Field0 = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; - pub type Field1 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for PvfCheckAccepted { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "PvfCheckAccepted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The given validation code was rejected by the PVF pre-checking vote."] - #[doc = "`code_hash` `para_id`"] - pub struct PvfCheckRejected( - pub pvf_check_rejected::Field0, - pub pvf_check_rejected::Field1, - ); - pub mod pvf_check_rejected { - use super::runtime_types; - pub type Field0 = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCodeHash; - pub type Field1 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for PvfCheckRejected { - const PALLET: &'static str = "Paras"; - const EVENT: &'static str = "PvfCheckRejected"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod pvf_active_vote_map { - use super::runtime_types; - pub type PvfActiveVoteMap = - runtime_types::polkadot_runtime_parachains::paras::PvfCheckActiveVoteState< - ::core::primitive::u32, - >; - pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - } - pub mod pvf_active_vote_list { - use super::runtime_types; - pub type PvfActiveVoteList = :: std :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; - } - pub mod parachains { - use super::runtime_types; - pub type Parachains = ::std::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >; - } - pub mod para_lifecycles { - use super::runtime_types; - pub type ParaLifecycles = - runtime_types::polkadot_runtime_parachains::paras::ParaLifecycle; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod heads { - use super::runtime_types; - pub type Heads = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod most_recent_context { - use super::runtime_types; - pub type MostRecentContext = ::core::primitive::u32; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod current_code_hash { - use super::runtime_types; - pub type CurrentCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod past_code_hash { - use super::runtime_types; - pub type PastCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Param1 = ::core::primitive::u32; - } - pub mod past_code_meta { - use super::runtime_types; - pub type PastCodeMeta = - runtime_types::polkadot_runtime_parachains::paras::ParaPastCodeMeta< - ::core::primitive::u32, - >; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod past_code_pruning { - use super::runtime_types; - pub type PastCodePruning = ::std::vec::Vec<( - runtime_types::polkadot_parachain_primitives::primitives::Id, - ::core::primitive::u32, - )>; - } - pub mod future_code_upgrades { - use super::runtime_types; - pub type FutureCodeUpgrades = ::core::primitive::u32; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod future_code_hash { - use super::runtime_types; - pub type FutureCodeHash = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod upgrade_go_ahead_signal { - use super::runtime_types; - pub type UpgradeGoAheadSignal = - runtime_types::polkadot_primitives::v6::UpgradeGoAhead; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod upgrade_restriction_signal { - use super::runtime_types; - pub type UpgradeRestrictionSignal = - runtime_types::polkadot_primitives::v6::UpgradeRestriction; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod upgrade_cooldowns { - use super::runtime_types; - pub type UpgradeCooldowns = ::std::vec::Vec<( - runtime_types::polkadot_parachain_primitives::primitives::Id, - ::core::primitive::u32, - )>; - } - pub mod upcoming_upgrades { - use super::runtime_types; - pub type UpcomingUpgrades = ::std::vec::Vec<( - runtime_types::polkadot_parachain_primitives::primitives::Id, - ::core::primitive::u32, - )>; - } - pub mod actions_queue { - use super::runtime_types; - pub type ActionsQueue = ::std::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >; - pub type Param0 = ::core::primitive::u32; - } - pub mod upcoming_paras_genesis { - use super::runtime_types; - pub type UpcomingParasGenesis = - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod code_by_hash_refs { - use super::runtime_types; - pub type CodeByHashRefs = ::core::primitive::u32; - pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - } - pub mod code_by_hash { - use super::runtime_types; - pub type CodeByHash = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " All currently active PVF pre-checking votes."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] - pub fn pvf_active_vote_map_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pvf_active_vote_map::PvfActiveVoteMap, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "PvfActiveVoteMap", - vec![], - [ - 72u8, 55u8, 139u8, 104u8, 161u8, 63u8, 114u8, 153u8, 16u8, 221u8, 60u8, - 88u8, 52u8, 207u8, 123u8, 193u8, 11u8, 30u8, 19u8, 39u8, 231u8, 39u8, - 251u8, 44u8, 248u8, 129u8, 181u8, 173u8, 248u8, 89u8, 43u8, 106u8, - ], - ) - } - #[doc = " All currently active PVF pre-checking votes."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - There are no PVF pre-checking votes that exists in list but not in the set and vice versa."] - pub fn pvf_active_vote_map( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pvf_active_vote_map::PvfActiveVoteMap, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "PvfActiveVoteMap", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 72u8, 55u8, 139u8, 104u8, 161u8, 63u8, 114u8, 153u8, 16u8, 221u8, 60u8, - 88u8, 52u8, 207u8, 123u8, 193u8, 11u8, 30u8, 19u8, 39u8, 231u8, 39u8, - 251u8, 44u8, 248u8, 129u8, 181u8, 173u8, 248u8, 89u8, 43u8, 106u8, - ], - ) - } - #[doc = " The list of all currently active PVF votes. Auxiliary to `PvfActiveVoteMap`."] - pub fn pvf_active_vote_list( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pvf_active_vote_list::PvfActiveVoteList, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "PvfActiveVoteList", - vec![], - [ - 172u8, 215u8, 137u8, 191u8, 52u8, 104u8, 106u8, 118u8, 134u8, 82u8, - 137u8, 6u8, 175u8, 158u8, 58u8, 230u8, 231u8, 152u8, 195u8, 17u8, 51u8, - 133u8, 10u8, 205u8, 212u8, 6u8, 24u8, 59u8, 114u8, 222u8, 96u8, 42u8, - ], - ) - } - #[doc = " All lease holding parachains. Ordered ascending by `ParaId`. On demand parachains are not"] - #[doc = " included."] - #[doc = ""] - #[doc = " Consider using the [`ParachainsCache`] type of modifying."] - pub fn parachains( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::parachains::Parachains, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "Parachains", - vec![], - [ - 242u8, 228u8, 175u8, 107u8, 242u8, 39u8, 52u8, 181u8, 32u8, 171u8, - 21u8, 169u8, 204u8, 19u8, 21u8, 217u8, 121u8, 239u8, 218u8, 252u8, - 80u8, 188u8, 119u8, 157u8, 235u8, 218u8, 221u8, 113u8, 0u8, 108u8, - 245u8, 210u8, - ], - ) - } - #[doc = " The current lifecycle of a all known Para IDs."] - pub fn para_lifecycles_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::para_lifecycles::ParaLifecycles, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "ParaLifecycles", - vec![], - [ - 2u8, 203u8, 32u8, 194u8, 76u8, 227u8, 250u8, 9u8, 168u8, 201u8, 171u8, - 180u8, 18u8, 169u8, 206u8, 183u8, 48u8, 189u8, 204u8, 192u8, 237u8, - 233u8, 156u8, 255u8, 102u8, 22u8, 101u8, 110u8, 194u8, 55u8, 118u8, - 81u8, - ], - ) - } - #[doc = " The current lifecycle of a all known Para IDs."] - pub fn para_lifecycles( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::para_lifecycles::ParaLifecycles, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "ParaLifecycles", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 2u8, 203u8, 32u8, 194u8, 76u8, 227u8, 250u8, 9u8, 168u8, 201u8, 171u8, - 180u8, 18u8, 169u8, 206u8, 183u8, 48u8, 189u8, 204u8, 192u8, 237u8, - 233u8, 156u8, 255u8, 102u8, 22u8, 101u8, 110u8, 194u8, 55u8, 118u8, - 81u8, - ], - ) - } - #[doc = " The head-data of every registered para."] - pub fn heads_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::heads::Heads, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "Heads", - vec![], - [ - 222u8, 116u8, 180u8, 190u8, 172u8, 192u8, 174u8, 132u8, 225u8, 180u8, - 119u8, 90u8, 5u8, 39u8, 92u8, 230u8, 116u8, 202u8, 92u8, 99u8, 135u8, - 201u8, 10u8, 58u8, 55u8, 211u8, 209u8, 86u8, 93u8, 133u8, 99u8, 139u8, - ], - ) - } - #[doc = " The head-data of every registered para."] - pub fn heads( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::heads::Heads, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "Heads", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 222u8, 116u8, 180u8, 190u8, 172u8, 192u8, 174u8, 132u8, 225u8, 180u8, - 119u8, 90u8, 5u8, 39u8, 92u8, 230u8, 116u8, 202u8, 92u8, 99u8, 135u8, - 201u8, 10u8, 58u8, 55u8, 211u8, 209u8, 86u8, 93u8, 133u8, 99u8, 139u8, - ], - ) - } - #[doc = " The context (relay-chain block number) of the most recent parachain head."] - pub fn most_recent_context_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::most_recent_context::MostRecentContext, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "MostRecentContext", - vec![], - [ - 196u8, 150u8, 125u8, 121u8, 196u8, 182u8, 2u8, 5u8, 244u8, 170u8, 75u8, - 57u8, 162u8, 8u8, 104u8, 94u8, 114u8, 32u8, 192u8, 236u8, 120u8, 91u8, - 84u8, 118u8, 216u8, 143u8, 61u8, 208u8, 57u8, 180u8, 216u8, 243u8, - ], - ) - } - #[doc = " The context (relay-chain block number) of the most recent parachain head."] - pub fn most_recent_context( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::most_recent_context::MostRecentContext, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "MostRecentContext", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 196u8, 150u8, 125u8, 121u8, 196u8, 182u8, 2u8, 5u8, 244u8, 170u8, 75u8, - 57u8, 162u8, 8u8, 104u8, 94u8, 114u8, 32u8, 192u8, 236u8, 120u8, 91u8, - 84u8, 118u8, 216u8, 143u8, 61u8, 208u8, 57u8, 180u8, 216u8, 243u8, - ], - ) - } - #[doc = " The validation code hash of every live para."] - #[doc = ""] - #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] - pub fn current_code_hash_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::current_code_hash::CurrentCodeHash, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "CurrentCodeHash", - vec![], - [ - 251u8, 100u8, 30u8, 46u8, 191u8, 60u8, 45u8, 221u8, 218u8, 20u8, 154u8, - 233u8, 211u8, 198u8, 151u8, 195u8, 99u8, 210u8, 126u8, 165u8, 240u8, - 129u8, 183u8, 252u8, 104u8, 119u8, 38u8, 155u8, 150u8, 198u8, 127u8, - 103u8, - ], - ) - } - #[doc = " The validation code hash of every live para."] - #[doc = ""] - #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] - pub fn current_code_hash( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::current_code_hash::CurrentCodeHash, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "CurrentCodeHash", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 251u8, 100u8, 30u8, 46u8, 191u8, 60u8, 45u8, 221u8, 218u8, 20u8, 154u8, - 233u8, 211u8, 198u8, 151u8, 195u8, 99u8, 210u8, 126u8, 165u8, 240u8, - 129u8, 183u8, 252u8, 104u8, 119u8, 38u8, 155u8, 150u8, 198u8, 127u8, - 103u8, - ], - ) - } - #[doc = " Actual past code hash, indicated by the para id as well as the block number at which it"] - #[doc = " became outdated."] - #[doc = ""] - #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] - pub fn past_code_hash_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::past_code_hash::PastCodeHash, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "PastCodeHash", - vec![], - [ - 73u8, 209u8, 188u8, 36u8, 127u8, 42u8, 171u8, 136u8, 29u8, 126u8, - 220u8, 209u8, 230u8, 22u8, 12u8, 63u8, 8u8, 102u8, 45u8, 158u8, 178u8, - 232u8, 8u8, 6u8, 71u8, 188u8, 140u8, 41u8, 10u8, 215u8, 22u8, 153u8, - ], - ) - } - #[doc = " Actual past code hash, indicated by the para id as well as the block number at which it"] - #[doc = " became outdated."] - #[doc = ""] - #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] - pub fn past_code_hash_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::past_code_hash::PastCodeHash, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "PastCodeHash", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 73u8, 209u8, 188u8, 36u8, 127u8, 42u8, 171u8, 136u8, 29u8, 126u8, - 220u8, 209u8, 230u8, 22u8, 12u8, 63u8, 8u8, 102u8, 45u8, 158u8, 178u8, - 232u8, 8u8, 6u8, 71u8, 188u8, 140u8, 41u8, 10u8, 215u8, 22u8, 153u8, - ], - ) - } - #[doc = " Actual past code hash, indicated by the para id as well as the block number at which it"] - #[doc = " became outdated."] - #[doc = ""] - #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] - pub fn past_code_hash( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::past_code_hash::PastCodeHash, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "PastCodeHash", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 73u8, 209u8, 188u8, 36u8, 127u8, 42u8, 171u8, 136u8, 29u8, 126u8, - 220u8, 209u8, 230u8, 22u8, 12u8, 63u8, 8u8, 102u8, 45u8, 158u8, 178u8, - 232u8, 8u8, 6u8, 71u8, 188u8, 140u8, 41u8, 10u8, 215u8, 22u8, 153u8, - ], - ) - } - #[doc = " Past code of parachains. The parachains themselves may not be registered anymore,"] - #[doc = " but we also keep their code on-chain for the same amount of time as outdated code"] - #[doc = " to keep it available for approval checkers."] - pub fn past_code_meta_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::past_code_meta::PastCodeMeta, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "PastCodeMeta", - vec![], - [ - 233u8, 47u8, 137u8, 174u8, 98u8, 64u8, 11u8, 75u8, 93u8, 222u8, 78u8, - 58u8, 66u8, 245u8, 151u8, 39u8, 144u8, 36u8, 84u8, 176u8, 239u8, 183u8, - 197u8, 176u8, 158u8, 139u8, 121u8, 189u8, 29u8, 244u8, 229u8, 73u8, - ], - ) - } - #[doc = " Past code of parachains. The parachains themselves may not be registered anymore,"] - #[doc = " but we also keep their code on-chain for the same amount of time as outdated code"] - #[doc = " to keep it available for approval checkers."] - pub fn past_code_meta( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::past_code_meta::PastCodeMeta, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "PastCodeMeta", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 233u8, 47u8, 137u8, 174u8, 98u8, 64u8, 11u8, 75u8, 93u8, 222u8, 78u8, - 58u8, 66u8, 245u8, 151u8, 39u8, 144u8, 36u8, 84u8, 176u8, 239u8, 183u8, - 197u8, 176u8, 158u8, 139u8, 121u8, 189u8, 29u8, 244u8, 229u8, 73u8, - ], - ) - } - #[doc = " Which paras have past code that needs pruning and the relay-chain block at which the code"] - #[doc = " was replaced. Note that this is the actual height of the included block, not the expected"] - #[doc = " height at which the code upgrade would be applied, although they may be equal."] - #[doc = " This is to ensure the entire acceptance period is covered, not an offset acceptance period"] - #[doc = " starting from the time at which the parachain perceives a code upgrade as having occurred."] - #[doc = " Multiple entries for a single para are permitted. Ordered ascending by block number."] - pub fn past_code_pruning( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::past_code_pruning::PastCodePruning, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "PastCodePruning", - vec![], - [ - 67u8, 190u8, 51u8, 133u8, 173u8, 24u8, 151u8, 111u8, 108u8, 152u8, - 106u8, 18u8, 29u8, 80u8, 104u8, 120u8, 91u8, 138u8, 209u8, 49u8, 255u8, - 211u8, 53u8, 195u8, 61u8, 188u8, 183u8, 53u8, 37u8, 230u8, 53u8, 183u8, - ], - ) - } - #[doc = " The block number at which the planned code change is expected for a para."] - #[doc = " The change will be applied after the first parablock for this ID included which executes"] - #[doc = " in the context of a relay chain block with a number >= `expected_at`."] - pub fn future_code_upgrades_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::future_code_upgrades::FutureCodeUpgrades, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "FutureCodeUpgrades", - vec![], - [ - 163u8, 168u8, 23u8, 138u8, 198u8, 70u8, 135u8, 221u8, 167u8, 187u8, - 15u8, 144u8, 228u8, 8u8, 138u8, 125u8, 101u8, 154u8, 11u8, 74u8, 173u8, - 167u8, 17u8, 97u8, 240u8, 6u8, 20u8, 161u8, 25u8, 111u8, 242u8, 9u8, - ], - ) - } - #[doc = " The block number at which the planned code change is expected for a para."] - #[doc = " The change will be applied after the first parablock for this ID included which executes"] - #[doc = " in the context of a relay chain block with a number >= `expected_at`."] - pub fn future_code_upgrades( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::future_code_upgrades::FutureCodeUpgrades, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "FutureCodeUpgrades", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 163u8, 168u8, 23u8, 138u8, 198u8, 70u8, 135u8, 221u8, 167u8, 187u8, - 15u8, 144u8, 228u8, 8u8, 138u8, 125u8, 101u8, 154u8, 11u8, 74u8, 173u8, - 167u8, 17u8, 97u8, 240u8, 6u8, 20u8, 161u8, 25u8, 111u8, 242u8, 9u8, - ], - ) - } - #[doc = " The actual future code hash of a para."] - #[doc = ""] - #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] - pub fn future_code_hash_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::future_code_hash::FutureCodeHash, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "FutureCodeHash", - vec![], - [ - 62u8, 238u8, 183u8, 12u8, 197u8, 119u8, 163u8, 239u8, 192u8, 228u8, - 110u8, 58u8, 128u8, 223u8, 32u8, 137u8, 109u8, 127u8, 41u8, 83u8, 91u8, - 98u8, 156u8, 118u8, 96u8, 147u8, 16u8, 31u8, 5u8, 92u8, 227u8, 230u8, - ], - ) - } - #[doc = " The actual future code hash of a para."] - #[doc = ""] - #[doc = " Corresponding code can be retrieved with [`CodeByHash`]."] - pub fn future_code_hash( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::future_code_hash::FutureCodeHash, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "FutureCodeHash", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 62u8, 238u8, 183u8, 12u8, 197u8, 119u8, 163u8, 239u8, 192u8, 228u8, - 110u8, 58u8, 128u8, 223u8, 32u8, 137u8, 109u8, 127u8, 41u8, 83u8, 91u8, - 98u8, 156u8, 118u8, 96u8, 147u8, 16u8, 31u8, 5u8, 92u8, 227u8, 230u8, - ], - ) - } - #[doc = " This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade"] - #[doc = " procedure."] - #[doc = ""] - #[doc = " This value is absent when there are no upgrades scheduled or during the time the relay chain"] - #[doc = " performs the checks. It is set at the first relay-chain block when the corresponding"] - #[doc = " parachain can switch its upgrade function. As soon as the parachain's block is included, the"] - #[doc = " value gets reset to `None`."] - #[doc = ""] - #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] - #[doc = " the format will require migration of parachains."] - pub fn upgrade_go_ahead_signal_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::upgrade_go_ahead_signal::UpgradeGoAheadSignal, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "UpgradeGoAheadSignal", - vec![], - [ - 41u8, 80u8, 120u8, 6u8, 98u8, 85u8, 36u8, 37u8, 170u8, 189u8, 56u8, - 127u8, 155u8, 180u8, 112u8, 195u8, 135u8, 214u8, 235u8, 87u8, 197u8, - 247u8, 125u8, 26u8, 232u8, 82u8, 250u8, 90u8, 126u8, 106u8, 62u8, - 217u8, - ], - ) - } - #[doc = " This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade"] - #[doc = " procedure."] - #[doc = ""] - #[doc = " This value is absent when there are no upgrades scheduled or during the time the relay chain"] - #[doc = " performs the checks. It is set at the first relay-chain block when the corresponding"] - #[doc = " parachain can switch its upgrade function. As soon as the parachain's block is included, the"] - #[doc = " value gets reset to `None`."] - #[doc = ""] - #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] - #[doc = " the format will require migration of parachains."] - pub fn upgrade_go_ahead_signal( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::upgrade_go_ahead_signal::UpgradeGoAheadSignal, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "UpgradeGoAheadSignal", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 41u8, 80u8, 120u8, 6u8, 98u8, 85u8, 36u8, 37u8, 170u8, 189u8, 56u8, - 127u8, 155u8, 180u8, 112u8, 195u8, 135u8, 214u8, 235u8, 87u8, 197u8, - 247u8, 125u8, 26u8, 232u8, 82u8, 250u8, 90u8, 126u8, 106u8, 62u8, - 217u8, - ], - ) - } - #[doc = " This is used by the relay-chain to communicate that there are restrictions for performing"] - #[doc = " an upgrade for this parachain."] - #[doc = ""] - #[doc = " This may be a because the parachain waits for the upgrade cooldown to expire. Another"] - #[doc = " potential use case is when we want to perform some maintenance (such as storage migration)"] - #[doc = " we could restrict upgrades to make the process simpler."] - #[doc = ""] - #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] - #[doc = " the format will require migration of parachains."] - pub fn upgrade_restriction_signal_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::upgrade_restriction_signal::UpgradeRestrictionSignal, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "UpgradeRestrictionSignal", - vec![], - [ - 158u8, 105u8, 62u8, 252u8, 149u8, 145u8, 34u8, 92u8, 119u8, 204u8, - 46u8, 96u8, 117u8, 183u8, 134u8, 20u8, 172u8, 243u8, 145u8, 113u8, - 74u8, 119u8, 96u8, 107u8, 129u8, 109u8, 96u8, 143u8, 77u8, 14u8, 56u8, - 117u8, - ], - ) - } - #[doc = " This is used by the relay-chain to communicate that there are restrictions for performing"] - #[doc = " an upgrade for this parachain."] - #[doc = ""] - #[doc = " This may be a because the parachain waits for the upgrade cooldown to expire. Another"] - #[doc = " potential use case is when we want to perform some maintenance (such as storage migration)"] - #[doc = " we could restrict upgrades to make the process simpler."] - #[doc = ""] - #[doc = " NOTE that this field is used by parachains via merkle storage proofs, therefore changing"] - #[doc = " the format will require migration of parachains."] - pub fn upgrade_restriction_signal( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::upgrade_restriction_signal::UpgradeRestrictionSignal, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "UpgradeRestrictionSignal", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 158u8, 105u8, 62u8, 252u8, 149u8, 145u8, 34u8, 92u8, 119u8, 204u8, - 46u8, 96u8, 117u8, 183u8, 134u8, 20u8, 172u8, 243u8, 145u8, 113u8, - 74u8, 119u8, 96u8, 107u8, 129u8, 109u8, 96u8, 143u8, 77u8, 14u8, 56u8, - 117u8, - ], - ) - } - #[doc = " The list of parachains that are awaiting for their upgrade restriction to cooldown."] - #[doc = ""] - #[doc = " Ordered ascending by block number."] - pub fn upgrade_cooldowns( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::upgrade_cooldowns::UpgradeCooldowns, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "UpgradeCooldowns", - vec![], - [ - 180u8, 197u8, 115u8, 209u8, 126u8, 120u8, 133u8, 54u8, 232u8, 192u8, - 47u8, 17u8, 21u8, 8u8, 231u8, 67u8, 1u8, 89u8, 127u8, 38u8, 179u8, - 190u8, 169u8, 110u8, 20u8, 92u8, 139u8, 227u8, 26u8, 59u8, 245u8, - 174u8, - ], - ) - } - #[doc = " The list of upcoming code upgrades. Each item is a pair of which para performs a code"] - #[doc = " upgrade and at which relay-chain block it is expected at."] - #[doc = ""] - #[doc = " Ordered ascending by block number."] - pub fn upcoming_upgrades( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::upcoming_upgrades::UpcomingUpgrades, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "UpcomingUpgrades", - vec![], - [ - 38u8, 195u8, 15u8, 56u8, 225u8, 199u8, 105u8, 84u8, 128u8, 51u8, 44u8, - 248u8, 237u8, 32u8, 36u8, 72u8, 77u8, 137u8, 124u8, 88u8, 242u8, 185u8, - 50u8, 148u8, 216u8, 156u8, 209u8, 101u8, 207u8, 127u8, 66u8, 95u8, - ], - ) - } - #[doc = " The actions to perform during the start of a specific session index."] - pub fn actions_queue_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::actions_queue::ActionsQueue, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "ActionsQueue", - vec![], - [ - 13u8, 25u8, 129u8, 203u8, 95u8, 206u8, 254u8, 240u8, 170u8, 209u8, - 55u8, 117u8, 70u8, 220u8, 139u8, 102u8, 9u8, 229u8, 139u8, 120u8, 67u8, - 246u8, 214u8, 59u8, 81u8, 116u8, 54u8, 67u8, 129u8, 32u8, 67u8, 92u8, - ], - ) - } - #[doc = " The actions to perform during the start of a specific session index."] - pub fn actions_queue( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::actions_queue::ActionsQueue, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "ActionsQueue", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 13u8, 25u8, 129u8, 203u8, 95u8, 206u8, 254u8, 240u8, 170u8, 209u8, - 55u8, 117u8, 70u8, 220u8, 139u8, 102u8, 9u8, 229u8, 139u8, 120u8, 67u8, - 246u8, 214u8, 59u8, 81u8, 116u8, 54u8, 67u8, 129u8, 32u8, 67u8, 92u8, - ], - ) - } - #[doc = " Upcoming paras instantiation arguments."] - #[doc = ""] - #[doc = " NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set"] - #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] - pub fn upcoming_paras_genesis_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::upcoming_paras_genesis::UpcomingParasGenesis, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "UpcomingParasGenesis", - vec![], - [ - 215u8, 121u8, 106u8, 13u8, 102u8, 47u8, 129u8, 221u8, 153u8, 91u8, - 23u8, 94u8, 11u8, 39u8, 19u8, 180u8, 136u8, 136u8, 254u8, 152u8, 250u8, - 150u8, 40u8, 87u8, 135u8, 121u8, 219u8, 151u8, 111u8, 35u8, 43u8, - 195u8, - ], - ) - } - #[doc = " Upcoming paras instantiation arguments."] - #[doc = ""] - #[doc = " NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set"] - #[doc = " to empty. Instead, the code will be saved into the storage right away via `CodeByHash`."] - pub fn upcoming_paras_genesis( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::upcoming_paras_genesis::UpcomingParasGenesis, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "UpcomingParasGenesis", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 215u8, 121u8, 106u8, 13u8, 102u8, 47u8, 129u8, 221u8, 153u8, 91u8, - 23u8, 94u8, 11u8, 39u8, 19u8, 180u8, 136u8, 136u8, 254u8, 152u8, 250u8, - 150u8, 40u8, 87u8, 135u8, 121u8, 219u8, 151u8, 111u8, 35u8, 43u8, - 195u8, - ], - ) - } - #[doc = " The number of reference on the validation code in [`CodeByHash`] storage."] - pub fn code_by_hash_refs_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::code_by_hash_refs::CodeByHashRefs, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "CodeByHashRefs", - vec![], - [ - 47u8, 50u8, 103u8, 161u8, 130u8, 252u8, 157u8, 35u8, 174u8, 37u8, - 102u8, 60u8, 195u8, 30u8, 164u8, 203u8, 67u8, 129u8, 107u8, 181u8, - 166u8, 205u8, 230u8, 91u8, 36u8, 187u8, 253u8, 150u8, 39u8, 168u8, - 223u8, 16u8, - ], - ) - } - #[doc = " The number of reference on the validation code in [`CodeByHash`] storage."] - pub fn code_by_hash_refs( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::code_by_hash_refs::CodeByHashRefs, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "CodeByHashRefs", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 47u8, 50u8, 103u8, 161u8, 130u8, 252u8, 157u8, 35u8, 174u8, 37u8, - 102u8, 60u8, 195u8, 30u8, 164u8, 203u8, 67u8, 129u8, 107u8, 181u8, - 166u8, 205u8, 230u8, 91u8, 36u8, 187u8, 253u8, 150u8, 39u8, 168u8, - 223u8, 16u8, - ], - ) - } - #[doc = " Validation code stored by its hash."] - #[doc = ""] - #[doc = " This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and"] - #[doc = " [`PastCodeHash`]."] - pub fn code_by_hash_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::code_by_hash::CodeByHash, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "CodeByHash", - vec![], - [ - 155u8, 102u8, 73u8, 180u8, 127u8, 211u8, 181u8, 44u8, 56u8, 235u8, - 49u8, 4u8, 25u8, 213u8, 116u8, 200u8, 232u8, 203u8, 190u8, 90u8, 93u8, - 6u8, 57u8, 227u8, 240u8, 92u8, 157u8, 129u8, 3u8, 148u8, 45u8, 143u8, - ], - ) - } - #[doc = " Validation code stored by its hash."] - #[doc = ""] - #[doc = " This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and"] - #[doc = " [`PastCodeHash`]."] - pub fn code_by_hash( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::code_by_hash::CodeByHash, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Paras", - "CodeByHash", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 155u8, 102u8, 73u8, 180u8, 127u8, 211u8, 181u8, 44u8, 56u8, 235u8, - 49u8, 4u8, 25u8, 213u8, 116u8, 200u8, 232u8, 203u8, 190u8, 90u8, 93u8, - 6u8, 57u8, 227u8, 240u8, 92u8, 157u8, 129u8, 3u8, 148u8, 45u8, 143u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - pub fn unsigned_priority( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Paras", - "UnsignedPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) - } - } - } - } - pub mod initializer { - use super::root_mod; - use super::runtime_types; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::initializer::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_approve`]."] - pub struct ForceApprove { - pub up_to: force_approve::UpTo, - } - pub mod force_approve { - use super::runtime_types; - pub type UpTo = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceApprove { - const PALLET: &'static str = "Initializer"; - const CALL: &'static str = "force_approve"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::force_approve`]."] - pub fn force_approve( - &self, - up_to: types::force_approve::UpTo, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Initializer", - "force_approve", - types::ForceApprove { up_to }, - [ - 232u8, 166u8, 27u8, 229u8, 157u8, 240u8, 18u8, 137u8, 5u8, 159u8, - 179u8, 239u8, 218u8, 41u8, 181u8, 42u8, 159u8, 243u8, 246u8, 214u8, - 227u8, 77u8, 58u8, 70u8, 241u8, 114u8, 175u8, 124u8, 77u8, 102u8, - 105u8, 199u8, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod has_initialized { - use super::runtime_types; - pub type HasInitialized = (); - } - pub mod buffered_session_changes { - use super::runtime_types; - pub type BufferedSessionChanges = :: std :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: initializer :: BufferedSessionChange > ; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Whether the parachains modules have been initialized within this block."] - #[doc = ""] - #[doc = " Semantically a `bool`, but this guarantees it should never hit the trie,"] - #[doc = " as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values."] - #[doc = ""] - #[doc = " As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one"] - #[doc = " of them writes to the trie and one does not. This confusion makes `Option<()>` more suitable"] - #[doc = " for the semantics of this variable."] - pub fn has_initialized( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::has_initialized::HasInitialized, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Initializer", - "HasInitialized", - vec![], - [ - 156u8, 208u8, 212u8, 86u8, 105u8, 148u8, 252u8, 11u8, 140u8, 67u8, - 231u8, 86u8, 1u8, 147u8, 178u8, 79u8, 27u8, 249u8, 137u8, 103u8, 178u8, - 50u8, 114u8, 157u8, 239u8, 86u8, 89u8, 233u8, 86u8, 58u8, 37u8, 67u8, - ], - ) - } - #[doc = " Buffered session changes along with the block number at which they should be applied."] - #[doc = ""] - #[doc = " Typically this will be empty or one element long. Apart from that this item never hits"] - #[doc = " the storage."] - #[doc = ""] - #[doc = " However this is a `Vec` regardless to handle various edge cases that may occur at runtime"] - #[doc = " upgrade boundaries or if governance intervenes."] - pub fn buffered_session_changes( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::buffered_session_changes::BufferedSessionChanges, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Initializer", - "BufferedSessionChanges", - vec![], - [ - 99u8, 153u8, 100u8, 11u8, 28u8, 62u8, 163u8, 239u8, 177u8, 55u8, 151u8, - 242u8, 227u8, 59u8, 176u8, 10u8, 227u8, 51u8, 252u8, 191u8, 233u8, - 36u8, 1u8, 131u8, 255u8, 56u8, 6u8, 65u8, 5u8, 185u8, 114u8, 139u8, - ], - ) - } - } - } - } - pub mod dmp { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod downward_message_queues { - use super::runtime_types; - pub type DownwardMessageQueues = ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundDownwardMessage< - ::core::primitive::u32, - >, - >; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod downward_message_queue_heads { - use super::runtime_types; - pub type DownwardMessageQueueHeads = ::subxt::utils::H256; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod delivery_fee_factor { - use super::runtime_types; - pub type DeliveryFeeFactor = - runtime_types::sp_arithmetic::fixed_point::FixedU128; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The downward messages addressed for a certain para."] - pub fn downward_message_queues_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::downward_message_queues::DownwardMessageQueues, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Dmp", - "DownwardMessageQueues", - vec![], - [ - 38u8, 183u8, 133u8, 200u8, 199u8, 135u8, 68u8, 232u8, 189u8, 168u8, - 3u8, 219u8, 201u8, 180u8, 156u8, 79u8, 134u8, 164u8, 94u8, 114u8, - 102u8, 25u8, 108u8, 53u8, 219u8, 155u8, 102u8, 100u8, 58u8, 28u8, - 246u8, 20u8, - ], - ) - } - #[doc = " The downward messages addressed for a certain para."] - pub fn downward_message_queues( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::downward_message_queues::DownwardMessageQueues, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Dmp", - "DownwardMessageQueues", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 38u8, 183u8, 133u8, 200u8, 199u8, 135u8, 68u8, 232u8, 189u8, 168u8, - 3u8, 219u8, 201u8, 180u8, 156u8, 79u8, 134u8, 164u8, 94u8, 114u8, - 102u8, 25u8, 108u8, 53u8, 219u8, 155u8, 102u8, 100u8, 58u8, 28u8, - 246u8, 20u8, - ], - ) - } - #[doc = " A mapping that stores the downward message queue MQC head for each para."] - #[doc = ""] - #[doc = " Each link in this chain has a form:"] - #[doc = " `(prev_head, B, H(M))`, where"] - #[doc = " - `prev_head`: is the previous head hash or zero if none."] - #[doc = " - `B`: is the relay-chain block number in which a message was appended."] - #[doc = " - `H(M)`: is the hash of the message being appended."] - pub fn downward_message_queue_heads_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::downward_message_queue_heads::DownwardMessageQueueHeads, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Dmp", - "DownwardMessageQueueHeads", - vec![], - [ - 135u8, 165u8, 240u8, 0u8, 25u8, 110u8, 9u8, 108u8, 251u8, 225u8, 109u8, - 184u8, 90u8, 132u8, 9u8, 151u8, 12u8, 118u8, 153u8, 212u8, 140u8, - 205u8, 94u8, 98u8, 110u8, 167u8, 155u8, 43u8, 61u8, 35u8, 52u8, 56u8, - ], - ) - } - #[doc = " A mapping that stores the downward message queue MQC head for each para."] - #[doc = ""] - #[doc = " Each link in this chain has a form:"] - #[doc = " `(prev_head, B, H(M))`, where"] - #[doc = " - `prev_head`: is the previous head hash or zero if none."] - #[doc = " - `B`: is the relay-chain block number in which a message was appended."] - #[doc = " - `H(M)`: is the hash of the message being appended."] - pub fn downward_message_queue_heads( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::downward_message_queue_heads::DownwardMessageQueueHeads, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Dmp", - "DownwardMessageQueueHeads", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 135u8, 165u8, 240u8, 0u8, 25u8, 110u8, 9u8, 108u8, 251u8, 225u8, 109u8, - 184u8, 90u8, 132u8, 9u8, 151u8, 12u8, 118u8, 153u8, 212u8, 140u8, - 205u8, 94u8, 98u8, 110u8, 167u8, 155u8, 43u8, 61u8, 35u8, 52u8, 56u8, - ], - ) - } - #[doc = " The factor to multiply the base delivery fee by."] - pub fn delivery_fee_factor_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::delivery_fee_factor::DeliveryFeeFactor, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Dmp", - "DeliveryFeeFactor", - vec![], - [ - 43u8, 5u8, 63u8, 235u8, 115u8, 155u8, 130u8, 27u8, 75u8, 216u8, 177u8, - 135u8, 203u8, 147u8, 167u8, 95u8, 208u8, 188u8, 25u8, 14u8, 84u8, 63u8, - 116u8, 41u8, 148u8, 110u8, 115u8, 215u8, 196u8, 36u8, 75u8, 102u8, - ], - ) - } - #[doc = " The factor to multiply the base delivery fee by."] - pub fn delivery_fee_factor( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::delivery_fee_factor::DeliveryFeeFactor, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Dmp", - "DeliveryFeeFactor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 43u8, 5u8, 63u8, 235u8, 115u8, 155u8, 130u8, 27u8, 75u8, 216u8, 177u8, - 135u8, 203u8, 147u8, 167u8, 95u8, 208u8, 188u8, 25u8, 14u8, 84u8, 63u8, - 116u8, 41u8, 148u8, 110u8, 115u8, 215u8, 196u8, 36u8, 75u8, 102u8, - ], - ) - } - } - } - } - pub mod hrmp { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::hrmp_init_open_channel`]."] - pub struct HrmpInitOpenChannel { - pub recipient: hrmp_init_open_channel::Recipient, - pub proposed_max_capacity: hrmp_init_open_channel::ProposedMaxCapacity, - pub proposed_max_message_size: hrmp_init_open_channel::ProposedMaxMessageSize, - } - pub mod hrmp_init_open_channel { - use super::runtime_types; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type ProposedMaxCapacity = ::core::primitive::u32; - pub type ProposedMaxMessageSize = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for HrmpInitOpenChannel { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "hrmp_init_open_channel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::hrmp_accept_open_channel`]."] - pub struct HrmpAcceptOpenChannel { - pub sender: hrmp_accept_open_channel::Sender, - } - pub mod hrmp_accept_open_channel { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for HrmpAcceptOpenChannel { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "hrmp_accept_open_channel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::hrmp_close_channel`]."] - pub struct HrmpCloseChannel { - pub channel_id: hrmp_close_channel::ChannelId, - } - pub mod hrmp_close_channel { - use super::runtime_types; - pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - } - impl ::subxt::blocks::StaticExtrinsic for HrmpCloseChannel { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "hrmp_close_channel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_clean_hrmp`]."] - pub struct ForceCleanHrmp { - pub para: force_clean_hrmp::Para, - pub num_inbound: force_clean_hrmp::NumInbound, - pub num_outbound: force_clean_hrmp::NumOutbound, - } - pub mod force_clean_hrmp { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NumInbound = ::core::primitive::u32; - pub type NumOutbound = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceCleanHrmp { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "force_clean_hrmp"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_process_hrmp_open`]."] - pub struct ForceProcessHrmpOpen { - pub channels: force_process_hrmp_open::Channels, - } - pub mod force_process_hrmp_open { - use super::runtime_types; - pub type Channels = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceProcessHrmpOpen { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "force_process_hrmp_open"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_process_hrmp_close`]."] - pub struct ForceProcessHrmpClose { - pub channels: force_process_hrmp_close::Channels, - } - pub mod force_process_hrmp_close { - use super::runtime_types; - pub type Channels = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceProcessHrmpClose { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "force_process_hrmp_close"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::hrmp_cancel_open_request`]."] - pub struct HrmpCancelOpenRequest { - pub channel_id: hrmp_cancel_open_request::ChannelId, - pub open_requests: hrmp_cancel_open_request::OpenRequests, - } - pub mod hrmp_cancel_open_request { - use super::runtime_types; - pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - pub type OpenRequests = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for HrmpCancelOpenRequest { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "hrmp_cancel_open_request"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_open_hrmp_channel`]."] - pub struct ForceOpenHrmpChannel { - pub sender: force_open_hrmp_channel::Sender, - pub recipient: force_open_hrmp_channel::Recipient, - pub max_capacity: force_open_hrmp_channel::MaxCapacity, - pub max_message_size: force_open_hrmp_channel::MaxMessageSize, - } - pub mod force_open_hrmp_channel { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type MaxCapacity = ::core::primitive::u32; - pub type MaxMessageSize = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceOpenHrmpChannel { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "force_open_hrmp_channel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::establish_system_channel`]."] - pub struct EstablishSystemChannel { - pub sender: establish_system_channel::Sender, - pub recipient: establish_system_channel::Recipient, - } - pub mod establish_system_channel { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for EstablishSystemChannel { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "establish_system_channel"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::poke_channel_deposits`]."] - pub struct PokeChannelDeposits { - pub sender: poke_channel_deposits::Sender, - pub recipient: poke_channel_deposits::Recipient, - } - pub mod poke_channel_deposits { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for PokeChannelDeposits { - const PALLET: &'static str = "Hrmp"; - const CALL: &'static str = "poke_channel_deposits"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::hrmp_init_open_channel`]."] - pub fn hrmp_init_open_channel( - &self, - recipient: types::hrmp_init_open_channel::Recipient, - proposed_max_capacity: types::hrmp_init_open_channel::ProposedMaxCapacity, - proposed_max_message_size : types :: hrmp_init_open_channel :: ProposedMaxMessageSize, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "hrmp_init_open_channel", - types::HrmpInitOpenChannel { - recipient, - proposed_max_capacity, - proposed_max_message_size, - }, - [ - 89u8, 39u8, 43u8, 191u8, 235u8, 40u8, 253u8, 129u8, 174u8, 108u8, 26u8, - 206u8, 7u8, 146u8, 206u8, 56u8, 53u8, 104u8, 138u8, 203u8, 108u8, - 195u8, 190u8, 231u8, 223u8, 33u8, 32u8, 157u8, 148u8, 235u8, 67u8, - 82u8, - ], - ) - } - #[doc = "See [`Pallet::hrmp_accept_open_channel`]."] - pub fn hrmp_accept_open_channel( - &self, - sender: types::hrmp_accept_open_channel::Sender, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "hrmp_accept_open_channel", - types::HrmpAcceptOpenChannel { sender }, - [ - 133u8, 77u8, 88u8, 40u8, 47u8, 81u8, 95u8, 206u8, 165u8, 41u8, 191u8, - 241u8, 130u8, 244u8, 70u8, 227u8, 69u8, 80u8, 130u8, 126u8, 34u8, 69u8, - 214u8, 81u8, 7u8, 199u8, 249u8, 162u8, 234u8, 233u8, 195u8, 156u8, - ], - ) - } - #[doc = "See [`Pallet::hrmp_close_channel`]."] - pub fn hrmp_close_channel( - &self, - channel_id: types::hrmp_close_channel::ChannelId, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "hrmp_close_channel", - types::HrmpCloseChannel { channel_id }, - [ - 174u8, 225u8, 93u8, 69u8, 133u8, 145u8, 156u8, 94u8, 185u8, 254u8, - 60u8, 209u8, 232u8, 79u8, 237u8, 173u8, 180u8, 45u8, 117u8, 165u8, - 202u8, 195u8, 84u8, 68u8, 241u8, 164u8, 151u8, 216u8, 96u8, 20u8, 7u8, - 45u8, - ], - ) - } - #[doc = "See [`Pallet::force_clean_hrmp`]."] - pub fn force_clean_hrmp( - &self, - para: types::force_clean_hrmp::Para, - num_inbound: types::force_clean_hrmp::NumInbound, - num_outbound: types::force_clean_hrmp::NumOutbound, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "force_clean_hrmp", - types::ForceCleanHrmp { - para, - num_inbound, - num_outbound, - }, - [ - 0u8, 184u8, 199u8, 44u8, 26u8, 150u8, 124u8, 255u8, 40u8, 63u8, 74u8, - 31u8, 133u8, 22u8, 241u8, 84u8, 44u8, 184u8, 128u8, 54u8, 175u8, 127u8, - 255u8, 232u8, 239u8, 26u8, 50u8, 27u8, 81u8, 223u8, 136u8, 110u8, - ], - ) - } - #[doc = "See [`Pallet::force_process_hrmp_open`]."] - pub fn force_process_hrmp_open( - &self, - channels: types::force_process_hrmp_open::Channels, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "force_process_hrmp_open", - types::ForceProcessHrmpOpen { channels }, - [ - 66u8, 138u8, 220u8, 119u8, 251u8, 148u8, 72u8, 167u8, 49u8, 156u8, - 227u8, 174u8, 153u8, 145u8, 190u8, 195u8, 192u8, 183u8, 41u8, 213u8, - 134u8, 8u8, 114u8, 30u8, 191u8, 81u8, 208u8, 54u8, 120u8, 36u8, 195u8, - 246u8, - ], - ) - } - #[doc = "See [`Pallet::force_process_hrmp_close`]."] - pub fn force_process_hrmp_close( - &self, - channels: types::force_process_hrmp_close::Channels, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "force_process_hrmp_close", - types::ForceProcessHrmpClose { channels }, - [ - 22u8, 60u8, 113u8, 94u8, 199u8, 101u8, 204u8, 34u8, 158u8, 77u8, 228u8, - 29u8, 180u8, 249u8, 46u8, 103u8, 206u8, 155u8, 164u8, 229u8, 70u8, - 189u8, 218u8, 171u8, 173u8, 22u8, 210u8, 73u8, 232u8, 99u8, 225u8, - 176u8, - ], - ) - } - #[doc = "See [`Pallet::hrmp_cancel_open_request`]."] - pub fn hrmp_cancel_open_request( - &self, - channel_id: types::hrmp_cancel_open_request::ChannelId, - open_requests: types::hrmp_cancel_open_request::OpenRequests, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "hrmp_cancel_open_request", - types::HrmpCancelOpenRequest { - channel_id, - open_requests, - }, - [ - 10u8, 192u8, 79u8, 120u8, 6u8, 88u8, 139u8, 75u8, 87u8, 32u8, 125u8, - 47u8, 178u8, 132u8, 156u8, 232u8, 28u8, 123u8, 74u8, 10u8, 180u8, 90u8, - 145u8, 123u8, 40u8, 89u8, 235u8, 25u8, 237u8, 137u8, 114u8, 173u8, - ], - ) - } - #[doc = "See [`Pallet::force_open_hrmp_channel`]."] - pub fn force_open_hrmp_channel( - &self, - sender: types::force_open_hrmp_channel::Sender, - recipient: types::force_open_hrmp_channel::Recipient, - max_capacity: types::force_open_hrmp_channel::MaxCapacity, - max_message_size: types::force_open_hrmp_channel::MaxMessageSize, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "force_open_hrmp_channel", - types::ForceOpenHrmpChannel { - sender, - recipient, - max_capacity, - max_message_size, - }, - [ - 37u8, 251u8, 1u8, 201u8, 129u8, 217u8, 193u8, 179u8, 98u8, 153u8, - 226u8, 139u8, 107u8, 222u8, 3u8, 76u8, 104u8, 248u8, 31u8, 241u8, 90u8, - 189u8, 56u8, 92u8, 118u8, 68u8, 177u8, 70u8, 5u8, 44u8, 234u8, 27u8, - ], - ) - } - #[doc = "See [`Pallet::establish_system_channel`]."] - pub fn establish_system_channel( - &self, - sender: types::establish_system_channel::Sender, - recipient: types::establish_system_channel::Recipient, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "establish_system_channel", - types::EstablishSystemChannel { sender, recipient }, - [ - 179u8, 12u8, 66u8, 57u8, 24u8, 114u8, 175u8, 141u8, 80u8, 157u8, 204u8, - 122u8, 116u8, 139u8, 35u8, 51u8, 68u8, 36u8, 61u8, 135u8, 221u8, 40u8, - 135u8, 21u8, 91u8, 60u8, 51u8, 51u8, 32u8, 224u8, 71u8, 182u8, - ], - ) - } - #[doc = "See [`Pallet::poke_channel_deposits`]."] - pub fn poke_channel_deposits( - &self, - sender: types::poke_channel_deposits::Sender, - recipient: types::poke_channel_deposits::Recipient, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Hrmp", - "poke_channel_deposits", - types::PokeChannelDeposits { sender, recipient }, - [ - 93u8, 153u8, 50u8, 127u8, 136u8, 255u8, 6u8, 155u8, 73u8, 216u8, 145u8, - 229u8, 200u8, 75u8, 94u8, 39u8, 117u8, 188u8, 62u8, 172u8, 210u8, - 212u8, 37u8, 11u8, 166u8, 31u8, 101u8, 129u8, 29u8, 229u8, 200u8, 16u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Open HRMP channel requested."] - pub struct OpenChannelRequested { - pub sender: open_channel_requested::Sender, - pub recipient: open_channel_requested::Recipient, - pub proposed_max_capacity: open_channel_requested::ProposedMaxCapacity, - pub proposed_max_message_size: open_channel_requested::ProposedMaxMessageSize, - } - pub mod open_channel_requested { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type ProposedMaxCapacity = ::core::primitive::u32; - pub type ProposedMaxMessageSize = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for OpenChannelRequested { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelRequested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An HRMP channel request sent by the receiver was canceled by either party."] - pub struct OpenChannelCanceled { - pub by_parachain: open_channel_canceled::ByParachain, - pub channel_id: open_channel_canceled::ChannelId, - } - pub mod open_channel_canceled { - use super::runtime_types; - pub type ByParachain = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - } - impl ::subxt::events::StaticEvent for OpenChannelCanceled { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelCanceled"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Open HRMP channel accepted."] - pub struct OpenChannelAccepted { - pub sender: open_channel_accepted::Sender, - pub recipient: open_channel_accepted::Recipient, - } - pub mod open_channel_accepted { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for OpenChannelAccepted { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelAccepted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "HRMP channel closed."] - pub struct ChannelClosed { - pub by_parachain: channel_closed::ByParachain, - pub channel_id: channel_closed::ChannelId, - } - pub mod channel_closed { - use super::runtime_types; - pub type ByParachain = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type ChannelId = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - } - impl ::subxt::events::StaticEvent for ChannelClosed { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "ChannelClosed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An HRMP channel was opened via Root origin."] - pub struct HrmpChannelForceOpened { - pub sender: hrmp_channel_force_opened::Sender, - pub recipient: hrmp_channel_force_opened::Recipient, - pub proposed_max_capacity: hrmp_channel_force_opened::ProposedMaxCapacity, - pub proposed_max_message_size: hrmp_channel_force_opened::ProposedMaxMessageSize, - } - pub mod hrmp_channel_force_opened { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type ProposedMaxCapacity = ::core::primitive::u32; - pub type ProposedMaxMessageSize = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for HrmpChannelForceOpened { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "HrmpChannelForceOpened"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An HRMP channel was opened between two system chains."] - pub struct HrmpSystemChannelOpened { - pub sender: hrmp_system_channel_opened::Sender, - pub recipient: hrmp_system_channel_opened::Recipient, - pub proposed_max_capacity: hrmp_system_channel_opened::ProposedMaxCapacity, - pub proposed_max_message_size: hrmp_system_channel_opened::ProposedMaxMessageSize, - } - pub mod hrmp_system_channel_opened { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type ProposedMaxCapacity = ::core::primitive::u32; - pub type ProposedMaxMessageSize = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for HrmpSystemChannelOpened { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "HrmpSystemChannelOpened"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An HRMP channel's deposits were updated."] - pub struct OpenChannelDepositsUpdated { - pub sender: open_channel_deposits_updated::Sender, - pub recipient: open_channel_deposits_updated::Recipient, - } - pub mod open_channel_deposits_updated { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for OpenChannelDepositsUpdated { - const PALLET: &'static str = "Hrmp"; - const EVENT: &'static str = "OpenChannelDepositsUpdated"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod hrmp_open_channel_requests { - use super::runtime_types; - pub type HrmpOpenChannelRequests = - runtime_types::polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest; - pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - } - pub mod hrmp_open_channel_requests_list { - use super::runtime_types; - pub type HrmpOpenChannelRequestsList = ::std::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, - >; - } - pub mod hrmp_open_channel_request_count { - use super::runtime_types; - pub type HrmpOpenChannelRequestCount = ::core::primitive::u32; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod hrmp_accepted_channel_request_count { - use super::runtime_types; - pub type HrmpAcceptedChannelRequestCount = ::core::primitive::u32; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod hrmp_close_channel_requests { - use super::runtime_types; - pub type HrmpCloseChannelRequests = (); - pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - } - pub mod hrmp_close_channel_requests_list { - use super::runtime_types; - pub type HrmpCloseChannelRequestsList = ::std::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId, - >; - } - pub mod hrmp_watermarks { - use super::runtime_types; - pub type HrmpWatermarks = ::core::primitive::u32; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod hrmp_channels { - use super::runtime_types; - pub type HrmpChannels = - runtime_types::polkadot_runtime_parachains::hrmp::HrmpChannel; - pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - } - pub mod hrmp_ingress_channels_index { - use super::runtime_types; - pub type HrmpIngressChannelsIndex = ::std::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod hrmp_egress_channels_index { - use super::runtime_types; - pub type HrmpEgressChannelsIndex = ::std::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod hrmp_channel_contents { - use super::runtime_types; - pub type HrmpChannelContents = ::std::vec::Vec< - runtime_types::polkadot_core_primitives::InboundHrmpMessage< - ::core::primitive::u32, - >, - >; - pub type Param0 = - runtime_types::polkadot_parachain_primitives::primitives::HrmpChannelId; - } - pub mod hrmp_channel_digests { - use super::runtime_types; - pub type HrmpChannelDigests = ::std::vec::Vec<( - ::core::primitive::u32, - ::std::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, - )>; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The set of pending HRMP open channel requests."] - #[doc = ""] - #[doc = " The set is accompanied by a list for iteration."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - There are no channels that exists in list but not in the set and vice versa."] - pub fn hrmp_open_channel_requests_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_open_channel_requests::HrmpOpenChannelRequests, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpOpenChannelRequests", - vec![], - [ - 164u8, 97u8, 52u8, 242u8, 255u8, 67u8, 248u8, 170u8, 204u8, 92u8, 81u8, - 144u8, 11u8, 63u8, 145u8, 167u8, 8u8, 174u8, 221u8, 147u8, 125u8, - 144u8, 243u8, 33u8, 235u8, 104u8, 240u8, 99u8, 96u8, 211u8, 163u8, - 121u8, - ], - ) - } - #[doc = " The set of pending HRMP open channel requests."] - #[doc = ""] - #[doc = " The set is accompanied by a list for iteration."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - There are no channels that exists in list but not in the set and vice versa."] - pub fn hrmp_open_channel_requests( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_open_channel_requests::HrmpOpenChannelRequests, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpOpenChannelRequests", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 164u8, 97u8, 52u8, 242u8, 255u8, 67u8, 248u8, 170u8, 204u8, 92u8, 81u8, - 144u8, 11u8, 63u8, 145u8, 167u8, 8u8, 174u8, 221u8, 147u8, 125u8, - 144u8, 243u8, 33u8, 235u8, 104u8, 240u8, 99u8, 96u8, 211u8, 163u8, - 121u8, - ], - ) - } - pub fn hrmp_open_channel_requests_list( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_open_channel_requests_list::HrmpOpenChannelRequestsList, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpOpenChannelRequestsList", - vec![], - [ - 45u8, 190u8, 124u8, 26u8, 37u8, 249u8, 140u8, 254u8, 101u8, 249u8, - 27u8, 117u8, 218u8, 3u8, 126u8, 114u8, 143u8, 65u8, 122u8, 246u8, - 237u8, 173u8, 145u8, 175u8, 133u8, 119u8, 127u8, 81u8, 59u8, 206u8, - 159u8, 39u8, - ], - ) - } - #[doc = " This mapping tracks how many open channel requests are initiated by a given sender para."] - #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has"] - #[doc = " `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`."] - pub fn hrmp_open_channel_request_count_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_open_channel_request_count::HrmpOpenChannelRequestCount, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpOpenChannelRequestCount", - vec![], - [ - 136u8, 72u8, 56u8, 31u8, 229u8, 99u8, 241u8, 14u8, 159u8, 243u8, 179u8, - 222u8, 252u8, 56u8, 63u8, 24u8, 204u8, 130u8, 47u8, 161u8, 133u8, - 227u8, 237u8, 146u8, 239u8, 46u8, 127u8, 113u8, 190u8, 230u8, 61u8, - 182u8, - ], - ) - } - #[doc = " This mapping tracks how many open channel requests are initiated by a given sender para."] - #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has"] - #[doc = " `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`."] - pub fn hrmp_open_channel_request_count( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_open_channel_request_count::HrmpOpenChannelRequestCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpOpenChannelRequestCount", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 136u8, 72u8, 56u8, 31u8, 229u8, 99u8, 241u8, 14u8, 159u8, 243u8, 179u8, - 222u8, 252u8, 56u8, 63u8, 24u8, 204u8, 130u8, 47u8, 161u8, 133u8, - 227u8, 237u8, 146u8, 239u8, 46u8, 127u8, 113u8, 190u8, 230u8, 61u8, - 182u8, - ], - ) - } - #[doc = " This mapping tracks how many open channel requests were accepted by a given recipient para."] - #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with"] - #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] - pub fn hrmp_accepted_channel_request_count_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_accepted_channel_request_count::HrmpAcceptedChannelRequestCount, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpAcceptedChannelRequestCount", - vec![], - [ - 29u8, 100u8, 52u8, 28u8, 180u8, 84u8, 132u8, 120u8, 117u8, 172u8, - 169u8, 40u8, 237u8, 92u8, 89u8, 87u8, 230u8, 148u8, 140u8, 226u8, 60u8, - 169u8, 100u8, 162u8, 139u8, 205u8, 180u8, 92u8, 0u8, 110u8, 55u8, - 158u8, - ], - ) - } - #[doc = " This mapping tracks how many open channel requests were accepted by a given recipient para."] - #[doc = " Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with"] - #[doc = " `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`."] - pub fn hrmp_accepted_channel_request_count( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_accepted_channel_request_count::HrmpAcceptedChannelRequestCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpAcceptedChannelRequestCount", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 29u8, 100u8, 52u8, 28u8, 180u8, 84u8, 132u8, 120u8, 117u8, 172u8, - 169u8, 40u8, 237u8, 92u8, 89u8, 87u8, 230u8, 148u8, 140u8, 226u8, 60u8, - 169u8, 100u8, 162u8, 139u8, 205u8, 180u8, 92u8, 0u8, 110u8, 55u8, - 158u8, - ], - ) - } - #[doc = " A set of pending HRMP close channel requests that are going to be closed during the session"] - #[doc = " change. Used for checking if a given channel is registered for closure."] - #[doc = ""] - #[doc = " The set is accompanied by a list for iteration."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - There are no channels that exists in list but not in the set and vice versa."] - pub fn hrmp_close_channel_requests_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_close_channel_requests::HrmpCloseChannelRequests, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpCloseChannelRequests", - vec![], - [ - 155u8, 13u8, 73u8, 166u8, 58u8, 67u8, 138u8, 58u8, 215u8, 172u8, 241u8, - 168u8, 57u8, 4u8, 230u8, 248u8, 31u8, 183u8, 227u8, 224u8, 139u8, - 172u8, 229u8, 228u8, 16u8, 120u8, 124u8, 81u8, 213u8, 253u8, 102u8, - 226u8, - ], - ) - } - #[doc = " A set of pending HRMP close channel requests that are going to be closed during the session"] - #[doc = " change. Used for checking if a given channel is registered for closure."] - #[doc = ""] - #[doc = " The set is accompanied by a list for iteration."] - #[doc = ""] - #[doc = " Invariant:"] - #[doc = " - There are no channels that exists in list but not in the set and vice versa."] - pub fn hrmp_close_channel_requests( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_close_channel_requests::HrmpCloseChannelRequests, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpCloseChannelRequests", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 155u8, 13u8, 73u8, 166u8, 58u8, 67u8, 138u8, 58u8, 215u8, 172u8, 241u8, - 168u8, 57u8, 4u8, 230u8, 248u8, 31u8, 183u8, 227u8, 224u8, 139u8, - 172u8, 229u8, 228u8, 16u8, 120u8, 124u8, 81u8, 213u8, 253u8, 102u8, - 226u8, - ], - ) - } - pub fn hrmp_close_channel_requests_list( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_close_channel_requests_list::HrmpCloseChannelRequestsList, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpCloseChannelRequestsList", - vec![], - [ - 78u8, 194u8, 214u8, 232u8, 91u8, 72u8, 109u8, 113u8, 88u8, 86u8, 136u8, - 26u8, 226u8, 30u8, 11u8, 188u8, 57u8, 77u8, 169u8, 64u8, 14u8, 187u8, - 27u8, 127u8, 76u8, 99u8, 114u8, 73u8, 221u8, 23u8, 208u8, 69u8, - ], - ) - } - #[doc = " The HRMP watermark associated with each para."] - #[doc = " Invariant:"] - #[doc = " - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a"] - #[doc = " session."] - pub fn hrmp_watermarks_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_watermarks::HrmpWatermarks, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpWatermarks", - vec![], - [ - 245u8, 104u8, 137u8, 120u8, 131u8, 7u8, 178u8, 85u8, 96u8, 124u8, - 241u8, 2u8, 86u8, 63u8, 116u8, 77u8, 217u8, 235u8, 162u8, 38u8, 104u8, - 248u8, 121u8, 1u8, 111u8, 191u8, 191u8, 115u8, 65u8, 67u8, 2u8, 238u8, - ], - ) - } - #[doc = " The HRMP watermark associated with each para."] - #[doc = " Invariant:"] - #[doc = " - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a"] - #[doc = " session."] - pub fn hrmp_watermarks( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_watermarks::HrmpWatermarks, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpWatermarks", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 245u8, 104u8, 137u8, 120u8, 131u8, 7u8, 178u8, 85u8, 96u8, 124u8, - 241u8, 2u8, 86u8, 63u8, 116u8, 77u8, 217u8, 235u8, 162u8, 38u8, 104u8, - 248u8, 121u8, 1u8, 111u8, 191u8, 191u8, 115u8, 65u8, 67u8, 2u8, 238u8, - ], - ) - } - #[doc = " HRMP channel data associated with each para."] - #[doc = " Invariant:"] - #[doc = " - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session."] - pub fn hrmp_channels_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_channels::HrmpChannels, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannels", - vec![], - [ - 174u8, 90u8, 72u8, 93u8, 43u8, 140u8, 181u8, 170u8, 138u8, 171u8, - 179u8, 156u8, 33u8, 87u8, 63u8, 1u8, 131u8, 59u8, 230u8, 14u8, 40u8, - 240u8, 186u8, 66u8, 191u8, 130u8, 48u8, 218u8, 225u8, 22u8, 33u8, - 122u8, - ], - ) - } - #[doc = " HRMP channel data associated with each para."] - #[doc = " Invariant:"] - #[doc = " - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session."] - pub fn hrmp_channels( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_channels::HrmpChannels, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannels", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 174u8, 90u8, 72u8, 93u8, 43u8, 140u8, 181u8, 170u8, 138u8, 171u8, - 179u8, 156u8, 33u8, 87u8, 63u8, 1u8, 131u8, 59u8, 230u8, 14u8, 40u8, - 240u8, 186u8, 66u8, 191u8, 130u8, 48u8, 218u8, 225u8, 22u8, 33u8, - 122u8, - ], - ) - } - #[doc = " Ingress/egress indexes allow to find all the senders and receivers given the opposite side."] - #[doc = " I.e."] - #[doc = ""] - #[doc = " (a) ingress index allows to find all the senders for a given recipient."] - #[doc = " (b) egress index allows to find all the recipients for a given sender."] - #[doc = ""] - #[doc = " Invariants:"] - #[doc = " - for each ingress index entry for `P` each item `I` in the index should present in"] - #[doc = " `HrmpChannels` as `(I, P)`."] - #[doc = " - for each egress index entry for `P` each item `E` in the index should present in"] - #[doc = " `HrmpChannels` as `(P, E)`."] - #[doc = " - there should be no other dangling channels in `HrmpChannels`."] - #[doc = " - the vectors are sorted."] - pub fn hrmp_ingress_channels_index_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_ingress_channels_index::HrmpIngressChannelsIndex, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpIngressChannelsIndex", - vec![], - [ - 125u8, 229u8, 102u8, 230u8, 74u8, 109u8, 173u8, 67u8, 176u8, 169u8, - 57u8, 24u8, 75u8, 129u8, 246u8, 198u8, 63u8, 49u8, 56u8, 102u8, 149u8, - 139u8, 138u8, 207u8, 150u8, 220u8, 29u8, 208u8, 203u8, 0u8, 93u8, - 105u8, - ], - ) - } - #[doc = " Ingress/egress indexes allow to find all the senders and receivers given the opposite side."] - #[doc = " I.e."] - #[doc = ""] - #[doc = " (a) ingress index allows to find all the senders for a given recipient."] - #[doc = " (b) egress index allows to find all the recipients for a given sender."] - #[doc = ""] - #[doc = " Invariants:"] - #[doc = " - for each ingress index entry for `P` each item `I` in the index should present in"] - #[doc = " `HrmpChannels` as `(I, P)`."] - #[doc = " - for each egress index entry for `P` each item `E` in the index should present in"] - #[doc = " `HrmpChannels` as `(P, E)`."] - #[doc = " - there should be no other dangling channels in `HrmpChannels`."] - #[doc = " - the vectors are sorted."] - pub fn hrmp_ingress_channels_index( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_ingress_channels_index::HrmpIngressChannelsIndex, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpIngressChannelsIndex", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 125u8, 229u8, 102u8, 230u8, 74u8, 109u8, 173u8, 67u8, 176u8, 169u8, - 57u8, 24u8, 75u8, 129u8, 246u8, 198u8, 63u8, 49u8, 56u8, 102u8, 149u8, - 139u8, 138u8, 207u8, 150u8, 220u8, 29u8, 208u8, 203u8, 0u8, 93u8, - 105u8, - ], - ) - } - pub fn hrmp_egress_channels_index_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_egress_channels_index::HrmpEgressChannelsIndex, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpEgressChannelsIndex", - vec![], - [ - 237u8, 183u8, 188u8, 57u8, 20u8, 238u8, 166u8, 7u8, 94u8, 155u8, 22u8, - 9u8, 173u8, 209u8, 210u8, 17u8, 160u8, 79u8, 243u8, 4u8, 245u8, 240u8, - 65u8, 195u8, 116u8, 98u8, 206u8, 104u8, 53u8, 64u8, 241u8, 41u8, - ], - ) - } - pub fn hrmp_egress_channels_index( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_egress_channels_index::HrmpEgressChannelsIndex, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpEgressChannelsIndex", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 237u8, 183u8, 188u8, 57u8, 20u8, 238u8, 166u8, 7u8, 94u8, 155u8, 22u8, - 9u8, 173u8, 209u8, 210u8, 17u8, 160u8, 79u8, 243u8, 4u8, 245u8, 240u8, - 65u8, 195u8, 116u8, 98u8, 206u8, 104u8, 53u8, 64u8, 241u8, 41u8, - ], - ) - } - #[doc = " Storage for the messages for each channel."] - #[doc = " Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`."] - pub fn hrmp_channel_contents_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_channel_contents::HrmpChannelContents, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannelContents", - vec![], - [ - 55u8, 16u8, 135u8, 69u8, 54u8, 180u8, 246u8, 124u8, 104u8, 92u8, 45u8, - 18u8, 223u8, 145u8, 43u8, 190u8, 121u8, 59u8, 35u8, 195u8, 234u8, - 219u8, 30u8, 246u8, 168u8, 187u8, 45u8, 171u8, 254u8, 204u8, 60u8, - 121u8, - ], - ) - } - #[doc = " Storage for the messages for each channel."] - #[doc = " Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`."] - pub fn hrmp_channel_contents( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_channel_contents::HrmpChannelContents, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannelContents", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 55u8, 16u8, 135u8, 69u8, 54u8, 180u8, 246u8, 124u8, 104u8, 92u8, 45u8, - 18u8, 223u8, 145u8, 43u8, 190u8, 121u8, 59u8, 35u8, 195u8, 234u8, - 219u8, 30u8, 246u8, 168u8, 187u8, 45u8, 171u8, 254u8, 204u8, 60u8, - 121u8, - ], - ) - } - #[doc = " Maintains a mapping that can be used to answer the question: What paras sent a message at"] - #[doc = " the given block number for a given receiver. Invariants:"] - #[doc = " - The inner `Vec` is never empty."] - #[doc = " - The inner `Vec` cannot store two same `ParaId`."] - #[doc = " - The outer vector is sorted ascending by block number and cannot store two items with the"] - #[doc = " same block number."] - pub fn hrmp_channel_digests_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_channel_digests::HrmpChannelDigests, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannelDigests", - vec![], - [ - 90u8, 90u8, 139u8, 78u8, 47u8, 2u8, 104u8, 211u8, 42u8, 246u8, 193u8, - 210u8, 142u8, 223u8, 17u8, 136u8, 3u8, 182u8, 25u8, 56u8, 72u8, 72u8, - 162u8, 131u8, 36u8, 34u8, 162u8, 176u8, 159u8, 113u8, 7u8, 207u8, - ], - ) - } - #[doc = " Maintains a mapping that can be used to answer the question: What paras sent a message at"] - #[doc = " the given block number for a given receiver. Invariants:"] - #[doc = " - The inner `Vec` is never empty."] - #[doc = " - The inner `Vec` cannot store two same `ParaId`."] - #[doc = " - The outer vector is sorted ascending by block number and cannot store two items with the"] - #[doc = " same block number."] - pub fn hrmp_channel_digests( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::hrmp_channel_digests::HrmpChannelDigests, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Hrmp", - "HrmpChannelDigests", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 90u8, 90u8, 139u8, 78u8, 47u8, 2u8, 104u8, 211u8, 42u8, 246u8, 193u8, - 210u8, 142u8, 223u8, 17u8, 136u8, 3u8, 182u8, 25u8, 56u8, 72u8, 72u8, - 162u8, 131u8, 36u8, 34u8, 162u8, 176u8, 159u8, 113u8, 7u8, 207u8, - ], - ) - } - } - } - } - pub mod para_session_info { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod assignment_keys_unsafe { - use super::runtime_types; - pub type AssignmentKeysUnsafe = ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::assignment_app::Public, - >; - } - pub mod earliest_stored_session { - use super::runtime_types; - pub type EarliestStoredSession = ::core::primitive::u32; - } - pub mod sessions { - use super::runtime_types; - pub type Sessions = runtime_types::polkadot_primitives::v6::SessionInfo; - pub type Param0 = ::core::primitive::u32; - } - pub mod account_keys { - use super::runtime_types; - pub type AccountKeys = ::std::vec::Vec<::subxt::utils::AccountId32>; - pub type Param0 = ::core::primitive::u32; - } - pub mod session_executor_params { - use super::runtime_types; - pub type SessionExecutorParams = - runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams; - pub type Param0 = ::core::primitive::u32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Assignment keys for the current session."] - #[doc = " Note that this API is private due to it being prone to 'off-by-one' at session boundaries."] - #[doc = " When in doubt, use `Sessions` API instead."] - pub fn assignment_keys_unsafe( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::assignment_keys_unsafe::AssignmentKeysUnsafe, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "AssignmentKeysUnsafe", - vec![], - [ - 51u8, 155u8, 91u8, 101u8, 118u8, 243u8, 134u8, 138u8, 147u8, 59u8, - 195u8, 186u8, 54u8, 187u8, 36u8, 14u8, 91u8, 141u8, 60u8, 139u8, 28u8, - 74u8, 111u8, 232u8, 198u8, 229u8, 61u8, 63u8, 72u8, 214u8, 152u8, 2u8, - ], - ) - } - #[doc = " The earliest session for which previous session info is stored."] - pub fn earliest_stored_session( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::earliest_stored_session::EarliestStoredSession, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "EarliestStoredSession", - vec![], - [ - 139u8, 176u8, 46u8, 139u8, 217u8, 35u8, 62u8, 91u8, 183u8, 7u8, 114u8, - 226u8, 60u8, 237u8, 105u8, 73u8, 20u8, 216u8, 194u8, 205u8, 178u8, - 237u8, 84u8, 66u8, 181u8, 29u8, 31u8, 218u8, 48u8, 60u8, 198u8, 86u8, - ], - ) - } - #[doc = " Session information in a rolling window."] - #[doc = " Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`."] - #[doc = " Does not have any entries before the session index in the first session change notification."] - pub fn sessions_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::sessions::Sessions, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "Sessions", - vec![], - [ - 254u8, 40u8, 169u8, 18u8, 252u8, 203u8, 49u8, 182u8, 123u8, 19u8, - 241u8, 150u8, 227u8, 153u8, 108u8, 109u8, 66u8, 129u8, 157u8, 27u8, - 130u8, 215u8, 105u8, 18u8, 163u8, 72u8, 182u8, 243u8, 31u8, 157u8, - 103u8, 111u8, - ], - ) - } - #[doc = " Session information in a rolling window."] - #[doc = " Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`."] - #[doc = " Does not have any entries before the session index in the first session change notification."] - pub fn sessions( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::sessions::Sessions, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "Sessions", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 254u8, 40u8, 169u8, 18u8, 252u8, 203u8, 49u8, 182u8, 123u8, 19u8, - 241u8, 150u8, 227u8, 153u8, 108u8, 109u8, 66u8, 129u8, 157u8, 27u8, - 130u8, 215u8, 105u8, 18u8, 163u8, 72u8, 182u8, 243u8, 31u8, 157u8, - 103u8, 111u8, - ], - ) - } - #[doc = " The validator account keys of the validators actively participating in parachain consensus."] - pub fn account_keys_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::account_keys::AccountKeys, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "AccountKeys", - vec![], - [ - 30u8, 98u8, 58u8, 140u8, 96u8, 231u8, 205u8, 111u8, 194u8, 100u8, - 185u8, 242u8, 210u8, 143u8, 110u8, 144u8, 170u8, 187u8, 62u8, 196u8, - 73u8, 88u8, 118u8, 168u8, 117u8, 116u8, 153u8, 229u8, 108u8, 46u8, - 154u8, 220u8, - ], - ) - } - #[doc = " The validator account keys of the validators actively participating in parachain consensus."] - pub fn account_keys( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::account_keys::AccountKeys, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "AccountKeys", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 30u8, 98u8, 58u8, 140u8, 96u8, 231u8, 205u8, 111u8, 194u8, 100u8, - 185u8, 242u8, 210u8, 143u8, 110u8, 144u8, 170u8, 187u8, 62u8, 196u8, - 73u8, 88u8, 118u8, 168u8, 117u8, 116u8, 153u8, 229u8, 108u8, 46u8, - 154u8, 220u8, - ], - ) - } - #[doc = " Executor parameter set for a given session index"] - pub fn session_executor_params_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::session_executor_params::SessionExecutorParams, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "SessionExecutorParams", - vec![], - [ - 102u8, 51u8, 28u8, 199u8, 238u8, 229u8, 99u8, 38u8, 116u8, 154u8, - 250u8, 136u8, 240u8, 122u8, 82u8, 13u8, 139u8, 160u8, 149u8, 218u8, - 162u8, 130u8, 109u8, 251u8, 10u8, 109u8, 200u8, 158u8, 32u8, 157u8, - 84u8, 234u8, - ], - ) - } - #[doc = " Executor parameter set for a given session index"] - pub fn session_executor_params( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::session_executor_params::SessionExecutorParams, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParaSessionInfo", - "SessionExecutorParams", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 102u8, 51u8, 28u8, 199u8, 238u8, 229u8, 99u8, 38u8, 116u8, 154u8, - 250u8, 136u8, 240u8, 122u8, 82u8, 13u8, 139u8, 160u8, 149u8, 218u8, - 162u8, 130u8, 109u8, 251u8, 10u8, 109u8, 200u8, 158u8, 32u8, 157u8, - 84u8, 234u8, - ], - ) - } - } - } - } - pub mod paras_disputes { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_parachains::disputes::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_parachains::disputes::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_unfreeze`]."] - pub struct ForceUnfreeze; - impl ::subxt::blocks::StaticExtrinsic for ForceUnfreeze { - const PALLET: &'static str = "ParasDisputes"; - const CALL: &'static str = "force_unfreeze"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::force_unfreeze`]."] - pub fn force_unfreeze(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ParasDisputes", - "force_unfreeze", - types::ForceUnfreeze {}, - [ - 148u8, 19u8, 139u8, 154u8, 111u8, 166u8, 74u8, 136u8, 127u8, 157u8, - 20u8, 47u8, 220u8, 108u8, 152u8, 108u8, 24u8, 232u8, 11u8, 53u8, 26u8, - 4u8, 23u8, 58u8, 195u8, 61u8, 159u8, 6u8, 139u8, 7u8, 197u8, 88u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_parachains::disputes::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] - pub struct DisputeInitiated( - pub dispute_initiated::Field0, - pub dispute_initiated::Field1, - ); - pub mod dispute_initiated { - use super::runtime_types; - pub type Field0 = runtime_types::polkadot_core_primitives::CandidateHash; - pub type Field1 = - runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation; - } - impl ::subxt::events::StaticEvent for DisputeInitiated { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "DisputeInitiated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A dispute has concluded for or against a candidate."] - #[doc = "`\\[para id, candidate hash, dispute result\\]`"] - pub struct DisputeConcluded( - pub dispute_concluded::Field0, - pub dispute_concluded::Field1, - ); - pub mod dispute_concluded { - use super::runtime_types; - pub type Field0 = runtime_types::polkadot_core_primitives::CandidateHash; - pub type Field1 = - runtime_types::polkadot_runtime_parachains::disputes::DisputeResult; - } - impl ::subxt::events::StaticEvent for DisputeConcluded { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "DisputeConcluded"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A dispute has concluded with supermajority against a candidate."] - #[doc = "Block authors should no longer build on top of this head and should"] - #[doc = "instead revert the block at the given height. This should be the"] - #[doc = "number of the child of the last known valid block in the chain."] - pub struct Revert(pub revert::Field0); - pub mod revert { - use super::runtime_types; - pub type Field0 = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for Revert { - const PALLET: &'static str = "ParasDisputes"; - const EVENT: &'static str = "Revert"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod last_pruned_session { - use super::runtime_types; - pub type LastPrunedSession = ::core::primitive::u32; - } - pub mod disputes { - use super::runtime_types; - pub type Disputes = runtime_types::polkadot_primitives::v6::DisputeState< - ::core::primitive::u32, - >; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; - } - pub mod backers_on_disputes { - use super::runtime_types; - pub type BackersOnDisputes = - ::std::vec::Vec; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; - } - pub mod included { - use super::runtime_types; - pub type Included = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; - } - pub mod frozen { - use super::runtime_types; - pub type Frozen = ::core::option::Option<::core::primitive::u32>; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The last pruned session, if any. All data stored by this module"] - #[doc = " references sessions."] - pub fn last_pruned_session( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::last_pruned_session::LastPrunedSession, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "LastPrunedSession", - vec![], - [ - 98u8, 107u8, 200u8, 158u8, 182u8, 120u8, 24u8, 242u8, 24u8, 163u8, - 237u8, 72u8, 153u8, 19u8, 38u8, 85u8, 239u8, 208u8, 194u8, 22u8, 173u8, - 100u8, 219u8, 10u8, 194u8, 42u8, 120u8, 146u8, 225u8, 62u8, 80u8, - 229u8, - ], - ) - } - #[doc = " All ongoing or concluded disputes for the last several sessions."] - pub fn disputes_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::disputes::Disputes, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Disputes", - vec![], - [ - 38u8, 237u8, 141u8, 222u8, 135u8, 82u8, 210u8, 166u8, 192u8, 122u8, - 175u8, 96u8, 91u8, 1u8, 225u8, 182u8, 128u8, 4u8, 159u8, 56u8, 180u8, - 176u8, 157u8, 20u8, 105u8, 202u8, 192u8, 213u8, 164u8, 24u8, 227u8, - 15u8, - ], - ) - } - #[doc = " All ongoing or concluded disputes for the last several sessions."] - pub fn disputes_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::disputes::Disputes, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Disputes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 38u8, 237u8, 141u8, 222u8, 135u8, 82u8, 210u8, 166u8, 192u8, 122u8, - 175u8, 96u8, 91u8, 1u8, 225u8, 182u8, 128u8, 4u8, 159u8, 56u8, 180u8, - 176u8, 157u8, 20u8, 105u8, 202u8, 192u8, 213u8, 164u8, 24u8, 227u8, - 15u8, - ], - ) - } - #[doc = " All ongoing or concluded disputes for the last several sessions."] - pub fn disputes( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::disputes::Disputes, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Disputes", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 38u8, 237u8, 141u8, 222u8, 135u8, 82u8, 210u8, 166u8, 192u8, 122u8, - 175u8, 96u8, 91u8, 1u8, 225u8, 182u8, 128u8, 4u8, 159u8, 56u8, 180u8, - 176u8, 157u8, 20u8, 105u8, 202u8, 192u8, 213u8, 164u8, 24u8, 227u8, - 15u8, - ], - ) - } - #[doc = " Backing votes stored for each dispute."] - #[doc = " This storage is used for slashing."] - pub fn backers_on_disputes_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::backers_on_disputes::BackersOnDisputes, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "BackersOnDisputes", - vec![], - [ - 136u8, 171u8, 20u8, 204u8, 135u8, 153u8, 144u8, 241u8, 46u8, 193u8, - 65u8, 22u8, 116u8, 161u8, 144u8, 186u8, 31u8, 194u8, 202u8, 225u8, - 14u8, 137u8, 240u8, 243u8, 119u8, 144u8, 102u8, 245u8, 133u8, 126u8, - 103u8, 32u8, - ], - ) - } - #[doc = " Backing votes stored for each dispute."] - #[doc = " This storage is used for slashing."] - pub fn backers_on_disputes_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::backers_on_disputes::BackersOnDisputes, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "BackersOnDisputes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 136u8, 171u8, 20u8, 204u8, 135u8, 153u8, 144u8, 241u8, 46u8, 193u8, - 65u8, 22u8, 116u8, 161u8, 144u8, 186u8, 31u8, 194u8, 202u8, 225u8, - 14u8, 137u8, 240u8, 243u8, 119u8, 144u8, 102u8, 245u8, 133u8, 126u8, - 103u8, 32u8, - ], - ) - } - #[doc = " Backing votes stored for each dispute."] - #[doc = " This storage is used for slashing."] - pub fn backers_on_disputes( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::backers_on_disputes::BackersOnDisputes, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "BackersOnDisputes", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 136u8, 171u8, 20u8, 204u8, 135u8, 153u8, 144u8, 241u8, 46u8, 193u8, - 65u8, 22u8, 116u8, 161u8, 144u8, 186u8, 31u8, 194u8, 202u8, 225u8, - 14u8, 137u8, 240u8, 243u8, 119u8, 144u8, 102u8, 245u8, 133u8, 126u8, - 103u8, 32u8, - ], - ) - } - #[doc = " All included blocks on the chain, as well as the block number in this chain that"] - #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] - pub fn included_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::included::Included, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Included", - vec![], - [ - 47u8, 105u8, 189u8, 233u8, 206u8, 153u8, 162u8, 217u8, 141u8, 118u8, - 31u8, 85u8, 87u8, 53u8, 100u8, 187u8, 31u8, 245u8, 50u8, 171u8, 4u8, - 203u8, 163u8, 109u8, 212u8, 162u8, 86u8, 124u8, 172u8, 157u8, 165u8, - 21u8, - ], - ) - } - #[doc = " All included blocks on the chain, as well as the block number in this chain that"] - #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] - pub fn included_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::included::Included, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Included", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 47u8, 105u8, 189u8, 233u8, 206u8, 153u8, 162u8, 217u8, 141u8, 118u8, - 31u8, 85u8, 87u8, 53u8, 100u8, 187u8, 31u8, 245u8, 50u8, 171u8, 4u8, - 203u8, 163u8, 109u8, 212u8, 162u8, 86u8, 124u8, 172u8, 157u8, 165u8, - 21u8, - ], - ) - } - #[doc = " All included blocks on the chain, as well as the block number in this chain that"] - #[doc = " should be reverted back to if the candidate is disputed and determined to be invalid."] - pub fn included( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::included::Included, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Included", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 47u8, 105u8, 189u8, 233u8, 206u8, 153u8, 162u8, 217u8, 141u8, 118u8, - 31u8, 85u8, 87u8, 53u8, 100u8, 187u8, 31u8, 245u8, 50u8, 171u8, 4u8, - 203u8, 163u8, 109u8, 212u8, 162u8, 86u8, 124u8, 172u8, 157u8, 165u8, - 21u8, - ], - ) - } - #[doc = " Whether the chain is frozen. Starts as `None`. When this is `Some`,"] - #[doc = " the chain will not accept any new parachain blocks for backing or inclusion,"] - #[doc = " and its value indicates the last valid block number in the chain."] - #[doc = " It can only be set back to `None` by governance intervention."] - pub fn frozen( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::frozen::Frozen, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasDisputes", - "Frozen", - vec![], - [ - 245u8, 136u8, 43u8, 156u8, 7u8, 74u8, 31u8, 190u8, 184u8, 119u8, 182u8, - 66u8, 18u8, 136u8, 30u8, 248u8, 24u8, 121u8, 26u8, 177u8, 169u8, 208u8, - 218u8, 208u8, 80u8, 116u8, 31u8, 144u8, 49u8, 201u8, 198u8, 197u8, - ], - ) - } - } - } - } - pub mod paras_slashing { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] - pub struct ReportDisputeLostUnsigned { - pub dispute_proof: - ::std::boxed::Box, - pub key_owner_proof: report_dispute_lost_unsigned::KeyOwnerProof, - } - pub mod report_dispute_lost_unsigned { - use super::runtime_types; - pub type DisputeProof = - runtime_types::polkadot_primitives::v6::slashing::DisputeProof; - pub type KeyOwnerProof = runtime_types::sp_session::MembershipProof; - } - impl ::subxt::blocks::StaticExtrinsic for ReportDisputeLostUnsigned { - const PALLET: &'static str = "ParasSlashing"; - const CALL: &'static str = "report_dispute_lost_unsigned"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] - pub fn report_dispute_lost_unsigned( - &self, - dispute_proof: types::report_dispute_lost_unsigned::DisputeProof, - key_owner_proof: types::report_dispute_lost_unsigned::KeyOwnerProof, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ParasSlashing", - "report_dispute_lost_unsigned", - types::ReportDisputeLostUnsigned { - dispute_proof: ::std::boxed::Box::new(dispute_proof), - key_owner_proof, - }, - [ - 57u8, 99u8, 246u8, 126u8, 203u8, 239u8, 64u8, 182u8, 167u8, 204u8, - 96u8, 221u8, 126u8, 94u8, 254u8, 210u8, 18u8, 182u8, 207u8, 32u8, - 250u8, 249u8, 116u8, 156u8, 210u8, 63u8, 254u8, 74u8, 86u8, 101u8, - 28u8, 229u8, - ], - ) - } - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod unapplied_slashes { - use super::runtime_types; - pub type UnappliedSlashes = - runtime_types::polkadot_primitives::v6::slashing::PendingSlashes; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::polkadot_core_primitives::CandidateHash; - } - pub mod validator_set_counts { - use super::runtime_types; - pub type ValidatorSetCounts = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Validators pending dispute slashes."] - pub fn unapplied_slashes_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::unapplied_slashes::UnappliedSlashes, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "UnappliedSlashes", - vec![], - [ - 114u8, 171u8, 137u8, 142u8, 180u8, 125u8, 226u8, 240u8, 99u8, 181u8, - 68u8, 221u8, 91u8, 124u8, 172u8, 93u8, 103u8, 12u8, 95u8, 43u8, 67u8, - 59u8, 29u8, 133u8, 140u8, 17u8, 141u8, 228u8, 145u8, 201u8, 82u8, - 126u8, - ], - ) - } - #[doc = " Validators pending dispute slashes."] - pub fn unapplied_slashes_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::unapplied_slashes::UnappliedSlashes, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "UnappliedSlashes", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 114u8, 171u8, 137u8, 142u8, 180u8, 125u8, 226u8, 240u8, 99u8, 181u8, - 68u8, 221u8, 91u8, 124u8, 172u8, 93u8, 103u8, 12u8, 95u8, 43u8, 67u8, - 59u8, 29u8, 133u8, 140u8, 17u8, 141u8, 228u8, 145u8, 201u8, 82u8, - 126u8, - ], - ) - } - #[doc = " Validators pending dispute slashes."] - pub fn unapplied_slashes( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::unapplied_slashes::UnappliedSlashes, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "UnappliedSlashes", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 114u8, 171u8, 137u8, 142u8, 180u8, 125u8, 226u8, 240u8, 99u8, 181u8, - 68u8, 221u8, 91u8, 124u8, 172u8, 93u8, 103u8, 12u8, 95u8, 43u8, 67u8, - 59u8, 29u8, 133u8, 140u8, 17u8, 141u8, 228u8, 145u8, 201u8, 82u8, - 126u8, - ], - ) - } - #[doc = " `ValidatorSetCount` per session."] - pub fn validator_set_counts_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::validator_set_counts::ValidatorSetCounts, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "ValidatorSetCounts", - vec![], - [ - 195u8, 220u8, 79u8, 140u8, 114u8, 80u8, 241u8, 103u8, 4u8, 7u8, 53u8, - 100u8, 16u8, 78u8, 104u8, 171u8, 134u8, 110u8, 158u8, 191u8, 37u8, - 94u8, 211u8, 26u8, 17u8, 70u8, 50u8, 34u8, 70u8, 234u8, 186u8, 69u8, - ], - ) - } - #[doc = " `ValidatorSetCount` per session."] - pub fn validator_set_counts( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::validator_set_counts::ValidatorSetCounts, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "ParasSlashing", - "ValidatorSetCounts", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 195u8, 220u8, 79u8, 140u8, 114u8, 80u8, 241u8, 103u8, 4u8, 7u8, 53u8, - 100u8, 16u8, 78u8, 104u8, 171u8, 134u8, 110u8, 158u8, 191u8, 37u8, - 94u8, 211u8, 26u8, 17u8, 70u8, 50u8, 34u8, 70u8, 234u8, 186u8, 69u8, - ], - ) - } - } - } - } - pub mod message_queue { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_message_queue::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_message_queue::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::reap_page`]."] - pub struct ReapPage { - pub message_origin: reap_page::MessageOrigin, - pub page_index: reap_page::PageIndex, - } - pub mod reap_page { - use super::runtime_types; - pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; - pub type PageIndex = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ReapPage { - const PALLET: &'static str = "MessageQueue"; - const CALL: &'static str = "reap_page"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::execute_overweight`]."] - pub struct ExecuteOverweight { - pub message_origin: execute_overweight::MessageOrigin, - pub page: execute_overweight::Page, - pub index: execute_overweight::Index, - pub weight_limit: execute_overweight::WeightLimit, - } - pub mod execute_overweight { - use super::runtime_types; - pub type MessageOrigin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; - pub type Page = ::core::primitive::u32; - pub type Index = ::core::primitive::u32; - pub type WeightLimit = runtime_types::sp_weights::weight_v2::Weight; - } - impl ::subxt::blocks::StaticExtrinsic for ExecuteOverweight { - const PALLET: &'static str = "MessageQueue"; - const CALL: &'static str = "execute_overweight"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::reap_page`]."] - pub fn reap_page( - &self, - message_origin: types::reap_page::MessageOrigin, - page_index: types::reap_page::PageIndex, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "MessageQueue", - "reap_page", - types::ReapPage { - message_origin, - page_index, - }, - [ - 217u8, 3u8, 106u8, 158u8, 151u8, 194u8, 234u8, 4u8, 254u8, 4u8, 200u8, - 201u8, 107u8, 140u8, 220u8, 201u8, 245u8, 14u8, 23u8, 156u8, 41u8, - 106u8, 39u8, 90u8, 214u8, 1u8, 183u8, 45u8, 3u8, 83u8, 242u8, 30u8, - ], - ) - } - #[doc = "See [`Pallet::execute_overweight`]."] - pub fn execute_overweight( - &self, - message_origin: types::execute_overweight::MessageOrigin, - page: types::execute_overweight::Page, - index: types::execute_overweight::Index, - weight_limit: types::execute_overweight::WeightLimit, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "MessageQueue", - "execute_overweight", - types::ExecuteOverweight { - message_origin, - page, - index, - weight_limit, - }, - [ - 101u8, 2u8, 86u8, 225u8, 217u8, 229u8, 143u8, 214u8, 146u8, 190u8, - 182u8, 102u8, 251u8, 18u8, 179u8, 187u8, 113u8, 29u8, 182u8, 24u8, - 34u8, 179u8, 64u8, 249u8, 139u8, 76u8, 50u8, 238u8, 132u8, 167u8, - 115u8, 141u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_message_queue::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] - pub struct ProcessingFailed { - pub id: processing_failed::Id, - pub origin: processing_failed::Origin, - pub error: processing_failed::Error, - } - pub mod processing_failed { - use super::runtime_types; - pub type Id = [::core::primitive::u8; 32usize]; - pub type Origin = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; - pub type Error = - runtime_types::frame_support::traits::messages::ProcessMessageError; - } - impl ::subxt::events::StaticEvent for ProcessingFailed { - const PALLET: &'static str = "MessageQueue"; - const EVENT: &'static str = "ProcessingFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Message is processed."] - pub struct Processed { - pub id: processed::Id, - pub origin: processed::Origin, - pub weight_used: processed::WeightUsed, - pub success: processed::Success, - } - pub mod processed { - use super::runtime_types; - pub type Id = [::core::primitive::u8; 32usize]; - pub type Origin = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; - pub type WeightUsed = runtime_types::sp_weights::weight_v2::Weight; - pub type Success = ::core::primitive::bool; - } - impl ::subxt::events::StaticEvent for Processed { - const PALLET: &'static str = "MessageQueue"; - const EVENT: &'static str = "Processed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Message placed in overweight queue."] - pub struct OverweightEnqueued { - pub id: overweight_enqueued::Id, - pub origin: overweight_enqueued::Origin, - pub page_index: overweight_enqueued::PageIndex, - pub message_index: overweight_enqueued::MessageIndex, - } - pub mod overweight_enqueued { - use super::runtime_types; - pub type Id = [::core::primitive::u8; 32usize]; - pub type Origin = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; - pub type PageIndex = ::core::primitive::u32; - pub type MessageIndex = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for OverweightEnqueued { - const PALLET: &'static str = "MessageQueue"; - const EVENT: &'static str = "OverweightEnqueued"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "This page was reaped."] - pub struct PageReaped { - pub origin: page_reaped::Origin, - pub index: page_reaped::Index, - } - pub mod page_reaped { - use super::runtime_types; - pub type Origin = - runtime_types::polkadot_runtime_parachains::inclusion::AggregateMessageOrigin; - pub type Index = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for PageReaped { - const PALLET: &'static str = "MessageQueue"; - const EVENT: &'static str = "PageReaped"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod book_state_for { - use super::runtime_types; - pub type BookStateFor = runtime_types :: pallet_message_queue :: BookState < runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin > ; - pub type Param0 = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; - } - pub mod service_head { - use super::runtime_types; - pub type ServiceHead = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; - } - pub mod pages { - use super::runtime_types; - pub type Pages = - runtime_types::pallet_message_queue::Page<::core::primitive::u32>; - pub type Param0 = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; - pub type Param1 = ::core::primitive::u32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " The index of the first and last (non-empty) pages."] - pub fn book_state_for_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::book_state_for::BookStateFor, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "MessageQueue", - "BookStateFor", - vec![], - [ - 32u8, 61u8, 161u8, 81u8, 134u8, 136u8, 252u8, 113u8, 204u8, 115u8, - 206u8, 180u8, 33u8, 185u8, 137u8, 155u8, 178u8, 189u8, 234u8, 201u8, - 31u8, 230u8, 156u8, 72u8, 37u8, 56u8, 152u8, 91u8, 50u8, 82u8, 191u8, - 2u8, - ], - ) - } - #[doc = " The index of the first and last (non-empty) pages."] - pub fn book_state_for( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::book_state_for::BookStateFor, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "MessageQueue", - "BookStateFor", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 32u8, 61u8, 161u8, 81u8, 134u8, 136u8, 252u8, 113u8, 204u8, 115u8, - 206u8, 180u8, 33u8, 185u8, 137u8, 155u8, 178u8, 189u8, 234u8, 201u8, - 31u8, 230u8, 156u8, 72u8, 37u8, 56u8, 152u8, 91u8, 50u8, 82u8, 191u8, - 2u8, - ], - ) - } - #[doc = " The origin at which we should begin servicing."] - pub fn service_head( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::service_head::ServiceHead, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "MessageQueue", - "ServiceHead", - vec![], - [ - 17u8, 130u8, 229u8, 193u8, 127u8, 237u8, 60u8, 232u8, 99u8, 109u8, - 102u8, 228u8, 124u8, 103u8, 24u8, 188u8, 151u8, 121u8, 55u8, 97u8, - 85u8, 63u8, 131u8, 60u8, 99u8, 12u8, 88u8, 230u8, 86u8, 50u8, 12u8, - 75u8, - ], - ) - } - #[doc = " The map of page indices to pages."] - pub fn pages_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pages::Pages, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "MessageQueue", - "Pages", - vec![], - [ - 56u8, 181u8, 157u8, 16u8, 157u8, 123u8, 106u8, 93u8, 199u8, 208u8, - 153u8, 53u8, 168u8, 188u8, 124u8, 77u8, 140u8, 163u8, 113u8, 16u8, - 232u8, 47u8, 10u8, 185u8, 113u8, 230u8, 47u8, 91u8, 253u8, 196u8, 95u8, - 102u8, - ], - ) - } - #[doc = " The map of page indices to pages."] - pub fn pages_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pages::Pages, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "MessageQueue", - "Pages", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 56u8, 181u8, 157u8, 16u8, 157u8, 123u8, 106u8, 93u8, 199u8, 208u8, - 153u8, 53u8, 168u8, 188u8, 124u8, 77u8, 140u8, 163u8, 113u8, 16u8, - 232u8, 47u8, 10u8, 185u8, 113u8, 230u8, 47u8, 91u8, 253u8, 196u8, 95u8, - 102u8, - ], - ) - } - #[doc = " The map of page indices to pages."] - pub fn pages( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pages::Pages, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "MessageQueue", - "Pages", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 56u8, 181u8, 157u8, 16u8, 157u8, 123u8, 106u8, 93u8, 199u8, 208u8, - 153u8, 53u8, 168u8, 188u8, 124u8, 77u8, 140u8, 163u8, 113u8, 16u8, - 232u8, 47u8, 10u8, 185u8, 113u8, 230u8, 47u8, 91u8, 253u8, 196u8, 95u8, - 102u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The size of the page; this implies the maximum message size which can be sent."] - #[doc = ""] - #[doc = " A good value depends on the expected message sizes, their weights, the weight that is"] - #[doc = " available for processing them and the maximal needed message size. The maximal message"] - #[doc = " size is slightly lower than this as defined by [`MaxMessageLenOf`]."] - pub fn heap_size(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "MessageQueue", - "HeapSize", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The maximum number of stale pages (i.e. of overweight messages) allowed before culling"] - #[doc = " can happen. Once there are more stale pages than this, then historical pages may be"] - #[doc = " dropped, even if they contain unprocessed overweight messages."] - pub fn max_stale(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "MessageQueue", - "MaxStale", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The amount of weight (if any) which should be provided to the message queue for"] - #[doc = " servicing enqueued items."] - #[doc = ""] - #[doc = " This may be legitimately `None` in the case that you will call"] - #[doc = " `ServiceQueues::service_queues` manually."] - pub fn service_weight( - &self, - ) -> ::subxt::constants::Address< - ::core::option::Option, - > { - ::subxt::constants::Address::new_static( - "MessageQueue", - "ServiceWeight", - [ - 204u8, 140u8, 63u8, 167u8, 49u8, 8u8, 148u8, 163u8, 190u8, 224u8, 15u8, - 103u8, 86u8, 153u8, 248u8, 117u8, 223u8, 117u8, 210u8, 80u8, 205u8, - 155u8, 40u8, 11u8, 59u8, 63u8, 129u8, 156u8, 17u8, 83u8, 177u8, 250u8, - ], - ) - } - } - } - } - pub mod para_assignment_provider { - use super::root_mod; - use super::runtime_types; - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - } - pub struct StorageApi; - impl StorageApi {} - } - } - pub mod on_demand_assignment_provider { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = - runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = - runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::place_order_allow_death`]."] - pub struct PlaceOrderAllowDeath { - pub max_amount: place_order_allow_death::MaxAmount, - pub para_id: place_order_allow_death::ParaId, - } - pub mod place_order_allow_death { - use super::runtime_types; - pub type MaxAmount = ::core::primitive::u128; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for PlaceOrderAllowDeath { - const PALLET: &'static str = "OnDemandAssignmentProvider"; - const CALL: &'static str = "place_order_allow_death"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::place_order_keep_alive`]."] - pub struct PlaceOrderKeepAlive { - pub max_amount: place_order_keep_alive::MaxAmount, - pub para_id: place_order_keep_alive::ParaId, - } - pub mod place_order_keep_alive { - use super::runtime_types; - pub type MaxAmount = ::core::primitive::u128; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for PlaceOrderKeepAlive { - const PALLET: &'static str = "OnDemandAssignmentProvider"; - const CALL: &'static str = "place_order_keep_alive"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::place_order_allow_death`]."] - pub fn place_order_allow_death( - &self, - max_amount: types::place_order_allow_death::MaxAmount, - para_id: types::place_order_allow_death::ParaId, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "OnDemandAssignmentProvider", - "place_order_allow_death", - types::PlaceOrderAllowDeath { - max_amount, - para_id, - }, - [ - 42u8, 115u8, 192u8, 118u8, 20u8, 174u8, 114u8, 94u8, 177u8, 195u8, - 175u8, 214u8, 175u8, 25u8, 167u8, 135u8, 194u8, 251u8, 186u8, 185u8, - 218u8, 153u8, 182u8, 166u8, 28u8, 238u8, 72u8, 64u8, 115u8, 67u8, 58u8, - 165u8, - ], - ) - } - #[doc = "See [`Pallet::place_order_keep_alive`]."] - pub fn place_order_keep_alive( - &self, - max_amount: types::place_order_keep_alive::MaxAmount, - para_id: types::place_order_keep_alive::ParaId, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "OnDemandAssignmentProvider", - "place_order_keep_alive", - types::PlaceOrderKeepAlive { - max_amount, - para_id, - }, - [ - 112u8, 56u8, 202u8, 218u8, 85u8, 138u8, 45u8, 213u8, 119u8, 36u8, 62u8, - 138u8, 217u8, 95u8, 25u8, 86u8, 119u8, 192u8, 57u8, 245u8, 34u8, 225u8, - 247u8, 116u8, 114u8, 230u8, 130u8, 180u8, 163u8, 190u8, 106u8, 5u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = - runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An order was placed at some spot price amount."] - pub struct OnDemandOrderPlaced { - pub para_id: on_demand_order_placed::ParaId, - pub spot_price: on_demand_order_placed::SpotPrice, - } - pub mod on_demand_order_placed { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type SpotPrice = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for OnDemandOrderPlaced { - const PALLET: &'static str = "OnDemandAssignmentProvider"; - const EVENT: &'static str = "OnDemandOrderPlaced"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The value of the spot traffic multiplier changed."] - pub struct SpotTrafficSet { - pub traffic: spot_traffic_set::Traffic, - } - pub mod spot_traffic_set { - use super::runtime_types; - pub type Traffic = runtime_types::sp_arithmetic::fixed_point::FixedU128; - } - impl ::subxt::events::StaticEvent for SpotTrafficSet { - const PALLET: &'static str = "OnDemandAssignmentProvider"; - const EVENT: &'static str = "SpotTrafficSet"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod spot_traffic { - use super::runtime_types; - pub type SpotTraffic = runtime_types::sp_arithmetic::fixed_point::FixedU128; - } - pub mod on_demand_queue { - use super::runtime_types; - pub type OnDemandQueue = ::std::vec::Vec< - runtime_types::polkadot_runtime_parachains::scheduler::common::Assignment, - >; - } - pub mod para_id_affinity { - use super::runtime_types; - pub type ParaIdAffinity = runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: CoreAffinityCount ; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Keeps track of the multiplier used to calculate the current spot price for the on demand"] - #[doc = " assigner."] - pub fn spot_traffic( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::spot_traffic::SpotTraffic, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "OnDemandAssignmentProvider", - "SpotTraffic", - vec![], - [ - 8u8, 236u8, 233u8, 156u8, 211u8, 45u8, 192u8, 58u8, 108u8, 247u8, 47u8, - 97u8, 229u8, 26u8, 188u8, 67u8, 98u8, 43u8, 11u8, 11u8, 1u8, 127u8, - 15u8, 75u8, 25u8, 19u8, 220u8, 16u8, 121u8, 223u8, 207u8, 226u8, - ], - ) - } - #[doc = " The order storage entry. Uses a VecDeque to be able to push to the front of the"] - #[doc = " queue from the scheduler on session boundaries."] - pub fn on_demand_queue( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::on_demand_queue::OnDemandQueue, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "OnDemandAssignmentProvider", - "OnDemandQueue", - vec![], - [ - 241u8, 10u8, 89u8, 240u8, 227u8, 90u8, 218u8, 35u8, 80u8, 244u8, 219u8, - 112u8, 177u8, 143u8, 43u8, 228u8, 224u8, 165u8, 217u8, 65u8, 17u8, - 182u8, 61u8, 173u8, 214u8, 140u8, 224u8, 68u8, 68u8, 226u8, 208u8, - 156u8, - ], - ) - } - #[doc = " Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in"] - #[doc = " it's lookahead. Keeping track of this affinity prevents parallel execution of the same"] - #[doc = " `ParaId` on two or more `CoreIndex`es."] - pub fn para_id_affinity_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::para_id_affinity::ParaIdAffinity, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "OnDemandAssignmentProvider", - "ParaIdAffinity", - vec![], - [ - 145u8, 117u8, 2u8, 170u8, 99u8, 68u8, 166u8, 236u8, 247u8, 80u8, 202u8, - 87u8, 116u8, 244u8, 218u8, 172u8, 41u8, 187u8, 170u8, 163u8, 187u8, - 13u8, 9u8, 19u8, 55u8, 167u8, 67u8, 30u8, 57u8, 162u8, 226u8, 65u8, - ], - ) - } - #[doc = " Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in"] - #[doc = " it's lookahead. Keeping track of this affinity prevents parallel execution of the same"] - #[doc = " `ParaId` on two or more `CoreIndex`es."] - pub fn para_id_affinity( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::para_id_affinity::ParaIdAffinity, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "OnDemandAssignmentProvider", - "ParaIdAffinity", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 145u8, 117u8, 2u8, 170u8, 99u8, 68u8, 166u8, 236u8, 247u8, 80u8, 202u8, - 87u8, 116u8, 244u8, 218u8, 172u8, 41u8, 187u8, 170u8, 163u8, 187u8, - 13u8, 9u8, 19u8, 55u8, 167u8, 67u8, 30u8, 57u8, 162u8, 226u8, 65u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The default value for the spot traffic multiplier."] - pub fn traffic_default_value( - &self, - ) -> ::subxt::constants::Address - { - ::subxt::constants::Address::new_static( - "OnDemandAssignmentProvider", - "TrafficDefaultValue", - [ - 62u8, 145u8, 102u8, 227u8, 159u8, 92u8, 27u8, 54u8, 159u8, 228u8, - 193u8, 99u8, 75u8, 196u8, 26u8, 250u8, 229u8, 230u8, 88u8, 109u8, - 246u8, 100u8, 152u8, 158u8, 14u8, 25u8, 224u8, 173u8, 224u8, 41u8, - 105u8, 231u8, - ], - ) - } - } - } - } - pub mod parachains_assignment_provider { - use super::root_mod; - use super::runtime_types; - } - pub mod registrar { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::register`]."] - pub struct Register { - pub id: register::Id, - pub genesis_head: register::GenesisHead, - pub validation_code: register::ValidationCode, - } - pub mod register { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type GenesisHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type ValidationCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - impl ::subxt::blocks::StaticExtrinsic for Register { - const PALLET: &'static str = "Registrar"; - const CALL: &'static str = "register"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_register`]."] - pub struct ForceRegister { - pub who: force_register::Who, - pub deposit: force_register::Deposit, - pub id: force_register::Id, - pub genesis_head: force_register::GenesisHead, - pub validation_code: force_register::ValidationCode, - } - pub mod force_register { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Deposit = ::core::primitive::u128; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type GenesisHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - pub type ValidationCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - impl ::subxt::blocks::StaticExtrinsic for ForceRegister { - const PALLET: &'static str = "Registrar"; - const CALL: &'static str = "force_register"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::deregister`]."] - pub struct Deregister { - pub id: deregister::Id, - } - pub mod deregister { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for Deregister { - const PALLET: &'static str = "Registrar"; - const CALL: &'static str = "deregister"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::swap`]."] - pub struct Swap { - pub id: swap::Id, - pub other: swap::Other, - } - pub mod swap { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Other = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for Swap { - const PALLET: &'static str = "Registrar"; - const CALL: &'static str = "swap"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::remove_lock`]."] - pub struct RemoveLock { - pub para: remove_lock::Para, - } - pub mod remove_lock { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for RemoveLock { - const PALLET: &'static str = "Registrar"; - const CALL: &'static str = "remove_lock"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::reserve`]."] - pub struct Reserve; - impl ::subxt::blocks::StaticExtrinsic for Reserve { - const PALLET: &'static str = "Registrar"; - const CALL: &'static str = "reserve"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_lock`]."] - pub struct AddLock { - pub para: add_lock::Para, - } - pub mod add_lock { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for AddLock { - const PALLET: &'static str = "Registrar"; - const CALL: &'static str = "add_lock"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::schedule_code_upgrade`]."] - pub struct ScheduleCodeUpgrade { - pub para: schedule_code_upgrade::Para, - pub new_code: schedule_code_upgrade::NewCode, - } - pub mod schedule_code_upgrade { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewCode = - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode; - } - impl ::subxt::blocks::StaticExtrinsic for ScheduleCodeUpgrade { - const PALLET: &'static str = "Registrar"; - const CALL: &'static str = "schedule_code_upgrade"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_current_head`]."] - pub struct SetCurrentHead { - pub para: set_current_head::Para, - pub new_head: set_current_head::NewHead, - } - pub mod set_current_head { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type NewHead = - runtime_types::polkadot_parachain_primitives::primitives::HeadData; - } - impl ::subxt::blocks::StaticExtrinsic for SetCurrentHead { - const PALLET: &'static str = "Registrar"; - const CALL: &'static str = "set_current_head"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::register`]."] - pub fn register( - &self, - id: types::register::Id, - genesis_head: types::register::GenesisHead, - validation_code: types::register::ValidationCode, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Registrar", - "register", - types::Register { - id, - genesis_head, - validation_code, - }, - [ - 208u8, 1u8, 38u8, 95u8, 53u8, 67u8, 148u8, 138u8, 189u8, 212u8, 250u8, - 160u8, 99u8, 220u8, 231u8, 55u8, 220u8, 21u8, 188u8, 81u8, 162u8, - 219u8, 93u8, 136u8, 255u8, 22u8, 5u8, 147u8, 40u8, 46u8, 141u8, 77u8, - ], - ) - } - #[doc = "See [`Pallet::force_register`]."] - pub fn force_register( - &self, - who: types::force_register::Who, - deposit: types::force_register::Deposit, - id: types::force_register::Id, - genesis_head: types::force_register::GenesisHead, - validation_code: types::force_register::ValidationCode, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Registrar", - "force_register", - types::ForceRegister { - who, - deposit, - id, - genesis_head, - validation_code, - }, - [ - 73u8, 118u8, 161u8, 95u8, 234u8, 106u8, 174u8, 143u8, 34u8, 235u8, - 140u8, 166u8, 210u8, 101u8, 53u8, 191u8, 194u8, 17u8, 189u8, 187u8, - 86u8, 91u8, 112u8, 248u8, 109u8, 208u8, 37u8, 70u8, 26u8, 195u8, 90u8, - 207u8, - ], - ) - } - #[doc = "See [`Pallet::deregister`]."] - pub fn deregister( - &self, - id: types::deregister::Id, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Registrar", - "deregister", - types::Deregister { id }, - [ - 212u8, 38u8, 98u8, 234u8, 146u8, 188u8, 71u8, 244u8, 238u8, 255u8, 3u8, - 89u8, 52u8, 242u8, 126u8, 187u8, 185u8, 193u8, 174u8, 187u8, 196u8, - 3u8, 66u8, 77u8, 173u8, 115u8, 52u8, 210u8, 69u8, 221u8, 109u8, 112u8, - ], - ) - } - #[doc = "See [`Pallet::swap`]."] - pub fn swap( - &self, - id: types::swap::Id, - other: types::swap::Other, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Registrar", - "swap", - types::Swap { id, other }, - [ - 235u8, 169u8, 16u8, 199u8, 107u8, 54u8, 35u8, 160u8, 219u8, 156u8, - 177u8, 205u8, 83u8, 45u8, 30u8, 233u8, 8u8, 143u8, 27u8, 123u8, 156u8, - 65u8, 128u8, 233u8, 218u8, 230u8, 98u8, 206u8, 231u8, 95u8, 224u8, - 35u8, - ], - ) - } - #[doc = "See [`Pallet::remove_lock`]."] - pub fn remove_lock( - &self, - para: types::remove_lock::Para, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Registrar", - "remove_lock", - types::RemoveLock { para }, - [ - 239u8, 207u8, 248u8, 246u8, 244u8, 128u8, 113u8, 114u8, 6u8, 232u8, - 218u8, 123u8, 241u8, 190u8, 255u8, 48u8, 26u8, 248u8, 33u8, 86u8, 87u8, - 219u8, 65u8, 104u8, 66u8, 68u8, 34u8, 201u8, 43u8, 159u8, 141u8, 100u8, - ], - ) - } - #[doc = "See [`Pallet::reserve`]."] - pub fn reserve(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Registrar", - "reserve", - types::Reserve {}, - [ - 50u8, 72u8, 218u8, 145u8, 224u8, 93u8, 219u8, 220u8, 121u8, 35u8, - 104u8, 11u8, 139u8, 114u8, 171u8, 101u8, 40u8, 13u8, 33u8, 39u8, 245u8, - 146u8, 138u8, 159u8, 245u8, 236u8, 26u8, 0u8, 20u8, 243u8, 128u8, 81u8, - ], - ) - } - #[doc = "See [`Pallet::add_lock`]."] - pub fn add_lock( - &self, - para: types::add_lock::Para, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Registrar", - "add_lock", - types::AddLock { para }, - [ - 158u8, 27u8, 55u8, 53u8, 71u8, 221u8, 37u8, 73u8, 23u8, 165u8, 129u8, - 17u8, 167u8, 79u8, 112u8, 35u8, 231u8, 8u8, 241u8, 151u8, 207u8, 235u8, - 224u8, 104u8, 102u8, 108u8, 10u8, 244u8, 33u8, 67u8, 45u8, 13u8, - ], - ) - } - #[doc = "See [`Pallet::schedule_code_upgrade`]."] - pub fn schedule_code_upgrade( - &self, - para: types::schedule_code_upgrade::Para, - new_code: types::schedule_code_upgrade::NewCode, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Registrar", - "schedule_code_upgrade", - types::ScheduleCodeUpgrade { para, new_code }, - [ - 234u8, 22u8, 133u8, 175u8, 218u8, 250u8, 119u8, 175u8, 23u8, 250u8, - 175u8, 48u8, 247u8, 208u8, 235u8, 167u8, 24u8, 248u8, 247u8, 236u8, - 239u8, 9u8, 78u8, 195u8, 146u8, 172u8, 41u8, 105u8, 183u8, 253u8, 1u8, - 170u8, - ], - ) - } - #[doc = "See [`Pallet::set_current_head`]."] - pub fn set_current_head( - &self, - para: types::set_current_head::Para, - new_head: types::set_current_head::NewHead, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Registrar", - "set_current_head", - types::SetCurrentHead { para, new_head }, - [ - 201u8, 49u8, 104u8, 135u8, 80u8, 233u8, 154u8, 193u8, 143u8, 209u8, - 10u8, 209u8, 234u8, 252u8, 142u8, 216u8, 220u8, 249u8, 23u8, 252u8, - 73u8, 169u8, 204u8, 242u8, 59u8, 19u8, 18u8, 35u8, 115u8, 209u8, 79u8, - 112u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Registered { - pub para_id: registered::ParaId, - pub manager: registered::Manager, - } - pub mod registered { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Manager = ::subxt::utils::AccountId32; - } - impl ::subxt::events::StaticEvent for Registered { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Registered"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Deregistered { - pub para_id: deregistered::ParaId, - } - pub mod deregistered { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for Deregistered { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Deregistered"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Reserved { - pub para_id: reserved::ParaId, - pub who: reserved::Who, - } - pub mod reserved { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Who = ::subxt::utils::AccountId32; - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Swapped { - pub para_id: swapped::ParaId, - pub other_id: swapped::OtherId, - } - pub mod swapped { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type OtherId = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for Swapped { - const PALLET: &'static str = "Registrar"; - const EVENT: &'static str = "Swapped"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod pending_swap { - use super::runtime_types; - pub type PendingSwap = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod paras { - use super::runtime_types; - pub type Paras = - runtime_types::polkadot_runtime_common::paras_registrar::ParaInfo< - ::subxt::utils::AccountId32, - ::core::primitive::u128, - >; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod next_free_para_id { - use super::runtime_types; - pub type NextFreeParaId = - runtime_types::polkadot_parachain_primitives::primitives::Id; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Pending swap operations."] - pub fn pending_swap_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pending_swap::PendingSwap, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Registrar", - "PendingSwap", - vec![], - [ - 75u8, 6u8, 68u8, 43u8, 108u8, 147u8, 220u8, 90u8, 190u8, 86u8, 209u8, - 141u8, 9u8, 254u8, 103u8, 10u8, 94u8, 187u8, 155u8, 249u8, 140u8, - 167u8, 248u8, 196u8, 67u8, 169u8, 186u8, 192u8, 139u8, 188u8, 48u8, - 221u8, - ], - ) - } - #[doc = " Pending swap operations."] - pub fn pending_swap( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::pending_swap::PendingSwap, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Registrar", - "PendingSwap", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 75u8, 6u8, 68u8, 43u8, 108u8, 147u8, 220u8, 90u8, 190u8, 86u8, 209u8, - 141u8, 9u8, 254u8, 103u8, 10u8, 94u8, 187u8, 155u8, 249u8, 140u8, - 167u8, 248u8, 196u8, 67u8, 169u8, 186u8, 192u8, 139u8, 188u8, 48u8, - 221u8, - ], - ) - } - #[doc = " Amount held on deposit for each para and the original depositor."] - #[doc = ""] - #[doc = " The given account ID is responsible for registering the code and initial head data, but may"] - #[doc = " only do so if it isn't yet registered. (After that, it's up to governance to do so.)"] - pub fn paras_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::paras::Paras, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Registrar", - "Paras", - vec![], - [ - 125u8, 62u8, 50u8, 209u8, 40u8, 170u8, 61u8, 62u8, 61u8, 246u8, 103u8, - 229u8, 213u8, 94u8, 249u8, 49u8, 18u8, 90u8, 138u8, 14u8, 101u8, 133u8, - 28u8, 167u8, 5u8, 77u8, 113u8, 207u8, 57u8, 142u8, 77u8, 117u8, - ], - ) - } - #[doc = " Amount held on deposit for each para and the original depositor."] - #[doc = ""] - #[doc = " The given account ID is responsible for registering the code and initial head data, but may"] - #[doc = " only do so if it isn't yet registered. (After that, it's up to governance to do so.)"] - pub fn paras( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::paras::Paras, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Registrar", - "Paras", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 125u8, 62u8, 50u8, 209u8, 40u8, 170u8, 61u8, 62u8, 61u8, 246u8, 103u8, - 229u8, 213u8, 94u8, 249u8, 49u8, 18u8, 90u8, 138u8, 14u8, 101u8, 133u8, - 28u8, 167u8, 5u8, 77u8, 113u8, 207u8, 57u8, 142u8, 77u8, 117u8, - ], - ) - } - #[doc = " The next free `ParaId`."] - pub fn next_free_para_id( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::next_free_para_id::NextFreeParaId, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Registrar", - "NextFreeParaId", - vec![], - [ - 52u8, 14u8, 56u8, 196u8, 79u8, 221u8, 32u8, 14u8, 154u8, 247u8, 94u8, - 219u8, 11u8, 11u8, 104u8, 137u8, 167u8, 195u8, 180u8, 101u8, 35u8, - 235u8, 67u8, 144u8, 128u8, 209u8, 189u8, 227u8, 177u8, 74u8, 42u8, - 15u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The deposit to be paid to run a on-demand parachain."] - #[doc = " This should include the cost for storing the genesis head and validation code."] - pub fn para_deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Registrar", - "ParaDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - #[doc = " The deposit to be paid per byte stored on chain."] - pub fn data_deposit_per_byte( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Registrar", - "DataDepositPerByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) - } - } - } - } - pub mod slots { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::slots::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::slots::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_lease`]."] - pub struct ForceLease { - pub para: force_lease::Para, - pub leaser: force_lease::Leaser, - pub amount: force_lease::Amount, - pub period_begin: force_lease::PeriodBegin, - pub period_count: force_lease::PeriodCount, - } - pub mod force_lease { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Leaser = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - pub type PeriodBegin = ::core::primitive::u32; - pub type PeriodCount = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceLease { - const PALLET: &'static str = "Slots"; - const CALL: &'static str = "force_lease"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::clear_all_leases`]."] - pub struct ClearAllLeases { - pub para: clear_all_leases::Para, - } - pub mod clear_all_leases { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for ClearAllLeases { - const PALLET: &'static str = "Slots"; - const CALL: &'static str = "clear_all_leases"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::trigger_onboard`]."] - pub struct TriggerOnboard { - pub para: trigger_onboard::Para, - } - pub mod trigger_onboard { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for TriggerOnboard { - const PALLET: &'static str = "Slots"; - const CALL: &'static str = "trigger_onboard"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::force_lease`]."] - pub fn force_lease( - &self, - para: types::force_lease::Para, - leaser: types::force_lease::Leaser, - amount: types::force_lease::Amount, - period_begin: types::force_lease::PeriodBegin, - period_count: types::force_lease::PeriodCount, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Slots", - "force_lease", - types::ForceLease { - para, - leaser, - amount, - period_begin, - period_count, - }, - [ - 27u8, 203u8, 227u8, 16u8, 65u8, 135u8, 140u8, 244u8, 218u8, 231u8, - 78u8, 190u8, 169u8, 156u8, 233u8, 31u8, 20u8, 119u8, 158u8, 34u8, - 130u8, 51u8, 38u8, 176u8, 142u8, 139u8, 152u8, 139u8, 26u8, 184u8, - 238u8, 227u8, - ], - ) - } - #[doc = "See [`Pallet::clear_all_leases`]."] - pub fn clear_all_leases( - &self, - para: types::clear_all_leases::Para, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Slots", - "clear_all_leases", - types::ClearAllLeases { para }, - [ - 201u8, 71u8, 106u8, 50u8, 65u8, 107u8, 191u8, 41u8, 52u8, 106u8, 51u8, - 87u8, 19u8, 199u8, 244u8, 93u8, 104u8, 148u8, 116u8, 198u8, 169u8, - 137u8, 28u8, 78u8, 54u8, 230u8, 161u8, 16u8, 79u8, 248u8, 28u8, 183u8, - ], - ) - } - #[doc = "See [`Pallet::trigger_onboard`]."] - pub fn trigger_onboard( - &self, - para: types::trigger_onboard::Para, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Slots", - "trigger_onboard", - types::TriggerOnboard { para }, - [ - 192u8, 239u8, 65u8, 186u8, 200u8, 27u8, 23u8, 235u8, 2u8, 229u8, 230u8, - 192u8, 240u8, 51u8, 62u8, 80u8, 253u8, 105u8, 178u8, 134u8, 252u8, 2u8, - 153u8, 29u8, 235u8, 249u8, 92u8, 246u8, 136u8, 169u8, 109u8, 4u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::slots::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new `[lease_period]` is beginning."] - pub struct NewLeasePeriod { - pub lease_period: new_lease_period::LeasePeriod, - } - pub mod new_lease_period { - use super::runtime_types; - pub type LeasePeriod = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for NewLeasePeriod { - const PALLET: &'static str = "Slots"; - const EVENT: &'static str = "NewLeasePeriod"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A para has won the right to a continuous set of lease periods as a parachain."] - #[doc = "First balance is any extra amount reserved on top of the para's existing deposit."] - #[doc = "Second balance is the total amount reserved."] - pub struct Leased { - pub para_id: leased::ParaId, - pub leaser: leased::Leaser, - pub period_begin: leased::PeriodBegin, - pub period_count: leased::PeriodCount, - pub extra_reserved: leased::ExtraReserved, - pub total_amount: leased::TotalAmount, - } - pub mod leased { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Leaser = ::subxt::utils::AccountId32; - pub type PeriodBegin = ::core::primitive::u32; - pub type PeriodCount = ::core::primitive::u32; - pub type ExtraReserved = ::core::primitive::u128; - pub type TotalAmount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Leased { - const PALLET: &'static str = "Slots"; - const EVENT: &'static str = "Leased"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod leases { - use super::runtime_types; - pub type Leases = ::std::vec::Vec< - ::core::option::Option<( - ::subxt::utils::AccountId32, - ::core::primitive::u128, - )>, - >; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Amounts held on deposit for each (possibly future) leased parachain."] - #[doc = ""] - #[doc = " The actual amount locked on its behalf by any account at any time is the maximum of the"] - #[doc = " second values of the items in this list whose first value is the account."] - #[doc = ""] - #[doc = " The first item in the list is the amount locked for the current Lease Period. Following"] - #[doc = " items are for the subsequent lease periods."] - #[doc = ""] - #[doc = " The default value (an empty list) implies that the parachain no longer exists (or never"] - #[doc = " existed) as far as this pallet is concerned."] - #[doc = ""] - #[doc = " If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it"] - #[doc = " will be left-padded with one or more `None`s to denote the fact that nothing is held on"] - #[doc = " deposit for the non-existent chain currently, but is held at some point in the future."] - #[doc = ""] - #[doc = " It is illegal for a `None` value to trail in the list."] - pub fn leases_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::leases::Leases, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Slots", - "Leases", - vec![], - [ - 233u8, 226u8, 181u8, 160u8, 216u8, 86u8, 238u8, 229u8, 31u8, 67u8, - 200u8, 188u8, 134u8, 22u8, 88u8, 147u8, 204u8, 11u8, 34u8, 244u8, - 234u8, 77u8, 184u8, 171u8, 147u8, 228u8, 254u8, 11u8, 40u8, 162u8, - 177u8, 196u8, - ], - ) - } - #[doc = " Amounts held on deposit for each (possibly future) leased parachain."] - #[doc = ""] - #[doc = " The actual amount locked on its behalf by any account at any time is the maximum of the"] - #[doc = " second values of the items in this list whose first value is the account."] - #[doc = ""] - #[doc = " The first item in the list is the amount locked for the current Lease Period. Following"] - #[doc = " items are for the subsequent lease periods."] - #[doc = ""] - #[doc = " The default value (an empty list) implies that the parachain no longer exists (or never"] - #[doc = " existed) as far as this pallet is concerned."] - #[doc = ""] - #[doc = " If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it"] - #[doc = " will be left-padded with one or more `None`s to denote the fact that nothing is held on"] - #[doc = " deposit for the non-existent chain currently, but is held at some point in the future."] - #[doc = ""] - #[doc = " It is illegal for a `None` value to trail in the list."] - pub fn leases( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::leases::Leases, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Slots", - "Leases", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 233u8, 226u8, 181u8, 160u8, 216u8, 86u8, 238u8, 229u8, 31u8, 67u8, - 200u8, 188u8, 134u8, 22u8, 88u8, 147u8, 204u8, 11u8, 34u8, 244u8, - 234u8, 77u8, 184u8, 171u8, 147u8, 228u8, 254u8, 11u8, 40u8, 162u8, - 177u8, 196u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The number of blocks over which a single period lasts."] - pub fn lease_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Slots", - "LeasePeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The number of blocks to offset each lease period by."] - pub fn lease_offset(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Slots", - "LeaseOffset", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod auctions { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::auctions::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::auctions::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::new_auction`]."] - pub struct NewAuction { - #[codec(compact)] - pub duration: new_auction::Duration, - #[codec(compact)] - pub lease_period_index: new_auction::LeasePeriodIndex, - } - pub mod new_auction { - use super::runtime_types; - pub type Duration = ::core::primitive::u32; - pub type LeasePeriodIndex = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for NewAuction { - const PALLET: &'static str = "Auctions"; - const CALL: &'static str = "new_auction"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::bid`]."] - pub struct Bid { - #[codec(compact)] - pub para: bid::Para, - #[codec(compact)] - pub auction_index: bid::AuctionIndex, - #[codec(compact)] - pub first_slot: bid::FirstSlot, - #[codec(compact)] - pub last_slot: bid::LastSlot, - #[codec(compact)] - pub amount: bid::Amount, - } - pub mod bid { - use super::runtime_types; - pub type Para = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type AuctionIndex = ::core::primitive::u32; - pub type FirstSlot = ::core::primitive::u32; - pub type LastSlot = ::core::primitive::u32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::blocks::StaticExtrinsic for Bid { - const PALLET: &'static str = "Auctions"; - const CALL: &'static str = "bid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::cancel_auction`]."] - pub struct CancelAuction; - impl ::subxt::blocks::StaticExtrinsic for CancelAuction { - const PALLET: &'static str = "Auctions"; - const CALL: &'static str = "cancel_auction"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::new_auction`]."] - pub fn new_auction( - &self, - duration: types::new_auction::Duration, - lease_period_index: types::new_auction::LeasePeriodIndex, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Auctions", - "new_auction", - types::NewAuction { - duration, - lease_period_index, - }, - [ - 116u8, 2u8, 215u8, 191u8, 69u8, 99u8, 218u8, 198u8, 71u8, 228u8, 88u8, - 144u8, 139u8, 206u8, 214u8, 58u8, 106u8, 117u8, 138u8, 115u8, 109u8, - 253u8, 210u8, 135u8, 189u8, 190u8, 86u8, 189u8, 8u8, 168u8, 142u8, - 181u8, - ], - ) - } - #[doc = "See [`Pallet::bid`]."] - pub fn bid( - &self, - para: types::bid::Para, - auction_index: types::bid::AuctionIndex, - first_slot: types::bid::FirstSlot, - last_slot: types::bid::LastSlot, - amount: types::bid::Amount, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Auctions", - "bid", - types::Bid { - para, - auction_index, - first_slot, - last_slot, - amount, - }, - [ - 203u8, 71u8, 160u8, 55u8, 95u8, 152u8, 111u8, 30u8, 86u8, 113u8, 213u8, - 217u8, 140u8, 9u8, 138u8, 150u8, 90u8, 229u8, 17u8, 95u8, 141u8, 150u8, - 183u8, 171u8, 45u8, 110u8, 47u8, 91u8, 159u8, 91u8, 214u8, 132u8, - ], - ) - } - #[doc = "See [`Pallet::cancel_auction`]."] - pub fn cancel_auction(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Auctions", - "cancel_auction", - types::CancelAuction {}, - [ - 122u8, 231u8, 136u8, 184u8, 194u8, 4u8, 244u8, 62u8, 253u8, 134u8, 9u8, - 240u8, 75u8, 227u8, 74u8, 195u8, 113u8, 247u8, 127u8, 17u8, 90u8, - 228u8, 251u8, 88u8, 4u8, 29u8, 254u8, 71u8, 177u8, 103u8, 66u8, 224u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::auctions::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An auction started. Provides its index and the block number where it will begin to"] - #[doc = "close and the first lease period of the quadruplet that is auctioned."] - pub struct AuctionStarted { - pub auction_index: auction_started::AuctionIndex, - pub lease_period: auction_started::LeasePeriod, - pub ending: auction_started::Ending, - } - pub mod auction_started { - use super::runtime_types; - pub type AuctionIndex = ::core::primitive::u32; - pub type LeasePeriod = ::core::primitive::u32; - pub type Ending = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for AuctionStarted { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "AuctionStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An auction ended. All funds become unreserved."] - pub struct AuctionClosed { - pub auction_index: auction_closed::AuctionIndex, - } - pub mod auction_closed { - use super::runtime_types; - pub type AuctionIndex = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for AuctionClosed { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "AuctionClosed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Funds were reserved for a winning bid. First balance is the extra amount reserved."] - #[doc = "Second is the total."] - pub struct Reserved { - pub bidder: reserved::Bidder, - pub extra_reserved: reserved::ExtraReserved, - pub total_amount: reserved::TotalAmount, - } - pub mod reserved { - use super::runtime_types; - pub type Bidder = ::subxt::utils::AccountId32; - pub type ExtraReserved = ::core::primitive::u128; - pub type TotalAmount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "Reserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Funds were unreserved since bidder is no longer active. `[bidder, amount]`"] - pub struct Unreserved { - pub bidder: unreserved::Bidder, - pub amount: unreserved::Amount, - } - pub mod unreserved { - use super::runtime_types; - pub type Bidder = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "Unreserved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in"] - #[doc = "reserve but no parachain slot has been leased."] - pub struct ReserveConfiscated { - pub para_id: reserve_confiscated::ParaId, - pub leaser: reserve_confiscated::Leaser, - pub amount: reserve_confiscated::Amount, - } - pub mod reserve_confiscated { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Leaser = ::subxt::utils::AccountId32; - pub type Amount = ::core::primitive::u128; - } - impl ::subxt::events::StaticEvent for ReserveConfiscated { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "ReserveConfiscated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A new bid has been accepted as the current winner."] - pub struct BidAccepted { - pub bidder: bid_accepted::Bidder, - pub para_id: bid_accepted::ParaId, - pub amount: bid_accepted::Amount, - pub first_slot: bid_accepted::FirstSlot, - pub last_slot: bid_accepted::LastSlot, - } - pub mod bid_accepted { - use super::runtime_types; - pub type Bidder = ::subxt::utils::AccountId32; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Amount = ::core::primitive::u128; - pub type FirstSlot = ::core::primitive::u32; - pub type LastSlot = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for BidAccepted { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "BidAccepted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage"] - #[doc = "map."] - pub struct WinningOffset { - pub auction_index: winning_offset::AuctionIndex, - pub block_number: winning_offset::BlockNumber, - } - pub mod winning_offset { - use super::runtime_types; - pub type AuctionIndex = ::core::primitive::u32; - pub type BlockNumber = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for WinningOffset { - const PALLET: &'static str = "Auctions"; - const EVENT: &'static str = "WinningOffset"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod auction_counter { - use super::runtime_types; - pub type AuctionCounter = ::core::primitive::u32; - } - pub mod auction_info { - use super::runtime_types; - pub type AuctionInfo = (::core::primitive::u32, ::core::primitive::u32); - } - pub mod reserved_amounts { - use super::runtime_types; - pub type ReservedAmounts = ::core::primitive::u128; - pub type Param0 = ::subxt::utils::AccountId32; - pub type Param1 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod winning { - use super::runtime_types; - pub type Winning = [::core::option::Option<( - ::subxt::utils::AccountId32, - runtime_types::polkadot_parachain_primitives::primitives::Id, - ::core::primitive::u128, - )>; 36usize]; - pub type Param0 = ::core::primitive::u32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Number of auctions started so far."] - pub fn auction_counter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::auction_counter::AuctionCounter, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Auctions", - "AuctionCounter", - vec![], - [ - 110u8, 243u8, 85u8, 4u8, 127u8, 111u8, 101u8, 167u8, 72u8, 129u8, - 201u8, 250u8, 88u8, 9u8, 79u8, 14u8, 152u8, 132u8, 0u8, 204u8, 112u8, - 248u8, 91u8, 254u8, 30u8, 22u8, 62u8, 180u8, 188u8, 204u8, 29u8, 103u8, - ], - ) - } - #[doc = " Information relating to the current auction, if there is one."] - #[doc = ""] - #[doc = " The first item in the tuple is the lease period index that the first of the four"] - #[doc = " contiguous lease periods on auction is for. The second is the block number when the"] - #[doc = " auction will \"begin to end\", i.e. the first block of the Ending Period of the auction."] - pub fn auction_info( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::auction_info::AuctionInfo, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Auctions", - "AuctionInfo", - vec![], - [ - 116u8, 81u8, 223u8, 26u8, 151u8, 103u8, 209u8, 182u8, 169u8, 173u8, - 220u8, 234u8, 88u8, 191u8, 255u8, 75u8, 148u8, 75u8, 167u8, 37u8, 6u8, - 14u8, 224u8, 193u8, 92u8, 82u8, 205u8, 172u8, 209u8, 83u8, 3u8, 77u8, - ], - ) - } - #[doc = " Amounts currently reserved in the accounts of the bidders currently winning"] - #[doc = " (sub-)ranges."] - pub fn reserved_amounts_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::reserved_amounts::ReservedAmounts, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Auctions", - "ReservedAmounts", - vec![], - [ - 77u8, 44u8, 116u8, 36u8, 189u8, 213u8, 126u8, 32u8, 42u8, 131u8, 108u8, - 41u8, 147u8, 40u8, 247u8, 245u8, 161u8, 42u8, 152u8, 195u8, 28u8, - 142u8, 231u8, 209u8, 113u8, 11u8, 240u8, 37u8, 112u8, 38u8, 239u8, - 245u8, - ], - ) - } - #[doc = " Amounts currently reserved in the accounts of the bidders currently winning"] - #[doc = " (sub-)ranges."] - pub fn reserved_amounts_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::reserved_amounts::ReservedAmounts, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Auctions", - "ReservedAmounts", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 77u8, 44u8, 116u8, 36u8, 189u8, 213u8, 126u8, 32u8, 42u8, 131u8, 108u8, - 41u8, 147u8, 40u8, 247u8, 245u8, 161u8, 42u8, 152u8, 195u8, 28u8, - 142u8, 231u8, 209u8, 113u8, 11u8, 240u8, 37u8, 112u8, 38u8, 239u8, - 245u8, - ], - ) - } - #[doc = " Amounts currently reserved in the accounts of the bidders currently winning"] - #[doc = " (sub-)ranges."] - pub fn reserved_amounts( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::reserved_amounts::ReservedAmounts, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Auctions", - "ReservedAmounts", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 77u8, 44u8, 116u8, 36u8, 189u8, 213u8, 126u8, 32u8, 42u8, 131u8, 108u8, - 41u8, 147u8, 40u8, 247u8, 245u8, 161u8, 42u8, 152u8, 195u8, 28u8, - 142u8, 231u8, 209u8, 113u8, 11u8, 240u8, 37u8, 112u8, 38u8, 239u8, - 245u8, - ], - ) - } - #[doc = " The winning bids for each of the 10 ranges at each sample in the final Ending Period of"] - #[doc = " the current auction. The map's key is the 0-based index into the Sample Size. The"] - #[doc = " first sample of the ending period is 0; the last is `Sample Size - 1`."] - pub fn winning_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::winning::Winning, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Auctions", - "Winning", - vec![], - [ - 8u8, 136u8, 174u8, 152u8, 223u8, 1u8, 143u8, 45u8, 213u8, 5u8, 239u8, - 163u8, 152u8, 99u8, 197u8, 109u8, 194u8, 140u8, 246u8, 10u8, 40u8, - 22u8, 0u8, 122u8, 20u8, 132u8, 141u8, 157u8, 56u8, 211u8, 5u8, 104u8, - ], - ) - } - #[doc = " The winning bids for each of the 10 ranges at each sample in the final Ending Period of"] - #[doc = " the current auction. The map's key is the 0-based index into the Sample Size. The"] - #[doc = " first sample of the ending period is 0; the last is `Sample Size - 1`."] - pub fn winning( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::winning::Winning, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "Auctions", - "Winning", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 8u8, 136u8, 174u8, 152u8, 223u8, 1u8, 143u8, 45u8, 213u8, 5u8, 239u8, - 163u8, 152u8, 99u8, 197u8, 109u8, 194u8, 140u8, 246u8, 10u8, 40u8, - 22u8, 0u8, 122u8, 20u8, 132u8, 141u8, 157u8, 56u8, 211u8, 5u8, 104u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The number of blocks over which an auction may be retroactively ended."] - pub fn ending_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Auctions", - "EndingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - #[doc = " The length of each sample to take during the ending period."] - #[doc = ""] - #[doc = " `EndingPeriod` / `SampleLength` = Total # of Samples"] - pub fn sample_length(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Auctions", - "SampleLength", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn slot_range_count( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Auctions", - "SlotRangeCount", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - pub fn lease_periods_per_slot( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Auctions", - "LeasePeriodsPerSlot", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) - } - } - } - } - pub mod crowdloan { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::crowdloan::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::crowdloan::pallet::Call; + pub type Call = runtime_types::pallet_uniques::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -36204,30 +40106,19 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "See [`Pallet::create`]."] pub struct Create { - #[codec(compact)] - pub index: create::Index, - #[codec(compact)] - pub cap: create::Cap, - #[codec(compact)] - pub first_period: create::FirstPeriod, - #[codec(compact)] - pub last_period: create::LastPeriod, - #[codec(compact)] - pub end: create::End, - pub verifier: create::Verifier, + pub collection: create::Collection, + pub admin: create::Admin, } pub mod create { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Cap = ::core::primitive::u128; - pub type FirstPeriod = ::core::primitive::u32; - pub type LastPeriod = ::core::primitive::u32; - pub type End = ::core::primitive::u32; - pub type Verifier = - ::core::option::Option; + pub type Collection = ::core::primitive::u32; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "Crowdloan"; + const PALLET: &'static str = "Uniques"; const CALL: &'static str = "create"; } #[derive( @@ -36240,24 +40131,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::contribute`]."] - pub struct Contribute { - #[codec(compact)] - pub index: contribute::Index, - #[codec(compact)] - pub value: contribute::Value, - pub signature: contribute::Signature, + #[doc = "See [`Pallet::force_create`]."] + pub struct ForceCreate { + pub collection: force_create::Collection, + pub owner: force_create::Owner, + pub free_holding: force_create::FreeHolding, } - pub mod contribute { + pub mod force_create { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Value = ::core::primitive::u128; - pub type Signature = - ::core::option::Option; + pub type Collection = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type FreeHolding = ::core::primitive::bool; } - impl ::subxt::blocks::StaticExtrinsic for Contribute { - const PALLET: &'static str = "Crowdloan"; - const CALL: &'static str = "contribute"; + impl ::subxt::blocks::StaticExtrinsic for ForceCreate { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "force_create"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36269,20 +40160,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::withdraw`]."] - pub struct Withdraw { - pub who: withdraw::Who, - #[codec(compact)] - pub index: withdraw::Index, + #[doc = "See [`Pallet::destroy`]."] + pub struct Destroy { + pub collection: destroy::Collection, + pub witness: destroy::Witness, } - pub mod withdraw { + pub mod destroy { use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Collection = ::core::primitive::u32; + pub type Witness = runtime_types::pallet_uniques::types::DestroyWitness; } - impl ::subxt::blocks::StaticExtrinsic for Withdraw { - const PALLET: &'static str = "Crowdloan"; - const CALL: &'static str = "withdraw"; + impl ::subxt::blocks::StaticExtrinsic for Destroy { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "destroy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36294,18 +40184,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::refund`]."] - pub struct Refund { - #[codec(compact)] - pub index: refund::Index, + #[doc = "See [`Pallet::mint`]."] + pub struct Mint { + pub collection: mint::Collection, + pub item: mint::Item, + pub owner: mint::Owner, } - pub mod refund { + pub mod mint { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } - impl ::subxt::blocks::StaticExtrinsic for Refund { - const PALLET: &'static str = "Crowdloan"; - const CALL: &'static str = "refund"; + impl ::subxt::blocks::StaticExtrinsic for Mint { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "mint"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36317,18 +40213,26 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::dissolve`]."] - pub struct Dissolve { - #[codec(compact)] - pub index: dissolve::Index, + #[doc = "See [`Pallet::burn`]."] + pub struct Burn { + pub collection: burn::Collection, + pub item: burn::Item, + pub check_owner: burn::CheckOwner, } - pub mod dissolve { + pub mod burn { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type CheckOwner = ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >; } - impl ::subxt::blocks::StaticExtrinsic for Dissolve { - const PALLET: &'static str = "Crowdloan"; - const CALL: &'static str = "dissolve"; + impl ::subxt::blocks::StaticExtrinsic for Burn { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "burn"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36340,33 +40244,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::edit`]."] - pub struct Edit { - #[codec(compact)] - pub index: edit::Index, - #[codec(compact)] - pub cap: edit::Cap, - #[codec(compact)] - pub first_period: edit::FirstPeriod, - #[codec(compact)] - pub last_period: edit::LastPeriod, - #[codec(compact)] - pub end: edit::End, - pub verifier: edit::Verifier, + #[doc = "See [`Pallet::transfer`]."] + pub struct Transfer { + pub collection: transfer::Collection, + pub item: transfer::Item, + pub dest: transfer::Dest, } - pub mod edit { + pub mod transfer { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Cap = ::core::primitive::u128; - pub type FirstPeriod = ::core::primitive::u32; - pub type LastPeriod = ::core::primitive::u32; - pub type End = ::core::primitive::u32; - pub type Verifier = - ::core::option::Option; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } - impl ::subxt::blocks::StaticExtrinsic for Edit { - const PALLET: &'static str = "Crowdloan"; - const CALL: &'static str = "edit"; + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36378,19 +40273,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::add_memo`]."] - pub struct AddMemo { - pub index: add_memo::Index, - pub memo: add_memo::Memo, + #[doc = "See [`Pallet::redeposit`]."] + pub struct Redeposit { + pub collection: redeposit::Collection, + pub items: redeposit::Items, } - pub mod add_memo { + pub mod redeposit { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Memo = ::std::vec::Vec<::core::primitive::u8>; + pub type Collection = ::core::primitive::u32; + pub type Items = ::std::vec::Vec<::core::primitive::u32>; } - impl ::subxt::blocks::StaticExtrinsic for AddMemo { - const PALLET: &'static str = "Crowdloan"; - const CALL: &'static str = "add_memo"; + impl ::subxt::blocks::StaticExtrinsic for Redeposit { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "redeposit"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36402,17 +40297,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::poke`]."] - pub struct Poke { - pub index: poke::Index, + #[doc = "See [`Pallet::freeze`]."] + pub struct Freeze { + pub collection: freeze::Collection, + pub item: freeze::Item, } - pub mod poke { + pub mod freeze { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for Poke { - const PALLET: &'static str = "Crowdloan"; - const CALL: &'static str = "poke"; + impl ::subxt::blocks::StaticExtrinsic for Freeze { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "freeze"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36424,21 +40321,502 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::contribute_all`]."] - pub struct ContributeAll { - #[codec(compact)] - pub index: contribute_all::Index, - pub signature: contribute_all::Signature, + #[doc = "See [`Pallet::thaw`]."] + pub struct Thaw { + pub collection: thaw::Collection, + pub item: thaw::Item, } - pub mod contribute_all { + pub mod thaw { use super::runtime_types; - pub type Index = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Signature = - ::core::option::Option; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; } - impl ::subxt::blocks::StaticExtrinsic for ContributeAll { - const PALLET: &'static str = "Crowdloan"; - const CALL: &'static str = "contribute_all"; + impl ::subxt::blocks::StaticExtrinsic for Thaw { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "thaw"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::freeze_collection`]."] + pub struct FreezeCollection { + pub collection: freeze_collection::Collection, + } + pub mod freeze_collection { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for FreezeCollection { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "freeze_collection"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::thaw_collection`]."] + pub struct ThawCollection { + pub collection: thaw_collection::Collection, + } + pub mod thaw_collection { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ThawCollection { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "thaw_collection"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer_ownership`]."] + pub struct TransferOwnership { + pub collection: transfer_ownership::Collection, + pub new_owner: transfer_ownership::NewOwner, + } + pub mod transfer_ownership { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type NewOwner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for TransferOwnership { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "transfer_ownership"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_team`]."] + pub struct SetTeam { + pub collection: set_team::Collection, + pub issuer: set_team::Issuer, + pub admin: set_team::Admin, + pub freezer: set_team::Freezer, + } + pub mod set_team { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Issuer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Freezer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetTeam { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "set_team"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::approve_transfer`]."] + pub struct ApproveTransfer { + pub collection: approve_transfer::Collection, + pub item: approve_transfer::Item, + pub delegate: approve_transfer::Delegate, + } + pub mod approve_transfer { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ApproveTransfer { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "approve_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_approval`]."] + pub struct CancelApproval { + pub collection: cancel_approval::Collection, + pub item: cancel_approval::Item, + pub maybe_check_delegate: cancel_approval::MaybeCheckDelegate, + } + pub mod cancel_approval { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type MaybeCheckDelegate = ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for CancelApproval { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "cancel_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_item_status`]."] + pub struct ForceItemStatus { + pub collection: force_item_status::Collection, + pub owner: force_item_status::Owner, + pub issuer: force_item_status::Issuer, + pub admin: force_item_status::Admin, + pub freezer: force_item_status::Freezer, + pub free_holding: force_item_status::FreeHolding, + pub is_frozen: force_item_status::IsFrozen, + } + pub mod force_item_status { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Issuer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Freezer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type FreeHolding = ::core::primitive::bool; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for ForceItemStatus { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "force_item_status"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_attribute`]."] + pub struct SetAttribute { + pub collection: set_attribute::Collection, + pub maybe_item: set_attribute::MaybeItem, + pub key: set_attribute::Key, + pub value: set_attribute::Value, + } + pub mod set_attribute { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaybeItem = ::core::option::Option<::core::primitive::u32>; + pub type Key = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Value = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetAttribute { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "set_attribute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_attribute`]."] + pub struct ClearAttribute { + pub collection: clear_attribute::Collection, + pub maybe_item: clear_attribute::MaybeItem, + pub key: clear_attribute::Key, + } + pub mod clear_attribute { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaybeItem = ::core::option::Option<::core::primitive::u32>; + pub type Key = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ClearAttribute { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "clear_attribute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + pub collection: set_metadata::Collection, + pub item: set_metadata::Item, + pub data: set_metadata::Data, + pub is_frozen: set_metadata::IsFrozen, + } + pub mod set_metadata { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Data = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_metadata`]."] + pub struct ClearMetadata { + pub collection: clear_metadata::Collection, + pub item: clear_metadata::Item, + } + pub mod clear_metadata { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClearMetadata { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "clear_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_collection_metadata`]."] + pub struct SetCollectionMetadata { + pub collection: set_collection_metadata::Collection, + pub data: set_collection_metadata::Data, + pub is_frozen: set_collection_metadata::IsFrozen, + } + pub mod set_collection_metadata { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Data = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for SetCollectionMetadata { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "set_collection_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_collection_metadata`]."] + pub struct ClearCollectionMetadata { + pub collection: clear_collection_metadata::Collection, + } + pub mod clear_collection_metadata { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClearCollectionMetadata { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "clear_collection_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_accept_ownership`]."] + pub struct SetAcceptOwnership { + pub maybe_collection: set_accept_ownership::MaybeCollection, + } + pub mod set_accept_ownership { + use super::runtime_types; + pub type MaybeCollection = ::core::option::Option<::core::primitive::u32>; + } + impl ::subxt::blocks::StaticExtrinsic for SetAcceptOwnership { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "set_accept_ownership"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_collection_max_supply`]."] + pub struct SetCollectionMaxSupply { + pub collection: set_collection_max_supply::Collection, + pub max_supply: set_collection_max_supply::MaxSupply, + } + pub mod set_collection_max_supply { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaxSupply = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for SetCollectionMaxSupply { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "set_collection_max_supply"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_price`]."] + pub struct SetPrice { + pub collection: set_price::Collection, + pub item: set_price::Item, + pub price: set_price::Price, + pub whitelisted_buyer: set_price::WhitelistedBuyer, + } + pub mod set_price { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Price = ::core::option::Option<::core::primitive::u128>; + pub type WhitelistedBuyer = ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetPrice { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "set_price"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::buy_item`]."] + pub struct BuyItem { + pub collection: buy_item::Collection, + pub item: buy_item::Item, + pub bid_price: buy_item::BidPrice, + } + pub mod buy_item { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type BidPrice = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for BuyItem { + const PALLET: &'static str = "Uniques"; + const CALL: &'static str = "buy_item"; } } pub struct TransactionApi; @@ -36446,187 +40824,551 @@ pub mod api { #[doc = "See [`Pallet::create`]."] pub fn create( &self, - index: types::create::Index, - cap: types::create::Cap, - first_period: types::create::FirstPeriod, - last_period: types::create::LastPeriod, - end: types::create::End, - verifier: types::create::Verifier, + collection: types::create::Collection, + admin: types::create::Admin, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Crowdloan", + "Uniques", "create", - types::Create { - index, - cap, - first_period, - last_period, - end, - verifier, - }, + types::Create { collection, admin }, [ - 236u8, 3u8, 248u8, 168u8, 136u8, 216u8, 20u8, 58u8, 179u8, 13u8, 184u8, - 73u8, 105u8, 35u8, 167u8, 66u8, 117u8, 195u8, 41u8, 41u8, 117u8, 176u8, - 65u8, 18u8, 225u8, 66u8, 2u8, 61u8, 212u8, 92u8, 117u8, 90u8, + 130u8, 106u8, 95u8, 140u8, 216u8, 50u8, 164u8, 178u8, 157u8, 168u8, + 195u8, 29u8, 137u8, 43u8, 57u8, 189u8, 136u8, 165u8, 186u8, 110u8, + 151u8, 135u8, 58u8, 184u8, 51u8, 189u8, 169u8, 89u8, 24u8, 66u8, 235u8, + 71u8, ], ) } - #[doc = "See [`Pallet::contribute`]."] - pub fn contribute( + #[doc = "See [`Pallet::force_create`]."] + pub fn force_create( &self, - index: types::contribute::Index, - value: types::contribute::Value, - signature: types::contribute::Signature, - ) -> ::subxt::tx::Payload { + collection: types::force_create::Collection, + owner: types::force_create::Owner, + free_holding: types::force_create::FreeHolding, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Crowdloan", - "contribute", - types::Contribute { - index, + "Uniques", + "force_create", + types::ForceCreate { + collection, + owner, + free_holding, + }, + [ + 194u8, 191u8, 47u8, 242u8, 223u8, 88u8, 67u8, 240u8, 23u8, 32u8, 189u8, + 236u8, 109u8, 87u8, 100u8, 84u8, 220u8, 189u8, 248u8, 190u8, 194u8, + 81u8, 55u8, 147u8, 58u8, 148u8, 193u8, 103u8, 153u8, 49u8, 3u8, 165u8, + ], + ) + } + #[doc = "See [`Pallet::destroy`]."] + pub fn destroy( + &self, + collection: types::destroy::Collection, + witness: types::destroy::Witness, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "destroy", + types::Destroy { + collection, + witness, + }, + [ + 76u8, 169u8, 11u8, 65u8, 72u8, 226u8, 5u8, 63u8, 140u8, 242u8, 82u8, + 56u8, 29u8, 146u8, 82u8, 217u8, 218u8, 55u8, 115u8, 22u8, 120u8, 151u8, + 53u8, 8u8, 47u8, 96u8, 1u8, 51u8, 172u8, 150u8, 224u8, 44u8, + ], + ) + } + #[doc = "See [`Pallet::mint`]."] + pub fn mint( + &self, + collection: types::mint::Collection, + item: types::mint::Item, + owner: types::mint::Owner, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "mint", + types::Mint { + collection, + item, + owner, + }, + [ + 13u8, 116u8, 225u8, 190u8, 229u8, 156u8, 197u8, 206u8, 141u8, 224u8, + 73u8, 242u8, 180u8, 166u8, 8u8, 216u8, 82u8, 13u8, 57u8, 110u8, 236u8, + 212u8, 204u8, 158u8, 168u8, 68u8, 123u8, 18u8, 87u8, 178u8, 99u8, 99u8, + ], + ) + } + #[doc = "See [`Pallet::burn`]."] + pub fn burn( + &self, + collection: types::burn::Collection, + item: types::burn::Item, + check_owner: types::burn::CheckOwner, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "burn", + types::Burn { + collection, + item, + check_owner, + }, + [ + 244u8, 67u8, 4u8, 41u8, 201u8, 9u8, 93u8, 62u8, 82u8, 185u8, 222u8, + 188u8, 156u8, 159u8, 10u8, 103u8, 204u8, 160u8, 145u8, 237u8, 22u8, + 232u8, 202u8, 87u8, 209u8, 103u8, 81u8, 213u8, 39u8, 112u8, 86u8, + 187u8, + ], + ) + } + #[doc = "See [`Pallet::transfer`]."] + pub fn transfer( + &self, + collection: types::transfer::Collection, + item: types::transfer::Item, + dest: types::transfer::Dest, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "transfer", + types::Transfer { + collection, + item, + dest, + }, + [ + 187u8, 138u8, 10u8, 220u8, 230u8, 72u8, 187u8, 40u8, 98u8, 52u8, 163u8, + 74u8, 255u8, 231u8, 225u8, 142u8, 67u8, 92u8, 239u8, 82u8, 83u8, 42u8, + 71u8, 181u8, 238u8, 15u8, 174u8, 38u8, 233u8, 80u8, 74u8, 108u8, + ], + ) + } + #[doc = "See [`Pallet::redeposit`]."] + pub fn redeposit( + &self, + collection: types::redeposit::Collection, + items: types::redeposit::Items, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "redeposit", + types::Redeposit { collection, items }, + [ + 128u8, 177u8, 151u8, 250u8, 135u8, 219u8, 181u8, 19u8, 169u8, 106u8, + 55u8, 214u8, 229u8, 200u8, 138u8, 115u8, 45u8, 249u8, 153u8, 38u8, + 34u8, 59u8, 102u8, 59u8, 133u8, 41u8, 135u8, 157u8, 196u8, 127u8, 10u8, + 184u8, + ], + ) + } + #[doc = "See [`Pallet::freeze`]."] + pub fn freeze( + &self, + collection: types::freeze::Collection, + item: types::freeze::Item, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "freeze", + types::Freeze { collection, item }, + [ + 4u8, 87u8, 130u8, 168u8, 40u8, 216u8, 120u8, 247u8, 226u8, 245u8, 79u8, + 170u8, 23u8, 90u8, 103u8, 150u8, 120u8, 0u8, 32u8, 200u8, 195u8, 207u8, + 119u8, 68u8, 190u8, 145u8, 57u8, 44u8, 76u8, 94u8, 152u8, 155u8, + ], + ) + } + #[doc = "See [`Pallet::thaw`]."] + pub fn thaw( + &self, + collection: types::thaw::Collection, + item: types::thaw::Item, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "thaw", + types::Thaw { collection, item }, + [ + 74u8, 8u8, 48u8, 194u8, 1u8, 84u8, 162u8, 82u8, 123u8, 208u8, 5u8, + 182u8, 225u8, 222u8, 95u8, 218u8, 175u8, 32u8, 117u8, 22u8, 1u8, 116u8, + 241u8, 169u8, 248u8, 44u8, 146u8, 233u8, 145u8, 172u8, 169u8, 28u8, + ], + ) + } + #[doc = "See [`Pallet::freeze_collection`]."] + pub fn freeze_collection( + &self, + collection: types::freeze_collection::Collection, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "freeze_collection", + types::FreezeCollection { collection }, + [ + 101u8, 17u8, 33u8, 19u8, 92u8, 67u8, 159u8, 71u8, 111u8, 221u8, 189u8, + 24u8, 89u8, 88u8, 221u8, 48u8, 55u8, 154u8, 1u8, 242u8, 84u8, 87u8, + 83u8, 244u8, 239u8, 140u8, 17u8, 39u8, 123u8, 171u8, 207u8, 83u8, + ], + ) + } + #[doc = "See [`Pallet::thaw_collection`]."] + pub fn thaw_collection( + &self, + collection: types::thaw_collection::Collection, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "thaw_collection", + types::ThawCollection { collection }, + [ + 163u8, 97u8, 180u8, 135u8, 154u8, 108u8, 55u8, 227u8, 73u8, 179u8, + 194u8, 174u8, 133u8, 66u8, 141u8, 217u8, 49u8, 38u8, 151u8, 184u8, + 41u8, 225u8, 171u8, 2u8, 236u8, 211u8, 241u8, 90u8, 110u8, 238u8, 4u8, + 76u8, + ], + ) + } + #[doc = "See [`Pallet::transfer_ownership`]."] + pub fn transfer_ownership( + &self, + collection: types::transfer_ownership::Collection, + new_owner: types::transfer_ownership::NewOwner, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "transfer_ownership", + types::TransferOwnership { + collection, + new_owner, + }, + [ + 192u8, 157u8, 133u8, 184u8, 108u8, 67u8, 153u8, 192u8, 167u8, 7u8, + 140u8, 44u8, 219u8, 96u8, 248u8, 103u8, 61u8, 153u8, 149u8, 73u8, + 122u8, 143u8, 207u8, 144u8, 2u8, 18u8, 147u8, 107u8, 127u8, 68u8, + 155u8, 202u8, + ], + ) + } + #[doc = "See [`Pallet::set_team`]."] + pub fn set_team( + &self, + collection: types::set_team::Collection, + issuer: types::set_team::Issuer, + admin: types::set_team::Admin, + freezer: types::set_team::Freezer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "set_team", + types::SetTeam { + collection, + issuer, + admin, + freezer, + }, + [ + 204u8, 71u8, 59u8, 255u8, 194u8, 254u8, 77u8, 201u8, 96u8, 20u8, 145u8, + 144u8, 47u8, 161u8, 105u8, 93u8, 27u8, 175u8, 209u8, 167u8, 210u8, + 97u8, 109u8, 166u8, 2u8, 84u8, 187u8, 206u8, 84u8, 91u8, 128u8, 69u8, + ], + ) + } + #[doc = "See [`Pallet::approve_transfer`]."] + pub fn approve_transfer( + &self, + collection: types::approve_transfer::Collection, + item: types::approve_transfer::Item, + delegate: types::approve_transfer::Delegate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "approve_transfer", + types::ApproveTransfer { + collection, + item, + delegate, + }, + [ + 66u8, 208u8, 165u8, 166u8, 15u8, 169u8, 102u8, 70u8, 28u8, 18u8, 93u8, + 68u8, 72u8, 63u8, 79u8, 147u8, 164u8, 89u8, 126u8, 194u8, 63u8, 165u8, + 30u8, 249u8, 209u8, 7u8, 245u8, 185u8, 176u8, 7u8, 72u8, 10u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_approval`]."] + pub fn cancel_approval( + &self, + collection: types::cancel_approval::Collection, + item: types::cancel_approval::Item, + maybe_check_delegate: types::cancel_approval::MaybeCheckDelegate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "cancel_approval", + types::CancelApproval { + collection, + item, + maybe_check_delegate, + }, + [ + 219u8, 115u8, 138u8, 81u8, 164u8, 163u8, 16u8, 243u8, 91u8, 2u8, 85u8, + 186u8, 195u8, 58u8, 225u8, 224u8, 67u8, 65u8, 13u8, 174u8, 201u8, 35u8, + 68u8, 221u8, 4u8, 42u8, 43u8, 29u8, 177u8, 206u8, 41u8, 174u8, + ], + ) + } + #[doc = "See [`Pallet::force_item_status`]."] + pub fn force_item_status( + &self, + collection: types::force_item_status::Collection, + owner: types::force_item_status::Owner, + issuer: types::force_item_status::Issuer, + admin: types::force_item_status::Admin, + freezer: types::force_item_status::Freezer, + free_holding: types::force_item_status::FreeHolding, + is_frozen: types::force_item_status::IsFrozen, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "force_item_status", + types::ForceItemStatus { + collection, + owner, + issuer, + admin, + freezer, + free_holding, + is_frozen, + }, + [ + 159u8, 247u8, 152u8, 118u8, 62u8, 100u8, 60u8, 148u8, 105u8, 40u8, + 26u8, 169u8, 63u8, 30u8, 129u8, 31u8, 151u8, 134u8, 130u8, 191u8, + 148u8, 205u8, 147u8, 152u8, 126u8, 242u8, 250u8, 125u8, 2u8, 179u8, + 124u8, 85u8, + ], + ) + } + #[doc = "See [`Pallet::set_attribute`]."] + pub fn set_attribute( + &self, + collection: types::set_attribute::Collection, + maybe_item: types::set_attribute::MaybeItem, + key: types::set_attribute::Key, + value: types::set_attribute::Value, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "set_attribute", + types::SetAttribute { + collection, + maybe_item, + key, value, - signature, }, [ - 186u8, 247u8, 240u8, 7u8, 12u8, 239u8, 39u8, 191u8, 150u8, 219u8, - 137u8, 122u8, 214u8, 61u8, 62u8, 180u8, 229u8, 181u8, 105u8, 190u8, - 228u8, 55u8, 242u8, 70u8, 91u8, 118u8, 143u8, 233u8, 186u8, 231u8, - 207u8, 106u8, + 80u8, 209u8, 251u8, 54u8, 8u8, 14u8, 16u8, 146u8, 73u8, 167u8, 158u8, + 245u8, 63u8, 226u8, 221u8, 60u8, 246u8, 14u8, 188u8, 28u8, 79u8, 6u8, + 201u8, 225u8, 254u8, 205u8, 50u8, 27u8, 157u8, 61u8, 107u8, 8u8, ], ) } - #[doc = "See [`Pallet::withdraw`]."] - pub fn withdraw( + #[doc = "See [`Pallet::clear_attribute`]."] + pub fn clear_attribute( &self, - who: types::withdraw::Who, - index: types::withdraw::Index, - ) -> ::subxt::tx::Payload { + collection: types::clear_attribute::Collection, + maybe_item: types::clear_attribute::MaybeItem, + key: types::clear_attribute::Key, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Crowdloan", - "withdraw", - types::Withdraw { who, index }, - [ - 148u8, 23u8, 138u8, 161u8, 248u8, 235u8, 138u8, 156u8, 209u8, 236u8, - 235u8, 81u8, 207u8, 212u8, 232u8, 126u8, 221u8, 46u8, 34u8, 39u8, 44u8, - 42u8, 75u8, 134u8, 12u8, 247u8, 84u8, 203u8, 48u8, 133u8, 72u8, 254u8, - ], - ) - } - #[doc = "See [`Pallet::refund`]."] - pub fn refund( - &self, - index: types::refund::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Crowdloan", - "refund", - types::Refund { index }, - [ - 245u8, 75u8, 215u8, 28u8, 141u8, 138u8, 201u8, 125u8, 21u8, 214u8, - 57u8, 23u8, 33u8, 41u8, 57u8, 227u8, 119u8, 212u8, 234u8, 227u8, 230u8, - 144u8, 249u8, 100u8, 198u8, 125u8, 106u8, 253u8, 93u8, 177u8, 247u8, - 5u8, - ], - ) - } - #[doc = "See [`Pallet::dissolve`]."] - pub fn dissolve( - &self, - index: types::dissolve::Index, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Crowdloan", - "dissolve", - types::Dissolve { index }, - [ - 60u8, 225u8, 93u8, 234u8, 160u8, 90u8, 185u8, 188u8, 163u8, 72u8, - 241u8, 46u8, 62u8, 176u8, 236u8, 175u8, 147u8, 95u8, 45u8, 235u8, - 253u8, 76u8, 127u8, 190u8, 149u8, 54u8, 108u8, 78u8, 149u8, 161u8, - 39u8, 14u8, - ], - ) - } - #[doc = "See [`Pallet::edit`]."] - pub fn edit( - &self, - index: types::edit::Index, - cap: types::edit::Cap, - first_period: types::edit::FirstPeriod, - last_period: types::edit::LastPeriod, - end: types::edit::End, - verifier: types::edit::Verifier, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Crowdloan", - "edit", - types::Edit { - index, - cap, - first_period, - last_period, - end, - verifier, + "Uniques", + "clear_attribute", + types::ClearAttribute { + collection, + maybe_item, + key, }, [ - 126u8, 29u8, 232u8, 93u8, 94u8, 23u8, 47u8, 217u8, 62u8, 2u8, 161u8, - 31u8, 156u8, 229u8, 109u8, 45u8, 97u8, 101u8, 189u8, 139u8, 40u8, - 238u8, 150u8, 94u8, 145u8, 77u8, 26u8, 153u8, 217u8, 171u8, 48u8, - 195u8, + 78u8, 84u8, 111u8, 5u8, 91u8, 139u8, 175u8, 137u8, 147u8, 24u8, 171u8, + 254u8, 142u8, 99u8, 223u8, 134u8, 224u8, 254u8, 81u8, 248u8, 19u8, + 202u8, 170u8, 48u8, 242u8, 241u8, 183u8, 19u8, 68u8, 102u8, 131u8, + 229u8, ], ) } - #[doc = "See [`Pallet::add_memo`]."] - pub fn add_memo( + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( &self, - index: types::add_memo::Index, - memo: types::add_memo::Memo, - ) -> ::subxt::tx::Payload { + collection: types::set_metadata::Collection, + item: types::set_metadata::Item, + data: types::set_metadata::Data, + is_frozen: types::set_metadata::IsFrozen, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Crowdloan", - "add_memo", - types::AddMemo { index, memo }, + "Uniques", + "set_metadata", + types::SetMetadata { + collection, + item, + data, + is_frozen, + }, [ - 190u8, 99u8, 225u8, 54u8, 136u8, 238u8, 210u8, 44u8, 103u8, 198u8, - 225u8, 254u8, 245u8, 12u8, 238u8, 112u8, 143u8, 169u8, 8u8, 193u8, - 29u8, 0u8, 159u8, 25u8, 112u8, 237u8, 194u8, 17u8, 111u8, 192u8, 219u8, - 50u8, + 125u8, 251u8, 127u8, 17u8, 232u8, 36u8, 85u8, 46u8, 205u8, 188u8, + 219u8, 22u8, 195u8, 234u8, 99u8, 123u8, 254u8, 142u8, 247u8, 79u8, + 19u8, 228u8, 131u8, 30u8, 191u8, 42u8, 153u8, 34u8, 108u8, 254u8, + 145u8, 127u8, ], ) } - #[doc = "See [`Pallet::poke`]."] - pub fn poke(&self, index: types::poke::Index) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Crowdloan", - "poke", - types::Poke { index }, - [ - 180u8, 81u8, 211u8, 12u8, 54u8, 204u8, 105u8, 118u8, 139u8, 209u8, - 182u8, 227u8, 174u8, 192u8, 64u8, 200u8, 212u8, 101u8, 3u8, 252u8, - 195u8, 110u8, 182u8, 121u8, 218u8, 193u8, 87u8, 38u8, 212u8, 151u8, - 213u8, 56u8, - ], - ) - } - #[doc = "See [`Pallet::contribute_all`]."] - pub fn contribute_all( + #[doc = "See [`Pallet::clear_metadata`]."] + pub fn clear_metadata( &self, - index: types::contribute_all::Index, - signature: types::contribute_all::Signature, - ) -> ::subxt::tx::Payload { + collection: types::clear_metadata::Collection, + item: types::clear_metadata::Item, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Crowdloan", - "contribute_all", - types::ContributeAll { index, signature }, + "Uniques", + "clear_metadata", + types::ClearMetadata { collection, item }, [ - 233u8, 62u8, 129u8, 168u8, 161u8, 163u8, 78u8, 92u8, 191u8, 239u8, - 61u8, 2u8, 198u8, 246u8, 246u8, 81u8, 32u8, 131u8, 118u8, 170u8, 72u8, - 87u8, 17u8, 26u8, 55u8, 10u8, 146u8, 184u8, 213u8, 200u8, 252u8, 50u8, + 112u8, 129u8, 105u8, 77u8, 21u8, 184u8, 102u8, 18u8, 20u8, 237u8, 40u8, + 104u8, 51u8, 10u8, 245u8, 68u8, 196u8, 145u8, 147u8, 104u8, 244u8, + 213u8, 45u8, 0u8, 102u8, 119u8, 22u8, 140u8, 115u8, 121u8, 26u8, 185u8, + ], + ) + } + #[doc = "See [`Pallet::set_collection_metadata`]."] + pub fn set_collection_metadata( + &self, + collection: types::set_collection_metadata::Collection, + data: types::set_collection_metadata::Data, + is_frozen: types::set_collection_metadata::IsFrozen, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "set_collection_metadata", + types::SetCollectionMetadata { + collection, + data, + is_frozen, + }, + [ + 17u8, 197u8, 73u8, 70u8, 21u8, 122u8, 35u8, 178u8, 178u8, 62u8, 161u8, + 133u8, 18u8, 27u8, 8u8, 38u8, 1u8, 83u8, 220u8, 77u8, 73u8, 11u8, + 230u8, 232u8, 191u8, 213u8, 80u8, 157u8, 94u8, 231u8, 108u8, 255u8, + ], + ) + } + #[doc = "See [`Pallet::clear_collection_metadata`]."] + pub fn clear_collection_metadata( + &self, + collection: types::clear_collection_metadata::Collection, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "clear_collection_metadata", + types::ClearCollectionMetadata { collection }, + [ + 144u8, 178u8, 204u8, 186u8, 72u8, 61u8, 132u8, 36u8, 145u8, 191u8, + 47u8, 39u8, 39u8, 42u8, 165u8, 177u8, 168u8, 183u8, 84u8, 198u8, 1u8, + 31u8, 126u8, 68u8, 60u8, 122u8, 153u8, 120u8, 56u8, 240u8, 16u8, 20u8, + ], + ) + } + #[doc = "See [`Pallet::set_accept_ownership`]."] + pub fn set_accept_ownership( + &self, + maybe_collection: types::set_accept_ownership::MaybeCollection, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "set_accept_ownership", + types::SetAcceptOwnership { maybe_collection }, + [ + 146u8, 84u8, 33u8, 108u8, 166u8, 232u8, 219u8, 134u8, 24u8, 255u8, + 170u8, 90u8, 127u8, 72u8, 34u8, 106u8, 151u8, 125u8, 179u8, 125u8, + 36u8, 77u8, 115u8, 121u8, 174u8, 113u8, 188u8, 77u8, 153u8, 111u8, + 100u8, 182u8, + ], + ) + } + #[doc = "See [`Pallet::set_collection_max_supply`]."] + pub fn set_collection_max_supply( + &self, + collection: types::set_collection_max_supply::Collection, + max_supply: types::set_collection_max_supply::MaxSupply, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "set_collection_max_supply", + types::SetCollectionMaxSupply { + collection, + max_supply, + }, + [ + 124u8, 130u8, 13u8, 221u8, 251u8, 74u8, 34u8, 81u8, 173u8, 134u8, + 255u8, 220u8, 149u8, 236u8, 96u8, 245u8, 153u8, 207u8, 229u8, 131u8, + 9u8, 145u8, 198u8, 223u8, 208u8, 78u8, 237u8, 59u8, 4u8, 197u8, 61u8, + 210u8, + ], + ) + } + #[doc = "See [`Pallet::set_price`]."] + pub fn set_price( + &self, + collection: types::set_price::Collection, + item: types::set_price::Item, + price: types::set_price::Price, + whitelisted_buyer: types::set_price::WhitelistedBuyer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "set_price", + types::SetPrice { + collection, + item, + price, + whitelisted_buyer, + }, + [ + 130u8, 52u8, 234u8, 205u8, 234u8, 10u8, 77u8, 247u8, 171u8, 103u8, + 70u8, 189u8, 48u8, 23u8, 40u8, 196u8, 190u8, 38u8, 172u8, 14u8, 244u8, + 105u8, 228u8, 99u8, 229u8, 238u8, 116u8, 158u8, 170u8, 55u8, 167u8, + 77u8, + ], + ) + } + #[doc = "See [`Pallet::buy_item`]."] + pub fn buy_item( + &self, + collection: types::buy_item::Collection, + item: types::buy_item::Item, + bid_price: types::buy_item::BidPrice, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Uniques", + "buy_item", + types::BuyItem { + collection, + item, + bid_price, + }, + [ + 19u8, 25u8, 247u8, 69u8, 191u8, 152u8, 245u8, 137u8, 140u8, 144u8, + 192u8, 233u8, 229u8, 2u8, 191u8, 192u8, 45u8, 92u8, 116u8, 84u8, 47u8, + 69u8, 68u8, 73u8, 177u8, 40u8, 80u8, 91u8, 14u8, 165u8, 219u8, 210u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::crowdloan::pallet::Event; + pub type Event = runtime_types::pallet_uniques::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -36639,16 +41381,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Create a new crowdloaning campaign."] + #[doc = "A `collection` was created."] pub struct Created { - pub para_id: created::ParaId, + pub collection: created::Collection, + pub creator: created::Creator, + pub owner: created::Owner, } pub mod created { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Collection = ::core::primitive::u32; + pub type Creator = ::subxt::utils::AccountId32; + pub type Owner = ::subxt::utils::AccountId32; } impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "Crowdloan"; + const PALLET: &'static str = "Uniques"; const EVENT: &'static str = "Created"; } #[derive( @@ -36661,21 +41407,557 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contributed to a crowd sale."] - pub struct Contributed { - pub who: contributed::Who, - pub fund_index: contributed::FundIndex, - pub amount: contributed::Amount, + #[doc = "A `collection` was force-created."] + pub struct ForceCreated { + pub collection: force_created::Collection, + pub owner: force_created::Owner, } - pub mod contributed { + pub mod force_created { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ForceCreated { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ForceCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A `collection` was destroyed."] + pub struct Destroyed { + pub collection: destroyed::Collection, + } + pub mod destroyed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Destroyed { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Destroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` was issued."] + pub struct Issued { + pub collection: issued::Collection, + pub item: issued::Item, + pub owner: issued::Owner, + } + pub mod issued { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Issued { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Issued"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` was transferred."] + pub struct Transferred { + pub collection: transferred::Collection, + pub item: transferred::Item, + pub from: transferred::From, + pub to: transferred::To, + } + pub mod transferred { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Transferred { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Transferred"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` was destroyed."] + pub struct Burned { + pub collection: burned::Collection, + pub item: burned::Item, + pub owner: burned::Owner, + } + pub mod burned { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Burned { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Burned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some `item` was frozen."] + pub struct Frozen { + pub collection: frozen::Collection, + pub item: frozen::Item, + } + pub mod frozen { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Frozen { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Frozen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some `item` was thawed."] + pub struct Thawed { + pub collection: thawed::Collection, + pub item: thawed::Item, + } + pub mod thawed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Thawed { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Thawed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some `collection` was frozen."] + pub struct CollectionFrozen { + pub collection: collection_frozen::Collection, + } + pub mod collection_frozen { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for CollectionFrozen { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "CollectionFrozen"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some `collection` was thawed."] + pub struct CollectionThawed { + pub collection: collection_thawed::Collection, + } + pub mod collection_thawed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for CollectionThawed { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "CollectionThawed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The owner changed."] + pub struct OwnerChanged { + pub collection: owner_changed::Collection, + pub new_owner: owner_changed::NewOwner, + } + pub mod owner_changed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type NewOwner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for OwnerChanged { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "OwnerChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The management team changed."] + pub struct TeamChanged { + pub collection: team_changed::Collection, + pub issuer: team_changed::Issuer, + pub admin: team_changed::Admin, + pub freezer: team_changed::Freezer, + } + pub mod team_changed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Issuer = ::subxt::utils::AccountId32; + pub type Admin = ::subxt::utils::AccountId32; + pub type Freezer = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for TeamChanged { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "TeamChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` of a `collection` has been approved by the `owner` for transfer by"] + #[doc = "a `delegate`."] + pub struct ApprovedTransfer { + pub collection: approved_transfer::Collection, + pub item: approved_transfer::Item, + pub owner: approved_transfer::Owner, + pub delegate: approved_transfer::Delegate, + } + pub mod approved_transfer { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ApprovedTransfer { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ApprovedTransfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An approval for a `delegate` account to transfer the `item` of an item"] + #[doc = "`collection` was cancelled by its `owner`."] + pub struct ApprovalCancelled { + pub collection: approval_cancelled::Collection, + pub item: approval_cancelled::Item, + pub owner: approval_cancelled::Owner, + pub delegate: approval_cancelled::Delegate, + } + pub mod approval_cancelled { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ApprovalCancelled { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ApprovalCancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A `collection` has had its attributes changed by the `Force` origin."] + pub struct ItemStatusChanged { + pub collection: item_status_changed::Collection, + } + pub mod item_status_changed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ItemStatusChanged { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ItemStatusChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New metadata has been set for a `collection`."] + pub struct CollectionMetadataSet { + pub collection: collection_metadata_set::Collection, + pub data: collection_metadata_set::Data, + pub is_frozen: collection_metadata_set::IsFrozen, + } + pub mod collection_metadata_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Data = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for CollectionMetadataSet { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "CollectionMetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been cleared for a `collection`."] + pub struct CollectionMetadataCleared { + pub collection: collection_metadata_cleared::Collection, + } + pub mod collection_metadata_cleared { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for CollectionMetadataCleared { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "CollectionMetadataCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New metadata has been set for an item."] + pub struct MetadataSet { + pub collection: metadata_set::Collection, + pub item: metadata_set::Item, + pub data: metadata_set::Data, + pub is_frozen: metadata_set::IsFrozen, + } + pub mod metadata_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Data = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type IsFrozen = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been cleared for an item."] + pub struct MetadataCleared { + pub collection: metadata_cleared::Collection, + pub item: metadata_cleared::Item, + } + pub mod metadata_cleared { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "MetadataCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been cleared for an item."] + pub struct Redeposited { + pub collection: redeposited::Collection, + pub successful_items: redeposited::SuccessfulItems, + } + pub mod redeposited { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type SuccessfulItems = ::std::vec::Vec<::core::primitive::u32>; + } + impl ::subxt::events::StaticEvent for Redeposited { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "Redeposited"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New attribute metadata has been set for a `collection` or `item`."] + pub struct AttributeSet { + pub collection: attribute_set::Collection, + pub maybe_item: attribute_set::MaybeItem, + pub key: attribute_set::Key, + pub value: attribute_set::Value, + } + pub mod attribute_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaybeItem = ::core::option::Option<::core::primitive::u32>; + pub type Key = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Value = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::events::StaticEvent for AttributeSet { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "AttributeSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Attribute metadata has been cleared for a `collection` or `item`."] + pub struct AttributeCleared { + pub collection: attribute_cleared::Collection, + pub maybe_item: attribute_cleared::MaybeItem, + pub key: attribute_cleared::Key, + } + pub mod attribute_cleared { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaybeItem = ::core::option::Option<::core::primitive::u32>; + pub type Key = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::events::StaticEvent for AttributeCleared { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "AttributeCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Ownership acceptance has changed for an account."] + pub struct OwnershipAcceptanceChanged { + pub who: ownership_acceptance_changed::Who, + pub maybe_collection: ownership_acceptance_changed::MaybeCollection, + } + pub mod ownership_acceptance_changed { use super::runtime_types; pub type Who = ::subxt::utils::AccountId32; - pub type FundIndex = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Amount = ::core::primitive::u128; + pub type MaybeCollection = ::core::option::Option<::core::primitive::u32>; } - impl ::subxt::events::StaticEvent for Contributed { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Contributed"; + impl ::subxt::events::StaticEvent for OwnershipAcceptanceChanged { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "OwnershipAcceptanceChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36687,21 +41969,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Withdrew full balance of a contributor."] - pub struct Withdrew { - pub who: withdrew::Who, - pub fund_index: withdrew::FundIndex, - pub amount: withdrew::Amount, + #[doc = "Max supply has been set for a collection."] + pub struct CollectionMaxSupplySet { + pub collection: collection_max_supply_set::Collection, + pub max_supply: collection_max_supply_set::MaxSupply, } - pub mod withdrew { + pub mod collection_max_supply_set { use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type FundIndex = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Amount = ::core::primitive::u128; + pub type Collection = ::core::primitive::u32; + pub type MaxSupply = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for Withdrew { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Withdrew"; + impl ::subxt::events::StaticEvent for CollectionMaxSupplySet { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "CollectionMaxSupplySet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36713,18 +41993,23 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The loans in a fund have been partially dissolved, i.e. there are some left"] - #[doc = "over child keys that still need to be killed."] - pub struct PartiallyRefunded { - pub para_id: partially_refunded::ParaId, + #[doc = "The price was set for the instance."] + pub struct ItemPriceSet { + pub collection: item_price_set::Collection, + pub item: item_price_set::Item, + pub price: item_price_set::Price, + pub whitelisted_buyer: item_price_set::WhitelistedBuyer, } - pub mod partially_refunded { + pub mod item_price_set { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Price = ::core::primitive::u128; + pub type WhitelistedBuyer = ::core::option::Option<::subxt::utils::AccountId32>; } - impl ::subxt::events::StaticEvent for PartiallyRefunded { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "PartiallyRefunded"; + impl ::subxt::events::StaticEvent for ItemPriceSet { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ItemPriceSet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36736,17 +42021,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "All loans in a fund have been refunded."] - pub struct AllRefunded { - pub para_id: all_refunded::ParaId, + #[doc = "The price for the instance was removed."] + pub struct ItemPriceRemoved { + pub collection: item_price_removed::Collection, + pub item: item_price_removed::Item, } - pub mod all_refunded { + pub mod item_price_removed { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for AllRefunded { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "AllRefunded"; + impl ::subxt::events::StaticEvent for ItemPriceRemoved { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ItemPriceRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -36758,255 +42045,792 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Fund is dissolved."] - pub struct Dissolved { - pub para_id: dissolved::ParaId, + #[doc = "An item was bought."] + pub struct ItemBought { + pub collection: item_bought::Collection, + pub item: item_bought::Item, + pub price: item_bought::Price, + pub seller: item_bought::Seller, + pub buyer: item_bought::Buyer, } - pub mod dissolved { + pub mod item_bought { use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Price = ::core::primitive::u128; + pub type Seller = ::subxt::utils::AccountId32; + pub type Buyer = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Dissolved { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Dissolved"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The result of trying to submit a new bid to the Slots pallet."] - pub struct HandleBidResult { - pub para_id: handle_bid_result::ParaId, - pub result: handle_bid_result::Result, - } - pub mod handle_bid_result { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Result = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; - } - impl ::subxt::events::StaticEvent for HandleBidResult { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "HandleBidResult"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The configuration to a crowdloan has been edited."] - pub struct Edited { - pub para_id: edited::ParaId, - } - pub mod edited { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for Edited { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "Edited"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A memo has been updated."] - pub struct MemoUpdated { - pub who: memo_updated::Who, - pub para_id: memo_updated::ParaId, - pub memo: memo_updated::Memo, - } - pub mod memo_updated { - use super::runtime_types; - pub type Who = ::subxt::utils::AccountId32; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Memo = ::std::vec::Vec<::core::primitive::u8>; - } - impl ::subxt::events::StaticEvent for MemoUpdated { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "MemoUpdated"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A parachain has been moved to `NewRaise`"] - pub struct AddedToNewRaise { - pub para_id: added_to_new_raise::ParaId, - } - pub mod added_to_new_raise { - use super::runtime_types; - pub type ParaId = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for AddedToNewRaise { - const PALLET: &'static str = "Crowdloan"; - const EVENT: &'static str = "AddedToNewRaise"; + impl ::subxt::events::StaticEvent for ItemBought { + const PALLET: &'static str = "Uniques"; + const EVENT: &'static str = "ItemBought"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod funds { + pub mod class { use super::runtime_types; - pub type Funds = runtime_types::polkadot_runtime_common::crowdloan::FundInfo< + pub type Class = runtime_types::pallet_uniques::types::CollectionDetails< ::subxt::utils::AccountId32, ::core::primitive::u128, - ::core::primitive::u32, - ::core::primitive::u32, >; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; + pub type Param0 = ::core::primitive::u32; } - pub mod new_raise { + pub mod ownership_acceptance { use super::runtime_types; - pub type NewRaise = ::std::vec::Vec< - runtime_types::polkadot_parachain_primitives::primitives::Id, + pub type OwnershipAcceptance = ::core::primitive::u32; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod account { + use super::runtime_types; + pub type Account = (); + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::core::primitive::u32; + pub type Param2 = ::core::primitive::u32; + } + pub mod class_account { + use super::runtime_types; + pub type ClassAccount = (); + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::core::primitive::u32; + } + pub mod asset { + use super::runtime_types; + pub type Asset = runtime_types::pallet_uniques::types::ItemDetails< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod class_metadata_of { + use super::runtime_types; + pub type ClassMetadataOf = + runtime_types::pallet_uniques::types::CollectionMetadata< + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod instance_metadata_of { + use super::runtime_types; + pub type InstanceMetadataOf = + runtime_types::pallet_uniques::types::ItemMetadata<::core::primitive::u128>; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod attribute { + use super::runtime_types; + pub type Attribute = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::core::primitive::u128, + ); + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::option::Option<::core::primitive::u32>; + pub type Param2 = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, >; } - pub mod endings_count { + pub mod item_price_of { use super::runtime_types; - pub type EndingsCount = ::core::primitive::u32; + pub type ItemPriceOf = ( + ::core::primitive::u128, + ::core::option::Option<::subxt::utils::AccountId32>, + ); + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; } - pub mod next_fund_index { + pub mod collection_max_supply { use super::runtime_types; - pub type NextFundIndex = ::core::primitive::u32; + pub type CollectionMaxSupply = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; } } pub struct StorageApi; impl StorageApi { - #[doc = " Info on all of the funds."] - pub fn funds_iter( + #[doc = " Details of a collection."] + pub fn class_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::funds::Funds, + types::class::Class, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Crowdloan", - "Funds", + "Uniques", + "Class", vec![], [ - 191u8, 255u8, 37u8, 49u8, 246u8, 246u8, 168u8, 178u8, 73u8, 238u8, - 49u8, 76u8, 66u8, 246u8, 207u8, 12u8, 76u8, 233u8, 31u8, 218u8, 132u8, - 236u8, 237u8, 210u8, 116u8, 159u8, 191u8, 89u8, 212u8, 167u8, 61u8, - 41u8, + 98u8, 187u8, 143u8, 26u8, 215u8, 251u8, 175u8, 70u8, 77u8, 101u8, 0u8, + 215u8, 34u8, 150u8, 242u8, 9u8, 251u8, 9u8, 249u8, 52u8, 40u8, 129u8, + 248u8, 90u8, 77u8, 27u8, 52u8, 91u8, 15u8, 95u8, 76u8, 163u8, ], ) } - #[doc = " Info on all of the funds."] - pub fn funds( + #[doc = " Details of a collection."] + pub fn class( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::funds::Funds, + types::class::Class, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Crowdloan", - "Funds", + "Uniques", + "Class", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 191u8, 255u8, 37u8, 49u8, 246u8, 246u8, 168u8, 178u8, 73u8, 238u8, - 49u8, 76u8, 66u8, 246u8, 207u8, 12u8, 76u8, 233u8, 31u8, 218u8, 132u8, - 236u8, 237u8, 210u8, 116u8, 159u8, 191u8, 89u8, 212u8, 167u8, 61u8, - 41u8, + 98u8, 187u8, 143u8, 26u8, 215u8, 251u8, 175u8, 70u8, 77u8, 101u8, 0u8, + 215u8, 34u8, 150u8, 242u8, 9u8, 251u8, 9u8, 249u8, 52u8, 40u8, 129u8, + 248u8, 90u8, 77u8, 27u8, 52u8, 91u8, 15u8, 95u8, 76u8, 163u8, ], ) } - #[doc = " The funds that have had additional contributions during the last block. This is used"] - #[doc = " in order to determine which funds should submit new or updated bids."] - pub fn new_raise( + #[doc = " The collection, if any, of which an account is willing to take ownership."] + pub fn ownership_acceptance_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::new_raise::NewRaise, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, + types::ownership_acceptance::OwnershipAcceptance, (), + (), + ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "Crowdloan", - "NewRaise", + "Uniques", + "OwnershipAcceptance", vec![], [ - 251u8, 31u8, 237u8, 22u8, 90u8, 248u8, 39u8, 66u8, 93u8, 81u8, 209u8, - 209u8, 194u8, 42u8, 109u8, 208u8, 56u8, 75u8, 45u8, 247u8, 253u8, - 165u8, 22u8, 184u8, 49u8, 49u8, 62u8, 126u8, 254u8, 146u8, 190u8, - 174u8, + 237u8, 207u8, 154u8, 240u8, 36u8, 85u8, 41u8, 121u8, 183u8, 128u8, + 70u8, 97u8, 243u8, 44u8, 218u8, 70u8, 18u8, 112u8, 228u8, 231u8, 163u8, + 191u8, 100u8, 141u8, 82u8, 151u8, 19u8, 249u8, 121u8, 166u8, 73u8, + 88u8, ], ) } - #[doc = " The number of auctions that have entered into their ending period so far."] - pub fn endings_count( + #[doc = " The collection, if any, of which an account is willing to take ownership."] + pub fn ownership_acceptance( &self, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::endings_count::EndingsCount, - ::subxt::storage::address::Yes, + types::ownership_acceptance::OwnershipAcceptance, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "Crowdloan", - "EndingsCount", - vec![], + "Uniques", + "OwnershipAcceptance", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 106u8, 22u8, 229u8, 157u8, 118u8, 195u8, 11u8, 42u8, 5u8, 50u8, 44u8, - 183u8, 72u8, 167u8, 95u8, 243u8, 234u8, 5u8, 200u8, 253u8, 127u8, - 154u8, 23u8, 55u8, 202u8, 221u8, 82u8, 19u8, 201u8, 154u8, 248u8, 29u8, + 237u8, 207u8, 154u8, 240u8, 36u8, 85u8, 41u8, 121u8, 183u8, 128u8, + 70u8, 97u8, 243u8, 44u8, 218u8, 70u8, 18u8, 112u8, 228u8, 231u8, 163u8, + 191u8, 100u8, 141u8, 82u8, 151u8, 19u8, 249u8, 121u8, 166u8, 73u8, + 88u8, ], ) } - #[doc = " Tracker for the next available fund index"] - pub fn next_fund_index( + #[doc = " The items held by any given account; set out this way so that items owned by a single"] + #[doc = " account can be enumerated."] + pub fn account_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::next_fund_index::NextFundIndex, + types::account::Account, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Account", + vec![], + [ + 14u8, 7u8, 26u8, 228u8, 178u8, 18u8, 104u8, 126u8, 58u8, 94u8, 195u8, + 36u8, 159u8, 234u8, 114u8, 215u8, 5u8, 41u8, 102u8, 80u8, 158u8, 4u8, + 222u8, 230u8, 240u8, 246u8, 147u8, 133u8, 173u8, 150u8, 119u8, 57u8, + ], + ) + } + #[doc = " The items held by any given account; set out this way so that items owned by a single"] + #[doc = " account can be enumerated."] + pub fn account_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + (), ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Account", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 14u8, 7u8, 26u8, 228u8, 178u8, 18u8, 104u8, 126u8, 58u8, 94u8, 195u8, + 36u8, 159u8, 234u8, 114u8, 215u8, 5u8, 41u8, 102u8, 80u8, 158u8, 4u8, + 222u8, 230u8, 240u8, 246u8, 147u8, 133u8, 173u8, 150u8, 119u8, 57u8, + ], + ) + } + #[doc = " The items held by any given account; set out this way so that items owned by a single"] + #[doc = " account can be enumerated."] + pub fn account_iter2( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Account", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 14u8, 7u8, 26u8, 228u8, 178u8, 18u8, 104u8, 126u8, 58u8, 94u8, 195u8, + 36u8, 159u8, 234u8, 114u8, 215u8, 5u8, 41u8, 102u8, 80u8, 158u8, 4u8, + 222u8, 230u8, 240u8, 246u8, 147u8, 133u8, 173u8, 150u8, 119u8, 57u8, + ], + ) + } + #[doc = " The items held by any given account; set out this way so that items owned by a single"] + #[doc = " account can be enumerated."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + _2: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + ::subxt::storage::address::Yes, + (), (), > { ::subxt::storage::address::Address::new_static( - "Crowdloan", - "NextFundIndex", + "Uniques", + "Account", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), + ], + [ + 14u8, 7u8, 26u8, 228u8, 178u8, 18u8, 104u8, 126u8, 58u8, 94u8, 195u8, + 36u8, 159u8, 234u8, 114u8, 215u8, 5u8, 41u8, 102u8, 80u8, 158u8, 4u8, + 222u8, 230u8, 240u8, 246u8, 147u8, 133u8, 173u8, 150u8, 119u8, 57u8, + ], + ) + } + #[doc = " The collections owned by any given account; set out this way so that collections owned by"] + #[doc = " a single account can be enumerated."] + pub fn class_account_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::class_account::ClassAccount, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "ClassAccount", vec![], [ - 192u8, 21u8, 229u8, 234u8, 152u8, 224u8, 149u8, 44u8, 41u8, 9u8, 191u8, - 128u8, 118u8, 11u8, 117u8, 245u8, 170u8, 116u8, 77u8, 216u8, 175u8, - 115u8, 13u8, 85u8, 240u8, 170u8, 156u8, 201u8, 25u8, 96u8, 103u8, - 207u8, + 45u8, 253u8, 180u8, 147u8, 168u8, 84u8, 131u8, 146u8, 63u8, 52u8, + 146u8, 97u8, 157u8, 90u8, 56u8, 210u8, 26u8, 56u8, 27u8, 10u8, 38u8, + 95u8, 71u8, 56u8, 12u8, 132u8, 55u8, 232u8, 40u8, 204u8, 116u8, 56u8, + ], + ) + } + #[doc = " The collections owned by any given account; set out this way so that collections owned by"] + #[doc = " a single account can be enumerated."] + pub fn class_account_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::class_account::ClassAccount, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "ClassAccount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 45u8, 253u8, 180u8, 147u8, 168u8, 84u8, 131u8, 146u8, 63u8, 52u8, + 146u8, 97u8, 157u8, 90u8, 56u8, 210u8, 26u8, 56u8, 27u8, 10u8, 38u8, + 95u8, 71u8, 56u8, 12u8, 132u8, 55u8, 232u8, 40u8, 204u8, 116u8, 56u8, + ], + ) + } + #[doc = " The collections owned by any given account; set out this way so that collections owned by"] + #[doc = " a single account can be enumerated."] + pub fn class_account( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::class_account::ClassAccount, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "ClassAccount", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 45u8, 253u8, 180u8, 147u8, 168u8, 84u8, 131u8, 146u8, 63u8, 52u8, + 146u8, 97u8, 157u8, 90u8, 56u8, 210u8, 26u8, 56u8, 27u8, 10u8, 38u8, + 95u8, 71u8, 56u8, 12u8, 132u8, 55u8, 232u8, 40u8, 204u8, 116u8, 56u8, + ], + ) + } + #[doc = " The items in existence and their ownership details."] + pub fn asset_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::asset::Asset, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Asset", + vec![], + [ + 176u8, 146u8, 137u8, 173u8, 51u8, 207u8, 123u8, 110u8, 111u8, 149u8, + 231u8, 21u8, 148u8, 57u8, 199u8, 196u8, 71u8, 208u8, 226u8, 166u8, + 96u8, 183u8, 2u8, 70u8, 48u8, 187u8, 52u8, 239u8, 155u8, 2u8, 50u8, + 96u8, + ], + ) + } + #[doc = " The items in existence and their ownership details."] + pub fn asset_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::asset::Asset, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Asset", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 176u8, 146u8, 137u8, 173u8, 51u8, 207u8, 123u8, 110u8, 111u8, 149u8, + 231u8, 21u8, 148u8, 57u8, 199u8, 196u8, 71u8, 208u8, 226u8, 166u8, + 96u8, 183u8, 2u8, 70u8, 48u8, 187u8, 52u8, 239u8, 155u8, 2u8, 50u8, + 96u8, + ], + ) + } + #[doc = " The items in existence and their ownership details."] + pub fn asset( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::asset::Asset, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Asset", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 176u8, 146u8, 137u8, 173u8, 51u8, 207u8, 123u8, 110u8, 111u8, 149u8, + 231u8, 21u8, 148u8, 57u8, 199u8, 196u8, 71u8, 208u8, 226u8, 166u8, + 96u8, 183u8, 2u8, 70u8, 48u8, 187u8, 52u8, 239u8, 155u8, 2u8, 50u8, + 96u8, + ], + ) + } + #[doc = " Metadata of a collection."] + pub fn class_metadata_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::class_metadata_of::ClassMetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "ClassMetadataOf", + vec![], + [ + 117u8, 185u8, 45u8, 160u8, 245u8, 65u8, 45u8, 15u8, 136u8, 185u8, + 166u8, 173u8, 167u8, 244u8, 72u8, 144u8, 111u8, 88u8, 66u8, 106u8, + 30u8, 92u8, 27u8, 190u8, 67u8, 153u8, 28u8, 203u8, 133u8, 150u8, 208u8, + 108u8, + ], + ) + } + #[doc = " Metadata of a collection."] + pub fn class_metadata_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::class_metadata_of::ClassMetadataOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "ClassMetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 117u8, 185u8, 45u8, 160u8, 245u8, 65u8, 45u8, 15u8, 136u8, 185u8, + 166u8, 173u8, 167u8, 244u8, 72u8, 144u8, 111u8, 88u8, 66u8, 106u8, + 30u8, 92u8, 27u8, 190u8, 67u8, 153u8, 28u8, 203u8, 133u8, 150u8, 208u8, + 108u8, + ], + ) + } + #[doc = " Metadata of an item."] + pub fn instance_metadata_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::instance_metadata_of::InstanceMetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "InstanceMetadataOf", + vec![], + [ + 88u8, 8u8, 177u8, 164u8, 194u8, 105u8, 59u8, 22u8, 23u8, 22u8, 165u8, + 7u8, 38u8, 23u8, 177u8, 191u8, 221u8, 184u8, 162u8, 80u8, 1u8, 222u8, + 121u8, 125u8, 135u8, 133u8, 91u8, 127u8, 225u8, 216u8, 10u8, 50u8, + ], + ) + } + #[doc = " Metadata of an item."] + pub fn instance_metadata_of_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::instance_metadata_of::InstanceMetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "InstanceMetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 88u8, 8u8, 177u8, 164u8, 194u8, 105u8, 59u8, 22u8, 23u8, 22u8, 165u8, + 7u8, 38u8, 23u8, 177u8, 191u8, 221u8, 184u8, 162u8, 80u8, 1u8, 222u8, + 121u8, 125u8, 135u8, 133u8, 91u8, 127u8, 225u8, 216u8, 10u8, 50u8, + ], + ) + } + #[doc = " Metadata of an item."] + pub fn instance_metadata_of( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::instance_metadata_of::InstanceMetadataOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "InstanceMetadataOf", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 88u8, 8u8, 177u8, 164u8, 194u8, 105u8, 59u8, 22u8, 23u8, 22u8, 165u8, + 7u8, 38u8, 23u8, 177u8, 191u8, 221u8, 184u8, 162u8, 80u8, 1u8, 222u8, + 121u8, 125u8, 135u8, 133u8, 91u8, 127u8, 225u8, 216u8, 10u8, 50u8, + ], + ) + } + #[doc = " Attributes of a collection."] + pub fn attribute_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::attribute::Attribute, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Attribute", + vec![], + [ + 68u8, 46u8, 211u8, 106u8, 188u8, 42u8, 68u8, 177u8, 251u8, 157u8, + 108u8, 52u8, 210u8, 52u8, 64u8, 170u8, 140u8, 91u8, 107u8, 19u8, 63u8, + 217u8, 21u8, 145u8, 219u8, 34u8, 147u8, 125u8, 126u8, 210u8, 135u8, + 175u8, + ], + ) + } + #[doc = " Attributes of a collection."] + pub fn attribute_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::attribute::Attribute, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Attribute", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 68u8, 46u8, 211u8, 106u8, 188u8, 42u8, 68u8, 177u8, 251u8, 157u8, + 108u8, 52u8, 210u8, 52u8, 64u8, 170u8, 140u8, 91u8, 107u8, 19u8, 63u8, + 217u8, 21u8, 145u8, 219u8, 34u8, 147u8, 125u8, 126u8, 210u8, 135u8, + 175u8, + ], + ) + } + #[doc = " Attributes of a collection."] + pub fn attribute_iter2( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::attribute::Attribute, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Attribute", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 68u8, 46u8, 211u8, 106u8, 188u8, 42u8, 68u8, 177u8, 251u8, 157u8, + 108u8, 52u8, 210u8, 52u8, 64u8, 170u8, 140u8, 91u8, 107u8, 19u8, 63u8, + 217u8, 21u8, 145u8, 219u8, 34u8, 147u8, 125u8, 126u8, 210u8, 135u8, + 175u8, + ], + ) + } + #[doc = " Attributes of a collection."] + pub fn attribute( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + _2: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::attribute::Attribute, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "Attribute", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), + ], + [ + 68u8, 46u8, 211u8, 106u8, 188u8, 42u8, 68u8, 177u8, 251u8, 157u8, + 108u8, 52u8, 210u8, 52u8, 64u8, 170u8, 140u8, 91u8, 107u8, 19u8, 63u8, + 217u8, 21u8, 145u8, 219u8, 34u8, 147u8, 125u8, 126u8, 210u8, 135u8, + 175u8, + ], + ) + } + #[doc = " Price of an asset instance."] + pub fn item_price_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_price_of::ItemPriceOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "ItemPriceOf", + vec![], + [ + 223u8, 159u8, 126u8, 197u8, 217u8, 54u8, 235u8, 100u8, 150u8, 42u8, + 140u8, 47u8, 79u8, 225u8, 109u8, 145u8, 58u8, 58u8, 45u8, 120u8, 162u8, + 68u8, 37u8, 218u8, 15u8, 220u8, 211u8, 199u8, 177u8, 153u8, 148u8, + 202u8, + ], + ) + } + #[doc = " Price of an asset instance."] + pub fn item_price_of_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_price_of::ItemPriceOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "ItemPriceOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 223u8, 159u8, 126u8, 197u8, 217u8, 54u8, 235u8, 100u8, 150u8, 42u8, + 140u8, 47u8, 79u8, 225u8, 109u8, 145u8, 58u8, 58u8, 45u8, 120u8, 162u8, + 68u8, 37u8, 218u8, 15u8, 220u8, 211u8, 199u8, 177u8, 153u8, 148u8, + 202u8, + ], + ) + } + #[doc = " Price of an asset instance."] + pub fn item_price_of( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_price_of::ItemPriceOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "ItemPriceOf", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 223u8, 159u8, 126u8, 197u8, 217u8, 54u8, 235u8, 100u8, 150u8, 42u8, + 140u8, 47u8, 79u8, 225u8, 109u8, 145u8, 58u8, 58u8, 45u8, 120u8, 162u8, + 68u8, 37u8, 218u8, 15u8, 220u8, 211u8, 199u8, 177u8, 153u8, 148u8, + 202u8, + ], + ) + } + #[doc = " Keeps track of the number of items a collection might have."] + pub fn collection_max_supply_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_max_supply::CollectionMaxSupply, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "CollectionMaxSupply", + vec![], + [ + 75u8, 214u8, 4u8, 190u8, 254u8, 246u8, 151u8, 108u8, 134u8, 15u8, + 186u8, 226u8, 110u8, 82u8, 26u8, 145u8, 38u8, 164u8, 51u8, 34u8, 66u8, + 9u8, 250u8, 87u8, 21u8, 102u8, 187u8, 27u8, 217u8, 29u8, 120u8, 115u8, + ], + ) + } + #[doc = " Keeps track of the number of items a collection might have."] + pub fn collection_max_supply( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_max_supply::CollectionMaxSupply, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Uniques", + "CollectionMaxSupply", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 75u8, 214u8, 4u8, 190u8, 254u8, 246u8, 151u8, 108u8, 134u8, 15u8, + 186u8, 226u8, 110u8, 82u8, 26u8, 145u8, 38u8, 164u8, 51u8, 34u8, 66u8, + 9u8, 250u8, 87u8, 21u8, 102u8, 187u8, 27u8, 217u8, 29u8, 120u8, 115u8, ], ) } @@ -37016,14 +42840,4818 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " `PalletId` for the crowdloan pallet. An appropriate value could be"] - #[doc = " `PalletId(*b\"py/cfund\")`"] + #[doc = " The basic amount of funds that must be reserved for collection."] + pub fn collection_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Uniques", + "CollectionDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved for an item."] + pub fn item_deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Uniques", + "ItemDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved when adding metadata to your item."] + pub fn metadata_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Uniques", + "MetadataDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved when adding an attribute to an item."] + pub fn attribute_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Uniques", + "AttributeDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The additional funds that must be reserved for the number of bytes store in metadata,"] + #[doc = " either \"normal\" metadata or attribute metadata."] + pub fn deposit_per_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Uniques", + "DepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum length of data stored on-chain."] + pub fn string_limit(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Uniques", + "StringLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum length of an attribute key."] + pub fn key_limit(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Uniques", + "KeyLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum length of an attribute value."] + pub fn value_limit(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Uniques", + "ValueLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod nfts { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_nfts::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_nfts::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::create`]."] + pub struct Create { + pub admin: create::Admin, + pub config: create::Config, + } + pub mod create { + use super::runtime_types; + pub type Admin = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Config = runtime_types::pallet_nfts::types::CollectionConfig< + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_create`]."] + pub struct ForceCreate { + pub owner: force_create::Owner, + pub config: force_create::Config, + } + pub mod force_create { + use super::runtime_types; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Config = runtime_types::pallet_nfts::types::CollectionConfig< + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ForceCreate { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "force_create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::destroy`]."] + pub struct Destroy { + pub collection: destroy::Collection, + pub witness: destroy::Witness, + } + pub mod destroy { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Witness = runtime_types::pallet_nfts::types::DestroyWitness; + } + impl ::subxt::blocks::StaticExtrinsic for Destroy { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "destroy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::mint`]."] + pub struct Mint { + pub collection: mint::Collection, + pub item: mint::Item, + pub mint_to: mint::MintTo, + pub witness_data: mint::WitnessData, + } + pub mod mint { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type MintTo = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type WitnessData = ::core::option::Option< + runtime_types::pallet_nfts::types::MintWitness< + ::core::primitive::u32, + ::core::primitive::u128, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Mint { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "mint"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_mint`]."] + pub struct ForceMint { + pub collection: force_mint::Collection, + pub item: force_mint::Item, + pub mint_to: force_mint::MintTo, + pub item_config: force_mint::ItemConfig, + } + pub mod force_mint { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type MintTo = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type ItemConfig = runtime_types::pallet_nfts::types::ItemConfig; + } + impl ::subxt::blocks::StaticExtrinsic for ForceMint { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "force_mint"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::burn`]."] + pub struct Burn { + pub collection: burn::Collection, + pub item: burn::Item, + } + pub mod burn { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Burn { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "burn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer`]."] + pub struct Transfer { + pub collection: transfer::Collection, + pub item: transfer::Item, + pub dest: transfer::Dest, + } + pub mod transfer { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Dest = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::redeposit`]."] + pub struct Redeposit { + pub collection: redeposit::Collection, + pub items: redeposit::Items, + } + pub mod redeposit { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Items = ::std::vec::Vec<::core::primitive::u32>; + } + impl ::subxt::blocks::StaticExtrinsic for Redeposit { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "redeposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::lock_item_transfer`]."] + pub struct LockItemTransfer { + pub collection: lock_item_transfer::Collection, + pub item: lock_item_transfer::Item, + } + pub mod lock_item_transfer { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for LockItemTransfer { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "lock_item_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::unlock_item_transfer`]."] + pub struct UnlockItemTransfer { + pub collection: unlock_item_transfer::Collection, + pub item: unlock_item_transfer::Item, + } + pub mod unlock_item_transfer { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for UnlockItemTransfer { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "unlock_item_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::lock_collection`]."] + pub struct LockCollection { + pub collection: lock_collection::Collection, + pub lock_settings: lock_collection::LockSettings, + } + pub mod lock_collection { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type LockSettings = runtime_types::pallet_nfts::types::BitFlags< + runtime_types::pallet_nfts::types::CollectionSetting, + >; + } + impl ::subxt::blocks::StaticExtrinsic for LockCollection { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "lock_collection"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer_ownership`]."] + pub struct TransferOwnership { + pub collection: transfer_ownership::Collection, + pub new_owner: transfer_ownership::NewOwner, + } + pub mod transfer_ownership { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type NewOwner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for TransferOwnership { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "transfer_ownership"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_team`]."] + pub struct SetTeam { + pub collection: set_team::Collection, + pub issuer: set_team::Issuer, + pub admin: set_team::Admin, + pub freezer: set_team::Freezer, + } + pub mod set_team { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Issuer = ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >; + pub type Admin = ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >; + pub type Freezer = ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetTeam { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "set_team"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_collection_owner`]."] + pub struct ForceCollectionOwner { + pub collection: force_collection_owner::Collection, + pub owner: force_collection_owner::Owner, + } + pub mod force_collection_owner { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Owner = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ForceCollectionOwner { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "force_collection_owner"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_collection_config`]."] + pub struct ForceCollectionConfig { + pub collection: force_collection_config::Collection, + pub config: force_collection_config::Config, + } + pub mod force_collection_config { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Config = runtime_types::pallet_nfts::types::CollectionConfig< + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ForceCollectionConfig { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "force_collection_config"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::approve_transfer`]."] + pub struct ApproveTransfer { + pub collection: approve_transfer::Collection, + pub item: approve_transfer::Item, + pub delegate: approve_transfer::Delegate, + pub maybe_deadline: approve_transfer::MaybeDeadline, + } + pub mod approve_transfer { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type MaybeDeadline = ::core::option::Option<::core::primitive::u32>; + } + impl ::subxt::blocks::StaticExtrinsic for ApproveTransfer { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "approve_transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_approval`]."] + pub struct CancelApproval { + pub collection: cancel_approval::Collection, + pub item: cancel_approval::Item, + pub delegate: cancel_approval::Delegate, + } + pub mod cancel_approval { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for CancelApproval { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "cancel_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_all_transfer_approvals`]."] + pub struct ClearAllTransferApprovals { + pub collection: clear_all_transfer_approvals::Collection, + pub item: clear_all_transfer_approvals::Item, + } + pub mod clear_all_transfer_approvals { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClearAllTransferApprovals { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "clear_all_transfer_approvals"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::lock_item_properties`]."] + pub struct LockItemProperties { + pub collection: lock_item_properties::Collection, + pub item: lock_item_properties::Item, + pub lock_metadata: lock_item_properties::LockMetadata, + pub lock_attributes: lock_item_properties::LockAttributes, + } + pub mod lock_item_properties { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type LockMetadata = ::core::primitive::bool; + pub type LockAttributes = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for LockItemProperties { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "lock_item_properties"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_attribute`]."] + pub struct SetAttribute { + pub collection: set_attribute::Collection, + pub maybe_item: set_attribute::MaybeItem, + pub namespace: set_attribute::Namespace, + pub key: set_attribute::Key, + pub value: set_attribute::Value, + } + pub mod set_attribute { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaybeItem = ::core::option::Option<::core::primitive::u32>; + pub type Namespace = runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >; + pub type Key = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Value = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetAttribute { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "set_attribute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_set_attribute`]."] + pub struct ForceSetAttribute { + pub set_as: force_set_attribute::SetAs, + pub collection: force_set_attribute::Collection, + pub maybe_item: force_set_attribute::MaybeItem, + pub namespace: force_set_attribute::Namespace, + pub key: force_set_attribute::Key, + pub value: force_set_attribute::Value, + } + pub mod force_set_attribute { + use super::runtime_types; + pub type SetAs = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Collection = ::core::primitive::u32; + pub type MaybeItem = ::core::option::Option<::core::primitive::u32>; + pub type Namespace = runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >; + pub type Key = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Value = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetAttribute { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "force_set_attribute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_attribute`]."] + pub struct ClearAttribute { + pub collection: clear_attribute::Collection, + pub maybe_item: clear_attribute::MaybeItem, + pub namespace: clear_attribute::Namespace, + pub key: clear_attribute::Key, + } + pub mod clear_attribute { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaybeItem = ::core::option::Option<::core::primitive::u32>; + pub type Namespace = runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >; + pub type Key = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ClearAttribute { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "clear_attribute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::approve_item_attributes`]."] + pub struct ApproveItemAttributes { + pub collection: approve_item_attributes::Collection, + pub item: approve_item_attributes::Item, + pub delegate: approve_item_attributes::Delegate, + } + pub mod approve_item_attributes { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ApproveItemAttributes { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "approve_item_attributes"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_item_attributes_approval`]."] + pub struct CancelItemAttributesApproval { + pub collection: cancel_item_attributes_approval::Collection, + pub item: cancel_item_attributes_approval::Item, + pub delegate: cancel_item_attributes_approval::Delegate, + pub witness: cancel_item_attributes_approval::Witness, + } + pub mod cancel_item_attributes_approval { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Witness = + runtime_types::pallet_nfts::types::CancelAttributesApprovalWitness; + } + impl ::subxt::blocks::StaticExtrinsic for CancelItemAttributesApproval { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "cancel_item_attributes_approval"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + pub collection: set_metadata::Collection, + pub item: set_metadata::Item, + pub data: set_metadata::Data, + } + pub mod set_metadata { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Data = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_metadata`]."] + pub struct ClearMetadata { + pub collection: clear_metadata::Collection, + pub item: clear_metadata::Item, + } + pub mod clear_metadata { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClearMetadata { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "clear_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_collection_metadata`]."] + pub struct SetCollectionMetadata { + pub collection: set_collection_metadata::Collection, + pub data: set_collection_metadata::Data, + } + pub mod set_collection_metadata { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Data = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetCollectionMetadata { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "set_collection_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::clear_collection_metadata`]."] + pub struct ClearCollectionMetadata { + pub collection: clear_collection_metadata::Collection, + } + pub mod clear_collection_metadata { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClearCollectionMetadata { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "clear_collection_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_accept_ownership`]."] + pub struct SetAcceptOwnership { + pub maybe_collection: set_accept_ownership::MaybeCollection, + } + pub mod set_accept_ownership { + use super::runtime_types; + pub type MaybeCollection = ::core::option::Option<::core::primitive::u32>; + } + impl ::subxt::blocks::StaticExtrinsic for SetAcceptOwnership { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "set_accept_ownership"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_collection_max_supply`]."] + pub struct SetCollectionMaxSupply { + pub collection: set_collection_max_supply::Collection, + pub max_supply: set_collection_max_supply::MaxSupply, + } + pub mod set_collection_max_supply { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaxSupply = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for SetCollectionMaxSupply { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "set_collection_max_supply"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::update_mint_settings`]."] + pub struct UpdateMintSettings { + pub collection: update_mint_settings::Collection, + pub mint_settings: update_mint_settings::MintSettings, + } + pub mod update_mint_settings { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MintSettings = runtime_types::pallet_nfts::types::MintSettings< + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for UpdateMintSettings { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "update_mint_settings"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_price`]."] + pub struct SetPrice { + pub collection: set_price::Collection, + pub item: set_price::Item, + pub price: set_price::Price, + pub whitelisted_buyer: set_price::WhitelistedBuyer, + } + pub mod set_price { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Price = ::core::option::Option<::core::primitive::u128>; + pub type WhitelistedBuyer = ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetPrice { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "set_price"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::buy_item`]."] + pub struct BuyItem { + pub collection: buy_item::Collection, + pub item: buy_item::Item, + pub bid_price: buy_item::BidPrice, + } + pub mod buy_item { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type BidPrice = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for BuyItem { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "buy_item"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::pay_tips`]."] + pub struct PayTips { + pub tips: pay_tips::Tips, + } + pub mod pay_tips { + use super::runtime_types; + pub type Tips = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_nfts::types::ItemTip< + ::core::primitive::u32, + ::core::primitive::u32, + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for PayTips { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "pay_tips"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::create_swap`]."] + pub struct CreateSwap { + pub offered_collection: create_swap::OfferedCollection, + pub offered_item: create_swap::OfferedItem, + pub desired_collection: create_swap::DesiredCollection, + pub maybe_desired_item: create_swap::MaybeDesiredItem, + pub maybe_price: create_swap::MaybePrice, + pub duration: create_swap::Duration, + } + pub mod create_swap { + use super::runtime_types; + pub type OfferedCollection = ::core::primitive::u32; + pub type OfferedItem = ::core::primitive::u32; + pub type DesiredCollection = ::core::primitive::u32; + pub type MaybeDesiredItem = ::core::option::Option<::core::primitive::u32>; + pub type MaybePrice = ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection< + ::core::primitive::u128, + >, + >; + pub type Duration = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for CreateSwap { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "create_swap"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel_swap`]."] + pub struct CancelSwap { + pub offered_collection: cancel_swap::OfferedCollection, + pub offered_item: cancel_swap::OfferedItem, + } + pub mod cancel_swap { + use super::runtime_types; + pub type OfferedCollection = ::core::primitive::u32; + pub type OfferedItem = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for CancelSwap { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "cancel_swap"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::claim_swap`]."] + pub struct ClaimSwap { + pub send_collection: claim_swap::SendCollection, + pub send_item: claim_swap::SendItem, + pub receive_collection: claim_swap::ReceiveCollection, + pub receive_item: claim_swap::ReceiveItem, + pub witness_price: claim_swap::WitnessPrice, + } + pub mod claim_swap { + use super::runtime_types; + pub type SendCollection = ::core::primitive::u32; + pub type SendItem = ::core::primitive::u32; + pub type ReceiveCollection = ::core::primitive::u32; + pub type ReceiveItem = ::core::primitive::u32; + pub type WitnessPrice = ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection< + ::core::primitive::u128, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ClaimSwap { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "claim_swap"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::mint_pre_signed`]."] + pub struct MintPreSigned { + pub mint_data: ::std::boxed::Box, + pub signature: mint_pre_signed::Signature, + pub signer: mint_pre_signed::Signer, + } + pub mod mint_pre_signed { + use super::runtime_types; + pub type MintData = runtime_types::pallet_nfts::types::PreSignedMint< + ::core::primitive::u32, + ::core::primitive::u32, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + ::core::primitive::u128, + >; + pub type Signature = runtime_types::sp_runtime::MultiSignature; + pub type Signer = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for MintPreSigned { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "mint_pre_signed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_attributes_pre_signed`]."] + pub struct SetAttributesPreSigned { + pub data: set_attributes_pre_signed::Data, + pub signature: set_attributes_pre_signed::Signature, + pub signer: set_attributes_pre_signed::Signer, + } + pub mod set_attributes_pre_signed { + use super::runtime_types; + pub type Data = runtime_types::pallet_nfts::types::PreSignedAttributes< + ::core::primitive::u32, + ::core::primitive::u32, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Signature = runtime_types::sp_runtime::MultiSignature; + pub type Signer = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for SetAttributesPreSigned { + const PALLET: &'static str = "Nfts"; + const CALL: &'static str = "set_attributes_pre_signed"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::create`]."] + pub fn create( + &self, + admin: types::create::Admin, + config: types::create::Config, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "create", + types::Create { admin, config }, + [ + 149u8, 165u8, 127u8, 80u8, 146u8, 102u8, 244u8, 108u8, 234u8, 66u8, + 56u8, 59u8, 136u8, 37u8, 222u8, 74u8, 235u8, 254u8, 91u8, 42u8, 82u8, + 234u8, 102u8, 203u8, 211u8, 112u8, 208u8, 66u8, 159u8, 83u8, 187u8, + 224u8, + ], + ) + } + #[doc = "See [`Pallet::force_create`]."] + pub fn force_create( + &self, + owner: types::force_create::Owner, + config: types::force_create::Config, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "force_create", + types::ForceCreate { owner, config }, + [ + 58u8, 122u8, 228u8, 153u8, 12u8, 213u8, 197u8, 181u8, 167u8, 212u8, + 5u8, 151u8, 133u8, 199u8, 109u8, 38u8, 147u8, 47u8, 2u8, 43u8, 88u8, + 91u8, 222u8, 164u8, 144u8, 139u8, 225u8, 89u8, 79u8, 251u8, 18u8, + 213u8, + ], + ) + } + #[doc = "See [`Pallet::destroy`]."] + pub fn destroy( + &self, + collection: types::destroy::Collection, + witness: types::destroy::Witness, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "destroy", + types::Destroy { + collection, + witness, + }, + [ + 149u8, 164u8, 229u8, 49u8, 140u8, 74u8, 193u8, 116u8, 99u8, 58u8, 73u8, + 250u8, 101u8, 152u8, 116u8, 60u8, 93u8, 196u8, 9u8, 251u8, 149u8, 51u8, + 36u8, 8u8, 192u8, 215u8, 171u8, 50u8, 27u8, 107u8, 187u8, 10u8, + ], + ) + } + #[doc = "See [`Pallet::mint`]."] + pub fn mint( + &self, + collection: types::mint::Collection, + item: types::mint::Item, + mint_to: types::mint::MintTo, + witness_data: types::mint::WitnessData, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "mint", + types::Mint { + collection, + item, + mint_to, + witness_data, + }, + [ + 91u8, 217u8, 102u8, 89u8, 134u8, 177u8, 101u8, 212u8, 154u8, 87u8, + 196u8, 176u8, 156u8, 20u8, 186u8, 14u8, 60u8, 10u8, 31u8, 134u8, 141u8, + 60u8, 233u8, 112u8, 252u8, 127u8, 120u8, 22u8, 239u8, 95u8, 129u8, 3u8, + ], + ) + } + #[doc = "See [`Pallet::force_mint`]."] + pub fn force_mint( + &self, + collection: types::force_mint::Collection, + item: types::force_mint::Item, + mint_to: types::force_mint::MintTo, + item_config: types::force_mint::ItemConfig, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "force_mint", + types::ForceMint { + collection, + item, + mint_to, + item_config, + }, + [ + 134u8, 100u8, 43u8, 221u8, 38u8, 63u8, 213u8, 92u8, 170u8, 18u8, 19u8, + 150u8, 56u8, 171u8, 128u8, 139u8, 44u8, 73u8, 125u8, 148u8, 146u8, + 246u8, 6u8, 137u8, 159u8, 23u8, 11u8, 206u8, 247u8, 168u8, 14u8, 93u8, + ], + ) + } + #[doc = "See [`Pallet::burn`]."] + pub fn burn( + &self, + collection: types::burn::Collection, + item: types::burn::Item, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "burn", + types::Burn { collection, item }, + [ + 234u8, 139u8, 188u8, 129u8, 218u8, 125u8, 246u8, 45u8, 19u8, 201u8, + 110u8, 6u8, 248u8, 134u8, 201u8, 41u8, 132u8, 133u8, 120u8, 183u8, + 168u8, 71u8, 121u8, 32u8, 75u8, 243u8, 59u8, 195u8, 17u8, 51u8, 110u8, + 104u8, + ], + ) + } + #[doc = "See [`Pallet::transfer`]."] + pub fn transfer( + &self, + collection: types::transfer::Collection, + item: types::transfer::Item, + dest: types::transfer::Dest, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "transfer", + types::Transfer { + collection, + item, + dest, + }, + [ + 187u8, 138u8, 10u8, 220u8, 230u8, 72u8, 187u8, 40u8, 98u8, 52u8, 163u8, + 74u8, 255u8, 231u8, 225u8, 142u8, 67u8, 92u8, 239u8, 82u8, 83u8, 42u8, + 71u8, 181u8, 238u8, 15u8, 174u8, 38u8, 233u8, 80u8, 74u8, 108u8, + ], + ) + } + #[doc = "See [`Pallet::redeposit`]."] + pub fn redeposit( + &self, + collection: types::redeposit::Collection, + items: types::redeposit::Items, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "redeposit", + types::Redeposit { collection, items }, + [ + 128u8, 177u8, 151u8, 250u8, 135u8, 219u8, 181u8, 19u8, 169u8, 106u8, + 55u8, 214u8, 229u8, 200u8, 138u8, 115u8, 45u8, 249u8, 153u8, 38u8, + 34u8, 59u8, 102u8, 59u8, 133u8, 41u8, 135u8, 157u8, 196u8, 127u8, 10u8, + 184u8, + ], + ) + } + #[doc = "See [`Pallet::lock_item_transfer`]."] + pub fn lock_item_transfer( + &self, + collection: types::lock_item_transfer::Collection, + item: types::lock_item_transfer::Item, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "lock_item_transfer", + types::LockItemTransfer { collection, item }, + [ + 60u8, 224u8, 212u8, 44u8, 212u8, 98u8, 192u8, 146u8, 116u8, 247u8, + 215u8, 62u8, 226u8, 65u8, 141u8, 229u8, 95u8, 252u8, 51u8, 231u8, + 253u8, 141u8, 225u8, 118u8, 76u8, 74u8, 9u8, 65u8, 124u8, 146u8, 102u8, + 129u8, + ], + ) + } + #[doc = "See [`Pallet::unlock_item_transfer`]."] + pub fn unlock_item_transfer( + &self, + collection: types::unlock_item_transfer::Collection, + item: types::unlock_item_transfer::Item, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "unlock_item_transfer", + types::UnlockItemTransfer { collection, item }, + [ + 7u8, 124u8, 203u8, 131u8, 101u8, 35u8, 163u8, 211u8, 170u8, 180u8, + 85u8, 187u8, 25u8, 16u8, 209u8, 232u8, 90u8, 17u8, 104u8, 164u8, 252u8, + 222u8, 185u8, 238u8, 152u8, 203u8, 7u8, 162u8, 220u8, 103u8, 163u8, + 79u8, + ], + ) + } + #[doc = "See [`Pallet::lock_collection`]."] + pub fn lock_collection( + &self, + collection: types::lock_collection::Collection, + lock_settings: types::lock_collection::LockSettings, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "lock_collection", + types::LockCollection { + collection, + lock_settings, + }, + [ + 120u8, 31u8, 227u8, 81u8, 22u8, 10u8, 194u8, 164u8, 150u8, 122u8, 5u8, + 0u8, 171u8, 244u8, 248u8, 149u8, 48u8, 136u8, 226u8, 120u8, 245u8, 3u8, + 26u8, 151u8, 0u8, 22u8, 64u8, 98u8, 193u8, 29u8, 143u8, 255u8, + ], + ) + } + #[doc = "See [`Pallet::transfer_ownership`]."] + pub fn transfer_ownership( + &self, + collection: types::transfer_ownership::Collection, + new_owner: types::transfer_ownership::NewOwner, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "transfer_ownership", + types::TransferOwnership { + collection, + new_owner, + }, + [ + 192u8, 157u8, 133u8, 184u8, 108u8, 67u8, 153u8, 192u8, 167u8, 7u8, + 140u8, 44u8, 219u8, 96u8, 248u8, 103u8, 61u8, 153u8, 149u8, 73u8, + 122u8, 143u8, 207u8, 144u8, 2u8, 18u8, 147u8, 107u8, 127u8, 68u8, + 155u8, 202u8, + ], + ) + } + #[doc = "See [`Pallet::set_team`]."] + pub fn set_team( + &self, + collection: types::set_team::Collection, + issuer: types::set_team::Issuer, + admin: types::set_team::Admin, + freezer: types::set_team::Freezer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "set_team", + types::SetTeam { + collection, + issuer, + admin, + freezer, + }, + [ + 127u8, 87u8, 42u8, 172u8, 94u8, 208u8, 120u8, 109u8, 166u8, 36u8, + 116u8, 140u8, 36u8, 177u8, 180u8, 237u8, 198u8, 249u8, 95u8, 92u8, + 206u8, 27u8, 187u8, 77u8, 216u8, 219u8, 66u8, 39u8, 57u8, 26u8, 34u8, + 230u8, + ], + ) + } + #[doc = "See [`Pallet::force_collection_owner`]."] + pub fn force_collection_owner( + &self, + collection: types::force_collection_owner::Collection, + owner: types::force_collection_owner::Owner, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "force_collection_owner", + types::ForceCollectionOwner { collection, owner }, + [ + 199u8, 16u8, 21u8, 86u8, 188u8, 80u8, 235u8, 40u8, 87u8, 203u8, 199u8, + 205u8, 135u8, 173u8, 103u8, 79u8, 86u8, 187u8, 210u8, 217u8, 52u8, + 23u8, 25u8, 222u8, 108u8, 207u8, 130u8, 39u8, 205u8, 169u8, 33u8, + 242u8, + ], + ) + } + #[doc = "See [`Pallet::force_collection_config`]."] + pub fn force_collection_config( + &self, + collection: types::force_collection_config::Collection, + config: types::force_collection_config::Config, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "force_collection_config", + types::ForceCollectionConfig { collection, config }, + [ + 197u8, 232u8, 90u8, 137u8, 67u8, 137u8, 206u8, 231u8, 131u8, 149u8, + 27u8, 131u8, 0u8, 135u8, 205u8, 221u8, 52u8, 189u8, 188u8, 7u8, 1u8, + 194u8, 46u8, 53u8, 243u8, 201u8, 235u8, 137u8, 189u8, 237u8, 67u8, + 239u8, + ], + ) + } + #[doc = "See [`Pallet::approve_transfer`]."] + pub fn approve_transfer( + &self, + collection: types::approve_transfer::Collection, + item: types::approve_transfer::Item, + delegate: types::approve_transfer::Delegate, + maybe_deadline: types::approve_transfer::MaybeDeadline, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "approve_transfer", + types::ApproveTransfer { + collection, + item, + delegate, + maybe_deadline, + }, + [ + 36u8, 9u8, 54u8, 93u8, 100u8, 118u8, 187u8, 249u8, 133u8, 232u8, 196u8, + 138u8, 2u8, 243u8, 117u8, 155u8, 219u8, 225u8, 6u8, 210u8, 33u8, 204u8, + 162u8, 85u8, 173u8, 142u8, 31u8, 196u8, 51u8, 101u8, 235u8, 163u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_approval`]."] + pub fn cancel_approval( + &self, + collection: types::cancel_approval::Collection, + item: types::cancel_approval::Item, + delegate: types::cancel_approval::Delegate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "cancel_approval", + types::CancelApproval { + collection, + item, + delegate, + }, + [ + 94u8, 212u8, 178u8, 82u8, 173u8, 74u8, 80u8, 163u8, 37u8, 97u8, 70u8, + 73u8, 88u8, 156u8, 232u8, 59u8, 131u8, 157u8, 115u8, 147u8, 213u8, + 95u8, 137u8, 0u8, 141u8, 79u8, 48u8, 74u8, 208u8, 169u8, 194u8, 15u8, + ], + ) + } + #[doc = "See [`Pallet::clear_all_transfer_approvals`]."] + pub fn clear_all_transfer_approvals( + &self, + collection: types::clear_all_transfer_approvals::Collection, + item: types::clear_all_transfer_approvals::Item, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "clear_all_transfer_approvals", + types::ClearAllTransferApprovals { collection, item }, + [ + 135u8, 85u8, 182u8, 110u8, 92u8, 73u8, 33u8, 191u8, 170u8, 149u8, + 200u8, 116u8, 152u8, 97u8, 92u8, 16u8, 114u8, 214u8, 111u8, 96u8, + 114u8, 239u8, 123u8, 35u8, 50u8, 200u8, 238u8, 35u8, 74u8, 217u8, + 251u8, 35u8, + ], + ) + } + #[doc = "See [`Pallet::lock_item_properties`]."] + pub fn lock_item_properties( + &self, + collection: types::lock_item_properties::Collection, + item: types::lock_item_properties::Item, + lock_metadata: types::lock_item_properties::LockMetadata, + lock_attributes: types::lock_item_properties::LockAttributes, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "lock_item_properties", + types::LockItemProperties { + collection, + item, + lock_metadata, + lock_attributes, + }, + [ + 44u8, 232u8, 71u8, 74u8, 81u8, 58u8, 207u8, 162u8, 86u8, 192u8, 189u8, + 186u8, 140u8, 49u8, 3u8, 13u8, 67u8, 97u8, 227u8, 194u8, 51u8, 115u8, + 57u8, 69u8, 71u8, 19u8, 88u8, 113u8, 97u8, 25u8, 142u8, 48u8, + ], + ) + } + #[doc = "See [`Pallet::set_attribute`]."] + pub fn set_attribute( + &self, + collection: types::set_attribute::Collection, + maybe_item: types::set_attribute::MaybeItem, + namespace: types::set_attribute::Namespace, + key: types::set_attribute::Key, + value: types::set_attribute::Value, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "set_attribute", + types::SetAttribute { + collection, + maybe_item, + namespace, + key, + value, + }, + [ + 99u8, 76u8, 214u8, 19u8, 65u8, 1u8, 140u8, 124u8, 54u8, 56u8, 80u8, + 76u8, 248u8, 202u8, 230u8, 115u8, 123u8, 196u8, 142u8, 66u8, 89u8, + 40u8, 127u8, 134u8, 230u8, 173u8, 128u8, 157u8, 173u8, 235u8, 159u8, + 12u8, + ], + ) + } + #[doc = "See [`Pallet::force_set_attribute`]."] + pub fn force_set_attribute( + &self, + set_as: types::force_set_attribute::SetAs, + collection: types::force_set_attribute::Collection, + maybe_item: types::force_set_attribute::MaybeItem, + namespace: types::force_set_attribute::Namespace, + key: types::force_set_attribute::Key, + value: types::force_set_attribute::Value, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "force_set_attribute", + types::ForceSetAttribute { + set_as, + collection, + maybe_item, + namespace, + key, + value, + }, + [ + 143u8, 184u8, 206u8, 87u8, 182u8, 199u8, 143u8, 93u8, 33u8, 148u8, + 216u8, 45u8, 83u8, 208u8, 239u8, 90u8, 42u8, 150u8, 74u8, 136u8, 235u8, + 218u8, 0u8, 5u8, 139u8, 117u8, 107u8, 65u8, 94u8, 191u8, 186u8, 165u8, + ], + ) + } + #[doc = "See [`Pallet::clear_attribute`]."] + pub fn clear_attribute( + &self, + collection: types::clear_attribute::Collection, + maybe_item: types::clear_attribute::MaybeItem, + namespace: types::clear_attribute::Namespace, + key: types::clear_attribute::Key, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "clear_attribute", + types::ClearAttribute { + collection, + maybe_item, + namespace, + key, + }, + [ + 179u8, 161u8, 146u8, 255u8, 178u8, 22u8, 87u8, 136u8, 102u8, 121u8, + 13u8, 242u8, 31u8, 142u8, 179u8, 165u8, 254u8, 229u8, 213u8, 0u8, + 243u8, 179u8, 95u8, 130u8, 233u8, 52u8, 168u8, 190u8, 119u8, 43u8, + 128u8, 133u8, + ], + ) + } + #[doc = "See [`Pallet::approve_item_attributes`]."] + pub fn approve_item_attributes( + &self, + collection: types::approve_item_attributes::Collection, + item: types::approve_item_attributes::Item, + delegate: types::approve_item_attributes::Delegate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "approve_item_attributes", + types::ApproveItemAttributes { + collection, + item, + delegate, + }, + [ + 208u8, 150u8, 220u8, 151u8, 184u8, 247u8, 37u8, 102u8, 185u8, 44u8, + 251u8, 206u8, 195u8, 149u8, 63u8, 119u8, 59u8, 85u8, 193u8, 68u8, 23u8, + 16u8, 249u8, 131u8, 89u8, 3u8, 100u8, 139u8, 191u8, 25u8, 123u8, 8u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_item_attributes_approval`]."] + pub fn cancel_item_attributes_approval( + &self, + collection: types::cancel_item_attributes_approval::Collection, + item: types::cancel_item_attributes_approval::Item, + delegate: types::cancel_item_attributes_approval::Delegate, + witness: types::cancel_item_attributes_approval::Witness, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "cancel_item_attributes_approval", + types::CancelItemAttributesApproval { + collection, + item, + delegate, + witness, + }, + [ + 11u8, 105u8, 74u8, 195u8, 137u8, 25u8, 154u8, 38u8, 23u8, 132u8, 157u8, + 41u8, 38u8, 68u8, 223u8, 44u8, 50u8, 228u8, 17u8, 181u8, 123u8, 46u8, + 20u8, 3u8, 63u8, 99u8, 20u8, 57u8, 93u8, 133u8, 49u8, 30u8, + ], + ) + } + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + collection: types::set_metadata::Collection, + item: types::set_metadata::Item, + data: types::set_metadata::Data, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "set_metadata", + types::SetMetadata { + collection, + item, + data, + }, + [ + 150u8, 209u8, 120u8, 157u8, 245u8, 59u8, 64u8, 170u8, 231u8, 8u8, + 250u8, 75u8, 143u8, 201u8, 253u8, 144u8, 196u8, 96u8, 217u8, 98u8, + 70u8, 140u8, 40u8, 231u8, 173u8, 199u8, 154u8, 20u8, 199u8, 101u8, + 191u8, 171u8, + ], + ) + } + #[doc = "See [`Pallet::clear_metadata`]."] + pub fn clear_metadata( + &self, + collection: types::clear_metadata::Collection, + item: types::clear_metadata::Item, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "clear_metadata", + types::ClearMetadata { collection, item }, + [ + 112u8, 129u8, 105u8, 77u8, 21u8, 184u8, 102u8, 18u8, 20u8, 237u8, 40u8, + 104u8, 51u8, 10u8, 245u8, 68u8, 196u8, 145u8, 147u8, 104u8, 244u8, + 213u8, 45u8, 0u8, 102u8, 119u8, 22u8, 140u8, 115u8, 121u8, 26u8, 185u8, + ], + ) + } + #[doc = "See [`Pallet::set_collection_metadata`]."] + pub fn set_collection_metadata( + &self, + collection: types::set_collection_metadata::Collection, + data: types::set_collection_metadata::Data, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "set_collection_metadata", + types::SetCollectionMetadata { collection, data }, + [ + 145u8, 145u8, 151u8, 92u8, 15u8, 79u8, 210u8, 117u8, 138u8, 25u8, 34u8, + 8u8, 4u8, 100u8, 122u8, 231u8, 22u8, 142u8, 228u8, 182u8, 194u8, 1u8, + 100u8, 216u8, 14u8, 6u8, 237u8, 169u8, 125u8, 101u8, 207u8, 148u8, + ], + ) + } + #[doc = "See [`Pallet::clear_collection_metadata`]."] + pub fn clear_collection_metadata( + &self, + collection: types::clear_collection_metadata::Collection, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "clear_collection_metadata", + types::ClearCollectionMetadata { collection }, + [ + 144u8, 178u8, 204u8, 186u8, 72u8, 61u8, 132u8, 36u8, 145u8, 191u8, + 47u8, 39u8, 39u8, 42u8, 165u8, 177u8, 168u8, 183u8, 84u8, 198u8, 1u8, + 31u8, 126u8, 68u8, 60u8, 122u8, 153u8, 120u8, 56u8, 240u8, 16u8, 20u8, + ], + ) + } + #[doc = "See [`Pallet::set_accept_ownership`]."] + pub fn set_accept_ownership( + &self, + maybe_collection: types::set_accept_ownership::MaybeCollection, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "set_accept_ownership", + types::SetAcceptOwnership { maybe_collection }, + [ + 146u8, 84u8, 33u8, 108u8, 166u8, 232u8, 219u8, 134u8, 24u8, 255u8, + 170u8, 90u8, 127u8, 72u8, 34u8, 106u8, 151u8, 125u8, 179u8, 125u8, + 36u8, 77u8, 115u8, 121u8, 174u8, 113u8, 188u8, 77u8, 153u8, 111u8, + 100u8, 182u8, + ], + ) + } + #[doc = "See [`Pallet::set_collection_max_supply`]."] + pub fn set_collection_max_supply( + &self, + collection: types::set_collection_max_supply::Collection, + max_supply: types::set_collection_max_supply::MaxSupply, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "set_collection_max_supply", + types::SetCollectionMaxSupply { + collection, + max_supply, + }, + [ + 124u8, 130u8, 13u8, 221u8, 251u8, 74u8, 34u8, 81u8, 173u8, 134u8, + 255u8, 220u8, 149u8, 236u8, 96u8, 245u8, 153u8, 207u8, 229u8, 131u8, + 9u8, 145u8, 198u8, 223u8, 208u8, 78u8, 237u8, 59u8, 4u8, 197u8, 61u8, + 210u8, + ], + ) + } + #[doc = "See [`Pallet::update_mint_settings`]."] + pub fn update_mint_settings( + &self, + collection: types::update_mint_settings::Collection, + mint_settings: types::update_mint_settings::MintSettings, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "update_mint_settings", + types::UpdateMintSettings { + collection, + mint_settings, + }, + [ + 80u8, 219u8, 124u8, 191u8, 13u8, 240u8, 82u8, 219u8, 106u8, 222u8, + 182u8, 20u8, 151u8, 120u8, 231u8, 43u8, 14u8, 50u8, 116u8, 213u8, + 191u8, 152u8, 31u8, 158u8, 198u8, 6u8, 223u8, 211u8, 111u8, 71u8, 64u8, + 79u8, + ], + ) + } + #[doc = "See [`Pallet::set_price`]."] + pub fn set_price( + &self, + collection: types::set_price::Collection, + item: types::set_price::Item, + price: types::set_price::Price, + whitelisted_buyer: types::set_price::WhitelistedBuyer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "set_price", + types::SetPrice { + collection, + item, + price, + whitelisted_buyer, + }, + [ + 130u8, 52u8, 234u8, 205u8, 234u8, 10u8, 77u8, 247u8, 171u8, 103u8, + 70u8, 189u8, 48u8, 23u8, 40u8, 196u8, 190u8, 38u8, 172u8, 14u8, 244u8, + 105u8, 228u8, 99u8, 229u8, 238u8, 116u8, 158u8, 170u8, 55u8, 167u8, + 77u8, + ], + ) + } + #[doc = "See [`Pallet::buy_item`]."] + pub fn buy_item( + &self, + collection: types::buy_item::Collection, + item: types::buy_item::Item, + bid_price: types::buy_item::BidPrice, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "buy_item", + types::BuyItem { + collection, + item, + bid_price, + }, + [ + 19u8, 25u8, 247u8, 69u8, 191u8, 152u8, 245u8, 137u8, 140u8, 144u8, + 192u8, 233u8, 229u8, 2u8, 191u8, 192u8, 45u8, 92u8, 116u8, 84u8, 47u8, + 69u8, 68u8, 73u8, 177u8, 40u8, 80u8, 91u8, 14u8, 165u8, 219u8, 210u8, + ], + ) + } + #[doc = "See [`Pallet::pay_tips`]."] + pub fn pay_tips( + &self, + tips: types::pay_tips::Tips, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "pay_tips", + types::PayTips { tips }, + [ + 210u8, 136u8, 28u8, 96u8, 112u8, 242u8, 26u8, 96u8, 190u8, 61u8, 179u8, + 233u8, 89u8, 62u8, 189u8, 24u8, 242u8, 254u8, 253u8, 167u8, 45u8, + 133u8, 189u8, 116u8, 24u8, 16u8, 23u8, 14u8, 97u8, 35u8, 94u8, 136u8, + ], + ) + } + #[doc = "See [`Pallet::create_swap`]."] + pub fn create_swap( + &self, + offered_collection: types::create_swap::OfferedCollection, + offered_item: types::create_swap::OfferedItem, + desired_collection: types::create_swap::DesiredCollection, + maybe_desired_item: types::create_swap::MaybeDesiredItem, + maybe_price: types::create_swap::MaybePrice, + duration: types::create_swap::Duration, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "create_swap", + types::CreateSwap { + offered_collection, + offered_item, + desired_collection, + maybe_desired_item, + maybe_price, + duration, + }, + [ + 168u8, 199u8, 78u8, 74u8, 169u8, 255u8, 213u8, 248u8, 40u8, 74u8, 19u8, + 100u8, 141u8, 30u8, 144u8, 133u8, 224u8, 191u8, 14u8, 23u8, 70u8, + 249u8, 121u8, 37u8, 127u8, 236u8, 200u8, 72u8, 163u8, 130u8, 200u8, + 245u8, + ], + ) + } + #[doc = "See [`Pallet::cancel_swap`]."] + pub fn cancel_swap( + &self, + offered_collection: types::cancel_swap::OfferedCollection, + offered_item: types::cancel_swap::OfferedItem, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "cancel_swap", + types::CancelSwap { + offered_collection, + offered_item, + }, + [ + 138u8, 78u8, 120u8, 127u8, 63u8, 162u8, 178u8, 66u8, 185u8, 206u8, + 82u8, 61u8, 141u8, 133u8, 70u8, 123u8, 133u8, 205u8, 184u8, 230u8, + 52u8, 160u8, 84u8, 232u8, 37u8, 57u8, 167u8, 253u8, 211u8, 203u8, + 192u8, 99u8, + ], + ) + } + #[doc = "See [`Pallet::claim_swap`]."] + pub fn claim_swap( + &self, + send_collection: types::claim_swap::SendCollection, + send_item: types::claim_swap::SendItem, + receive_collection: types::claim_swap::ReceiveCollection, + receive_item: types::claim_swap::ReceiveItem, + witness_price: types::claim_swap::WitnessPrice, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "claim_swap", + types::ClaimSwap { + send_collection, + send_item, + receive_collection, + receive_item, + witness_price, + }, + [ + 118u8, 170u8, 127u8, 202u8, 118u8, 207u8, 8u8, 71u8, 173u8, 163u8, + 21u8, 155u8, 197u8, 226u8, 212u8, 101u8, 132u8, 138u8, 19u8, 79u8, + 181u8, 250u8, 156u8, 108u8, 57u8, 84u8, 20u8, 148u8, 166u8, 106u8, + 119u8, 31u8, + ], + ) + } + #[doc = "See [`Pallet::mint_pre_signed`]."] + pub fn mint_pre_signed( + &self, + mint_data: types::mint_pre_signed::MintData, + signature: types::mint_pre_signed::Signature, + signer: types::mint_pre_signed::Signer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "mint_pre_signed", + types::MintPreSigned { + mint_data: ::std::boxed::Box::new(mint_data), + signature, + signer, + }, + [ + 1u8, 150u8, 183u8, 33u8, 223u8, 109u8, 220u8, 244u8, 95u8, 174u8, 96u8, + 10u8, 56u8, 253u8, 178u8, 25u8, 133u8, 4u8, 132u8, 65u8, 50u8, 23u8, + 247u8, 230u8, 157u8, 85u8, 122u8, 22u8, 19u8, 206u8, 171u8, 71u8, + ], + ) + } + #[doc = "See [`Pallet::set_attributes_pre_signed`]."] + pub fn set_attributes_pre_signed( + &self, + data: types::set_attributes_pre_signed::Data, + signature: types::set_attributes_pre_signed::Signature, + signer: types::set_attributes_pre_signed::Signer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Nfts", + "set_attributes_pre_signed", + types::SetAttributesPreSigned { + data, + signature, + signer, + }, + [ + 255u8, 247u8, 242u8, 164u8, 79u8, 90u8, 128u8, 34u8, 155u8, 228u8, + 214u8, 234u8, 141u8, 237u8, 178u8, 232u8, 36u8, 74u8, 142u8, 191u8, + 179u8, 75u8, 121u8, 233u8, 38u8, 198u8, 217u8, 125u8, 117u8, 100u8, + 50u8, 188u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_nfts::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A `collection` was created."] + pub struct Created { + pub collection: created::Collection, + pub creator: created::Creator, + pub owner: created::Owner, + } + pub mod created { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Creator = ::subxt::utils::AccountId32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Created { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "Created"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A `collection` was force-created."] + pub struct ForceCreated { + pub collection: force_created::Collection, + pub owner: force_created::Owner, + } + pub mod force_created { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ForceCreated { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ForceCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A `collection` was destroyed."] + pub struct Destroyed { + pub collection: destroyed::Collection, + } + pub mod destroyed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Destroyed { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "Destroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` was issued."] + pub struct Issued { + pub collection: issued::Collection, + pub item: issued::Item, + pub owner: issued::Owner, + } + pub mod issued { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Issued { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "Issued"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` was transferred."] + pub struct Transferred { + pub collection: transferred::Collection, + pub item: transferred::Item, + pub from: transferred::From, + pub to: transferred::To, + } + pub mod transferred { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type From = ::subxt::utils::AccountId32; + pub type To = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Transferred { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "Transferred"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` was destroyed."] + pub struct Burned { + pub collection: burned::Collection, + pub item: burned::Item, + pub owner: burned::Owner, + } + pub mod burned { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Burned { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "Burned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` became non-transferable."] + pub struct ItemTransferLocked { + pub collection: item_transfer_locked::Collection, + pub item: item_transfer_locked::Item, + } + pub mod item_transfer_locked { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ItemTransferLocked { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemTransferLocked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` became transferable."] + pub struct ItemTransferUnlocked { + pub collection: item_transfer_unlocked::Collection, + pub item: item_transfer_unlocked::Item, + } + pub mod item_transfer_unlocked { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ItemTransferUnlocked { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemTransferUnlocked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "`item` metadata or attributes were locked."] + pub struct ItemPropertiesLocked { + pub collection: item_properties_locked::Collection, + pub item: item_properties_locked::Item, + pub lock_metadata: item_properties_locked::LockMetadata, + pub lock_attributes: item_properties_locked::LockAttributes, + } + pub mod item_properties_locked { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type LockMetadata = ::core::primitive::bool; + pub type LockAttributes = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for ItemPropertiesLocked { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemPropertiesLocked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some `collection` was locked."] + pub struct CollectionLocked { + pub collection: collection_locked::Collection, + } + pub mod collection_locked { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for CollectionLocked { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "CollectionLocked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The owner changed."] + pub struct OwnerChanged { + pub collection: owner_changed::Collection, + pub new_owner: owner_changed::NewOwner, + } + pub mod owner_changed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type NewOwner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for OwnerChanged { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "OwnerChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The management team changed."] + pub struct TeamChanged { + pub collection: team_changed::Collection, + pub issuer: team_changed::Issuer, + pub admin: team_changed::Admin, + pub freezer: team_changed::Freezer, + } + pub mod team_changed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Issuer = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Admin = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Freezer = ::core::option::Option<::subxt::utils::AccountId32>; + } + impl ::subxt::events::StaticEvent for TeamChanged { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "TeamChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` of a `collection` has been approved by the `owner` for transfer by"] + #[doc = "a `delegate`."] + pub struct TransferApproved { + pub collection: transfer_approved::Collection, + pub item: transfer_approved::Item, + pub owner: transfer_approved::Owner, + pub delegate: transfer_approved::Delegate, + pub deadline: transfer_approved::Deadline, + } + pub mod transfer_approved { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + pub type Deadline = ::core::option::Option<::core::primitive::u32>; + } + impl ::subxt::events::StaticEvent for TransferApproved { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "TransferApproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An approval for a `delegate` account to transfer the `item` of an item"] + #[doc = "`collection` was cancelled by its `owner`."] + pub struct ApprovalCancelled { + pub collection: approval_cancelled::Collection, + pub item: approval_cancelled::Item, + pub owner: approval_cancelled::Owner, + pub delegate: approval_cancelled::Delegate, + } + pub mod approval_cancelled { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + pub type Delegate = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ApprovalCancelled { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ApprovalCancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "All approvals of an item got cancelled."] + pub struct AllApprovalsCancelled { + pub collection: all_approvals_cancelled::Collection, + pub item: all_approvals_cancelled::Item, + pub owner: all_approvals_cancelled::Owner, + } + pub mod all_approvals_cancelled { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for AllApprovalsCancelled { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "AllApprovalsCancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A `collection` has had its config changed by the `Force` origin."] + pub struct CollectionConfigChanged { + pub collection: collection_config_changed::Collection, + } + pub mod collection_config_changed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for CollectionConfigChanged { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "CollectionConfigChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New metadata has been set for a `collection`."] + pub struct CollectionMetadataSet { + pub collection: collection_metadata_set::Collection, + pub data: collection_metadata_set::Data, + } + pub mod collection_metadata_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Data = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::events::StaticEvent for CollectionMetadataSet { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "CollectionMetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been cleared for a `collection`."] + pub struct CollectionMetadataCleared { + pub collection: collection_metadata_cleared::Collection, + } + pub mod collection_metadata_cleared { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for CollectionMetadataCleared { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "CollectionMetadataCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New metadata has been set for an item."] + pub struct ItemMetadataSet { + pub collection: item_metadata_set::Collection, + pub item: item_metadata_set::Item, + pub data: item_metadata_set::Data, + } + pub mod item_metadata_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Data = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::events::StaticEvent for ItemMetadataSet { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemMetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been cleared for an item."] + pub struct ItemMetadataCleared { + pub collection: item_metadata_cleared::Collection, + pub item: item_metadata_cleared::Item, + } + pub mod item_metadata_cleared { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ItemMetadataCleared { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemMetadataCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The deposit for a set of `item`s within a `collection` has been updated."] + pub struct Redeposited { + pub collection: redeposited::Collection, + pub successful_items: redeposited::SuccessfulItems, + } + pub mod redeposited { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type SuccessfulItems = ::std::vec::Vec<::core::primitive::u32>; + } + impl ::subxt::events::StaticEvent for Redeposited { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "Redeposited"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New attribute metadata has been set for a `collection` or `item`."] + pub struct AttributeSet { + pub collection: attribute_set::Collection, + pub maybe_item: attribute_set::MaybeItem, + pub key: attribute_set::Key, + pub value: attribute_set::Value, + pub namespace: attribute_set::Namespace, + } + pub mod attribute_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaybeItem = ::core::option::Option<::core::primitive::u32>; + pub type Key = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Value = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Namespace = runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >; + } + impl ::subxt::events::StaticEvent for AttributeSet { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "AttributeSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Attribute metadata has been cleared for a `collection` or `item`."] + pub struct AttributeCleared { + pub collection: attribute_cleared::Collection, + pub maybe_item: attribute_cleared::MaybeItem, + pub key: attribute_cleared::Key, + pub namespace: attribute_cleared::Namespace, + } + pub mod attribute_cleared { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaybeItem = ::core::option::Option<::core::primitive::u32>; + pub type Key = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Namespace = runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >; + } + impl ::subxt::events::StaticEvent for AttributeCleared { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "AttributeCleared"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new approval to modify item attributes was added."] + pub struct ItemAttributesApprovalAdded { + pub collection: item_attributes_approval_added::Collection, + pub item: item_attributes_approval_added::Item, + pub delegate: item_attributes_approval_added::Delegate, + } + pub mod item_attributes_approval_added { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ItemAttributesApprovalAdded { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemAttributesApprovalAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new approval to modify item attributes was removed."] + pub struct ItemAttributesApprovalRemoved { + pub collection: item_attributes_approval_removed::Collection, + pub item: item_attributes_approval_removed::Item, + pub delegate: item_attributes_approval_removed::Delegate, + } + pub mod item_attributes_approval_removed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Delegate = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ItemAttributesApprovalRemoved { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemAttributesApprovalRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Ownership acceptance has changed for an account."] + pub struct OwnershipAcceptanceChanged { + pub who: ownership_acceptance_changed::Who, + pub maybe_collection: ownership_acceptance_changed::MaybeCollection, + } + pub mod ownership_acceptance_changed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type MaybeCollection = ::core::option::Option<::core::primitive::u32>; + } + impl ::subxt::events::StaticEvent for OwnershipAcceptanceChanged { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "OwnershipAcceptanceChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Max supply has been set for a collection."] + pub struct CollectionMaxSupplySet { + pub collection: collection_max_supply_set::Collection, + pub max_supply: collection_max_supply_set::MaxSupply, + } + pub mod collection_max_supply_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type MaxSupply = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for CollectionMaxSupplySet { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "CollectionMaxSupplySet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Mint settings for a collection had changed."] + pub struct CollectionMintSettingsUpdated { + pub collection: collection_mint_settings_updated::Collection, + } + pub mod collection_mint_settings_updated { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for CollectionMintSettingsUpdated { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "CollectionMintSettingsUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Event gets emitted when the `NextCollectionId` gets incremented."] + pub struct NextCollectionIdIncremented { + pub next_id: next_collection_id_incremented::NextId, + } + pub mod next_collection_id_incremented { + use super::runtime_types; + pub type NextId = ::core::option::Option<::core::primitive::u32>; + } + impl ::subxt::events::StaticEvent for NextCollectionIdIncremented { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "NextCollectionIdIncremented"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The price was set for the item."] + pub struct ItemPriceSet { + pub collection: item_price_set::Collection, + pub item: item_price_set::Item, + pub price: item_price_set::Price, + pub whitelisted_buyer: item_price_set::WhitelistedBuyer, + } + pub mod item_price_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Price = ::core::primitive::u128; + pub type WhitelistedBuyer = ::core::option::Option<::subxt::utils::AccountId32>; + } + impl ::subxt::events::StaticEvent for ItemPriceSet { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemPriceSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The price for the item was removed."] + pub struct ItemPriceRemoved { + pub collection: item_price_removed::Collection, + pub item: item_price_removed::Item, + } + pub mod item_price_removed { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ItemPriceRemoved { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemPriceRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An item was bought."] + pub struct ItemBought { + pub collection: item_bought::Collection, + pub item: item_bought::Item, + pub price: item_bought::Price, + pub seller: item_bought::Seller, + pub buyer: item_bought::Buyer, + } + pub mod item_bought { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Price = ::core::primitive::u128; + pub type Seller = ::subxt::utils::AccountId32; + pub type Buyer = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for ItemBought { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "ItemBought"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A tip was sent."] + pub struct TipSent { + pub collection: tip_sent::Collection, + pub item: tip_sent::Item, + pub sender: tip_sent::Sender, + pub receiver: tip_sent::Receiver, + pub amount: tip_sent::Amount, + } + pub mod tip_sent { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Sender = ::subxt::utils::AccountId32; + pub type Receiver = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for TipSent { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "TipSent"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An `item` swap intent was created."] + pub struct SwapCreated { + pub offered_collection: swap_created::OfferedCollection, + pub offered_item: swap_created::OfferedItem, + pub desired_collection: swap_created::DesiredCollection, + pub desired_item: swap_created::DesiredItem, + pub price: swap_created::Price, + pub deadline: swap_created::Deadline, + } + pub mod swap_created { + use super::runtime_types; + pub type OfferedCollection = ::core::primitive::u32; + pub type OfferedItem = ::core::primitive::u32; + pub type DesiredCollection = ::core::primitive::u32; + pub type DesiredItem = ::core::option::Option<::core::primitive::u32>; + pub type Price = ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection<::core::primitive::u128>, + >; + pub type Deadline = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for SwapCreated { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "SwapCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The swap was cancelled."] + pub struct SwapCancelled { + pub offered_collection: swap_cancelled::OfferedCollection, + pub offered_item: swap_cancelled::OfferedItem, + pub desired_collection: swap_cancelled::DesiredCollection, + pub desired_item: swap_cancelled::DesiredItem, + pub price: swap_cancelled::Price, + pub deadline: swap_cancelled::Deadline, + } + pub mod swap_cancelled { + use super::runtime_types; + pub type OfferedCollection = ::core::primitive::u32; + pub type OfferedItem = ::core::primitive::u32; + pub type DesiredCollection = ::core::primitive::u32; + pub type DesiredItem = ::core::option::Option<::core::primitive::u32>; + pub type Price = ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection<::core::primitive::u128>, + >; + pub type Deadline = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for SwapCancelled { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "SwapCancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The swap has been claimed."] + pub struct SwapClaimed { + pub sent_collection: swap_claimed::SentCollection, + pub sent_item: swap_claimed::SentItem, + pub sent_item_owner: swap_claimed::SentItemOwner, + pub received_collection: swap_claimed::ReceivedCollection, + pub received_item: swap_claimed::ReceivedItem, + pub received_item_owner: swap_claimed::ReceivedItemOwner, + pub price: swap_claimed::Price, + pub deadline: swap_claimed::Deadline, + } + pub mod swap_claimed { + use super::runtime_types; + pub type SentCollection = ::core::primitive::u32; + pub type SentItem = ::core::primitive::u32; + pub type SentItemOwner = ::subxt::utils::AccountId32; + pub type ReceivedCollection = ::core::primitive::u32; + pub type ReceivedItem = ::core::primitive::u32; + pub type ReceivedItemOwner = ::subxt::utils::AccountId32; + pub type Price = ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection<::core::primitive::u128>, + >; + pub type Deadline = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for SwapClaimed { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "SwapClaimed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "New attributes have been set for an `item` of the `collection`."] + pub struct PreSignedAttributesSet { + pub collection: pre_signed_attributes_set::Collection, + pub item: pre_signed_attributes_set::Item, + pub namespace: pre_signed_attributes_set::Namespace, + } + pub mod pre_signed_attributes_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::primitive::u32; + pub type Namespace = runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >; + } + impl ::subxt::events::StaticEvent for PreSignedAttributesSet { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "PreSignedAttributesSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new attribute in the `Pallet` namespace was set for the `collection` or an `item`"] + #[doc = "within that `collection`."] + pub struct PalletAttributeSet { + pub collection: pallet_attribute_set::Collection, + pub item: pallet_attribute_set::Item, + pub attribute: pallet_attribute_set::Attribute, + pub value: pallet_attribute_set::Value, + } + pub mod pallet_attribute_set { + use super::runtime_types; + pub type Collection = ::core::primitive::u32; + pub type Item = ::core::option::Option<::core::primitive::u32>; + pub type Attribute = + runtime_types::pallet_nfts::types::PalletAttributes<::core::primitive::u32>; + pub type Value = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::events::StaticEvent for PalletAttributeSet { + const PALLET: &'static str = "Nfts"; + const EVENT: &'static str = "PalletAttributeSet"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod collection { + use super::runtime_types; + pub type Collection = runtime_types::pallet_nfts::types::CollectionDetails< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod ownership_acceptance { + use super::runtime_types; + pub type OwnershipAcceptance = ::core::primitive::u32; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod account { + use super::runtime_types; + pub type Account = (); + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::core::primitive::u32; + pub type Param2 = ::core::primitive::u32; + } + pub mod collection_account { + use super::runtime_types; + pub type CollectionAccount = (); + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::core::primitive::u32; + } + pub mod collection_role_of { + use super::runtime_types; + pub type CollectionRoleOf = runtime_types::pallet_nfts::types::BitFlags< + runtime_types::pallet_nfts::types::CollectionRole, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod item { + use super::runtime_types; + pub type Item = runtime_types::pallet_nfts::types::ItemDetails< + ::subxt::utils::AccountId32, + runtime_types::pallet_nfts::types::ItemDeposit< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >, + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + ::subxt::utils::AccountId32, + ::core::option::Option<::core::primitive::u32>, + >, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod collection_metadata_of { + use super::runtime_types; + pub type CollectionMetadataOf = + runtime_types::pallet_nfts::types::CollectionMetadata< + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod item_metadata_of { + use super::runtime_types; + pub type ItemMetadataOf = runtime_types::pallet_nfts::types::ItemMetadata< + runtime_types::pallet_nfts::types::ItemMetadataDeposit< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod attribute { + use super::runtime_types; + pub type Attribute = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + runtime_types::pallet_nfts::types::AttributeDeposit< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >, + ); + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::option::Option<::core::primitive::u32>; + pub type Param2 = runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >; + pub type Param3 = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + pub mod item_price_of { + use super::runtime_types; + pub type ItemPriceOf = ( + ::core::primitive::u128, + ::core::option::Option<::subxt::utils::AccountId32>, + ); + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod item_attributes_approvals_of { + use super::runtime_types; + pub type ItemAttributesApprovalsOf = + runtime_types::bounded_collections::bounded_btree_set::BoundedBTreeSet< + ::subxt::utils::AccountId32, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod next_collection_id { + use super::runtime_types; + pub type NextCollectionId = ::core::primitive::u32; + } + pub mod pending_swap_of { + use super::runtime_types; + pub type PendingSwapOf = runtime_types::pallet_nfts::types::PendingSwap< + ::core::primitive::u32, + ::core::primitive::u32, + runtime_types::pallet_nfts::types::PriceWithDirection< + ::core::primitive::u128, + >, + ::core::primitive::u32, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod collection_config_of { + use super::runtime_types; + pub type CollectionConfigOf = + runtime_types::pallet_nfts::types::CollectionConfig< + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod item_config_of { + use super::runtime_types; + pub type ItemConfigOf = runtime_types::pallet_nfts::types::ItemConfig; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Details of a collection."] + pub fn collection_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection::Collection, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Collection", + vec![], + [ + 77u8, 98u8, 146u8, 248u8, 253u8, 58u8, 146u8, 6u8, 25u8, 224u8, 240u8, + 252u8, 225u8, 77u8, 120u8, 255u8, 40u8, 254u8, 86u8, 118u8, 177u8, + 157u8, 252u8, 69u8, 193u8, 68u8, 128u8, 224u8, 235u8, 114u8, 213u8, + 67u8, + ], + ) + } + #[doc = " Details of a collection."] + pub fn collection( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection::Collection, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Collection", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 77u8, 98u8, 146u8, 248u8, 253u8, 58u8, 146u8, 6u8, 25u8, 224u8, 240u8, + 252u8, 225u8, 77u8, 120u8, 255u8, 40u8, 254u8, 86u8, 118u8, 177u8, + 157u8, 252u8, 69u8, 193u8, 68u8, 128u8, 224u8, 235u8, 114u8, 213u8, + 67u8, + ], + ) + } + #[doc = " The collection, if any, of which an account is willing to take ownership."] + pub fn ownership_acceptance_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::ownership_acceptance::OwnershipAcceptance, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "OwnershipAcceptance", + vec![], + [ + 237u8, 207u8, 154u8, 240u8, 36u8, 85u8, 41u8, 121u8, 183u8, 128u8, + 70u8, 97u8, 243u8, 44u8, 218u8, 70u8, 18u8, 112u8, 228u8, 231u8, 163u8, + 191u8, 100u8, 141u8, 82u8, 151u8, 19u8, 249u8, 121u8, 166u8, 73u8, + 88u8, + ], + ) + } + #[doc = " The collection, if any, of which an account is willing to take ownership."] + pub fn ownership_acceptance( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::ownership_acceptance::OwnershipAcceptance, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "OwnershipAcceptance", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 237u8, 207u8, 154u8, 240u8, 36u8, 85u8, 41u8, 121u8, 183u8, 128u8, + 70u8, 97u8, 243u8, 44u8, 218u8, 70u8, 18u8, 112u8, 228u8, 231u8, 163u8, + 191u8, 100u8, 141u8, 82u8, 151u8, 19u8, 249u8, 121u8, 166u8, 73u8, + 88u8, + ], + ) + } + #[doc = " The items held by any given account; set out this way so that items owned by a single"] + #[doc = " account can be enumerated."] + pub fn account_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Account", + vec![], + [ + 14u8, 7u8, 26u8, 228u8, 178u8, 18u8, 104u8, 126u8, 58u8, 94u8, 195u8, + 36u8, 159u8, 234u8, 114u8, 215u8, 5u8, 41u8, 102u8, 80u8, 158u8, 4u8, + 222u8, 230u8, 240u8, 246u8, 147u8, 133u8, 173u8, 150u8, 119u8, 57u8, + ], + ) + } + #[doc = " The items held by any given account; set out this way so that items owned by a single"] + #[doc = " account can be enumerated."] + pub fn account_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Account", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 14u8, 7u8, 26u8, 228u8, 178u8, 18u8, 104u8, 126u8, 58u8, 94u8, 195u8, + 36u8, 159u8, 234u8, 114u8, 215u8, 5u8, 41u8, 102u8, 80u8, 158u8, 4u8, + 222u8, 230u8, 240u8, 246u8, 147u8, 133u8, 173u8, 150u8, 119u8, 57u8, + ], + ) + } + #[doc = " The items held by any given account; set out this way so that items owned by a single"] + #[doc = " account can be enumerated."] + pub fn account_iter2( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Account", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 14u8, 7u8, 26u8, 228u8, 178u8, 18u8, 104u8, 126u8, 58u8, 94u8, 195u8, + 36u8, 159u8, 234u8, 114u8, 215u8, 5u8, 41u8, 102u8, 80u8, 158u8, 4u8, + 222u8, 230u8, 240u8, 246u8, 147u8, 133u8, 173u8, 150u8, 119u8, 57u8, + ], + ) + } + #[doc = " The items held by any given account; set out this way so that items owned by a single"] + #[doc = " account can be enumerated."] + pub fn account( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + _2: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::account::Account, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Account", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), + ], + [ + 14u8, 7u8, 26u8, 228u8, 178u8, 18u8, 104u8, 126u8, 58u8, 94u8, 195u8, + 36u8, 159u8, 234u8, 114u8, 215u8, 5u8, 41u8, 102u8, 80u8, 158u8, 4u8, + 222u8, 230u8, 240u8, 246u8, 147u8, 133u8, 173u8, 150u8, 119u8, 57u8, + ], + ) + } + #[doc = " The collections owned by any given account; set out this way so that collections owned by"] + #[doc = " a single account can be enumerated."] + pub fn collection_account_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_account::CollectionAccount, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionAccount", + vec![], + [ + 166u8, 11u8, 16u8, 99u8, 38u8, 50u8, 172u8, 44u8, 155u8, 246u8, 179u8, + 110u8, 140u8, 107u8, 126u8, 44u8, 70u8, 92u8, 44u8, 144u8, 65u8, 82u8, + 147u8, 141u8, 222u8, 57u8, 214u8, 29u8, 37u8, 251u8, 184u8, 201u8, + ], + ) + } + #[doc = " The collections owned by any given account; set out this way so that collections owned by"] + #[doc = " a single account can be enumerated."] + pub fn collection_account_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_account::CollectionAccount, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionAccount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 166u8, 11u8, 16u8, 99u8, 38u8, 50u8, 172u8, 44u8, 155u8, 246u8, 179u8, + 110u8, 140u8, 107u8, 126u8, 44u8, 70u8, 92u8, 44u8, 144u8, 65u8, 82u8, + 147u8, 141u8, 222u8, 57u8, 214u8, 29u8, 37u8, 251u8, 184u8, 201u8, + ], + ) + } + #[doc = " The collections owned by any given account; set out this way so that collections owned by"] + #[doc = " a single account can be enumerated."] + pub fn collection_account( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_account::CollectionAccount, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionAccount", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 166u8, 11u8, 16u8, 99u8, 38u8, 50u8, 172u8, 44u8, 155u8, 246u8, 179u8, + 110u8, 140u8, 107u8, 126u8, 44u8, 70u8, 92u8, 44u8, 144u8, 65u8, 82u8, + 147u8, 141u8, 222u8, 57u8, 214u8, 29u8, 37u8, 251u8, 184u8, 201u8, + ], + ) + } + #[doc = " The items in existence and their ownership details."] + #[doc = " Stores collection roles as per account."] + pub fn collection_role_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_role_of::CollectionRoleOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionRoleOf", + vec![], + [ + 196u8, 136u8, 178u8, 164u8, 97u8, 60u8, 131u8, 201u8, 200u8, 95u8, + 102u8, 166u8, 1u8, 103u8, 89u8, 172u8, 36u8, 156u8, 198u8, 3u8, 49u8, + 12u8, 255u8, 70u8, 103u8, 132u8, 36u8, 160u8, 69u8, 71u8, 68u8, 62u8, + ], + ) + } + #[doc = " The items in existence and their ownership details."] + #[doc = " Stores collection roles as per account."] + pub fn collection_role_of_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_role_of::CollectionRoleOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionRoleOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 196u8, 136u8, 178u8, 164u8, 97u8, 60u8, 131u8, 201u8, 200u8, 95u8, + 102u8, 166u8, 1u8, 103u8, 89u8, 172u8, 36u8, 156u8, 198u8, 3u8, 49u8, + 12u8, 255u8, 70u8, 103u8, 132u8, 36u8, 160u8, 69u8, 71u8, 68u8, 62u8, + ], + ) + } + #[doc = " The items in existence and their ownership details."] + #[doc = " Stores collection roles as per account."] + pub fn collection_role_of( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_role_of::CollectionRoleOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionRoleOf", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 196u8, 136u8, 178u8, 164u8, 97u8, 60u8, 131u8, 201u8, 200u8, 95u8, + 102u8, 166u8, 1u8, 103u8, 89u8, 172u8, 36u8, 156u8, 198u8, 3u8, 49u8, + 12u8, 255u8, 70u8, 103u8, 132u8, 36u8, 160u8, 69u8, 71u8, 68u8, 62u8, + ], + ) + } + #[doc = " The items in existence and their ownership details."] + pub fn item_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item::Item, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Item", + vec![], + [ + 99u8, 244u8, 149u8, 176u8, 206u8, 43u8, 183u8, 168u8, 199u8, 219u8, + 130u8, 222u8, 243u8, 253u8, 114u8, 25u8, 4u8, 43u8, 239u8, 125u8, + 249u8, 217u8, 238u8, 31u8, 216u8, 191u8, 92u8, 39u8, 37u8, 36u8, 247u8, + 93u8, + ], + ) + } + #[doc = " The items in existence and their ownership details."] + pub fn item_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item::Item, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Item", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 99u8, 244u8, 149u8, 176u8, 206u8, 43u8, 183u8, 168u8, 199u8, 219u8, + 130u8, 222u8, 243u8, 253u8, 114u8, 25u8, 4u8, 43u8, 239u8, 125u8, + 249u8, 217u8, 238u8, 31u8, 216u8, 191u8, 92u8, 39u8, 37u8, 36u8, 247u8, + 93u8, + ], + ) + } + #[doc = " The items in existence and their ownership details."] + pub fn item( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item::Item, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Item", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 99u8, 244u8, 149u8, 176u8, 206u8, 43u8, 183u8, 168u8, 199u8, 219u8, + 130u8, 222u8, 243u8, 253u8, 114u8, 25u8, 4u8, 43u8, 239u8, 125u8, + 249u8, 217u8, 238u8, 31u8, 216u8, 191u8, 92u8, 39u8, 37u8, 36u8, 247u8, + 93u8, + ], + ) + } + #[doc = " Metadata of a collection."] + pub fn collection_metadata_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_metadata_of::CollectionMetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionMetadataOf", + vec![], + [ + 149u8, 145u8, 6u8, 30u8, 59u8, 142u8, 234u8, 85u8, 15u8, 182u8, 235u8, + 250u8, 113u8, 115u8, 210u8, 159u8, 27u8, 118u8, 156u8, 82u8, 33u8, + 72u8, 42u8, 207u8, 155u8, 55u8, 150u8, 110u8, 80u8, 62u8, 172u8, 136u8, + ], + ) + } + #[doc = " Metadata of a collection."] + pub fn collection_metadata_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_metadata_of::CollectionMetadataOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionMetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 149u8, 145u8, 6u8, 30u8, 59u8, 142u8, 234u8, 85u8, 15u8, 182u8, 235u8, + 250u8, 113u8, 115u8, 210u8, 159u8, 27u8, 118u8, 156u8, 82u8, 33u8, + 72u8, 42u8, 207u8, 155u8, 55u8, 150u8, 110u8, 80u8, 62u8, 172u8, 136u8, + ], + ) + } + #[doc = " Metadata of an item."] + pub fn item_metadata_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_metadata_of::ItemMetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemMetadataOf", + vec![], + [ + 237u8, 150u8, 18u8, 247u8, 67u8, 255u8, 73u8, 222u8, 98u8, 30u8, 161u8, + 74u8, 176u8, 238u8, 74u8, 71u8, 169u8, 211u8, 180u8, 78u8, 216u8, + 111u8, 43u8, 103u8, 217u8, 87u8, 109u8, 27u8, 223u8, 119u8, 153u8, + 57u8, + ], + ) + } + #[doc = " Metadata of an item."] + pub fn item_metadata_of_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_metadata_of::ItemMetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemMetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 237u8, 150u8, 18u8, 247u8, 67u8, 255u8, 73u8, 222u8, 98u8, 30u8, 161u8, + 74u8, 176u8, 238u8, 74u8, 71u8, 169u8, 211u8, 180u8, 78u8, 216u8, + 111u8, 43u8, 103u8, 217u8, 87u8, 109u8, 27u8, 223u8, 119u8, 153u8, + 57u8, + ], + ) + } + #[doc = " Metadata of an item."] + pub fn item_metadata_of( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_metadata_of::ItemMetadataOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemMetadataOf", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 237u8, 150u8, 18u8, 247u8, 67u8, 255u8, 73u8, 222u8, 98u8, 30u8, 161u8, + 74u8, 176u8, 238u8, 74u8, 71u8, 169u8, 211u8, 180u8, 78u8, 216u8, + 111u8, 43u8, 103u8, 217u8, 87u8, 109u8, 27u8, 223u8, 119u8, 153u8, + 57u8, + ], + ) + } + #[doc = " Attributes of a collection."] + pub fn attribute_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::attribute::Attribute, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Attribute", + vec![], + [ + 139u8, 163u8, 15u8, 123u8, 222u8, 232u8, 187u8, 100u8, 238u8, 120u8, + 155u8, 174u8, 223u8, 21u8, 231u8, 150u8, 27u8, 9u8, 195u8, 53u8, 212u8, + 250u8, 55u8, 98u8, 2u8, 106u8, 239u8, 113u8, 6u8, 200u8, 134u8, 122u8, + ], + ) + } + #[doc = " Attributes of a collection."] + pub fn attribute_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::attribute::Attribute, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Attribute", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 139u8, 163u8, 15u8, 123u8, 222u8, 232u8, 187u8, 100u8, 238u8, 120u8, + 155u8, 174u8, 223u8, 21u8, 231u8, 150u8, 27u8, 9u8, 195u8, 53u8, 212u8, + 250u8, 55u8, 98u8, 2u8, 106u8, 239u8, 113u8, 6u8, 200u8, 134u8, 122u8, + ], + ) + } + #[doc = " Attributes of a collection."] + pub fn attribute_iter2( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::attribute::Attribute, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Attribute", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 139u8, 163u8, 15u8, 123u8, 222u8, 232u8, 187u8, 100u8, 238u8, 120u8, + 155u8, 174u8, 223u8, 21u8, 231u8, 150u8, 27u8, 9u8, 195u8, 53u8, 212u8, + 250u8, 55u8, 98u8, 2u8, 106u8, 239u8, 113u8, 6u8, 200u8, 134u8, 122u8, + ], + ) + } + #[doc = " Attributes of a collection."] + pub fn attribute_iter3( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + _2: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::attribute::Attribute, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Attribute", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), + ], + [ + 139u8, 163u8, 15u8, 123u8, 222u8, 232u8, 187u8, 100u8, 238u8, 120u8, + 155u8, 174u8, 223u8, 21u8, 231u8, 150u8, 27u8, 9u8, 195u8, 53u8, 212u8, + 250u8, 55u8, 98u8, 2u8, 106u8, 239u8, 113u8, 6u8, 200u8, 134u8, 122u8, + ], + ) + } + #[doc = " Attributes of a collection."] + pub fn attribute( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + _2: impl ::std::borrow::Borrow, + _3: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::attribute::Attribute, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "Attribute", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_3.borrow()), + ], + [ + 139u8, 163u8, 15u8, 123u8, 222u8, 232u8, 187u8, 100u8, 238u8, 120u8, + 155u8, 174u8, 223u8, 21u8, 231u8, 150u8, 27u8, 9u8, 195u8, 53u8, 212u8, + 250u8, 55u8, 98u8, 2u8, 106u8, 239u8, 113u8, 6u8, 200u8, 134u8, 122u8, + ], + ) + } + #[doc = " A price of an item."] + pub fn item_price_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_price_of::ItemPriceOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemPriceOf", + vec![], + [ + 223u8, 159u8, 126u8, 197u8, 217u8, 54u8, 235u8, 100u8, 150u8, 42u8, + 140u8, 47u8, 79u8, 225u8, 109u8, 145u8, 58u8, 58u8, 45u8, 120u8, 162u8, + 68u8, 37u8, 218u8, 15u8, 220u8, 211u8, 199u8, 177u8, 153u8, 148u8, + 202u8, + ], + ) + } + #[doc = " A price of an item."] + pub fn item_price_of_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_price_of::ItemPriceOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemPriceOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 223u8, 159u8, 126u8, 197u8, 217u8, 54u8, 235u8, 100u8, 150u8, 42u8, + 140u8, 47u8, 79u8, 225u8, 109u8, 145u8, 58u8, 58u8, 45u8, 120u8, 162u8, + 68u8, 37u8, 218u8, 15u8, 220u8, 211u8, 199u8, 177u8, 153u8, 148u8, + 202u8, + ], + ) + } + #[doc = " A price of an item."] + pub fn item_price_of( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_price_of::ItemPriceOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemPriceOf", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 223u8, 159u8, 126u8, 197u8, 217u8, 54u8, 235u8, 100u8, 150u8, 42u8, + 140u8, 47u8, 79u8, 225u8, 109u8, 145u8, 58u8, 58u8, 45u8, 120u8, 162u8, + 68u8, 37u8, 218u8, 15u8, 220u8, 211u8, 199u8, 177u8, 153u8, 148u8, + 202u8, + ], + ) + } + #[doc = " Item attribute approvals."] + pub fn item_attributes_approvals_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_attributes_approvals_of::ItemAttributesApprovalsOf, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemAttributesApprovalsOf", + vec![], + [ + 17u8, 174u8, 209u8, 154u8, 101u8, 62u8, 41u8, 54u8, 182u8, 79u8, 21u8, + 212u8, 15u8, 168u8, 16u8, 19u8, 215u8, 44u8, 81u8, 121u8, 169u8, 72u8, + 238u8, 224u8, 93u8, 43u8, 28u8, 161u8, 230u8, 46u8, 82u8, 199u8, + ], + ) + } + #[doc = " Item attribute approvals."] + pub fn item_attributes_approvals_of_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_attributes_approvals_of::ItemAttributesApprovalsOf, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemAttributesApprovalsOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 17u8, 174u8, 209u8, 154u8, 101u8, 62u8, 41u8, 54u8, 182u8, 79u8, 21u8, + 212u8, 15u8, 168u8, 16u8, 19u8, 215u8, 44u8, 81u8, 121u8, 169u8, 72u8, + 238u8, 224u8, 93u8, 43u8, 28u8, 161u8, 230u8, 46u8, 82u8, 199u8, + ], + ) + } + #[doc = " Item attribute approvals."] + pub fn item_attributes_approvals_of( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_attributes_approvals_of::ItemAttributesApprovalsOf, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemAttributesApprovalsOf", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 17u8, 174u8, 209u8, 154u8, 101u8, 62u8, 41u8, 54u8, 182u8, 79u8, 21u8, + 212u8, 15u8, 168u8, 16u8, 19u8, 215u8, 44u8, 81u8, 121u8, 169u8, 72u8, + 238u8, 224u8, 93u8, 43u8, 28u8, 161u8, 230u8, 46u8, 82u8, 199u8, + ], + ) + } + #[doc = " Stores the `CollectionId` that is going to be used for the next collection."] + #[doc = " This gets incremented whenever a new collection is created."] + pub fn next_collection_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_collection_id::NextCollectionId, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "NextCollectionId", + vec![], + [ + 250u8, 253u8, 234u8, 130u8, 48u8, 23u8, 131u8, 7u8, 56u8, 242u8, 100u8, + 158u8, 238u8, 130u8, 164u8, 55u8, 231u8, 114u8, 227u8, 168u8, 8u8, + 166u8, 157u8, 216u8, 245u8, 132u8, 225u8, 60u8, 205u8, 2u8, 60u8, + 243u8, + ], + ) + } + #[doc = " Handles all the pending swaps."] + pub fn pending_swap_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pending_swap_of::PendingSwapOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "PendingSwapOf", + vec![], + [ + 206u8, 184u8, 244u8, 105u8, 59u8, 91u8, 187u8, 76u8, 230u8, 150u8, + 180u8, 171u8, 208u8, 255u8, 129u8, 79u8, 151u8, 4u8, 165u8, 242u8, + 62u8, 75u8, 52u8, 27u8, 28u8, 2u8, 108u8, 198u8, 253u8, 132u8, 197u8, + 241u8, + ], + ) + } + #[doc = " Handles all the pending swaps."] + pub fn pending_swap_of_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pending_swap_of::PendingSwapOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "PendingSwapOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 206u8, 184u8, 244u8, 105u8, 59u8, 91u8, 187u8, 76u8, 230u8, 150u8, + 180u8, 171u8, 208u8, 255u8, 129u8, 79u8, 151u8, 4u8, 165u8, 242u8, + 62u8, 75u8, 52u8, 27u8, 28u8, 2u8, 108u8, 198u8, 253u8, 132u8, 197u8, + 241u8, + ], + ) + } + #[doc = " Handles all the pending swaps."] + pub fn pending_swap_of( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pending_swap_of::PendingSwapOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "PendingSwapOf", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 206u8, 184u8, 244u8, 105u8, 59u8, 91u8, 187u8, 76u8, 230u8, 150u8, + 180u8, 171u8, 208u8, 255u8, 129u8, 79u8, 151u8, 4u8, 165u8, 242u8, + 62u8, 75u8, 52u8, 27u8, 28u8, 2u8, 108u8, 198u8, 253u8, 132u8, 197u8, + 241u8, + ], + ) + } + #[doc = " Config of a collection."] + pub fn collection_config_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_config_of::CollectionConfigOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionConfigOf", + vec![], + [ + 24u8, 155u8, 16u8, 107u8, 162u8, 32u8, 140u8, 217u8, 82u8, 127u8, + 110u8, 167u8, 166u8, 205u8, 0u8, 193u8, 47u8, 206u8, 43u8, 35u8, 173u8, + 133u8, 232u8, 48u8, 83u8, 5u8, 178u8, 182u8, 187u8, 51u8, 147u8, 82u8, + ], + ) + } + #[doc = " Config of a collection."] + pub fn collection_config_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::collection_config_of::CollectionConfigOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "CollectionConfigOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 24u8, 155u8, 16u8, 107u8, 162u8, 32u8, 140u8, 217u8, 82u8, 127u8, + 110u8, 167u8, 166u8, 205u8, 0u8, 193u8, 47u8, 206u8, 43u8, 35u8, 173u8, + 133u8, 232u8, 48u8, 83u8, 5u8, 178u8, 182u8, 187u8, 51u8, 147u8, 82u8, + ], + ) + } + #[doc = " Config of an item."] + pub fn item_config_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_config_of::ItemConfigOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemConfigOf", + vec![], + [ + 10u8, 211u8, 77u8, 94u8, 235u8, 64u8, 199u8, 97u8, 253u8, 71u8, 122u8, + 212u8, 83u8, 226u8, 110u8, 1u8, 139u8, 166u8, 24u8, 15u8, 220u8, 171u8, + 53u8, 80u8, 166u8, 110u8, 209u8, 232u8, 221u8, 122u8, 88u8, 159u8, + ], + ) + } + #[doc = " Config of an item."] + pub fn item_config_of_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_config_of::ItemConfigOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemConfigOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 10u8, 211u8, 77u8, 94u8, 235u8, 64u8, 199u8, 97u8, 253u8, 71u8, 122u8, + 212u8, 83u8, 226u8, 110u8, 1u8, 139u8, 166u8, 24u8, 15u8, 220u8, 171u8, + 53u8, 80u8, 166u8, 110u8, 209u8, 232u8, 221u8, 122u8, 88u8, 159u8, + ], + ) + } + #[doc = " Config of an item."] + pub fn item_config_of( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::item_config_of::ItemConfigOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Nfts", + "ItemConfigOf", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 10u8, 211u8, 77u8, 94u8, 235u8, 64u8, 199u8, 97u8, 253u8, 71u8, 122u8, + 212u8, 83u8, 226u8, 110u8, 1u8, 139u8, 166u8, 24u8, 15u8, 220u8, 171u8, + 53u8, 80u8, 166u8, 110u8, 209u8, 232u8, 221u8, 122u8, 88u8, 159u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The basic amount of funds that must be reserved for collection."] + pub fn collection_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Nfts", + "CollectionDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved for an item."] + pub fn item_deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Nfts", + "ItemDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved when adding metadata to your item."] + pub fn metadata_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Nfts", + "MetadataDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The basic amount of funds that must be reserved when adding an attribute to an item."] + pub fn attribute_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Nfts", + "AttributeDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The additional funds that must be reserved for the number of bytes store in metadata,"] + #[doc = " either \"normal\" metadata or attribute metadata."] + pub fn deposit_per_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Nfts", + "DepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum length of data stored on-chain."] + pub fn string_limit(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Nfts", + "StringLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum length of an attribute key."] + pub fn key_limit(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Nfts", + "KeyLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum length of an attribute value."] + pub fn value_limit(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Nfts", + "ValueLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum approvals an item could have."] + pub fn approvals_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Nfts", + "ApprovalsLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum attributes approvals an item could have."] + pub fn item_attributes_approvals_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Nfts", + "ItemAttributesApprovalsLimit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The max number of tips a user could send."] + pub fn max_tips(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Nfts", + "MaxTips", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The max duration in blocks for deadlines."] + pub fn max_deadline_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Nfts", + "MaxDeadlineDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The max number of attributes a user could set per call."] + pub fn max_attributes_per_call( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Nfts", + "MaxAttributesPerCall", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Disables some of pallet's features."] + pub fn features( + &self, + ) -> ::subxt::constants::Address< + runtime_types::pallet_nfts::types::BitFlags< + runtime_types::pallet_nfts::types::PalletFeature, + >, + > { + ::subxt::constants::Address::new_static( + "Nfts", + "Features", + [ + 184u8, 78u8, 161u8, 6u8, 214u8, 205u8, 82u8, 205u8, 126u8, 46u8, 7u8, + 198u8, 186u8, 10u8, 66u8, 116u8, 191u8, 223u8, 17u8, 246u8, 196u8, + 190u8, 222u8, 226u8, 62u8, 35u8, 191u8, 127u8, 60u8, 171u8, 85u8, + 201u8, + ], + ) + } + } + } + } + pub mod nft_fractionalization { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_nft_fractionalization::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_nft_fractionalization::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::fractionalize`]."] + pub struct Fractionalize { + pub nft_collection_id: fractionalize::NftCollectionId, + pub nft_id: fractionalize::NftId, + pub asset_id: fractionalize::AssetId, + pub beneficiary: fractionalize::Beneficiary, + pub fractions: fractionalize::Fractions, + } + pub mod fractionalize { + use super::runtime_types; + pub type NftCollectionId = ::core::primitive::u32; + pub type NftId = ::core::primitive::u32; + pub type AssetId = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Fractions = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Fractionalize { + const PALLET: &'static str = "NftFractionalization"; + const CALL: &'static str = "fractionalize"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::unify`]."] + pub struct Unify { + pub nft_collection_id: unify::NftCollectionId, + pub nft_id: unify::NftId, + pub asset_id: unify::AssetId, + pub beneficiary: unify::Beneficiary, + } + pub mod unify { + use super::runtime_types; + pub type NftCollectionId = ::core::primitive::u32; + pub type NftId = ::core::primitive::u32; + pub type AssetId = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Unify { + const PALLET: &'static str = "NftFractionalization"; + const CALL: &'static str = "unify"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::fractionalize`]."] + pub fn fractionalize( + &self, + nft_collection_id: types::fractionalize::NftCollectionId, + nft_id: types::fractionalize::NftId, + asset_id: types::fractionalize::AssetId, + beneficiary: types::fractionalize::Beneficiary, + fractions: types::fractionalize::Fractions, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NftFractionalization", + "fractionalize", + types::Fractionalize { + nft_collection_id, + nft_id, + asset_id, + beneficiary, + fractions, + }, + [ + 179u8, 152u8, 55u8, 204u8, 250u8, 192u8, 196u8, 23u8, 108u8, 121u8, + 118u8, 249u8, 95u8, 253u8, 55u8, 209u8, 204u8, 126u8, 208u8, 182u8, + 128u8, 184u8, 111u8, 67u8, 0u8, 19u8, 82u8, 140u8, 201u8, 43u8, 118u8, + 110u8, + ], + ) + } + #[doc = "See [`Pallet::unify`]."] + pub fn unify( + &self, + nft_collection_id: types::unify::NftCollectionId, + nft_id: types::unify::NftId, + asset_id: types::unify::AssetId, + beneficiary: types::unify::Beneficiary, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NftFractionalization", + "unify", + types::Unify { + nft_collection_id, + nft_id, + asset_id, + beneficiary, + }, + [ + 20u8, 90u8, 20u8, 113u8, 53u8, 134u8, 17u8, 246u8, 98u8, 184u8, 51u8, + 6u8, 199u8, 28u8, 194u8, 87u8, 187u8, 128u8, 123u8, 51u8, 154u8, 144u8, + 241u8, 198u8, 149u8, 67u8, 27u8, 113u8, 252u8, 137u8, 163u8, 123u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_nft_fractionalization::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An NFT was successfully fractionalized."] + pub struct NftFractionalized { + pub nft_collection: nft_fractionalized::NftCollection, + pub nft: nft_fractionalized::Nft, + pub fractions: nft_fractionalized::Fractions, + pub asset: nft_fractionalized::Asset, + pub beneficiary: nft_fractionalized::Beneficiary, + } + pub mod nft_fractionalized { + use super::runtime_types; + pub type NftCollection = ::core::primitive::u32; + pub type Nft = ::core::primitive::u32; + pub type Fractions = ::core::primitive::u128; + pub type Asset = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for NftFractionalized { + const PALLET: &'static str = "NftFractionalization"; + const EVENT: &'static str = "NftFractionalized"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An NFT was successfully returned back."] + pub struct NftUnified { + pub nft_collection: nft_unified::NftCollection, + pub nft: nft_unified::Nft, + pub asset: nft_unified::Asset, + pub beneficiary: nft_unified::Beneficiary, + } + pub mod nft_unified { + use super::runtime_types; + pub type NftCollection = ::core::primitive::u32; + pub type Nft = ::core::primitive::u32; + pub type Asset = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for NftUnified { + const PALLET: &'static str = "NftFractionalization"; + const EVENT: &'static str = "NftUnified"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod nft_to_asset { + use super::runtime_types; + pub type NftToAsset = + runtime_types::pallet_nft_fractionalization::types::Details< + ::core::primitive::u32, + ::core::primitive::u128, + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Keeps track of the corresponding NFT ID, asset ID and amount minted."] + pub fn nft_to_asset_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nft_to_asset::NftToAsset, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NftFractionalization", + "NftToAsset", + vec![], + [ + 114u8, 123u8, 55u8, 38u8, 174u8, 201u8, 222u8, 168u8, 60u8, 178u8, + 244u8, 10u8, 198u8, 172u8, 75u8, 232u8, 186u8, 36u8, 152u8, 174u8, + 227u8, 128u8, 243u8, 3u8, 211u8, 22u8, 59u8, 159u8, 225u8, 37u8, 0u8, + 203u8, + ], + ) + } + #[doc = " Keeps track of the corresponding NFT ID, asset ID and amount minted."] + pub fn nft_to_asset_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nft_to_asset::NftToAsset, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NftFractionalization", + "NftToAsset", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 114u8, 123u8, 55u8, 38u8, 174u8, 201u8, 222u8, 168u8, 60u8, 178u8, + 244u8, 10u8, 198u8, 172u8, 75u8, 232u8, 186u8, 36u8, 152u8, 174u8, + 227u8, 128u8, 243u8, 3u8, 211u8, 22u8, 59u8, 159u8, 225u8, 37u8, 0u8, + 203u8, + ], + ) + } + #[doc = " Keeps track of the corresponding NFT ID, asset ID and amount minted."] + pub fn nft_to_asset( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::nft_to_asset::NftToAsset, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NftFractionalization", + "NftToAsset", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 114u8, 123u8, 55u8, 38u8, 174u8, 201u8, 222u8, 168u8, 60u8, 178u8, + 244u8, 10u8, 198u8, 172u8, 75u8, 232u8, 186u8, 36u8, 152u8, 174u8, + 227u8, 128u8, 243u8, 3u8, 211u8, 22u8, 59u8, 159u8, 225u8, 37u8, 0u8, + 203u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The deposit paid by the user locking an NFT. The deposit is returned to the original NFT"] + #[doc = " owner when the asset is unified and the NFT is unlocked."] + pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "NftFractionalization", + "Deposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The pallet's id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { ::subxt::constants::Address::new_static( - "Crowdloan", + "NftFractionalization", "PalletId", [ 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, @@ -37032,28 +47660,47 @@ pub mod api { ], ) } - #[doc = " The minimum amount that may be contributed into a crowdloan. Should almost certainly be"] - #[doc = " at least `ExistentialDeposit`."] - pub fn min_contribution( + #[doc = " The newly created asset's symbol."] + pub fn new_asset_symbol( &self, - ) -> ::subxt::constants::Address<::core::primitive::u128> { + ) -> ::subxt::constants::Address< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + > { ::subxt::constants::Address::new_static( - "Crowdloan", - "MinContribution", + "NftFractionalization", + "NewAssetSymbol", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + 111u8, 193u8, 190u8, 101u8, 134u8, 90u8, 189u8, 162u8, 149u8, 131u8, + 26u8, 156u8, 242u8, 7u8, 95u8, 140u8, 189u8, 46u8, 231u8, 178u8, 140u8, + 33u8, 222u8, 55u8, 229u8, 12u8, 32u8, 142u8, 69u8, 195u8, 205u8, 193u8, ], ) } - #[doc = " Max number of storage keys to remove per extrinsic call."] - pub fn remove_keys_limit( + #[doc = " The newly created asset's name."] + pub fn new_asset_name( &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + ) -> ::subxt::constants::Address< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + > { ::subxt::constants::Address::new_static( - "Crowdloan", - "RemoveKeysLimit", + "NftFractionalization", + "NewAssetName", + [ + 111u8, 193u8, 190u8, 101u8, 134u8, 90u8, 189u8, 162u8, 149u8, 131u8, + 26u8, 156u8, 242u8, 7u8, 95u8, 140u8, 189u8, 46u8, 231u8, 178u8, 140u8, + 33u8, 222u8, 55u8, 229u8, 12u8, 32u8, 142u8, 69u8, 195u8, 205u8, 193u8, + ], + ) + } + #[doc = " The maximum length of a name or symbol stored on-chain."] + pub fn string_limit(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "NftFractionalization", + "StringLimit", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -37065,13 +47712,13 @@ pub mod api { } } } - pub mod xcm_pallet { + pub mod salary { use super::root_mod; use super::runtime_types; #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::pallet_xcm::pallet::Error; + pub type Error = runtime_types::pallet_salary::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_xcm::pallet::Call; + pub type Call = runtime_types::pallet_salary::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -37088,19 +47735,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::send`]."] - pub struct Send { - pub dest: ::std::boxed::Box, - pub message: ::std::boxed::Box, - } - pub mod send { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Message = runtime_types::xcm::VersionedXcm; - } - impl ::subxt::blocks::StaticExtrinsic for Send { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "send"; + #[doc = "See [`Pallet::init`]."] + pub struct Init; + impl ::subxt::blocks::StaticExtrinsic for Init { + const PALLET: &'static str = "Salary"; + const CALL: &'static str = "init"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37112,23 +47751,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::teleport_assets`]."] - pub struct TeleportAssets { - pub dest: ::std::boxed::Box, - pub beneficiary: ::std::boxed::Box, - pub assets: ::std::boxed::Box, - pub fee_asset_item: teleport_assets::FeeAssetItem, - } - pub mod teleport_assets { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - pub type FeeAssetItem = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for TeleportAssets { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "teleport_assets"; + #[doc = "See [`Pallet::bump`]."] + pub struct Bump; + impl ::subxt::blocks::StaticExtrinsic for Bump { + const PALLET: &'static str = "Salary"; + const CALL: &'static str = "bump"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37140,23 +47767,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::reserve_transfer_assets`]."] - pub struct ReserveTransferAssets { - pub dest: ::std::boxed::Box, - pub beneficiary: ::std::boxed::Box, - pub assets: ::std::boxed::Box, - pub fee_asset_item: reserve_transfer_assets::FeeAssetItem, - } - pub mod reserve_transfer_assets { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - pub type FeeAssetItem = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ReserveTransferAssets { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "reserve_transfer_assets"; + #[doc = "See [`Pallet::induct`]."] + pub struct Induct; + impl ::subxt::blocks::StaticExtrinsic for Induct { + const PALLET: &'static str = "Salary"; + const CALL: &'static str = "induct"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37168,19 +47783,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::execute`]."] - pub struct Execute { - pub message: ::std::boxed::Box, - pub max_weight: execute::MaxWeight, - } - pub mod execute { - use super::runtime_types; - pub type Message = runtime_types::xcm::VersionedXcm2; - pub type MaxWeight = runtime_types::sp_weights::weight_v2::Weight; - } - impl ::subxt::blocks::StaticExtrinsic for Execute { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "execute"; + #[doc = "See [`Pallet::register`]."] + pub struct Register; + impl ::subxt::blocks::StaticExtrinsic for Register { + const PALLET: &'static str = "Salary"; + const CALL: &'static str = "register"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37192,20 +47799,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_xcm_version`]."] - pub struct ForceXcmVersion { - pub location: ::std::boxed::Box, - pub version: force_xcm_version::Version, - } - pub mod force_xcm_version { - use super::runtime_types; - pub type Location = - runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Version = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for ForceXcmVersion { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "force_xcm_version"; + #[doc = "See [`Pallet::payout`]."] + pub struct Payout; + impl ::subxt::blocks::StaticExtrinsic for Payout { + const PALLET: &'static str = "Salary"; + const CALL: &'static str = "payout"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37217,17 +47815,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_default_xcm_version`]."] - pub struct ForceDefaultXcmVersion { - pub maybe_xcm_version: force_default_xcm_version::MaybeXcmVersion, + #[doc = "See [`Pallet::payout_other`]."] + pub struct PayoutOther { + pub beneficiary: payout_other::Beneficiary, } - pub mod force_default_xcm_version { + pub mod payout_other { use super::runtime_types; - pub type MaybeXcmVersion = ::core::option::Option<::core::primitive::u32>; + pub type Beneficiary = ::subxt::utils::AccountId32; } - impl ::subxt::blocks::StaticExtrinsic for ForceDefaultXcmVersion { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "force_default_xcm_version"; + impl ::subxt::blocks::StaticExtrinsic for PayoutOther { + const PALLET: &'static str = "Salary"; + const CALL: &'static str = "payout_other"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37239,362 +47837,116 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_subscribe_version_notify`]."] - pub struct ForceSubscribeVersionNotify { - pub location: ::std::boxed::Box, - } - pub mod force_subscribe_version_notify { - use super::runtime_types; - pub type Location = runtime_types::xcm::VersionedMultiLocation; - } - impl ::subxt::blocks::StaticExtrinsic for ForceSubscribeVersionNotify { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "force_subscribe_version_notify"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] - pub struct ForceUnsubscribeVersionNotify { - pub location: ::std::boxed::Box, - } - pub mod force_unsubscribe_version_notify { - use super::runtime_types; - pub type Location = runtime_types::xcm::VersionedMultiLocation; - } - impl ::subxt::blocks::StaticExtrinsic for ForceUnsubscribeVersionNotify { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "force_unsubscribe_version_notify"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."] - pub struct LimitedReserveTransferAssets { - pub dest: ::std::boxed::Box, - pub beneficiary: - ::std::boxed::Box, - pub assets: ::std::boxed::Box, - pub fee_asset_item: limited_reserve_transfer_assets::FeeAssetItem, - pub weight_limit: limited_reserve_transfer_assets::WeightLimit, - } - pub mod limited_reserve_transfer_assets { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - pub type FeeAssetItem = ::core::primitive::u32; - pub type WeightLimit = runtime_types::xcm::v3::WeightLimit; - } - impl ::subxt::blocks::StaticExtrinsic for LimitedReserveTransferAssets { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "limited_reserve_transfer_assets"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::limited_teleport_assets`]."] - pub struct LimitedTeleportAssets { - pub dest: ::std::boxed::Box, - pub beneficiary: ::std::boxed::Box, - pub assets: ::std::boxed::Box, - pub fee_asset_item: limited_teleport_assets::FeeAssetItem, - pub weight_limit: limited_teleport_assets::WeightLimit, - } - pub mod limited_teleport_assets { - use super::runtime_types; - pub type Dest = runtime_types::xcm::VersionedMultiLocation; - pub type Beneficiary = runtime_types::xcm::VersionedMultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - pub type FeeAssetItem = ::core::primitive::u32; - pub type WeightLimit = runtime_types::xcm::v3::WeightLimit; - } - impl ::subxt::blocks::StaticExtrinsic for LimitedTeleportAssets { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "limited_teleport_assets"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::force_suspension`]."] - pub struct ForceSuspension { - pub suspended: force_suspension::Suspended, - } - pub mod force_suspension { - use super::runtime_types; - pub type Suspended = ::core::primitive::bool; - } - impl ::subxt::blocks::StaticExtrinsic for ForceSuspension { - const PALLET: &'static str = "XcmPallet"; - const CALL: &'static str = "force_suspension"; + #[doc = "See [`Pallet::check_payment`]."] + pub struct CheckPayment; + impl ::subxt::blocks::StaticExtrinsic for CheckPayment { + const PALLET: &'static str = "Salary"; + const CALL: &'static str = "check_payment"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::send`]."] - pub fn send( - &self, - dest: types::send::Dest, - message: types::send::Message, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::init`]."] + pub fn init(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "XcmPallet", - "send", - types::Send { - dest: ::std::boxed::Box::new(dest), - message: ::std::boxed::Box::new(message), - }, + "Salary", + "init", + types::Init {}, [ - 147u8, 255u8, 86u8, 82u8, 17u8, 159u8, 225u8, 145u8, 220u8, 89u8, 71u8, - 23u8, 193u8, 249u8, 12u8, 70u8, 19u8, 140u8, 232u8, 97u8, 12u8, 220u8, - 113u8, 65u8, 4u8, 255u8, 138u8, 10u8, 231u8, 122u8, 67u8, 105u8, + 178u8, 19u8, 190u8, 38u8, 187u8, 214u8, 7u8, 110u8, 32u8, 175u8, 183u8, + 59u8, 15u8, 136u8, 49u8, 148u8, 115u8, 98u8, 131u8, 74u8, 79u8, 176u8, + 150u8, 159u8, 72u8, 85u8, 112u8, 6u8, 66u8, 27u8, 119u8, 50u8, ], ) } - #[doc = "See [`Pallet::teleport_assets`]."] - pub fn teleport_assets( - &self, - dest: types::teleport_assets::Dest, - beneficiary: types::teleport_assets::Beneficiary, - assets: types::teleport_assets::Assets, - fee_asset_item: types::teleport_assets::FeeAssetItem, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::bump`]."] + pub fn bump(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "XcmPallet", - "teleport_assets", - types::TeleportAssets { - dest: ::std::boxed::Box::new(dest), - beneficiary: ::std::boxed::Box::new(beneficiary), - assets: ::std::boxed::Box::new(assets), - fee_asset_item, - }, + "Salary", + "bump", + types::Bump {}, [ - 56u8, 144u8, 237u8, 60u8, 157u8, 5u8, 7u8, 129u8, 41u8, 149u8, 160u8, - 100u8, 233u8, 102u8, 181u8, 140u8, 115u8, 213u8, 29u8, 132u8, 16u8, - 30u8, 23u8, 82u8, 140u8, 134u8, 37u8, 87u8, 3u8, 99u8, 172u8, 42u8, + 87u8, 241u8, 180u8, 60u8, 84u8, 12u8, 89u8, 80u8, 117u8, 203u8, 173u8, + 123u8, 124u8, 202u8, 10u8, 28u8, 174u8, 156u8, 49u8, 122u8, 215u8, + 207u8, 59u8, 49u8, 202u8, 71u8, 234u8, 238u8, 90u8, 183u8, 162u8, + 153u8, ], ) } - #[doc = "See [`Pallet::reserve_transfer_assets`]."] - pub fn reserve_transfer_assets( - &self, - dest: types::reserve_transfer_assets::Dest, - beneficiary: types::reserve_transfer_assets::Beneficiary, - assets: types::reserve_transfer_assets::Assets, - fee_asset_item: types::reserve_transfer_assets::FeeAssetItem, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::induct`]."] + pub fn induct(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "XcmPallet", - "reserve_transfer_assets", - types::ReserveTransferAssets { - dest: ::std::boxed::Box::new(dest), - beneficiary: ::std::boxed::Box::new(beneficiary), - assets: ::std::boxed::Box::new(assets), - fee_asset_item, - }, + "Salary", + "induct", + types::Induct {}, [ - 21u8, 167u8, 44u8, 22u8, 210u8, 73u8, 148u8, 7u8, 91u8, 108u8, 148u8, - 205u8, 170u8, 243u8, 142u8, 224u8, 205u8, 119u8, 252u8, 22u8, 203u8, - 32u8, 73u8, 200u8, 178u8, 14u8, 167u8, 147u8, 166u8, 55u8, 14u8, 231u8, + 240u8, 91u8, 95u8, 123u8, 20u8, 44u8, 84u8, 152u8, 112u8, 227u8, 83u8, + 45u8, 214u8, 88u8, 150u8, 142u8, 247u8, 226u8, 221u8, 76u8, 98u8, + 198u8, 237u8, 135u8, 54u8, 219u8, 92u8, 59u8, 38u8, 157u8, 212u8, 22u8, ], ) } - #[doc = "See [`Pallet::execute`]."] - pub fn execute( - &self, - message: types::execute::Message, - max_weight: types::execute::MaxWeight, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::register`]."] + pub fn register(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "XcmPallet", - "execute", - types::Execute { - message: ::std::boxed::Box::new(message), - max_weight, - }, + "Salary", + "register", + types::Register {}, [ - 15u8, 97u8, 86u8, 111u8, 105u8, 116u8, 109u8, 206u8, 70u8, 8u8, 57u8, - 232u8, 133u8, 132u8, 30u8, 219u8, 34u8, 69u8, 0u8, 213u8, 98u8, 241u8, - 186u8, 93u8, 216u8, 39u8, 73u8, 24u8, 193u8, 87u8, 92u8, 31u8, + 233u8, 133u8, 237u8, 242u8, 213u8, 162u8, 28u8, 235u8, 126u8, 165u8, + 131u8, 187u8, 58u8, 254u8, 28u8, 151u8, 115u8, 142u8, 244u8, 189u8, + 38u8, 44u8, 185u8, 199u8, 85u8, 143u8, 1u8, 26u8, 104u8, 100u8, 242u8, + 52u8, ], ) } - #[doc = "See [`Pallet::force_xcm_version`]."] - pub fn force_xcm_version( - &self, - location: types::force_xcm_version::Location, - version: types::force_xcm_version::Version, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::payout`]."] + pub fn payout(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "XcmPallet", - "force_xcm_version", - types::ForceXcmVersion { - location: ::std::boxed::Box::new(location), - version, - }, + "Salary", + "payout", + types::Payout {}, [ - 110u8, 11u8, 78u8, 255u8, 66u8, 2u8, 55u8, 108u8, 92u8, 151u8, 231u8, - 175u8, 75u8, 156u8, 34u8, 191u8, 0u8, 56u8, 104u8, 197u8, 70u8, 204u8, - 73u8, 234u8, 173u8, 251u8, 88u8, 226u8, 3u8, 136u8, 228u8, 136u8, + 214u8, 12u8, 233u8, 89u8, 186u8, 0u8, 61u8, 206u8, 251u8, 1u8, 55u8, + 0u8, 126u8, 105u8, 55u8, 109u8, 101u8, 104u8, 46u8, 98u8, 62u8, 228u8, + 64u8, 195u8, 61u8, 24u8, 48u8, 148u8, 146u8, 108u8, 67u8, 52u8, ], ) } - #[doc = "See [`Pallet::force_default_xcm_version`]."] - pub fn force_default_xcm_version( + #[doc = "See [`Pallet::payout_other`]."] + pub fn payout_other( &self, - maybe_xcm_version: types::force_default_xcm_version::MaybeXcmVersion, - ) -> ::subxt::tx::Payload { + beneficiary: types::payout_other::Beneficiary, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "XcmPallet", - "force_default_xcm_version", - types::ForceDefaultXcmVersion { maybe_xcm_version }, + "Salary", + "payout_other", + types::PayoutOther { beneficiary }, [ - 43u8, 114u8, 102u8, 104u8, 209u8, 234u8, 108u8, 173u8, 109u8, 188u8, - 94u8, 214u8, 136u8, 43u8, 153u8, 75u8, 161u8, 192u8, 76u8, 12u8, 221u8, - 237u8, 158u8, 247u8, 41u8, 193u8, 35u8, 174u8, 183u8, 207u8, 79u8, - 213u8, + 228u8, 61u8, 73u8, 73u8, 151u8, 233u8, 15u8, 8u8, 110u8, 36u8, 106u8, + 36u8, 155u8, 137u8, 206u8, 191u8, 87u8, 215u8, 175u8, 56u8, 188u8, + 53u8, 209u8, 228u8, 76u8, 207u8, 137u8, 7u8, 169u8, 201u8, 223u8, + 102u8, ], ) } - #[doc = "See [`Pallet::force_subscribe_version_notify`]."] - pub fn force_subscribe_version_notify( - &self, - location: types::force_subscribe_version_notify::Location, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::check_payment`]."] + pub fn check_payment(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "XcmPallet", - "force_subscribe_version_notify", - types::ForceSubscribeVersionNotify { - location: ::std::boxed::Box::new(location), - }, + "Salary", + "check_payment", + types::CheckPayment {}, [ - 112u8, 254u8, 138u8, 12u8, 203u8, 176u8, 251u8, 167u8, 223u8, 0u8, - 71u8, 148u8, 19u8, 179u8, 47u8, 96u8, 188u8, 189u8, 14u8, 172u8, 1u8, - 1u8, 192u8, 107u8, 137u8, 158u8, 22u8, 9u8, 138u8, 241u8, 32u8, 47u8, - ], - ) - } - #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] - pub fn force_unsubscribe_version_notify( - &self, - location: types::force_unsubscribe_version_notify::Location, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "XcmPallet", - "force_unsubscribe_version_notify", - types::ForceUnsubscribeVersionNotify { - location: ::std::boxed::Box::new(location), - }, - [ - 205u8, 143u8, 230u8, 143u8, 166u8, 184u8, 53u8, 252u8, 118u8, 184u8, - 209u8, 227u8, 225u8, 184u8, 254u8, 244u8, 101u8, 56u8, 27u8, 128u8, - 40u8, 159u8, 178u8, 62u8, 63u8, 164u8, 59u8, 236u8, 1u8, 168u8, 202u8, - 42u8, - ], - ) - } - #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."] - pub fn limited_reserve_transfer_assets( - &self, - dest: types::limited_reserve_transfer_assets::Dest, - beneficiary: types::limited_reserve_transfer_assets::Beneficiary, - assets: types::limited_reserve_transfer_assets::Assets, - fee_asset_item: types::limited_reserve_transfer_assets::FeeAssetItem, - weight_limit: types::limited_reserve_transfer_assets::WeightLimit, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "XcmPallet", - "limited_reserve_transfer_assets", - types::LimitedReserveTransferAssets { - dest: ::std::boxed::Box::new(dest), - beneficiary: ::std::boxed::Box::new(beneficiary), - assets: ::std::boxed::Box::new(assets), - fee_asset_item, - weight_limit, - }, - [ - 10u8, 139u8, 165u8, 239u8, 92u8, 178u8, 169u8, 62u8, 166u8, 236u8, - 50u8, 12u8, 196u8, 3u8, 233u8, 209u8, 3u8, 159u8, 184u8, 234u8, 171u8, - 46u8, 145u8, 134u8, 241u8, 155u8, 221u8, 173u8, 166u8, 94u8, 147u8, - 88u8, - ], - ) - } - #[doc = "See [`Pallet::limited_teleport_assets`]."] - pub fn limited_teleport_assets( - &self, - dest: types::limited_teleport_assets::Dest, - beneficiary: types::limited_teleport_assets::Beneficiary, - assets: types::limited_teleport_assets::Assets, - fee_asset_item: types::limited_teleport_assets::FeeAssetItem, - weight_limit: types::limited_teleport_assets::WeightLimit, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "XcmPallet", - "limited_teleport_assets", - types::LimitedTeleportAssets { - dest: ::std::boxed::Box::new(dest), - beneficiary: ::std::boxed::Box::new(beneficiary), - assets: ::std::boxed::Box::new(assets), - fee_asset_item, - weight_limit, - }, - [ - 156u8, 205u8, 105u8, 18u8, 120u8, 130u8, 144u8, 67u8, 152u8, 188u8, - 109u8, 121u8, 4u8, 240u8, 123u8, 112u8, 72u8, 153u8, 2u8, 111u8, 183u8, - 170u8, 199u8, 82u8, 33u8, 117u8, 43u8, 133u8, 208u8, 44u8, 118u8, - 107u8, - ], - ) - } - #[doc = "See [`Pallet::force_suspension`]."] - pub fn force_suspension( - &self, - suspended: types::force_suspension::Suspended, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "XcmPallet", - "force_suspension", - types::ForceSuspension { suspended }, - [ - 78u8, 125u8, 93u8, 55u8, 129u8, 44u8, 36u8, 227u8, 75u8, 46u8, 68u8, - 202u8, 81u8, 127u8, 111u8, 92u8, 149u8, 38u8, 225u8, 185u8, 183u8, - 154u8, 89u8, 159u8, 79u8, 10u8, 229u8, 1u8, 226u8, 243u8, 65u8, 238u8, + 76u8, 205u8, 204u8, 111u8, 136u8, 78u8, 147u8, 86u8, 56u8, 109u8, 56u8, + 143u8, 120u8, 9u8, 42u8, 206u8, 66u8, 62u8, 171u8, 112u8, 203u8, 69u8, + 95u8, 57u8, 55u8, 31u8, 234u8, 23u8, 76u8, 114u8, 3u8, 59u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_xcm::pallet::Event; + pub type Event = runtime_types::pallet_salary::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -37607,17 +47959,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Execution of an XCM message was attempted."] - pub struct Attempted { - pub outcome: attempted::Outcome, + #[doc = "A member is inducted into the payroll."] + pub struct Inducted { + pub who: inducted::Who, } - pub mod attempted { + pub mod inducted { use super::runtime_types; - pub type Outcome = runtime_types::xcm::v3::traits::Outcome; + pub type Who = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Attempted { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "Attempted"; + impl ::subxt::events::StaticEvent for Inducted { + const PALLET: &'static str = "Salary"; + const EVENT: &'static str = "Inducted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37629,23 +47981,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A XCM message was sent."] - pub struct Sent { - pub origin: sent::Origin, - pub destination: sent::Destination, - pub message: sent::Message, - pub message_id: sent::MessageId, + #[doc = "A member registered for a payout."] + pub struct Registered { + pub who: registered::Who, + pub amount: registered::Amount, } - pub mod sent { + pub mod registered { use super::runtime_types; - pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Message = runtime_types::xcm::v3::Xcm; - pub type MessageId = [::core::primitive::u8; 32usize]; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; } - impl ::subxt::events::StaticEvent for Sent { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "Sent"; + impl ::subxt::events::StaticEvent for Registered { + const PALLET: &'static str = "Salary"; + const EVENT: &'static str = "Registered"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37657,21 +48005,23 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Query response received which does not match a registered query. This may be because a"] - #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] - #[doc = "because the query timed out."] - pub struct UnexpectedResponse { - pub origin: unexpected_response::Origin, - pub query_id: unexpected_response::QueryId, + #[doc = "A payment happened."] + pub struct Paid { + pub who: paid::Who, + pub beneficiary: paid::Beneficiary, + pub amount: paid::Amount, + pub id: paid::Id, } - pub mod unexpected_response { + pub mod paid { use super::runtime_types; - pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type QueryId = ::core::primitive::u64; + pub type Who = ::subxt::utils::AccountId32; + pub type Beneficiary = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type Id = (); } - impl ::subxt::events::StaticEvent for UnexpectedResponse { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "UnexpectedResponse"; + impl ::subxt::events::StaticEvent for Paid { + const PALLET: &'static str = "Salary"; + const EVENT: &'static str = "Paid"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -37683,2017 +48033,107 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Query response has been received and is ready for taking with `take_response`. There is"] - #[doc = "no registered notification call."] - pub struct ResponseReady { - pub query_id: response_ready::QueryId, - pub response: response_ready::Response, + #[doc = "The next cycle begins."] + pub struct CycleStarted { + pub index: cycle_started::Index, } - pub mod response_ready { + pub mod cycle_started { use super::runtime_types; - pub type QueryId = ::core::primitive::u64; - pub type Response = runtime_types::xcm::v3::Response; + pub type Index = ::core::primitive::u32; } - impl ::subxt::events::StaticEvent for ResponseReady { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "ResponseReady"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Query response has been received and query is removed. The registered notification has"] - #[doc = "been dispatched and executed successfully."] - pub struct Notified { - pub query_id: notified::QueryId, - pub pallet_index: notified::PalletIndex, - pub call_index: notified::CallIndex, - } - pub mod notified { - use super::runtime_types; - pub type QueryId = ::core::primitive::u64; - pub type PalletIndex = ::core::primitive::u8; - pub type CallIndex = ::core::primitive::u8; - } - impl ::subxt::events::StaticEvent for Notified { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "Notified"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Query response has been received and query is removed. The registered notification"] - #[doc = "could not be dispatched because the dispatch weight is greater than the maximum weight"] - #[doc = "originally budgeted by this runtime for the query result."] - pub struct NotifyOverweight { - pub query_id: notify_overweight::QueryId, - pub pallet_index: notify_overweight::PalletIndex, - pub call_index: notify_overweight::CallIndex, - pub actual_weight: notify_overweight::ActualWeight, - pub max_budgeted_weight: notify_overweight::MaxBudgetedWeight, - } - pub mod notify_overweight { - use super::runtime_types; - pub type QueryId = ::core::primitive::u64; - pub type PalletIndex = ::core::primitive::u8; - pub type CallIndex = ::core::primitive::u8; - pub type ActualWeight = runtime_types::sp_weights::weight_v2::Weight; - pub type MaxBudgetedWeight = runtime_types::sp_weights::weight_v2::Weight; - } - impl ::subxt::events::StaticEvent for NotifyOverweight { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyOverweight"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Query response has been received and query is removed. There was a general error with"] - #[doc = "dispatching the notification call."] - pub struct NotifyDispatchError { - pub query_id: notify_dispatch_error::QueryId, - pub pallet_index: notify_dispatch_error::PalletIndex, - pub call_index: notify_dispatch_error::CallIndex, - } - pub mod notify_dispatch_error { - use super::runtime_types; - pub type QueryId = ::core::primitive::u64; - pub type PalletIndex = ::core::primitive::u8; - pub type CallIndex = ::core::primitive::u8; - } - impl ::subxt::events::StaticEvent for NotifyDispatchError { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyDispatchError"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Query response has been received and query is removed. The dispatch was unable to be"] - #[doc = "decoded into a `Call`; this might be due to dispatch function having a signature which"] - #[doc = "is not `(origin, QueryId, Response)`."] - pub struct NotifyDecodeFailed { - pub query_id: notify_decode_failed::QueryId, - pub pallet_index: notify_decode_failed::PalletIndex, - pub call_index: notify_decode_failed::CallIndex, - } - pub mod notify_decode_failed { - use super::runtime_types; - pub type QueryId = ::core::primitive::u64; - pub type PalletIndex = ::core::primitive::u8; - pub type CallIndex = ::core::primitive::u8; - } - impl ::subxt::events::StaticEvent for NotifyDecodeFailed { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyDecodeFailed"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Expected query response has been received but the origin location of the response does"] - #[doc = "not match that expected. The query remains registered for a later, valid, response to"] - #[doc = "be received and acted upon."] - pub struct InvalidResponder { - pub origin: invalid_responder::Origin, - pub query_id: invalid_responder::QueryId, - pub expected_location: invalid_responder::ExpectedLocation, - } - pub mod invalid_responder { - use super::runtime_types; - pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type QueryId = ::core::primitive::u64; - pub type ExpectedLocation = ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >; - } - impl ::subxt::events::StaticEvent for InvalidResponder { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "InvalidResponder"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Expected query response has been received but the expected origin location placed in"] - #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] - #[doc = ""] - #[doc = "This is unexpected (since a location placed in storage in a previously executing"] - #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] - #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] - #[doc = "needed."] - pub struct InvalidResponderVersion { - pub origin: invalid_responder_version::Origin, - pub query_id: invalid_responder_version::QueryId, - } - pub mod invalid_responder_version { - use super::runtime_types; - pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type QueryId = ::core::primitive::u64; - } - impl ::subxt::events::StaticEvent for InvalidResponderVersion { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "InvalidResponderVersion"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Received query response has been read and removed."] - pub struct ResponseTaken { - pub query_id: response_taken::QueryId, - } - pub mod response_taken { - use super::runtime_types; - pub type QueryId = ::core::primitive::u64; - } - impl ::subxt::events::StaticEvent for ResponseTaken { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "ResponseTaken"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some assets have been placed in an asset trap."] - pub struct AssetsTrapped { - pub hash: assets_trapped::Hash, - pub origin: assets_trapped::Origin, - pub assets: assets_trapped::Assets, - } - pub mod assets_trapped { - use super::runtime_types; - pub type Hash = ::subxt::utils::H256; - pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - } - impl ::subxt::events::StaticEvent for AssetsTrapped { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "AssetsTrapped"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "An XCM version change notification message has been attempted to be sent."] - #[doc = ""] - #[doc = "The cost of sending it (borne by the chain) is included."] - pub struct VersionChangeNotified { - pub destination: version_change_notified::Destination, - pub result: version_change_notified::Result, - pub cost: version_change_notified::Cost, - pub message_id: version_change_notified::MessageId, - } - pub mod version_change_notified { - use super::runtime_types; - pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Result = ::core::primitive::u32; - pub type Cost = runtime_types::xcm::v3::multiasset::MultiAssets; - pub type MessageId = [::core::primitive::u8; 32usize]; - } - impl ::subxt::events::StaticEvent for VersionChangeNotified { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "VersionChangeNotified"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The supported version of a location has been changed. This might be through an"] - #[doc = "automatic notification or a manual intervention."] - pub struct SupportedVersionChanged { - pub location: supported_version_changed::Location, - pub version: supported_version_changed::Version, - } - pub mod supported_version_changed { - use super::runtime_types; - pub type Location = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Version = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for SupportedVersionChanged { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "SupportedVersionChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A given location which had a version change subscription was dropped owing to an error"] - #[doc = "sending the notification to it."] - pub struct NotifyTargetSendFail { - pub location: notify_target_send_fail::Location, - pub query_id: notify_target_send_fail::QueryId, - pub error: notify_target_send_fail::Error, - } - pub mod notify_target_send_fail { - use super::runtime_types; - pub type Location = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type QueryId = ::core::primitive::u64; - pub type Error = runtime_types::xcm::v3::traits::Error; - } - impl ::subxt::events::StaticEvent for NotifyTargetSendFail { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyTargetSendFail"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A given location which had a version change subscription was dropped owing to an error"] - #[doc = "migrating the location to our new XCM format."] - pub struct NotifyTargetMigrationFail { - pub location: notify_target_migration_fail::Location, - pub query_id: notify_target_migration_fail::QueryId, - } - pub mod notify_target_migration_fail { - use super::runtime_types; - pub type Location = runtime_types::xcm::VersionedMultiLocation; - pub type QueryId = ::core::primitive::u64; - } - impl ::subxt::events::StaticEvent for NotifyTargetMigrationFail { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "NotifyTargetMigrationFail"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Expected query response has been received but the expected querier location placed in"] - #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] - #[doc = ""] - #[doc = "This is unexpected (since a location placed in storage in a previously executing"] - #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] - #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] - #[doc = "needed."] - pub struct InvalidQuerierVersion { - pub origin: invalid_querier_version::Origin, - pub query_id: invalid_querier_version::QueryId, - } - pub mod invalid_querier_version { - use super::runtime_types; - pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type QueryId = ::core::primitive::u64; - } - impl ::subxt::events::StaticEvent for InvalidQuerierVersion { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "InvalidQuerierVersion"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Expected query response has been received but the querier location of the response does"] - #[doc = "not match the expected. The query remains registered for a later, valid, response to"] - #[doc = "be received and acted upon."] - pub struct InvalidQuerier { - pub origin: invalid_querier::Origin, - pub query_id: invalid_querier::QueryId, - pub expected_querier: invalid_querier::ExpectedQuerier, - pub maybe_actual_querier: invalid_querier::MaybeActualQuerier, - } - pub mod invalid_querier { - use super::runtime_types; - pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type QueryId = ::core::primitive::u64; - pub type ExpectedQuerier = - runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type MaybeActualQuerier = ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >; - } - impl ::subxt::events::StaticEvent for InvalidQuerier { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "InvalidQuerier"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A remote has requested XCM version change notification from us and we have honored it."] - #[doc = "A version information message is sent to them and its cost is included."] - pub struct VersionNotifyStarted { - pub destination: version_notify_started::Destination, - pub cost: version_notify_started::Cost, - pub message_id: version_notify_started::MessageId, - } - pub mod version_notify_started { - use super::runtime_types; - pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Cost = runtime_types::xcm::v3::multiasset::MultiAssets; - pub type MessageId = [::core::primitive::u8; 32usize]; - } - impl ::subxt::events::StaticEvent for VersionNotifyStarted { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "VersionNotifyStarted"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "We have requested that a remote chain send us XCM version change notifications."] - pub struct VersionNotifyRequested { - pub destination: version_notify_requested::Destination, - pub cost: version_notify_requested::Cost, - pub message_id: version_notify_requested::MessageId, - } - pub mod version_notify_requested { - use super::runtime_types; - pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Cost = runtime_types::xcm::v3::multiasset::MultiAssets; - pub type MessageId = [::core::primitive::u8; 32usize]; - } - impl ::subxt::events::StaticEvent for VersionNotifyRequested { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "VersionNotifyRequested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "We have requested that a remote chain stops sending us XCM version change"] - #[doc = "notifications."] - pub struct VersionNotifyUnrequested { - pub destination: version_notify_unrequested::Destination, - pub cost: version_notify_unrequested::Cost, - pub message_id: version_notify_unrequested::MessageId, - } - pub mod version_notify_unrequested { - use super::runtime_types; - pub type Destination = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Cost = runtime_types::xcm::v3::multiasset::MultiAssets; - pub type MessageId = [::core::primitive::u8; 32usize]; - } - impl ::subxt::events::StaticEvent for VersionNotifyUnrequested { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "VersionNotifyUnrequested"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."] - pub struct FeesPaid { - pub paying: fees_paid::Paying, - pub fees: fees_paid::Fees, - } - pub mod fees_paid { - use super::runtime_types; - pub type Paying = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Fees = runtime_types::xcm::v3::multiasset::MultiAssets; - } - impl ::subxt::events::StaticEvent for FeesPaid { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "FeesPaid"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Some assets have been claimed from an asset trap"] - pub struct AssetsClaimed { - pub hash: assets_claimed::Hash, - pub origin: assets_claimed::Origin, - pub assets: assets_claimed::Assets, - } - pub mod assets_claimed { - use super::runtime_types; - pub type Hash = ::subxt::utils::H256; - pub type Origin = runtime_types::staging_xcm::v3::multilocation::MultiLocation; - pub type Assets = runtime_types::xcm::VersionedMultiAssets; - } - impl ::subxt::events::StaticEvent for AssetsClaimed { - const PALLET: &'static str = "XcmPallet"; - const EVENT: &'static str = "AssetsClaimed"; + impl ::subxt::events::StaticEvent for CycleStarted { + const PALLET: &'static str = "Salary"; + const EVENT: &'static str = "CycleStarted"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod query_counter { + pub mod status { use super::runtime_types; - pub type QueryCounter = ::core::primitive::u64; - } - pub mod queries { - use super::runtime_types; - pub type Queries = - runtime_types::pallet_xcm::pallet::QueryStatus<::core::primitive::u32>; - pub type Param0 = ::core::primitive::u64; - } - pub mod asset_traps { - use super::runtime_types; - pub type AssetTraps = ::core::primitive::u32; - pub type Param0 = ::subxt::utils::H256; - } - pub mod safe_xcm_version { - use super::runtime_types; - pub type SafeXcmVersion = ::core::primitive::u32; - } - pub mod supported_version { - use super::runtime_types; - pub type SupportedVersion = ::core::primitive::u32; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::xcm::VersionedMultiLocation; - } - pub mod version_notifiers { - use super::runtime_types; - pub type VersionNotifiers = ::core::primitive::u64; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::xcm::VersionedMultiLocation; - } - pub mod version_notify_targets { - use super::runtime_types; - pub type VersionNotifyTargets = ( - ::core::primitive::u64, - runtime_types::sp_weights::weight_v2::Weight, + pub type Status = runtime_types::pallet_salary::StatusType< ::core::primitive::u32, - ); - pub type Param0 = ::core::primitive::u32; - pub type Param1 = runtime_types::xcm::VersionedMultiLocation; + ::core::primitive::u32, + ::core::primitive::u128, + >; } - pub mod version_discovery_queue { + pub mod claimant { use super::runtime_types; - pub type VersionDiscoveryQueue = - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - runtime_types::xcm::VersionedMultiLocation, - ::core::primitive::u32, - )>; - } - pub mod current_migration { - use super::runtime_types; - pub type CurrentMigration = - runtime_types::pallet_xcm::pallet::VersionMigrationStage; - } - pub mod remote_locked_fungibles { - use super::runtime_types; - pub type RemoteLockedFungibles = - runtime_types::pallet_xcm::pallet::RemoteLockedFungibleRecord<()>; - pub type Param0 = ::core::primitive::u32; - pub type Param1 = ::subxt::utils::AccountId32; - pub type Param2 = runtime_types::xcm::VersionedAssetId; - } - pub mod locked_fungibles { - use super::runtime_types; - pub type LockedFungibles = - runtime_types::bounded_collections::bounded_vec::BoundedVec<( - ::core::primitive::u128, - runtime_types::xcm::VersionedMultiLocation, - )>; + pub type Claimant = runtime_types::pallet_salary::ClaimantStatus< + ::core::primitive::u32, + ::core::primitive::u128, + (), + >; pub type Param0 = ::subxt::utils::AccountId32; } - pub mod xcm_execution_suspended { - use super::runtime_types; - pub type XcmExecutionSuspended = ::core::primitive::bool; - } } pub struct StorageApi; impl StorageApi { - #[doc = " The latest available query index."] - pub fn query_counter( + #[doc = " The overall status of the system."] + pub fn status( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::query_counter::QueryCounter, - ::subxt::storage::address::Yes, + types::status::Status, ::subxt::storage::address::Yes, (), + (), > { ::subxt::storage::address::Address::new_static( - "XcmPallet", - "QueryCounter", + "Salary", + "Status", vec![], [ - 216u8, 73u8, 160u8, 232u8, 60u8, 245u8, 218u8, 219u8, 152u8, 68u8, - 146u8, 219u8, 255u8, 7u8, 86u8, 112u8, 83u8, 49u8, 94u8, 173u8, 64u8, - 203u8, 147u8, 226u8, 236u8, 39u8, 129u8, 106u8, 209u8, 113u8, 150u8, - 50u8, + 12u8, 114u8, 169u8, 110u8, 170u8, 56u8, 252u8, 77u8, 132u8, 245u8, + 30u8, 14u8, 59u8, 146u8, 249u8, 122u8, 214u8, 212u8, 126u8, 38u8, + 173u8, 36u8, 63u8, 204u8, 210u8, 194u8, 243u8, 109u8, 57u8, 93u8, + 211u8, 162u8, ], ) } - #[doc = " The ongoing queries."] - pub fn queries_iter( + #[doc = " The status of a claimant."] + pub fn claimant_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::queries::Queries, + types::claimant::Claimant, (), (), ::subxt::storage::address::Yes, > { ::subxt::storage::address::Address::new_static( - "XcmPallet", - "Queries", + "Salary", + "Claimant", vec![], [ - 119u8, 5u8, 12u8, 91u8, 117u8, 240u8, 52u8, 192u8, 135u8, 139u8, 220u8, - 78u8, 207u8, 199u8, 71u8, 163u8, 100u8, 17u8, 6u8, 65u8, 200u8, 245u8, - 191u8, 82u8, 232u8, 128u8, 126u8, 70u8, 39u8, 63u8, 148u8, 219u8, + 214u8, 57u8, 205u8, 194u8, 71u8, 78u8, 102u8, 235u8, 98u8, 195u8, 44u8, + 211u8, 64u8, 65u8, 170u8, 140u8, 7u8, 29u8, 196u8, 108u8, 199u8, 115u8, + 50u8, 193u8, 164u8, 237u8, 164u8, 214u8, 38u8, 81u8, 223u8, 14u8, ], ) } - #[doc = " The ongoing queries."] - pub fn queries( + #[doc = " The status of a claimant."] + pub fn claimant( &self, - _0: impl ::std::borrow::Borrow, + _0: impl ::std::borrow::Borrow, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::queries::Queries, + types::claimant::Claimant, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "XcmPallet", - "Queries", + "Salary", + "Claimant", vec![::subxt::storage::address::make_static_storage_map_key( _0.borrow(), )], [ - 119u8, 5u8, 12u8, 91u8, 117u8, 240u8, 52u8, 192u8, 135u8, 139u8, 220u8, - 78u8, 207u8, 199u8, 71u8, 163u8, 100u8, 17u8, 6u8, 65u8, 200u8, 245u8, - 191u8, 82u8, 232u8, 128u8, 126u8, 70u8, 39u8, 63u8, 148u8, 219u8, - ], - ) - } - #[doc = " The existing asset traps."] - #[doc = ""] - #[doc = " Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of"] - #[doc = " times this pair has been trapped (usually just 1 if it exists at all)."] - pub fn asset_traps_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::asset_traps::AssetTraps, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "AssetTraps", - vec![], - [ - 148u8, 41u8, 254u8, 134u8, 61u8, 172u8, 126u8, 146u8, 78u8, 178u8, - 50u8, 77u8, 226u8, 8u8, 200u8, 78u8, 77u8, 91u8, 26u8, 133u8, 104u8, - 126u8, 28u8, 28u8, 202u8, 62u8, 87u8, 183u8, 231u8, 191u8, 5u8, 181u8, - ], - ) - } - #[doc = " The existing asset traps."] - #[doc = ""] - #[doc = " Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of"] - #[doc = " times this pair has been trapped (usually just 1 if it exists at all)."] - pub fn asset_traps( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::asset_traps::AssetTraps, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "AssetTraps", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 148u8, 41u8, 254u8, 134u8, 61u8, 172u8, 126u8, 146u8, 78u8, 178u8, - 50u8, 77u8, 226u8, 8u8, 200u8, 78u8, 77u8, 91u8, 26u8, 133u8, 104u8, - 126u8, 28u8, 28u8, 202u8, 62u8, 87u8, 183u8, 231u8, 191u8, 5u8, 181u8, - ], - ) - } - #[doc = " Default version to encode XCM when latest version of destination is unknown. If `None`,"] - #[doc = " then the destinations whose XCM version is unknown are considered unreachable."] - pub fn safe_xcm_version( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::safe_xcm_version::SafeXcmVersion, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "SafeXcmVersion", - vec![], - [ - 187u8, 8u8, 74u8, 126u8, 80u8, 215u8, 177u8, 60u8, 223u8, 123u8, 196u8, - 155u8, 166u8, 66u8, 25u8, 164u8, 191u8, 66u8, 116u8, 131u8, 116u8, - 188u8, 224u8, 122u8, 75u8, 195u8, 246u8, 188u8, 83u8, 134u8, 49u8, - 143u8, - ], - ) - } - #[doc = " The Latest versions that we know various locations support."] - pub fn supported_version_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::supported_version::SupportedVersion, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "SupportedVersion", - vec![], - [ - 144u8, 22u8, 91u8, 30u8, 139u8, 164u8, 95u8, 149u8, 97u8, 247u8, 12u8, - 212u8, 96u8, 16u8, 134u8, 236u8, 74u8, 57u8, 244u8, 169u8, 68u8, 63u8, - 111u8, 86u8, 65u8, 229u8, 104u8, 51u8, 44u8, 100u8, 47u8, 191u8, - ], - ) - } - #[doc = " The Latest versions that we know various locations support."] - pub fn supported_version_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::supported_version::SupportedVersion, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "SupportedVersion", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 144u8, 22u8, 91u8, 30u8, 139u8, 164u8, 95u8, 149u8, 97u8, 247u8, 12u8, - 212u8, 96u8, 16u8, 134u8, 236u8, 74u8, 57u8, 244u8, 169u8, 68u8, 63u8, - 111u8, 86u8, 65u8, 229u8, 104u8, 51u8, 44u8, 100u8, 47u8, 191u8, - ], - ) - } - #[doc = " The Latest versions that we know various locations support."] - pub fn supported_version( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::supported_version::SupportedVersion, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "SupportedVersion", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 144u8, 22u8, 91u8, 30u8, 139u8, 164u8, 95u8, 149u8, 97u8, 247u8, 12u8, - 212u8, 96u8, 16u8, 134u8, 236u8, 74u8, 57u8, 244u8, 169u8, 68u8, 63u8, - 111u8, 86u8, 65u8, 229u8, 104u8, 51u8, 44u8, 100u8, 47u8, 191u8, - ], - ) - } - #[doc = " All locations that we have requested version notifications from."] - pub fn version_notifiers_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notifiers::VersionNotifiers, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifiers", - vec![], - [ - 49u8, 190u8, 73u8, 67u8, 91u8, 69u8, 121u8, 206u8, 25u8, 82u8, 29u8, - 170u8, 157u8, 201u8, 168u8, 93u8, 181u8, 55u8, 226u8, 142u8, 136u8, - 46u8, 117u8, 208u8, 130u8, 90u8, 129u8, 39u8, 151u8, 92u8, 118u8, 75u8, - ], - ) - } - #[doc = " All locations that we have requested version notifications from."] - pub fn version_notifiers_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notifiers::VersionNotifiers, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifiers", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 49u8, 190u8, 73u8, 67u8, 91u8, 69u8, 121u8, 206u8, 25u8, 82u8, 29u8, - 170u8, 157u8, 201u8, 168u8, 93u8, 181u8, 55u8, 226u8, 142u8, 136u8, - 46u8, 117u8, 208u8, 130u8, 90u8, 129u8, 39u8, 151u8, 92u8, 118u8, 75u8, - ], - ) - } - #[doc = " All locations that we have requested version notifications from."] - pub fn version_notifiers( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notifiers::VersionNotifiers, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifiers", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 49u8, 190u8, 73u8, 67u8, 91u8, 69u8, 121u8, 206u8, 25u8, 82u8, 29u8, - 170u8, 157u8, 201u8, 168u8, 93u8, 181u8, 55u8, 226u8, 142u8, 136u8, - 46u8, 117u8, 208u8, 130u8, 90u8, 129u8, 39u8, 151u8, 92u8, 118u8, 75u8, - ], - ) - } - #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] - #[doc = " of our versions we informed them of."] - pub fn version_notify_targets_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notify_targets::VersionNotifyTargets, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifyTargets", - vec![], - [ - 1u8, 195u8, 40u8, 83u8, 216u8, 175u8, 241u8, 95u8, 42u8, 7u8, 85u8, - 253u8, 223u8, 241u8, 195u8, 41u8, 41u8, 21u8, 17u8, 171u8, 216u8, - 150u8, 39u8, 165u8, 215u8, 194u8, 201u8, 225u8, 179u8, 12u8, 52u8, - 173u8, - ], - ) - } - #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] - #[doc = " of our versions we informed them of."] - pub fn version_notify_targets_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notify_targets::VersionNotifyTargets, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifyTargets", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 1u8, 195u8, 40u8, 83u8, 216u8, 175u8, 241u8, 95u8, 42u8, 7u8, 85u8, - 253u8, 223u8, 241u8, 195u8, 41u8, 41u8, 21u8, 17u8, 171u8, 216u8, - 150u8, 39u8, 165u8, 215u8, 194u8, 201u8, 225u8, 179u8, 12u8, 52u8, - 173u8, - ], - ) - } - #[doc = " The target locations that are subscribed to our version changes, as well as the most recent"] - #[doc = " of our versions we informed them of."] - pub fn version_notify_targets( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_notify_targets::VersionNotifyTargets, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionNotifyTargets", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 1u8, 195u8, 40u8, 83u8, 216u8, 175u8, 241u8, 95u8, 42u8, 7u8, 85u8, - 253u8, 223u8, 241u8, 195u8, 41u8, 41u8, 21u8, 17u8, 171u8, 216u8, - 150u8, 39u8, 165u8, 215u8, 194u8, 201u8, 225u8, 179u8, 12u8, 52u8, - 173u8, - ], - ) - } - #[doc = " Destinations whose latest XCM version we would like to know. Duplicates not allowed, and"] - #[doc = " the `u32` counter is the number of times that a send to the destination has been attempted,"] - #[doc = " which is used as a prioritization."] - pub fn version_discovery_queue( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::version_discovery_queue::VersionDiscoveryQueue, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "VersionDiscoveryQueue", - vec![], - [ - 110u8, 87u8, 102u8, 193u8, 125u8, 129u8, 0u8, 221u8, 218u8, 229u8, - 101u8, 94u8, 74u8, 229u8, 246u8, 180u8, 113u8, 11u8, 15u8, 159u8, 98u8, - 90u8, 30u8, 112u8, 164u8, 236u8, 151u8, 220u8, 19u8, 83u8, 67u8, 248u8, - ], - ) - } - #[doc = " The current migration's stage, if any."] - pub fn current_migration( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::current_migration::CurrentMigration, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "CurrentMigration", - vec![], - [ - 74u8, 138u8, 181u8, 162u8, 59u8, 251u8, 37u8, 28u8, 232u8, 51u8, 30u8, - 152u8, 252u8, 133u8, 95u8, 195u8, 47u8, 127u8, 21u8, 44u8, 62u8, 143u8, - 170u8, 234u8, 160u8, 37u8, 131u8, 179u8, 57u8, 241u8, 140u8, 124u8, - ], - ) - } - #[doc = " Fungible assets which we know are locked on a remote chain."] - pub fn remote_locked_fungibles_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::remote_locked_fungibles::RemoteLockedFungibles, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "RemoteLockedFungibles", - vec![], - [ - 74u8, 249u8, 83u8, 245u8, 44u8, 230u8, 152u8, 82u8, 4u8, 163u8, 230u8, - 121u8, 87u8, 143u8, 184u8, 12u8, 117u8, 112u8, 131u8, 160u8, 232u8, - 62u8, 175u8, 15u8, 81u8, 198u8, 182u8, 255u8, 37u8, 81u8, 6u8, 57u8, - ], - ) - } - #[doc = " Fungible assets which we know are locked on a remote chain."] - pub fn remote_locked_fungibles_iter1( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::remote_locked_fungibles::RemoteLockedFungibles, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "RemoteLockedFungibles", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 74u8, 249u8, 83u8, 245u8, 44u8, 230u8, 152u8, 82u8, 4u8, 163u8, 230u8, - 121u8, 87u8, 143u8, 184u8, 12u8, 117u8, 112u8, 131u8, 160u8, 232u8, - 62u8, 175u8, 15u8, 81u8, 198u8, 182u8, 255u8, 37u8, 81u8, 6u8, 57u8, - ], - ) - } - #[doc = " Fungible assets which we know are locked on a remote chain."] - pub fn remote_locked_fungibles_iter2( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::remote_locked_fungibles::RemoteLockedFungibles, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "RemoteLockedFungibles", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ], - [ - 74u8, 249u8, 83u8, 245u8, 44u8, 230u8, 152u8, 82u8, 4u8, 163u8, 230u8, - 121u8, 87u8, 143u8, 184u8, 12u8, 117u8, 112u8, 131u8, 160u8, 232u8, - 62u8, 175u8, 15u8, 81u8, 198u8, 182u8, 255u8, 37u8, 81u8, 6u8, 57u8, - ], - ) - } - #[doc = " Fungible assets which we know are locked on a remote chain."] - pub fn remote_locked_fungibles( - &self, - _0: impl ::std::borrow::Borrow, - _1: impl ::std::borrow::Borrow, - _2: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::remote_locked_fungibles::RemoteLockedFungibles, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "RemoteLockedFungibles", - vec![ - ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), - ::subxt::storage::address::make_static_storage_map_key(_2.borrow()), - ], - [ - 74u8, 249u8, 83u8, 245u8, 44u8, 230u8, 152u8, 82u8, 4u8, 163u8, 230u8, - 121u8, 87u8, 143u8, 184u8, 12u8, 117u8, 112u8, 131u8, 160u8, 232u8, - 62u8, 175u8, 15u8, 81u8, 198u8, 182u8, 255u8, 37u8, 81u8, 6u8, 57u8, - ], - ) - } - #[doc = " Fungible assets which we know are locked on this chain."] - pub fn locked_fungibles_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::locked_fungibles::LockedFungibles, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "LockedFungibles", - vec![], - [ - 110u8, 220u8, 127u8, 176u8, 219u8, 23u8, 132u8, 36u8, 224u8, 187u8, - 25u8, 103u8, 126u8, 99u8, 34u8, 105u8, 57u8, 182u8, 162u8, 69u8, 24u8, - 67u8, 221u8, 103u8, 79u8, 139u8, 187u8, 162u8, 113u8, 109u8, 163u8, - 35u8, - ], - ) - } - #[doc = " Fungible assets which we know are locked on this chain."] - pub fn locked_fungibles( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::locked_fungibles::LockedFungibles, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "LockedFungibles", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 110u8, 220u8, 127u8, 176u8, 219u8, 23u8, 132u8, 36u8, 224u8, 187u8, - 25u8, 103u8, 126u8, 99u8, 34u8, 105u8, 57u8, 182u8, 162u8, 69u8, 24u8, - 67u8, 221u8, 103u8, 79u8, 139u8, 187u8, 162u8, 113u8, 109u8, 163u8, - 35u8, - ], - ) - } - #[doc = " Global suspension state of the XCM executor."] - pub fn xcm_execution_suspended( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::xcm_execution_suspended::XcmExecutionSuspended, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "XcmPallet", - "XcmExecutionSuspended", - vec![], - [ - 182u8, 54u8, 69u8, 68u8, 78u8, 76u8, 103u8, 79u8, 47u8, 136u8, 99u8, - 104u8, 128u8, 129u8, 249u8, 54u8, 214u8, 136u8, 97u8, 48u8, 178u8, - 42u8, 26u8, 27u8, 82u8, 24u8, 33u8, 77u8, 33u8, 27u8, 20u8, 127u8, - ], - ) - } - } - } - } - pub mod paras_sudo_wrapper { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_schedule_para_initialize`]."] - pub struct SudoScheduleParaInitialize { - pub id: sudo_schedule_para_initialize::Id, - pub genesis: sudo_schedule_para_initialize::Genesis, - } - pub mod sudo_schedule_para_initialize { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Genesis = - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs; - } - impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParaInitialize { - const PALLET: &'static str = "ParasSudoWrapper"; - const CALL: &'static str = "sudo_schedule_para_initialize"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_schedule_para_cleanup`]."] - pub struct SudoScheduleParaCleanup { - pub id: sudo_schedule_para_cleanup::Id, - } - pub mod sudo_schedule_para_cleanup { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParaCleanup { - const PALLET: &'static str = "ParasSudoWrapper"; - const CALL: &'static str = "sudo_schedule_para_cleanup"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_schedule_parathread_upgrade`]."] - pub struct SudoScheduleParathreadUpgrade { - pub id: sudo_schedule_parathread_upgrade::Id, - } - pub mod sudo_schedule_parathread_upgrade { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParathreadUpgrade { - const PALLET: &'static str = "ParasSudoWrapper"; - const CALL: &'static str = "sudo_schedule_parathread_upgrade"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_schedule_parachain_downgrade`]."] - pub struct SudoScheduleParachainDowngrade { - pub id: sudo_schedule_parachain_downgrade::Id, - } - pub mod sudo_schedule_parachain_downgrade { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for SudoScheduleParachainDowngrade { - const PALLET: &'static str = "ParasSudoWrapper"; - const CALL: &'static str = "sudo_schedule_parachain_downgrade"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_queue_downward_xcm`]."] - pub struct SudoQueueDownwardXcm { - pub id: sudo_queue_downward_xcm::Id, - pub xcm: ::std::boxed::Box, - } - pub mod sudo_queue_downward_xcm { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Xcm = runtime_types::xcm::VersionedXcm; - } - impl ::subxt::blocks::StaticExtrinsic for SudoQueueDownwardXcm { - const PALLET: &'static str = "ParasSudoWrapper"; - const CALL: &'static str = "sudo_queue_downward_xcm"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_establish_hrmp_channel`]."] - pub struct SudoEstablishHrmpChannel { - pub sender: sudo_establish_hrmp_channel::Sender, - pub recipient: sudo_establish_hrmp_channel::Recipient, - pub max_capacity: sudo_establish_hrmp_channel::MaxCapacity, - pub max_message_size: sudo_establish_hrmp_channel::MaxMessageSize, - } - pub mod sudo_establish_hrmp_channel { - use super::runtime_types; - pub type Sender = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type Recipient = - runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type MaxCapacity = ::core::primitive::u32; - pub type MaxMessageSize = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SudoEstablishHrmpChannel { - const PALLET: &'static str = "ParasSudoWrapper"; - const CALL: &'static str = "sudo_establish_hrmp_channel"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::sudo_schedule_para_initialize`]."] - pub fn sudo_schedule_para_initialize( - &self, - id: types::sudo_schedule_para_initialize::Id, - genesis: types::sudo_schedule_para_initialize::Genesis, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ParasSudoWrapper", - "sudo_schedule_para_initialize", - types::SudoScheduleParaInitialize { id, genesis }, - [ - 91u8, 145u8, 184u8, 83u8, 85u8, 168u8, 43u8, 14u8, 18u8, 86u8, 4u8, - 120u8, 148u8, 107u8, 139u8, 46u8, 145u8, 126u8, 255u8, 61u8, 83u8, - 140u8, 63u8, 233u8, 0u8, 47u8, 227u8, 194u8, 99u8, 7u8, 61u8, 15u8, - ], - ) - } - #[doc = "See [`Pallet::sudo_schedule_para_cleanup`]."] - pub fn sudo_schedule_para_cleanup( - &self, - id: types::sudo_schedule_para_cleanup::Id, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ParasSudoWrapper", - "sudo_schedule_para_cleanup", - types::SudoScheduleParaCleanup { id }, - [ - 148u8, 0u8, 73u8, 32u8, 33u8, 214u8, 92u8, 82u8, 146u8, 97u8, 39u8, - 220u8, 147u8, 148u8, 83u8, 200u8, 36u8, 197u8, 231u8, 246u8, 159u8, - 175u8, 195u8, 46u8, 68u8, 230u8, 16u8, 240u8, 108u8, 132u8, 0u8, 188u8, - ], - ) - } - #[doc = "See [`Pallet::sudo_schedule_parathread_upgrade`]."] - pub fn sudo_schedule_parathread_upgrade( - &self, - id: types::sudo_schedule_parathread_upgrade::Id, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ParasSudoWrapper", - "sudo_schedule_parathread_upgrade", - types::SudoScheduleParathreadUpgrade { id }, - [ - 244u8, 142u8, 128u8, 182u8, 130u8, 88u8, 113u8, 34u8, 92u8, 224u8, - 244u8, 155u8, 83u8, 212u8, 68u8, 87u8, 156u8, 80u8, 26u8, 23u8, 245u8, - 197u8, 167u8, 204u8, 14u8, 198u8, 70u8, 93u8, 227u8, 159u8, 159u8, - 88u8, - ], - ) - } - #[doc = "See [`Pallet::sudo_schedule_parachain_downgrade`]."] - pub fn sudo_schedule_parachain_downgrade( - &self, - id: types::sudo_schedule_parachain_downgrade::Id, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ParasSudoWrapper", - "sudo_schedule_parachain_downgrade", - types::SudoScheduleParachainDowngrade { id }, - [ - 152u8, 217u8, 14u8, 138u8, 136u8, 85u8, 79u8, 255u8, 220u8, 85u8, - 248u8, 12u8, 186u8, 250u8, 206u8, 152u8, 115u8, 92u8, 143u8, 8u8, - 171u8, 46u8, 94u8, 232u8, 169u8, 79u8, 150u8, 212u8, 166u8, 191u8, - 188u8, 198u8, - ], - ) - } - #[doc = "See [`Pallet::sudo_queue_downward_xcm`]."] - pub fn sudo_queue_downward_xcm( - &self, - id: types::sudo_queue_downward_xcm::Id, - xcm: types::sudo_queue_downward_xcm::Xcm, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ParasSudoWrapper", - "sudo_queue_downward_xcm", - types::SudoQueueDownwardXcm { - id, - xcm: ::std::boxed::Box::new(xcm), - }, - [ - 144u8, 179u8, 113u8, 39u8, 46u8, 58u8, 218u8, 220u8, 98u8, 232u8, - 121u8, 119u8, 127u8, 99u8, 52u8, 189u8, 232u8, 28u8, 233u8, 54u8, - 122u8, 206u8, 155u8, 7u8, 88u8, 167u8, 203u8, 251u8, 96u8, 156u8, 23u8, - 54u8, - ], - ) - } - #[doc = "See [`Pallet::sudo_establish_hrmp_channel`]."] - pub fn sudo_establish_hrmp_channel( - &self, - sender: types::sudo_establish_hrmp_channel::Sender, - recipient: types::sudo_establish_hrmp_channel::Recipient, - max_capacity: types::sudo_establish_hrmp_channel::MaxCapacity, - max_message_size: types::sudo_establish_hrmp_channel::MaxMessageSize, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "ParasSudoWrapper", - "sudo_establish_hrmp_channel", - types::SudoEstablishHrmpChannel { - sender, - recipient, - max_capacity, - max_message_size, - }, - [ - 236u8, 105u8, 76u8, 213u8, 11u8, 105u8, 119u8, 48u8, 1u8, 103u8, 239u8, - 156u8, 66u8, 63u8, 135u8, 67u8, 226u8, 150u8, 254u8, 24u8, 169u8, 82u8, - 29u8, 75u8, 102u8, 167u8, 59u8, 66u8, 173u8, 148u8, 202u8, 50u8, - ], - ) - } - } - } - } - pub mod assigned_slots { - use super::root_mod; - use super::runtime_types; - #[doc = "The `Error` enum of this pallet."] - pub type Error = runtime_types::polkadot_runtime_common::assigned_slots::pallet::Error; - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::polkadot_runtime_common::assigned_slots::pallet::Call; - pub mod calls { - use super::root_mod; - use super::runtime_types; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::assign_perm_parachain_slot`]."] - pub struct AssignPermParachainSlot { - pub id: assign_perm_parachain_slot::Id, - } - pub mod assign_perm_parachain_slot { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for AssignPermParachainSlot { - const PALLET: &'static str = "AssignedSlots"; - const CALL: &'static str = "assign_perm_parachain_slot"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::assign_temp_parachain_slot`]."] - pub struct AssignTempParachainSlot { - pub id: assign_temp_parachain_slot::Id, - pub lease_period_start: assign_temp_parachain_slot::LeasePeriodStart, - } - pub mod assign_temp_parachain_slot { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - pub type LeasePeriodStart = runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart ; - } - impl ::subxt::blocks::StaticExtrinsic for AssignTempParachainSlot { - const PALLET: &'static str = "AssignedSlots"; - const CALL: &'static str = "assign_temp_parachain_slot"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::unassign_parachain_slot`]."] - pub struct UnassignParachainSlot { - pub id: unassign_parachain_slot::Id, - } - pub mod unassign_parachain_slot { - use super::runtime_types; - pub type Id = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::blocks::StaticExtrinsic for UnassignParachainSlot { - const PALLET: &'static str = "AssignedSlots"; - const CALL: &'static str = "unassign_parachain_slot"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_permanent_slots`]."] - pub struct SetMaxPermanentSlots { - pub slots: set_max_permanent_slots::Slots, - } - pub mod set_max_permanent_slots { - use super::runtime_types; - pub type Slots = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxPermanentSlots { - const PALLET: &'static str = "AssignedSlots"; - const CALL: &'static str = "set_max_permanent_slots"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_max_temporary_slots`]."] - pub struct SetMaxTemporarySlots { - pub slots: set_max_temporary_slots::Slots, - } - pub mod set_max_temporary_slots { - use super::runtime_types; - pub type Slots = ::core::primitive::u32; - } - impl ::subxt::blocks::StaticExtrinsic for SetMaxTemporarySlots { - const PALLET: &'static str = "AssignedSlots"; - const CALL: &'static str = "set_max_temporary_slots"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "See [`Pallet::assign_perm_parachain_slot`]."] - pub fn assign_perm_parachain_slot( - &self, - id: types::assign_perm_parachain_slot::Id, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "AssignedSlots", - "assign_perm_parachain_slot", - types::AssignPermParachainSlot { id }, - [ - 174u8, 53u8, 0u8, 157u8, 42u8, 160u8, 60u8, 36u8, 68u8, 7u8, 86u8, - 60u8, 126u8, 71u8, 118u8, 95u8, 139u8, 208u8, 57u8, 118u8, 183u8, - 111u8, 59u8, 37u8, 186u8, 193u8, 92u8, 145u8, 39u8, 21u8, 237u8, 31u8, - ], - ) - } - #[doc = "See [`Pallet::assign_temp_parachain_slot`]."] - pub fn assign_temp_parachain_slot( - &self, - id: types::assign_temp_parachain_slot::Id, - lease_period_start: types::assign_temp_parachain_slot::LeasePeriodStart, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "AssignedSlots", - "assign_temp_parachain_slot", - types::AssignTempParachainSlot { - id, - lease_period_start, - }, - [ - 226u8, 38u8, 224u8, 199u8, 32u8, 159u8, 245u8, 129u8, 190u8, 103u8, - 103u8, 214u8, 27u8, 215u8, 104u8, 111u8, 132u8, 186u8, 214u8, 25u8, - 110u8, 187u8, 73u8, 179u8, 101u8, 48u8, 60u8, 218u8, 248u8, 28u8, - 202u8, 66u8, - ], - ) - } - #[doc = "See [`Pallet::unassign_parachain_slot`]."] - pub fn unassign_parachain_slot( - &self, - id: types::unassign_parachain_slot::Id, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "AssignedSlots", - "unassign_parachain_slot", - types::UnassignParachainSlot { id }, - [ - 235u8, 6u8, 124u8, 73u8, 72u8, 232u8, 38u8, 233u8, 103u8, 111u8, 249u8, - 235u8, 10u8, 169u8, 92u8, 251u8, 245u8, 151u8, 28u8, 78u8, 125u8, - 113u8, 201u8, 187u8, 24u8, 58u8, 18u8, 177u8, 68u8, 122u8, 167u8, - 143u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_permanent_slots`]."] - pub fn set_max_permanent_slots( - &self, - slots: types::set_max_permanent_slots::Slots, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "AssignedSlots", - "set_max_permanent_slots", - types::SetMaxPermanentSlots { slots }, - [ - 62u8, 74u8, 80u8, 101u8, 204u8, 21u8, 139u8, 67u8, 178u8, 103u8, 237u8, - 166u8, 58u8, 6u8, 201u8, 30u8, 17u8, 186u8, 220u8, 150u8, 183u8, 174u8, - 72u8, 15u8, 72u8, 166u8, 116u8, 203u8, 132u8, 237u8, 196u8, 230u8, - ], - ) - } - #[doc = "See [`Pallet::set_max_temporary_slots`]."] - pub fn set_max_temporary_slots( - &self, - slots: types::set_max_temporary_slots::Slots, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "AssignedSlots", - "set_max_temporary_slots", - types::SetMaxTemporarySlots { slots }, - [ - 126u8, 108u8, 55u8, 12u8, 136u8, 207u8, 246u8, 65u8, 251u8, 139u8, - 150u8, 134u8, 10u8, 133u8, 106u8, 161u8, 61u8, 59u8, 15u8, 72u8, 247u8, - 33u8, 191u8, 127u8, 27u8, 89u8, 165u8, 134u8, 148u8, 140u8, 204u8, - 22u8, - ], - ) - } - } - } - #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::polkadot_runtime_common::assigned_slots::pallet::Event; - pub mod events { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A parachain was assigned a permanent parachain slot"] - pub struct PermanentSlotAssigned(pub permanent_slot_assigned::Field0); - pub mod permanent_slot_assigned { - use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for PermanentSlotAssigned { - const PALLET: &'static str = "AssignedSlots"; - const EVENT: &'static str = "PermanentSlotAssigned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A parachain was assigned a temporary parachain slot"] - pub struct TemporarySlotAssigned(pub temporary_slot_assigned::Field0); - pub mod temporary_slot_assigned { - use super::runtime_types; - pub type Field0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - impl ::subxt::events::StaticEvent for TemporarySlotAssigned { - const PALLET: &'static str = "AssignedSlots"; - const EVENT: &'static str = "TemporarySlotAssigned"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The maximum number of permanent slots has been changed"] - pub struct MaxPermanentSlotsChanged { - pub slots: max_permanent_slots_changed::Slots, - } - pub mod max_permanent_slots_changed { - use super::runtime_types; - pub type Slots = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for MaxPermanentSlotsChanged { - const PALLET: &'static str = "AssignedSlots"; - const EVENT: &'static str = "MaxPermanentSlotsChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The maximum number of temporary slots has been changed"] - pub struct MaxTemporarySlotsChanged { - pub slots: max_temporary_slots_changed::Slots, - } - pub mod max_temporary_slots_changed { - use super::runtime_types; - pub type Slots = ::core::primitive::u32; - } - impl ::subxt::events::StaticEvent for MaxTemporarySlotsChanged { - const PALLET: &'static str = "AssignedSlots"; - const EVENT: &'static str = "MaxTemporarySlotsChanged"; - } - } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - pub mod permanent_slots { - use super::runtime_types; - pub type PermanentSlots = (::core::primitive::u32, ::core::primitive::u32); - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod permanent_slot_count { - use super::runtime_types; - pub type PermanentSlotCount = ::core::primitive::u32; - } - pub mod temporary_slots { - use super::runtime_types; - pub type TemporarySlots = runtime_types :: polkadot_runtime_common :: assigned_slots :: ParachainTemporarySlot < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > ; - pub type Param0 = runtime_types::polkadot_parachain_primitives::primitives::Id; - } - pub mod temporary_slot_count { - use super::runtime_types; - pub type TemporarySlotCount = ::core::primitive::u32; - } - pub mod active_temporary_slot_count { - use super::runtime_types; - pub type ActiveTemporarySlotCount = ::core::primitive::u32; - } - pub mod max_temporary_slots { - use super::runtime_types; - pub type MaxTemporarySlots = ::core::primitive::u32; - } - pub mod max_permanent_slots { - use super::runtime_types; - pub type MaxPermanentSlots = ::core::primitive::u32; - } - } - pub struct StorageApi; - impl StorageApi { - #[doc = " Assigned permanent slots, with their start lease period, and duration."] - pub fn permanent_slots_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::permanent_slots::PermanentSlots, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "AssignedSlots", - "PermanentSlots", - vec![], - [ - 133u8, 179u8, 221u8, 222u8, 50u8, 75u8, 158u8, 137u8, 167u8, 190u8, - 19u8, 237u8, 201u8, 44u8, 86u8, 64u8, 57u8, 61u8, 96u8, 112u8, 218u8, - 186u8, 176u8, 58u8, 143u8, 61u8, 105u8, 13u8, 103u8, 162u8, 188u8, - 154u8, - ], - ) - } - #[doc = " Assigned permanent slots, with their start lease period, and duration."] - pub fn permanent_slots( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::permanent_slots::PermanentSlots, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "AssignedSlots", - "PermanentSlots", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 133u8, 179u8, 221u8, 222u8, 50u8, 75u8, 158u8, 137u8, 167u8, 190u8, - 19u8, 237u8, 201u8, 44u8, 86u8, 64u8, 57u8, 61u8, 96u8, 112u8, 218u8, - 186u8, 176u8, 58u8, 143u8, 61u8, 105u8, 13u8, 103u8, 162u8, 188u8, - 154u8, - ], - ) - } - #[doc = " Number of assigned (and active) permanent slots."] - pub fn permanent_slot_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::permanent_slot_count::PermanentSlotCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "AssignedSlots", - "PermanentSlotCount", - vec![], - [ - 57u8, 211u8, 19u8, 233u8, 105u8, 201u8, 166u8, 99u8, 53u8, 217u8, 23u8, - 64u8, 216u8, 129u8, 21u8, 36u8, 234u8, 24u8, 57u8, 99u8, 13u8, 205u8, - 201u8, 78u8, 28u8, 96u8, 232u8, 62u8, 91u8, 235u8, 157u8, 213u8, - ], - ) - } - #[doc = " Assigned temporary slots."] - pub fn temporary_slots_iter( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::temporary_slots::TemporarySlots, - (), - (), - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "AssignedSlots", - "TemporarySlots", - vec![], - [ - 184u8, 245u8, 181u8, 90u8, 169u8, 232u8, 108u8, 3u8, 153u8, 4u8, 176u8, - 170u8, 230u8, 163u8, 236u8, 111u8, 196u8, 218u8, 154u8, 125u8, 102u8, - 216u8, 195u8, 126u8, 99u8, 90u8, 242u8, 141u8, 214u8, 165u8, 32u8, - 57u8, - ], - ) - } - #[doc = " Assigned temporary slots."] - pub fn temporary_slots( - &self, - _0: impl ::std::borrow::Borrow, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::temporary_slots::TemporarySlots, - ::subxt::storage::address::Yes, - (), - (), - > { - ::subxt::storage::address::Address::new_static( - "AssignedSlots", - "TemporarySlots", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 184u8, 245u8, 181u8, 90u8, 169u8, 232u8, 108u8, 3u8, 153u8, 4u8, 176u8, - 170u8, 230u8, 163u8, 236u8, 111u8, 196u8, 218u8, 154u8, 125u8, 102u8, - 216u8, 195u8, 126u8, 99u8, 90u8, 242u8, 141u8, 214u8, 165u8, 32u8, - 57u8, - ], - ) - } - #[doc = " Number of assigned temporary slots."] - pub fn temporary_slot_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::temporary_slot_count::TemporarySlotCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "AssignedSlots", - "TemporarySlotCount", - vec![], - [ - 218u8, 236u8, 69u8, 75u8, 224u8, 60u8, 9u8, 197u8, 217u8, 4u8, 210u8, - 55u8, 125u8, 106u8, 239u8, 208u8, 115u8, 105u8, 94u8, 223u8, 219u8, - 27u8, 175u8, 161u8, 120u8, 168u8, 36u8, 239u8, 136u8, 228u8, 7u8, 15u8, - ], - ) - } - #[doc = " Number of active temporary slots in current slot lease period."] - pub fn active_temporary_slot_count( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::active_temporary_slot_count::ActiveTemporarySlotCount, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "AssignedSlots", - "ActiveTemporarySlotCount", - vec![], - [ - 153u8, 99u8, 232u8, 164u8, 137u8, 10u8, 232u8, 172u8, 78u8, 4u8, 69u8, - 178u8, 245u8, 220u8, 56u8, 251u8, 60u8, 238u8, 127u8, 246u8, 60u8, - 11u8, 240u8, 185u8, 2u8, 194u8, 69u8, 212u8, 173u8, 205u8, 205u8, - 198u8, - ], - ) - } - #[doc = " The max number of temporary slots that can be assigned."] - pub fn max_temporary_slots( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::max_temporary_slots::MaxTemporarySlots, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "AssignedSlots", - "MaxTemporarySlots", - vec![], - [ - 129u8, 130u8, 136u8, 77u8, 149u8, 130u8, 130u8, 195u8, 150u8, 114u8, - 199u8, 133u8, 86u8, 252u8, 149u8, 149u8, 131u8, 248u8, 70u8, 39u8, - 22u8, 101u8, 175u8, 13u8, 32u8, 138u8, 81u8, 20u8, 41u8, 46u8, 238u8, - 187u8, - ], - ) - } - #[doc = " The max number of permanent slots that can be assigned."] - pub fn max_permanent_slots( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - types::max_permanent_slots::MaxPermanentSlots, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "AssignedSlots", - "MaxPermanentSlots", - vec![], - [ - 20u8, 72u8, 203u8, 62u8, 120u8, 21u8, 97u8, 9u8, 138u8, 135u8, 67u8, - 152u8, 131u8, 197u8, 59u8, 80u8, 226u8, 148u8, 159u8, 122u8, 34u8, - 86u8, 162u8, 80u8, 208u8, 151u8, 43u8, 164u8, 120u8, 33u8, 144u8, - 118u8, + 214u8, 57u8, 205u8, 194u8, 71u8, 78u8, 102u8, 235u8, 98u8, 195u8, 44u8, + 211u8, 64u8, 65u8, 170u8, 140u8, 7u8, 29u8, 196u8, 108u8, 199u8, 115u8, + 50u8, 193u8, 164u8, 237u8, 164u8, 214u8, 38u8, 81u8, 223u8, 14u8, ], ) } @@ -39703,13 +48143,17 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The number of lease periods a permanent parachain slot lasts."] - pub fn permanent_slot_lease_period_length( + #[doc = " The number of blocks within a cycle which accounts have to register their intent to"] + #[doc = " claim."] + #[doc = ""] + #[doc = " The number of blocks between sequential payout cycles is the sum of this and"] + #[doc = " `PayoutPeriod`."] + pub fn registration_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "AssignedSlots", - "PermanentSlotLeasePeriodLength", + "Salary", + "RegistrationPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -39718,13 +48162,14 @@ pub mod api { ], ) } - #[doc = " The number of lease periods a temporary parachain slot lasts."] - pub fn temporary_slot_lease_period_length( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " The number of blocks within a cycle which accounts have to claim the payout."] + #[doc = ""] + #[doc = " The number of blocks between sequential payout cycles is the sum of this and"] + #[doc = " `RegistrationPeriod`."] + pub fn payout_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( - "AssignedSlots", - "TemporarySlotLeasePeriodLength", + "Salary", + "PayoutPeriod", [ 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, @@ -39733,29 +48178,30 @@ pub mod api { ], ) } - #[doc = " The max number of temporary slots to be scheduled per lease periods."] - pub fn max_temporary_slot_per_lease_period( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { + #[doc = " The total budget per cycle."] + #[doc = ""] + #[doc = " This may change over the course of a cycle without any problem."] + pub fn budget(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( - "AssignedSlots", - "MaxTemporarySlotPerLeasePeriod", + "Salary", + "Budget", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, ], ) } } } } - pub mod validator_manager { + pub mod core_fellowship { use super::root_mod; use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_core_fellowship::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::rococo_runtime::validator_manager::pallet::Call; + pub type Call = runtime_types::pallet_core_fellowship::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -39772,17 +48218,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::register_validators`]."] - pub struct RegisterValidators { - pub validators: register_validators::Validators, + #[doc = "See [`Pallet::bump`]."] + pub struct Bump { + pub who: bump::Who, } - pub mod register_validators { + pub mod bump { use super::runtime_types; - pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Who = ::subxt::utils::AccountId32; } - impl ::subxt::blocks::StaticExtrinsic for RegisterValidators { - const PALLET: &'static str = "ValidatorManager"; - const CALL: &'static str = "register_validators"; + impl ::subxt::blocks::StaticExtrinsic for Bump { + const PALLET: &'static str = "CoreFellowship"; + const CALL: &'static str = "bump"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39794,59 +48240,329 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::deregister_validators`]."] - pub struct DeregisterValidators { - pub validators: deregister_validators::Validators, + #[doc = "See [`Pallet::set_params`]."] + pub struct SetParams { + pub params: ::std::boxed::Box, } - pub mod deregister_validators { + pub mod set_params { use super::runtime_types; - pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Params = runtime_types::pallet_core_fellowship::ParamsType< + ::core::primitive::u128, + ::core::primitive::u32, + >; } - impl ::subxt::blocks::StaticExtrinsic for DeregisterValidators { - const PALLET: &'static str = "ValidatorManager"; - const CALL: &'static str = "deregister_validators"; + impl ::subxt::blocks::StaticExtrinsic for SetParams { + const PALLET: &'static str = "CoreFellowship"; + const CALL: &'static str = "set_params"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_active`]."] + pub struct SetActive { + pub is_active: set_active::IsActive, + } + pub mod set_active { + use super::runtime_types; + pub type IsActive = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for SetActive { + const PALLET: &'static str = "CoreFellowship"; + const CALL: &'static str = "set_active"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::approve`]."] + pub struct Approve { + pub who: approve::Who, + pub at_rank: approve::AtRank, + } + pub mod approve { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type AtRank = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for Approve { + const PALLET: &'static str = "CoreFellowship"; + const CALL: &'static str = "approve"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::induct`]."] + pub struct Induct { + pub who: induct::Who, + } + pub mod induct { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for Induct { + const PALLET: &'static str = "CoreFellowship"; + const CALL: &'static str = "induct"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::promote`]."] + pub struct Promote { + pub who: promote::Who, + pub to_rank: promote::ToRank, + } + pub mod promote { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type ToRank = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for Promote { + const PALLET: &'static str = "CoreFellowship"; + const CALL: &'static str = "promote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::offboard`]."] + pub struct Offboard { + pub who: offboard::Who, + } + pub mod offboard { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for Offboard { + const PALLET: &'static str = "CoreFellowship"; + const CALL: &'static str = "offboard"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::submit_evidence`]."] + pub struct SubmitEvidence { + pub wish: submit_evidence::Wish, + pub evidence: submit_evidence::Evidence, + } + pub mod submit_evidence { + use super::runtime_types; + pub type Wish = runtime_types::pallet_core_fellowship::Wish; + pub type Evidence = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SubmitEvidence { + const PALLET: &'static str = "CoreFellowship"; + const CALL: &'static str = "submit_evidence"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::import`]."] + pub struct Import; + impl ::subxt::blocks::StaticExtrinsic for Import { + const PALLET: &'static str = "CoreFellowship"; + const CALL: &'static str = "import"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::register_validators`]."] - pub fn register_validators( - &self, - validators: types::register_validators::Validators, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::bump`]."] + pub fn bump(&self, who: types::bump::Who) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ValidatorManager", - "register_validators", - types::RegisterValidators { validators }, + "CoreFellowship", + "bump", + types::Bump { who }, [ - 181u8, 41u8, 122u8, 3u8, 39u8, 160u8, 138u8, 83u8, 145u8, 147u8, 107u8, - 151u8, 213u8, 31u8, 237u8, 89u8, 119u8, 154u8, 14u8, 23u8, 238u8, - 247u8, 201u8, 92u8, 68u8, 127u8, 56u8, 178u8, 125u8, 152u8, 17u8, - 147u8, + 180u8, 65u8, 148u8, 135u8, 240u8, 193u8, 90u8, 51u8, 204u8, 31u8, 43u8, + 112u8, 183u8, 87u8, 205u8, 180u8, 199u8, 75u8, 115u8, 178u8, 133u8, + 71u8, 36u8, 223u8, 38u8, 65u8, 118u8, 53u8, 174u8, 46u8, 200u8, 47u8, ], ) } - #[doc = "See [`Pallet::deregister_validators`]."] - pub fn deregister_validators( + #[doc = "See [`Pallet::set_params`]."] + pub fn set_params( &self, - validators: types::deregister_validators::Validators, - ) -> ::subxt::tx::Payload { + params: types::set_params::Params, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "ValidatorManager", - "deregister_validators", - types::DeregisterValidators { validators }, + "CoreFellowship", + "set_params", + types::SetParams { + params: ::std::boxed::Box::new(params), + }, [ - 150u8, 134u8, 135u8, 215u8, 121u8, 111u8, 44u8, 52u8, 25u8, 244u8, - 130u8, 47u8, 66u8, 73u8, 243u8, 49u8, 171u8, 143u8, 34u8, 122u8, 55u8, - 234u8, 176u8, 221u8, 106u8, 61u8, 102u8, 234u8, 13u8, 233u8, 211u8, - 214u8, + 79u8, 185u8, 134u8, 228u8, 177u8, 23u8, 155u8, 122u8, 74u8, 195u8, + 97u8, 57u8, 228u8, 116u8, 214u8, 34u8, 248u8, 30u8, 99u8, 109u8, 230u8, + 251u8, 166u8, 34u8, 147u8, 147u8, 165u8, 112u8, 246u8, 125u8, 37u8, + 11u8, + ], + ) + } + #[doc = "See [`Pallet::set_active`]."] + pub fn set_active( + &self, + is_active: types::set_active::IsActive, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "CoreFellowship", + "set_active", + types::SetActive { is_active }, + [ + 11u8, 140u8, 134u8, 169u8, 7u8, 7u8, 173u8, 26u8, 215u8, 126u8, 16u8, + 115u8, 181u8, 201u8, 67u8, 167u8, 46u8, 235u8, 211u8, 18u8, 28u8, 32u8, + 124u8, 18u8, 165u8, 200u8, 71u8, 101u8, 182u8, 249u8, 232u8, 23u8, + ], + ) + } + #[doc = "See [`Pallet::approve`]."] + pub fn approve( + &self, + who: types::approve::Who, + at_rank: types::approve::AtRank, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "CoreFellowship", + "approve", + types::Approve { who, at_rank }, + [ + 48u8, 239u8, 38u8, 96u8, 94u8, 199u8, 81u8, 160u8, 140u8, 194u8, 203u8, + 16u8, 79u8, 221u8, 248u8, 215u8, 34u8, 165u8, 0u8, 126u8, 204u8, 21u8, + 21u8, 249u8, 2u8, 134u8, 203u8, 208u8, 74u8, 120u8, 253u8, 162u8, + ], + ) + } + #[doc = "See [`Pallet::induct`]."] + pub fn induct( + &self, + who: types::induct::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "CoreFellowship", + "induct", + types::Induct { who }, + [ + 171u8, 247u8, 122u8, 56u8, 236u8, 137u8, 39u8, 91u8, 66u8, 152u8, 97u8, + 90u8, 3u8, 106u8, 79u8, 33u8, 92u8, 94u8, 44u8, 41u8, 52u8, 0u8, 23u8, + 187u8, 13u8, 20u8, 191u8, 3u8, 196u8, 247u8, 32u8, 168u8, + ], + ) + } + #[doc = "See [`Pallet::promote`]."] + pub fn promote( + &self, + who: types::promote::Who, + to_rank: types::promote::ToRank, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "CoreFellowship", + "promote", + types::Promote { who, to_rank }, + [ + 68u8, 208u8, 124u8, 74u8, 20u8, 202u8, 40u8, 44u8, 95u8, 74u8, 199u8, + 2u8, 155u8, 43u8, 146u8, 228u8, 22u8, 199u8, 97u8, 57u8, 79u8, 93u8, + 103u8, 187u8, 186u8, 4u8, 185u8, 151u8, 22u8, 35u8, 51u8, 80u8, + ], + ) + } + #[doc = "See [`Pallet::offboard`]."] + pub fn offboard( + &self, + who: types::offboard::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "CoreFellowship", + "offboard", + types::Offboard { who }, + [ + 68u8, 199u8, 61u8, 211u8, 153u8, 168u8, 135u8, 106u8, 184u8, 100u8, + 125u8, 196u8, 9u8, 30u8, 156u8, 152u8, 21u8, 157u8, 100u8, 170u8, 35u8, + 58u8, 47u8, 155u8, 130u8, 183u8, 145u8, 229u8, 202u8, 67u8, 130u8, + 144u8, + ], + ) + } + #[doc = "See [`Pallet::submit_evidence`]."] + pub fn submit_evidence( + &self, + wish: types::submit_evidence::Wish, + evidence: types::submit_evidence::Evidence, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "CoreFellowship", + "submit_evidence", + types::SubmitEvidence { wish, evidence }, + [ + 197u8, 53u8, 78u8, 217u8, 229u8, 37u8, 96u8, 141u8, 242u8, 204u8, 70u8, + 183u8, 244u8, 7u8, 169u8, 54u8, 186u8, 6u8, 193u8, 163u8, 135u8, 94u8, + 239u8, 239u8, 174u8, 120u8, 153u8, 250u8, 15u8, 121u8, 95u8, 181u8, + ], + ) + } + #[doc = "See [`Pallet::import`]."] + pub fn import(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "CoreFellowship", + "import", + types::Import {}, + [ + 3u8, 214u8, 92u8, 209u8, 28u8, 97u8, 244u8, 198u8, 54u8, 26u8, 106u8, + 211u8, 40u8, 217u8, 208u8, 128u8, 182u8, 32u8, 139u8, 48u8, 12u8, 50u8, + 167u8, 23u8, 237u8, 15u8, 230u8, 255u8, 17u8, 88u8, 88u8, 25u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::rococo_runtime::validator_manager::pallet::Event; + pub type Event = runtime_types::pallet_core_fellowship::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -39859,15 +48575,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "New validators were added to the set."] - pub struct ValidatorsRegistered(pub validators_registered::Field0); - pub mod validators_registered { - use super::runtime_types; - pub type Field0 = ::std::vec::Vec<::subxt::utils::AccountId32>; + #[doc = "Parameters for the pallet have changed."] + pub struct ParamsChanged { + pub params: params_changed::Params, } - impl ::subxt::events::StaticEvent for ValidatorsRegistered { - const PALLET: &'static str = "ValidatorManager"; - const EVENT: &'static str = "ValidatorsRegistered"; + pub mod params_changed { + use super::runtime_types; + pub type Params = runtime_types::pallet_core_fellowship::ParamsType< + ::core::primitive::u128, + ::core::primitive::u32, + >; + } + impl ::subxt::events::StaticEvent for ParamsChanged { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "ParamsChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -39879,72 +48600,1236 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Validators were removed from the set."] - pub struct ValidatorsDeregistered(pub validators_deregistered::Field0); - pub mod validators_deregistered { - use super::runtime_types; - pub type Field0 = ::std::vec::Vec<::subxt::utils::AccountId32>; + #[doc = "Member activity flag has been set."] + pub struct ActiveChanged { + pub who: active_changed::Who, + pub is_active: active_changed::IsActive, } - impl ::subxt::events::StaticEvent for ValidatorsDeregistered { - const PALLET: &'static str = "ValidatorManager"; - const EVENT: &'static str = "ValidatorsDeregistered"; + pub mod active_changed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type IsActive = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for ActiveChanged { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "ActiveChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Member has begun being tracked in this pallet."] + pub struct Inducted { + pub who: inducted::Who, + } + pub mod inducted { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Inducted { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "Inducted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Member has been removed from being tracked in this pallet (i.e. because rank is now"] + #[doc = "zero)."] + pub struct Offboarded { + pub who: offboarded::Who, + } + pub mod offboarded { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Offboarded { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "Offboarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Member has been promoted to the given rank."] + pub struct Promoted { + pub who: promoted::Who, + pub to_rank: promoted::ToRank, + } + pub mod promoted { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type ToRank = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for Promoted { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "Promoted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Member has been demoted to the given (non-zero) rank."] + pub struct Demoted { + pub who: demoted::Who, + pub to_rank: demoted::ToRank, + } + pub mod demoted { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type ToRank = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for Demoted { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "Demoted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Member has been proven at their current rank, postponing auto-demotion."] + pub struct Proven { + pub who: proven::Who, + pub at_rank: proven::AtRank, + } + pub mod proven { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type AtRank = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for Proven { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "Proven"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Member has stated evidence of their efforts their request for rank."] + pub struct Requested { + pub who: requested::Who, + pub wish: requested::Wish, + } + pub mod requested { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Wish = runtime_types::pallet_core_fellowship::Wish; + } + impl ::subxt::events::StaticEvent for Requested { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "Requested"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some submitted evidence was judged and removed. There may or may not have been a change"] + #[doc = "to the rank, but in any case, `last_proof` is reset."] + pub struct EvidenceJudged { + pub who: evidence_judged::Who, + pub wish: evidence_judged::Wish, + pub evidence: evidence_judged::Evidence, + pub old_rank: evidence_judged::OldRank, + pub new_rank: evidence_judged::NewRank, + } + pub mod evidence_judged { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Wish = runtime_types::pallet_core_fellowship::Wish; + pub type Evidence = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type OldRank = ::core::primitive::u16; + pub type NewRank = ::core::option::Option<::core::primitive::u16>; + } + impl ::subxt::events::StaticEvent for EvidenceJudged { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "EvidenceJudged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Pre-ranked account has been inducted at their current rank."] + pub struct Imported { + pub who: imported::Who, + pub rank: imported::Rank, + } + pub mod imported { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Rank = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for Imported { + const PALLET: &'static str = "CoreFellowship"; + const EVENT: &'static str = "Imported"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod validators_to_retire { + pub mod params { use super::runtime_types; - pub type ValidatorsToRetire = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Params = runtime_types::pallet_core_fellowship::ParamsType< + ::core::primitive::u128, + ::core::primitive::u32, + >; } - pub mod validators_to_add { + pub mod member { use super::runtime_types; - pub type ValidatorsToAdd = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Member = + runtime_types::pallet_core_fellowship::MemberStatus<::core::primitive::u32>; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod member_evidence { + use super::runtime_types; + pub type MemberEvidence = ( + runtime_types::pallet_core_fellowship::Wish, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ); + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; impl StorageApi { - #[doc = " Validators that should be retired, because their Parachain was deregistered."] - pub fn validators_to_retire( + #[doc = " The overall status of the system."] + pub fn params( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::validators_to_retire::ValidatorsToRetire, + types::params::Params, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "ValidatorManager", - "ValidatorsToRetire", + "CoreFellowship", + "Params", vec![], [ - 137u8, 92u8, 99u8, 157u8, 254u8, 166u8, 190u8, 64u8, 111u8, 212u8, - 37u8, 90u8, 164u8, 0u8, 31u8, 15u8, 83u8, 21u8, 225u8, 7u8, 57u8, - 104u8, 64u8, 192u8, 58u8, 38u8, 36u8, 133u8, 181u8, 229u8, 200u8, 65u8, + 87u8, 9u8, 129u8, 248u8, 30u8, 74u8, 89u8, 128u8, 240u8, 253u8, 173u8, + 175u8, 236u8, 254u8, 209u8, 195u8, 179u8, 117u8, 170u8, 0u8, 36u8, + 140u8, 48u8, 33u8, 142u8, 35u8, 194u8, 246u8, 90u8, 238u8, 159u8, 19u8, ], ) } - #[doc = " Validators that should be added."] - pub fn validators_to_add( + #[doc = " The status of a claimant."] + pub fn member_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::validators_to_add::ValidatorsToAdd, + types::member::Member, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "CoreFellowship", + "Member", + vec![], + [ + 21u8, 170u8, 129u8, 176u8, 142u8, 188u8, 220u8, 240u8, 26u8, 48u8, + 38u8, 186u8, 8u8, 145u8, 41u8, 235u8, 109u8, 45u8, 254u8, 160u8, 71u8, + 143u8, 193u8, 5u8, 155u8, 222u8, 187u8, 250u8, 95u8, 98u8, 192u8, + 182u8, + ], + ) + } + #[doc = " The status of a claimant."] + pub fn member( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::member::Member, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "CoreFellowship", + "Member", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 21u8, 170u8, 129u8, 176u8, 142u8, 188u8, 220u8, 240u8, 26u8, 48u8, + 38u8, 186u8, 8u8, 145u8, 41u8, 235u8, 109u8, 45u8, 254u8, 160u8, 71u8, + 143u8, 193u8, 5u8, 155u8, 222u8, 187u8, 250u8, 95u8, 98u8, 192u8, + 182u8, + ], + ) + } + #[doc = " Some evidence together with the desired outcome for which it was presented."] + pub fn member_evidence_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::member_evidence::MemberEvidence, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "CoreFellowship", + "MemberEvidence", + vec![], + [ + 137u8, 201u8, 135u8, 164u8, 137u8, 150u8, 117u8, 164u8, 53u8, 254u8, + 48u8, 225u8, 141u8, 18u8, 173u8, 13u8, 205u8, 161u8, 249u8, 7u8, 50u8, + 7u8, 166u8, 211u8, 163u8, 54u8, 204u8, 134u8, 228u8, 64u8, 167u8, 9u8, + ], + ) + } + #[doc = " Some evidence together with the desired outcome for which it was presented."] + pub fn member_evidence( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::member_evidence::MemberEvidence, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "CoreFellowship", + "MemberEvidence", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 137u8, 201u8, 135u8, 164u8, 137u8, 150u8, 117u8, 164u8, 53u8, 254u8, + 48u8, 225u8, 141u8, 18u8, 173u8, 13u8, 205u8, 161u8, 249u8, 7u8, 50u8, + 7u8, 166u8, 211u8, 163u8, 54u8, 204u8, 134u8, 228u8, 64u8, 167u8, 9u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum size in bytes submitted evidence is allowed to be."] + pub fn evidence_size(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "CoreFellowship", + "EvidenceSize", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod transaction_storage { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_transaction_storage::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_transaction_storage::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::store`]."] + pub struct Store { + pub data: store::Data, + } + pub mod store { + use super::runtime_types; + pub type Data = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::blocks::StaticExtrinsic for Store { + const PALLET: &'static str = "TransactionStorage"; + const CALL: &'static str = "store"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::renew`]."] + pub struct Renew { + pub block: renew::Block, + pub index: renew::Index, + } + pub mod renew { + use super::runtime_types; + pub type Block = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Renew { + const PALLET: &'static str = "TransactionStorage"; + const CALL: &'static str = "renew"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::check_proof`]."] + pub struct CheckProof { + pub proof: check_proof::Proof, + } + pub mod check_proof { + use super::runtime_types; + pub type Proof = + runtime_types::sp_transaction_storage_proof::TransactionStorageProof; + } + impl ::subxt::blocks::StaticExtrinsic for CheckProof { + const PALLET: &'static str = "TransactionStorage"; + const CALL: &'static str = "check_proof"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::store`]."] + pub fn store( + &self, + data: types::store::Data, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TransactionStorage", + "store", + types::Store { data }, + [ + 206u8, 250u8, 219u8, 199u8, 43u8, 149u8, 100u8, 135u8, 136u8, 157u8, + 4u8, 205u8, 16u8, 254u8, 37u8, 205u8, 252u8, 243u8, 11u8, 142u8, 199u8, + 101u8, 129u8, 22u8, 198u8, 219u8, 81u8, 184u8, 108u8, 80u8, 240u8, + 185u8, + ], + ) + } + #[doc = "See [`Pallet::renew`]."] + pub fn renew( + &self, + block: types::renew::Block, + index: types::renew::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TransactionStorage", + "renew", + types::Renew { block, index }, + [ + 253u8, 52u8, 94u8, 230u8, 184u8, 111u8, 67u8, 187u8, 123u8, 250u8, + 168u8, 125u8, 147u8, 147u8, 201u8, 199u8, 216u8, 115u8, 237u8, 184u8, + 26u8, 59u8, 214u8, 226u8, 252u8, 61u8, 153u8, 119u8, 252u8, 11u8, + 157u8, 227u8, + ], + ) + } + #[doc = "See [`Pallet::check_proof`]."] + pub fn check_proof( + &self, + proof: types::check_proof::Proof, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TransactionStorage", + "check_proof", + types::CheckProof { proof }, + [ + 236u8, 177u8, 188u8, 0u8, 181u8, 147u8, 171u8, 15u8, 59u8, 152u8, + 145u8, 111u8, 86u8, 56u8, 206u8, 122u8, 185u8, 230u8, 82u8, 247u8, + 234u8, 144u8, 192u8, 99u8, 80u8, 116u8, 164u8, 200u8, 29u8, 4u8, 90u8, + 253u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_transaction_storage::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Stored data under specified index."] + pub struct Stored { + pub index: stored::Index, + } + pub mod stored { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Stored { + const PALLET: &'static str = "TransactionStorage"; + const EVENT: &'static str = "Stored"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Renewed data under specified index."] + pub struct Renewed { + pub index: renewed::Index, + } + pub mod renewed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Renewed { + const PALLET: &'static str = "TransactionStorage"; + const EVENT: &'static str = "Renewed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Storage proof was successfully checked."] + pub struct ProofChecked; + impl ::subxt::events::StaticEvent for ProofChecked { + const PALLET: &'static str = "TransactionStorage"; + const EVENT: &'static str = "ProofChecked"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod transactions { + use super::runtime_types; + pub type Transactions = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_transaction_storage::TransactionInfo, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod chunk_count { + use super::runtime_types; + pub type ChunkCount = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + } + pub mod byte_fee { + use super::runtime_types; + pub type ByteFee = ::core::primitive::u128; + } + pub mod entry_fee { + use super::runtime_types; + pub type EntryFee = ::core::primitive::u128; + } + pub mod storage_period { + use super::runtime_types; + pub type StoragePeriod = ::core::primitive::u32; + } + pub mod block_transactions { + use super::runtime_types; + pub type BlockTransactions = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_transaction_storage::TransactionInfo, + >; + } + pub mod proof_checked { + use super::runtime_types; + pub type ProofChecked = ::core::primitive::bool; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Collection of transaction metadata by block number."] + pub fn transactions_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::transactions::Transactions, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TransactionStorage", + "Transactions", + vec![], + [ + 50u8, 115u8, 58u8, 195u8, 223u8, 70u8, 200u8, 31u8, 28u8, 54u8, 180u8, + 16u8, 146u8, 235u8, 133u8, 14u8, 117u8, 202u8, 228u8, 79u8, 203u8, + 158u8, 214u8, 114u8, 9u8, 192u8, 20u8, 203u8, 252u8, 59u8, 158u8, 56u8, + ], + ) + } + #[doc = " Collection of transaction metadata by block number."] + pub fn transactions( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::transactions::Transactions, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionStorage", + "Transactions", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 50u8, 115u8, 58u8, 195u8, 223u8, 70u8, 200u8, 31u8, 28u8, 54u8, 180u8, + 16u8, 146u8, 235u8, 133u8, 14u8, 117u8, 202u8, 228u8, 79u8, 203u8, + 158u8, 214u8, 114u8, 9u8, 192u8, 20u8, 203u8, 252u8, 59u8, 158u8, 56u8, + ], + ) + } + #[doc = " Count indexed chunks for each block."] + pub fn chunk_count_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::chunk_count::ChunkCount, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TransactionStorage", + "ChunkCount", + vec![], + [ + 40u8, 36u8, 46u8, 167u8, 205u8, 49u8, 30u8, 207u8, 188u8, 144u8, 228u8, + 184u8, 5u8, 231u8, 59u8, 29u8, 253u8, 40u8, 146u8, 161u8, 175u8, 129u8, + 11u8, 97u8, 97u8, 139u8, 235u8, 161u8, 155u8, 9u8, 17u8, 153u8, + ], + ) + } + #[doc = " Count indexed chunks for each block."] + pub fn chunk_count( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::chunk_count::ChunkCount, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), > { ::subxt::storage::address::Address::new_static( - "ValidatorManager", - "ValidatorsToAdd", + "TransactionStorage", + "ChunkCount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 40u8, 36u8, 46u8, 167u8, 205u8, 49u8, 30u8, 207u8, 188u8, 144u8, 228u8, + 184u8, 5u8, 231u8, 59u8, 29u8, 253u8, 40u8, 146u8, 161u8, 175u8, 129u8, + 11u8, 97u8, 97u8, 139u8, 235u8, 161u8, 155u8, 9u8, 17u8, 153u8, + ], + ) + } + #[doc = " Storage fee per byte."] + pub fn byte_fee( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::byte_fee::ByteFee, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionStorage", + "ByteFee", vec![], [ - 168u8, 209u8, 123u8, 225u8, 168u8, 62u8, 18u8, 174u8, 164u8, 161u8, - 228u8, 179u8, 251u8, 112u8, 210u8, 173u8, 24u8, 177u8, 111u8, 129u8, - 97u8, 230u8, 231u8, 103u8, 72u8, 104u8, 222u8, 156u8, 190u8, 150u8, - 147u8, 68u8, + 209u8, 94u8, 139u8, 181u8, 148u8, 211u8, 47u8, 97u8, 52u8, 145u8, + 119u8, 8u8, 147u8, 35u8, 77u8, 84u8, 199u8, 194u8, 156u8, 124u8, 11u8, + 88u8, 29u8, 60u8, 252u8, 0u8, 160u8, 120u8, 54u8, 140u8, 42u8, 117u8, + ], + ) + } + #[doc = " Storage fee per transaction."] + pub fn entry_fee( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::entry_fee::EntryFee, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionStorage", + "EntryFee", + vec![], + [ + 239u8, 84u8, 144u8, 150u8, 82u8, 48u8, 225u8, 43u8, 194u8, 91u8, 59u8, + 7u8, 10u8, 24u8, 31u8, 225u8, 37u8, 238u8, 208u8, 239u8, 240u8, 217u8, + 175u8, 235u8, 130u8, 228u8, 137u8, 191u8, 68u8, 36u8, 214u8, 44u8, + ], + ) + } + #[doc = " Storage period for data in blocks. Should match `sp_storage_proof::DEFAULT_STORAGE_PERIOD`"] + #[doc = " for block authoring."] + pub fn storage_period( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::storage_period::StoragePeriod, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionStorage", + "StoragePeriod", + vec![], + [ + 216u8, 25u8, 211u8, 29u8, 44u8, 8u8, 203u8, 188u8, 175u8, 234u8, 124u8, + 27u8, 111u8, 72u8, 192u8, 231u8, 138u8, 193u8, 172u8, 164u8, 247u8, + 150u8, 75u8, 166u8, 124u8, 41u8, 166u8, 115u8, 93u8, 177u8, 13u8, + 166u8, + ], + ) + } + pub fn block_transactions( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::block_transactions::BlockTransactions, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionStorage", + "BlockTransactions", + vec![], + [ + 100u8, 239u8, 178u8, 254u8, 235u8, 228u8, 155u8, 41u8, 171u8, 98u8, + 247u8, 160u8, 243u8, 26u8, 144u8, 8u8, 52u8, 226u8, 60u8, 214u8, 225u8, + 56u8, 146u8, 168u8, 103u8, 203u8, 160u8, 110u8, 245u8, 182u8, 86u8, + 127u8, + ], + ) + } + #[doc = " Was the proof checked in this block?"] + pub fn proof_checked( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proof_checked::ProofChecked, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionStorage", + "ProofChecked", + vec![], + [ + 129u8, 114u8, 179u8, 216u8, 245u8, 71u8, 184u8, 77u8, 206u8, 103u8, + 123u8, 2u8, 235u8, 142u8, 184u8, 99u8, 228u8, 106u8, 170u8, 72u8, + 119u8, 105u8, 109u8, 111u8, 193u8, 117u8, 230u8, 204u8, 34u8, 83u8, + 229u8, 14u8, + ], + ) + } + } + } + } + pub mod voter_list { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_bags_list::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_bags_list::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::rebag`]."] + pub struct Rebag { + pub dislocated: rebag::Dislocated, + } + pub mod rebag { + use super::runtime_types; + pub type Dislocated = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Rebag { + const PALLET: &'static str = "VoterList"; + const CALL: &'static str = "rebag"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::put_in_front_of`]."] + pub struct PutInFrontOf { + pub lighter: put_in_front_of::Lighter, + } + pub mod put_in_front_of { + use super::runtime_types; + pub type Lighter = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { + const PALLET: &'static str = "VoterList"; + const CALL: &'static str = "put_in_front_of"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::put_in_front_of_other`]."] + pub struct PutInFrontOfOther { + pub heavier: put_in_front_of_other::Heavier, + pub lighter: put_in_front_of_other::Lighter, + } + pub mod put_in_front_of_other { + use super::runtime_types; + pub type Heavier = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Lighter = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for PutInFrontOfOther { + const PALLET: &'static str = "VoterList"; + const CALL: &'static str = "put_in_front_of_other"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::rebag`]."] + pub fn rebag( + &self, + dislocated: types::rebag::Dislocated, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "VoterList", + "rebag", + types::Rebag { dislocated }, + [ + 17u8, 68u8, 184u8, 176u8, 15u8, 190u8, 220u8, 192u8, 28u8, 87u8, 207u8, + 145u8, 178u8, 46u8, 112u8, 18u8, 176u8, 140u8, 102u8, 65u8, 6u8, 77u8, + 64u8, 224u8, 250u8, 114u8, 169u8, 142u8, 231u8, 253u8, 247u8, 230u8, + ], + ) + } + #[doc = "See [`Pallet::put_in_front_of`]."] + pub fn put_in_front_of( + &self, + lighter: types::put_in_front_of::Lighter, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "VoterList", + "put_in_front_of", + types::PutInFrontOf { lighter }, + [ + 237u8, 62u8, 128u8, 96u8, 151u8, 215u8, 182u8, 124u8, 233u8, 141u8, + 76u8, 29u8, 214u8, 88u8, 182u8, 251u8, 221u8, 81u8, 65u8, 223u8, 49u8, + 164u8, 132u8, 60u8, 208u8, 191u8, 195u8, 128u8, 31u8, 7u8, 78u8, 115u8, + ], + ) + } + #[doc = "See [`Pallet::put_in_front_of_other`]."] + pub fn put_in_front_of_other( + &self, + heavier: types::put_in_front_of_other::Heavier, + lighter: types::put_in_front_of_other::Lighter, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "VoterList", + "put_in_front_of_other", + types::PutInFrontOfOther { heavier, lighter }, + [ + 124u8, 92u8, 107u8, 108u8, 210u8, 92u8, 109u8, 96u8, 100u8, 47u8, + 218u8, 221u8, 1u8, 37u8, 242u8, 32u8, 180u8, 53u8, 21u8, 121u8, 174u8, + 219u8, 155u8, 172u8, 201u8, 76u8, 214u8, 51u8, 244u8, 21u8, 115u8, + 165u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_bags_list::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Moved an account from one bag to another."] + pub struct Rebagged { + pub who: rebagged::Who, + pub from: rebagged::From, + pub to: rebagged::To, + } + pub mod rebagged { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type From = ::core::primitive::u64; + pub type To = ::core::primitive::u64; + } + impl ::subxt::events::StaticEvent for Rebagged { + const PALLET: &'static str = "VoterList"; + const EVENT: &'static str = "Rebagged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Updated the score of some account to the given amount."] + pub struct ScoreUpdated { + pub who: score_updated::Who, + pub new_score: score_updated::NewScore, + } + pub mod score_updated { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type NewScore = ::core::primitive::u64; + } + impl ::subxt::events::StaticEvent for ScoreUpdated { + const PALLET: &'static str = "VoterList"; + const EVENT: &'static str = "ScoreUpdated"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod list_nodes { + use super::runtime_types; + pub type ListNodes = runtime_types::pallet_bags_list::list::Node; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod counter_for_list_nodes { + use super::runtime_types; + pub type CounterForListNodes = ::core::primitive::u32; + } + pub mod list_bags { + use super::runtime_types; + pub type ListBags = runtime_types::pallet_bags_list::list::Bag; + pub type Param0 = ::core::primitive::u64; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " A single node, within some bag."] + #[doc = ""] + #[doc = " Nodes store links forward and back within their respective bags."] + pub fn list_nodes_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::list_nodes::ListNodes, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "VoterList", + "ListNodes", + vec![], + [ + 240u8, 139u8, 78u8, 185u8, 159u8, 185u8, 33u8, 229u8, 171u8, 222u8, + 54u8, 81u8, 104u8, 170u8, 49u8, 232u8, 29u8, 117u8, 193u8, 68u8, 225u8, + 180u8, 46u8, 199u8, 100u8, 26u8, 99u8, 216u8, 74u8, 248u8, 73u8, 144u8, + ], + ) + } + #[doc = " A single node, within some bag."] + #[doc = ""] + #[doc = " Nodes store links forward and back within their respective bags."] + pub fn list_nodes( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::list_nodes::ListNodes, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "VoterList", + "ListNodes", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 240u8, 139u8, 78u8, 185u8, 159u8, 185u8, 33u8, 229u8, 171u8, 222u8, + 54u8, 81u8, 104u8, 170u8, 49u8, 232u8, 29u8, 117u8, 193u8, 68u8, 225u8, + 180u8, 46u8, 199u8, 100u8, 26u8, 99u8, 216u8, 74u8, 248u8, 73u8, 144u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_list_nodes( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_list_nodes::CounterForListNodes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "VoterList", + "CounterForListNodes", + vec![], + [ + 126u8, 150u8, 201u8, 81u8, 155u8, 79u8, 50u8, 48u8, 120u8, 170u8, 3u8, + 104u8, 112u8, 254u8, 106u8, 46u8, 108u8, 126u8, 158u8, 245u8, 95u8, + 88u8, 236u8, 89u8, 79u8, 172u8, 13u8, 146u8, 202u8, 151u8, 122u8, + 132u8, + ], + ) + } + #[doc = " A bag stored in storage."] + #[doc = ""] + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] + pub fn list_bags_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::list_bags::ListBags, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "VoterList", + "ListBags", + vec![], + [ + 98u8, 52u8, 177u8, 147u8, 244u8, 169u8, 45u8, 213u8, 76u8, 163u8, 47u8, + 96u8, 197u8, 245u8, 17u8, 208u8, 86u8, 15u8, 233u8, 156u8, 165u8, 44u8, + 164u8, 202u8, 117u8, 167u8, 209u8, 193u8, 218u8, 235u8, 140u8, 158u8, + ], + ) + } + #[doc = " A bag stored in storage."] + #[doc = ""] + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] + pub fn list_bags( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::list_bags::ListBags, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "VoterList", + "ListBags", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 98u8, 52u8, 177u8, 147u8, 244u8, 169u8, 45u8, 213u8, 76u8, 163u8, 47u8, + 96u8, 197u8, 245u8, 17u8, 208u8, 86u8, 15u8, 233u8, 156u8, 165u8, 44u8, + 164u8, 202u8, 117u8, 167u8, 209u8, 193u8, 218u8, 235u8, 140u8, 158u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The list of thresholds separating the various bags."] + #[doc = ""] + #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] + #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] + #[doc = " is less than or equal to its upper threshold."] + #[doc = ""] + #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] + #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] + #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] + #[doc = ""] + #[doc = " # Expressing the constant"] + #[doc = ""] + #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] + #[doc = " permitted."] + #[doc = ""] + #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] + #[doc = " specified within the bag. For any two threshold lists, if one ends with"] + #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] + #[doc = " lists will behave identically."] + #[doc = ""] + #[doc = " # Calculation"] + #[doc = ""] + #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] + #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] + #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] + #[doc = ""] + #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] + #[doc = ""] + #[doc = " # Examples"] + #[doc = ""] + #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] + #[doc = " iteration is strictly in insertion order."] + #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] + #[doc = " the procedure given above, then the constant ratio is equal to 2."] + #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] + #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] + #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] + #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] + #[doc = ""] + #[doc = " # Migration"] + #[doc = ""] + #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] + #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] + pub fn bag_thresholds( + &self, + ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u64>> + { + ::subxt::constants::Address::new_static( + "VoterList", + "BagThresholds", + [ + 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, + 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, + 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, ], ) } @@ -40450,7 +50335,7 @@ pub mod api { #[doc = " - [`frame_support::storage::StorageDoubleMap`]: 96 byte"] #[doc = ""] #[doc = " For more info see"] - #[doc = " "] + #[doc = " "] pub fn max_key_len(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "StateTrieMigration", @@ -40466,6 +50351,2027 @@ pub mod api { } } } + pub mod child_bounties { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_child_bounties::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_child_bounties::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::add_child_bounty`]."] + pub struct AddChildBounty { + #[codec(compact)] + pub parent_bounty_id: add_child_bounty::ParentBountyId, + #[codec(compact)] + pub value: add_child_bounty::Value, + pub description: add_child_bounty::Description, + } + pub mod add_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type Value = ::core::primitive::u128; + pub type Description = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "add_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::propose_curator`]."] + pub struct ProposeCurator { + #[codec(compact)] + pub parent_bounty_id: propose_curator::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: propose_curator::ChildBountyId, + pub curator: propose_curator::Curator, + #[codec(compact)] + pub fee: propose_curator::Fee, + } + pub mod propose_curator { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + pub type Curator = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Fee = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "propose_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::accept_curator`]."] + pub struct AcceptCurator { + #[codec(compact)] + pub parent_bounty_id: accept_curator::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: accept_curator::ChildBountyId, + } + pub mod accept_curator { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "accept_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::unassign_curator`]."] + pub struct UnassignCurator { + #[codec(compact)] + pub parent_bounty_id: unassign_curator::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: unassign_curator::ChildBountyId, + } + pub mod unassign_curator { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "unassign_curator"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::award_child_bounty`]."] + pub struct AwardChildBounty { + #[codec(compact)] + pub parent_bounty_id: award_child_bounty::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: award_child_bounty::ChildBountyId, + pub beneficiary: award_child_bounty::Beneficiary, + } + pub mod award_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "award_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::claim_child_bounty`]."] + pub struct ClaimChildBounty { + #[codec(compact)] + pub parent_bounty_id: claim_child_bounty::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: claim_child_bounty::ChildBountyId, + } + pub mod claim_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "claim_child_bounty"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::close_child_bounty`]."] + pub struct CloseChildBounty { + #[codec(compact)] + pub parent_bounty_id: close_child_bounty::ParentBountyId, + #[codec(compact)] + pub child_bounty_id: close_child_bounty::ChildBountyId, + } + pub mod close_child_bounty { + use super::runtime_types; + pub type ParentBountyId = ::core::primitive::u32; + pub type ChildBountyId = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "close_child_bounty"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::add_child_bounty`]."] + pub fn add_child_bounty( + &self, + parent_bounty_id: types::add_child_bounty::ParentBountyId, + value: types::add_child_bounty::Value, + description: types::add_child_bounty::Description, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "add_child_bounty", + types::AddChildBounty { + parent_bounty_id, + value, + description, + }, + [ + 249u8, 159u8, 185u8, 144u8, 114u8, 142u8, 104u8, 215u8, 136u8, 52u8, + 255u8, 125u8, 54u8, 243u8, 220u8, 171u8, 254u8, 49u8, 105u8, 134u8, + 137u8, 221u8, 100u8, 111u8, 72u8, 38u8, 184u8, 122u8, 72u8, 204u8, + 182u8, 123u8, + ], + ) + } + #[doc = "See [`Pallet::propose_curator`]."] + pub fn propose_curator( + &self, + parent_bounty_id: types::propose_curator::ParentBountyId, + child_bounty_id: types::propose_curator::ChildBountyId, + curator: types::propose_curator::Curator, + fee: types::propose_curator::Fee, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "propose_curator", + types::ProposeCurator { + parent_bounty_id, + child_bounty_id, + curator, + fee, + }, + [ + 15u8, 139u8, 57u8, 81u8, 211u8, 60u8, 35u8, 225u8, 143u8, 75u8, 187u8, + 90u8, 21u8, 158u8, 80u8, 116u8, 87u8, 207u8, 92u8, 76u8, 79u8, 180u8, + 157u8, 200u8, 60u8, 19u8, 147u8, 127u8, 92u8, 158u8, 178u8, 16u8, + ], + ) + } + #[doc = "See [`Pallet::accept_curator`]."] + pub fn accept_curator( + &self, + parent_bounty_id: types::accept_curator::ParentBountyId, + child_bounty_id: types::accept_curator::ChildBountyId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "accept_curator", + types::AcceptCurator { + parent_bounty_id, + child_bounty_id, + }, + [ + 80u8, 117u8, 237u8, 83u8, 230u8, 230u8, 159u8, 136u8, 87u8, 17u8, + 239u8, 110u8, 190u8, 12u8, 52u8, 63u8, 171u8, 118u8, 82u8, 168u8, + 190u8, 255u8, 91u8, 85u8, 117u8, 226u8, 51u8, 28u8, 116u8, 230u8, + 137u8, 123u8, + ], + ) + } + #[doc = "See [`Pallet::unassign_curator`]."] + pub fn unassign_curator( + &self, + parent_bounty_id: types::unassign_curator::ParentBountyId, + child_bounty_id: types::unassign_curator::ChildBountyId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "unassign_curator", + types::UnassignCurator { + parent_bounty_id, + child_bounty_id, + }, + [ + 120u8, 208u8, 75u8, 141u8, 220u8, 153u8, 79u8, 28u8, 255u8, 227u8, + 239u8, 10u8, 243u8, 116u8, 0u8, 226u8, 205u8, 208u8, 91u8, 193u8, + 154u8, 81u8, 169u8, 240u8, 120u8, 48u8, 102u8, 35u8, 25u8, 136u8, 92u8, + 141u8, + ], + ) + } + #[doc = "See [`Pallet::award_child_bounty`]."] + pub fn award_child_bounty( + &self, + parent_bounty_id: types::award_child_bounty::ParentBountyId, + child_bounty_id: types::award_child_bounty::ChildBountyId, + beneficiary: types::award_child_bounty::Beneficiary, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "award_child_bounty", + types::AwardChildBounty { + parent_bounty_id, + child_bounty_id, + beneficiary, + }, + [ + 239u8, 218u8, 175u8, 237u8, 227u8, 66u8, 182u8, 162u8, 38u8, 30u8, + 108u8, 58u8, 24u8, 255u8, 202u8, 56u8, 234u8, 200u8, 138u8, 21u8, 99u8, + 246u8, 199u8, 136u8, 223u8, 83u8, 43u8, 83u8, 130u8, 41u8, 232u8, + 165u8, + ], + ) + } + #[doc = "See [`Pallet::claim_child_bounty`]."] + pub fn claim_child_bounty( + &self, + parent_bounty_id: types::claim_child_bounty::ParentBountyId, + child_bounty_id: types::claim_child_bounty::ChildBountyId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "claim_child_bounty", + types::ClaimChildBounty { + parent_bounty_id, + child_bounty_id, + }, + [ + 114u8, 134u8, 242u8, 240u8, 103u8, 141u8, 181u8, 214u8, 193u8, 222u8, + 23u8, 19u8, 68u8, 174u8, 190u8, 60u8, 94u8, 235u8, 14u8, 115u8, 155u8, + 199u8, 0u8, 106u8, 37u8, 144u8, 92u8, 188u8, 2u8, 149u8, 235u8, 244u8, + ], + ) + } + #[doc = "See [`Pallet::close_child_bounty`]."] + pub fn close_child_bounty( + &self, + parent_bounty_id: types::close_child_bounty::ParentBountyId, + child_bounty_id: types::close_child_bounty::ChildBountyId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "close_child_bounty", + types::CloseChildBounty { + parent_bounty_id, + child_bounty_id, + }, + [ + 121u8, 20u8, 81u8, 13u8, 102u8, 102u8, 162u8, 24u8, 133u8, 35u8, 203u8, + 58u8, 28u8, 195u8, 114u8, 31u8, 254u8, 252u8, 118u8, 57u8, 30u8, 211u8, + 217u8, 124u8, 148u8, 244u8, 144u8, 224u8, 39u8, 155u8, 162u8, 91u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_child_bounties::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is added."] + pub struct Added { + pub index: added::Index, + pub child_index: added::ChildIndex, + } + pub mod added { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Added { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Added"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is awarded to a beneficiary."] + pub struct Awarded { + pub index: awarded::Index, + pub child_index: awarded::ChildIndex, + pub beneficiary: awarded::Beneficiary, + } + pub mod awarded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; + pub type Beneficiary = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Awarded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is claimed by beneficiary."] + pub struct Claimed { + pub index: claimed::Index, + pub child_index: claimed::ChildIndex, + pub payout: claimed::Payout, + pub beneficiary: claimed::Beneficiary, + } + pub mod claimed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; + pub type Payout = ::core::primitive::u128; + pub type Beneficiary = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Claimed { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Claimed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A child-bounty is cancelled."] + pub struct Canceled { + pub index: canceled::Index, + pub child_index: canceled::ChildIndex, + } + pub mod canceled { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type ChildIndex = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Canceled"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod child_bounty_count { + use super::runtime_types; + pub type ChildBountyCount = ::core::primitive::u32; + } + pub mod parent_child_bounties { + use super::runtime_types; + pub type ParentChildBounties = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + } + pub mod child_bounties { + use super::runtime_types; + pub type ChildBounties = runtime_types::pallet_child_bounties::ChildBounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u32, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod child_bounty_descriptions { + use super::runtime_types; + pub type ChildBountyDescriptions = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod children_curator_fees { + use super::runtime_types; + pub type ChildrenCuratorFees = ::core::primitive::u128; + pub type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Number of total child bounties."] + pub fn child_bounty_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::child_bounty_count::ChildBountyCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyCount", + vec![], + [ + 206u8, 1u8, 40u8, 132u8, 51u8, 139u8, 234u8, 20u8, 89u8, 86u8, 247u8, + 107u8, 169u8, 252u8, 5u8, 180u8, 218u8, 24u8, 232u8, 94u8, 82u8, 135u8, + 24u8, 16u8, 134u8, 23u8, 201u8, 86u8, 12u8, 19u8, 199u8, 0u8, + ], + ) + } + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] + pub fn parent_child_bounties_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::parent_child_bounties::ParentChildBounties, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ParentChildBounties", + vec![], + [ + 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, + 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, + 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, + ], + ) + } + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] + pub fn parent_child_bounties( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::parent_child_bounties::ParentChildBounties, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ParentChildBounties", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, + 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, + 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, + ], + ) + } + #[doc = " Child bounties that have been added."] + pub fn child_bounties_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::child_bounties::ChildBounties, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBounties", + vec![], + [ + 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, + 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, + 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, + 242u8, 147u8, + ], + ) + } + #[doc = " Child bounties that have been added."] + pub fn child_bounties_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::child_bounties::ChildBounties, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBounties", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, + 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, + 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, + 242u8, 147u8, + ], + ) + } + #[doc = " Child bounties that have been added."] + pub fn child_bounties( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::child_bounties::ChildBounties, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBounties", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 165u8, 240u8, 158u8, 204u8, 183u8, 190u8, 129u8, 65u8, 226u8, 8u8, + 182u8, 103u8, 46u8, 162u8, 35u8, 155u8, 131u8, 45u8, 163u8, 64u8, + 154u8, 137u8, 126u8, 249u8, 238u8, 156u8, 233u8, 78u8, 28u8, 95u8, + 242u8, 147u8, + ], + ) + } + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::child_bounty_descriptions::ChildBountyDescriptions, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyDescriptions", + vec![], + [ + 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, + 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, + 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, + ], + ) + } + #[doc = " The description of each child-bounty."] + pub fn child_bounty_descriptions( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::child_bounty_descriptions::ChildBountyDescriptions, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyDescriptions", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, + 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, + 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, + ], + ) + } + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::children_curator_fees::ChildrenCuratorFees, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildrenCuratorFees", + vec![], + [ + 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, + 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, + 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, + ], + ) + } + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] + pub fn children_curator_fees( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::children_curator_fees::ChildrenCuratorFees, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildrenCuratorFees", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, + 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, + 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Maximum number of child bounties that can be added to a parent bounty."] + pub fn max_active_child_bounty_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ChildBounties", + "MaxActiveChildBountyCount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Minimum value for a child-bounty."] + pub fn child_bounty_value_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "ChildBounties", + "ChildBountyValueMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + } + } + } + pub mod referenda { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_referenda::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_referenda::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::submit`]."] + pub struct Submit { + pub proposal_origin: ::std::boxed::Box, + pub proposal: submit::Proposal, + pub enactment_moment: submit::EnactmentMoment, + } + pub mod submit { + use super::runtime_types; + pub type ProposalOrigin = runtime_types::kitchensink_runtime::OriginCaller; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + pub type EnactmentMoment = + runtime_types::frame_support::traits::schedule::DispatchTime< + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "submit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub struct PlaceDecisionDeposit { + pub index: place_decision_deposit::Index, + } + pub mod place_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "place_decision_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::refund_decision_deposit`]."] + pub struct RefundDecisionDeposit { + pub index: refund_decision_deposit::Index, + } + pub mod refund_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "refund_decision_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel`]."] + pub struct Cancel { + pub index: cancel::Index, + } + pub mod cancel { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Cancel { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "cancel"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::kill`]."] + pub struct Kill { + pub index: kill::Index, + } + pub mod kill { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Kill { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "kill"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::nudge_referendum`]."] + pub struct NudgeReferendum { + pub index: nudge_referendum::Index, + } + pub mod nudge_referendum { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "nudge_referendum"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::one_fewer_deciding`]."] + pub struct OneFewerDeciding { + pub track: one_fewer_deciding::Track, + } + pub mod one_fewer_deciding { + use super::runtime_types; + pub type Track = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "one_fewer_deciding"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::refund_submission_deposit`]."] + pub struct RefundSubmissionDeposit { + pub index: refund_submission_deposit::Index, + } + pub mod refund_submission_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "refund_submission_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + pub index: set_metadata::Index, + pub maybe_hash: set_metadata::MaybeHash, + } + pub mod set_metadata { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "Referenda"; + const CALL: &'static str = "set_metadata"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::submit`]."] + pub fn submit( + &self, + proposal_origin: types::submit::ProposalOrigin, + proposal: types::submit::Proposal, + enactment_moment: types::submit::EnactmentMoment, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "submit", + types::Submit { + proposal_origin: ::std::boxed::Box::new(proposal_origin), + proposal, + enactment_moment, + }, + [ + 184u8, 21u8, 12u8, 160u8, 90u8, 181u8, 130u8, 23u8, 137u8, 103u8, 90u8, + 56u8, 33u8, 143u8, 229u8, 225u8, 30u8, 21u8, 203u8, 162u8, 99u8, 136u8, + 214u8, 253u8, 60u8, 126u8, 195u8, 2u8, 143u8, 32u8, 216u8, 139u8, + ], + ) + } + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub fn place_decision_deposit( + &self, + index: types::place_decision_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "place_decision_deposit", + types::PlaceDecisionDeposit { index }, + [ + 247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8, + 203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8, + 184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8, + ], + ) + } + #[doc = "See [`Pallet::refund_decision_deposit`]."] + pub fn refund_decision_deposit( + &self, + index: types::refund_decision_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "refund_decision_deposit", + types::RefundDecisionDeposit { index }, + [ + 159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8, + 136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8, + 135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8, + ], + ) + } + #[doc = "See [`Pallet::cancel`]."] + pub fn cancel( + &self, + index: types::cancel::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "cancel", + types::Cancel { index }, + [ + 55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8, + 212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8, + 190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8, + 122u8, + ], + ) + } + #[doc = "See [`Pallet::kill`]."] + pub fn kill(&self, index: types::kill::Index) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "kill", + types::Kill { index }, + [ + 50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8, + 198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8, + 219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8, + 48u8, + ], + ) + } + #[doc = "See [`Pallet::nudge_referendum`]."] + pub fn nudge_referendum( + &self, + index: types::nudge_referendum::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "nudge_referendum", + types::NudgeReferendum { index }, + [ + 75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8, + 194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8, + 99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8, + 213u8, + ], + ) + } + #[doc = "See [`Pallet::one_fewer_deciding`]."] + pub fn one_fewer_deciding( + &self, + track: types::one_fewer_deciding::Track, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "one_fewer_deciding", + types::OneFewerDeciding { track }, + [ + 15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8, + 181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8, + 111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8, + 131u8, 167u8, + ], + ) + } + #[doc = "See [`Pallet::refund_submission_deposit`]."] + pub fn refund_submission_deposit( + &self, + index: types::refund_submission_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "refund_submission_deposit", + types::RefundSubmissionDeposit { index }, + [ + 20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8, + 23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8, + 82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8, + ], + ) + } + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + index: types::set_metadata::Index, + maybe_hash: types::set_metadata::MaybeHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Referenda", + "set_metadata", + types::SetMetadata { index, maybe_hash }, + [ + 207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8, + 124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8, + 108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8, + 88u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_referenda::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been submitted."] + pub struct Submitted { + pub index: submitted::Index, + pub track: submitted::Track, + pub proposal: submitted::Proposal, + } + pub mod submitted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Track = ::core::primitive::u16; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + } + impl ::subxt::events::StaticEvent for Submitted { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Submitted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The decision deposit has been placed."] + pub struct DecisionDepositPlaced { + pub index: decision_deposit_placed::Index, + pub who: decision_deposit_placed::Who, + pub amount: decision_deposit_placed::Amount, + } + pub mod decision_deposit_placed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DecisionDepositPlaced { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "DecisionDepositPlaced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The decision deposit has been refunded."] + pub struct DecisionDepositRefunded { + pub index: decision_deposit_refunded::Index, + pub who: decision_deposit_refunded::Who, + pub amount: decision_deposit_refunded::Amount, + } + pub mod decision_deposit_refunded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DecisionDepositRefunded { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "DecisionDepositRefunded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A deposit has been slashed."] + pub struct DepositSlashed { + pub who: deposit_slashed::Who, + pub amount: deposit_slashed::Amount, + } + pub mod deposit_slashed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DepositSlashed { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "DepositSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has moved into the deciding phase."] + pub struct DecisionStarted { + pub index: decision_started::Index, + pub track: decision_started::Track, + pub proposal: decision_started::Proposal, + pub tally: decision_started::Tally, + } + pub mod decision_started { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Track = ::core::primitive::u16; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for DecisionStarted { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "DecisionStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConfirmStarted { + pub index: confirm_started::Index, + } + pub mod confirm_started { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ConfirmStarted { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "ConfirmStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConfirmAborted { + pub index: confirm_aborted::Index, + } + pub mod confirm_aborted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ConfirmAborted { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "ConfirmAborted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has ended its confirmation phase and is ready for approval."] + pub struct Confirmed { + pub index: confirmed::Index, + pub tally: confirmed::Tally, + } + pub mod confirmed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for Confirmed { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Confirmed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been approved and its proposal has been scheduled."] + pub struct Approved { + pub index: approved::Index, + } + pub mod approved { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Approved { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal has been rejected by referendum."] + pub struct Rejected { + pub index: rejected::Index, + pub tally: rejected::Tally, + } + pub mod rejected { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for Rejected { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Rejected"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been timed out without being decided."] + pub struct TimedOut { + pub index: timed_out::Index, + pub tally: timed_out::Tally, + } + pub mod timed_out { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for TimedOut { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "TimedOut"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been cancelled."] + pub struct Cancelled { + pub index: cancelled::Index, + pub tally: cancelled::Tally, + } + pub mod cancelled { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Cancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been killed."] + pub struct Killed { + pub index: killed::Index, + pub tally: killed::Tally, + } + pub mod killed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = + runtime_types::pallet_conviction_voting::types::Tally<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for Killed { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "Killed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The submission deposit has been refunded."] + pub struct SubmissionDepositRefunded { + pub index: submission_deposit_refunded::Index, + pub who: submission_deposit_refunded::Who, + pub amount: submission_deposit_refunded::Amount, + } + pub mod submission_deposit_refunded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "SubmissionDepositRefunded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a referendum has been set."] + pub struct MetadataSet { + pub index: metadata_set::Index, + pub hash: metadata_set::Hash, + } + pub mod metadata_set { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a referendum has been cleared."] + pub struct MetadataCleared { + pub index: metadata_cleared::Index, + pub hash: metadata_cleared::Hash, + } + pub mod metadata_cleared { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "Referenda"; + const EVENT: &'static str = "MetadataCleared"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod referendum_count { + use super::runtime_types; + pub type ReferendumCount = ::core::primitive::u32; + } + pub mod referendum_info_for { + use super::runtime_types; + pub type ReferendumInfoFor = + runtime_types::pallet_referenda::types::ReferendumInfo< + ::core::primitive::u16, + runtime_types::kitchensink_runtime::OriginCaller, + ::core::primitive::u32, + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + ::core::primitive::u128, + runtime_types::pallet_conviction_voting::types::Tally< + ::core::primitive::u128, + >, + ::subxt::utils::AccountId32, + (::core::primitive::u32, ::core::primitive::u32), + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod track_queue { + use super::runtime_types; + pub type TrackQueue = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + ::core::primitive::u128, + )>; + pub type Param0 = ::core::primitive::u16; + } + pub mod deciding_count { + use super::runtime_types; + pub type DecidingCount = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; + } + pub mod metadata_of { + use super::runtime_types; + pub type MetadataOf = ::subxt::utils::H256; + pub type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The next free referendum index, aka the number of referenda started so far."] + pub fn referendum_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::referendum_count::ReferendumCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "ReferendumCount", + vec![], + [ + 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, + 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, + 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, + 67u8, + ], + ) + } + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::referendum_info_for::ReferendumInfoFor, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "ReferendumInfoFor", + vec![], + [ + 207u8, 225u8, 168u8, 220u8, 141u8, 115u8, 126u8, 175u8, 235u8, 17u8, + 155u8, 90u8, 3u8, 193u8, 225u8, 139u8, 145u8, 43u8, 236u8, 196u8, + 134u8, 143u8, 116u8, 97u8, 83u8, 189u8, 128u8, 40u8, 198u8, 216u8, + 37u8, 8u8, + ], + ) + } + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::referendum_info_for::ReferendumInfoFor, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "ReferendumInfoFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 207u8, 225u8, 168u8, 220u8, 141u8, 115u8, 126u8, 175u8, 235u8, 17u8, + 155u8, 90u8, 3u8, 193u8, 225u8, 139u8, 145u8, 43u8, 236u8, 196u8, + 134u8, 143u8, 116u8, 97u8, 83u8, 189u8, 128u8, 40u8, 198u8, 216u8, + 37u8, 8u8, + ], + ) + } + #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] + #[doc = " conviction-weighted approvals."] + #[doc = ""] + #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] + pub fn track_queue_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::track_queue::TrackQueue, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "TrackQueue", + vec![], + [ + 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, + 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, + 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, + ], + ) + } + #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] + #[doc = " conviction-weighted approvals."] + #[doc = ""] + #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] + pub fn track_queue( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::track_queue::TrackQueue, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "TrackQueue", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 125u8, 59u8, 111u8, 68u8, 27u8, 236u8, 82u8, 55u8, 83u8, 159u8, 105u8, + 20u8, 241u8, 118u8, 58u8, 141u8, 103u8, 60u8, 246u8, 49u8, 121u8, + 183u8, 7u8, 203u8, 225u8, 67u8, 132u8, 79u8, 150u8, 107u8, 71u8, 89u8, + ], + ) + } + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deciding_count::DecidingCount, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "DecidingCount", + vec![], + [ + 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, + 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, + 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, + 245u8, + ], + ) + } + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deciding_count::DecidingCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "DecidingCount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, + 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, + 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, + 245u8, + ], + ) + } + #[doc = " The metadata is a general information concerning the referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata_of::MetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "MetadataOf", + vec![], + [ + 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, + 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, + 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, + 110u8, + ], + ) + } + #[doc = " The metadata is a general information concerning the referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata_of::MetadataOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Referenda", + "MetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, + 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, + 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, + 110u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] + pub fn submission_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Referenda", + "SubmissionDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Maximum size of the referendum queue for a single track."] + pub fn max_queued(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Referenda", + "MaxQueued", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The number of blocks after submission that a referendum must begin being decided by."] + #[doc = " Once this passes, then anyone may cancel the referendum."] + pub fn undeciding_timeout( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Referenda", + "UndecidingTimeout", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Quantization level for the referendum wakeup scheduler. A higher number will result in"] + #[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"] + #[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."] + pub fn alarm_interval( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Referenda", + "AlarmInterval", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Information concerning the different referendum tracks."] + pub fn tracks( + &self, + ) -> ::subxt::constants::Address< + ::std::vec::Vec<( + ::core::primitive::u16, + runtime_types::pallet_referenda::types::TrackInfo< + ::core::primitive::u128, + ::core::primitive::u32, + >, + )>, + > { + ::subxt::constants::Address::new_static( + "Referenda", + "Tracks", + [ + 35u8, 226u8, 207u8, 234u8, 184u8, 139u8, 187u8, 184u8, 128u8, 199u8, + 227u8, 15u8, 31u8, 196u8, 5u8, 207u8, 138u8, 174u8, 130u8, 201u8, + 200u8, 113u8, 86u8, 93u8, 221u8, 243u8, 229u8, 24u8, 18u8, 150u8, 56u8, + 159u8, + ], + ) + } + } + } + } + pub mod remark { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_remark::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_remark::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::store`]."] + pub struct Store { + pub remark: store::Remark, + } + pub mod store { + use super::runtime_types; + pub type Remark = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::blocks::StaticExtrinsic for Store { + const PALLET: &'static str = "Remark"; + const CALL: &'static str = "store"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::store`]."] + pub fn store( + &self, + remark: types::store::Remark, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Remark", + "store", + types::Store { remark }, + [ + 121u8, 0u8, 70u8, 216u8, 46u8, 175u8, 78u8, 250u8, 139u8, 13u8, 194u8, + 30u8, 201u8, 91u8, 140u8, 73u8, 238u8, 156u8, 172u8, 61u8, 12u8, 186u8, + 25u8, 72u8, 202u8, 108u8, 187u8, 7u8, 237u8, 178u8, 20u8, 152u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_remark::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Stored data off chain."] + pub struct Stored { + pub sender: stored::Sender, + pub content_hash: stored::ContentHash, + } + pub mod stored { + use super::runtime_types; + pub type Sender = ::subxt::utils::AccountId32; + pub type ContentHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for Stored { + const PALLET: &'static str = "Remark"; + const EVENT: &'static str = "Stored"; + } + } + } pub mod root_testing { use super::root_mod; use super::runtime_types; @@ -40571,22 +52477,14 @@ pub mod api { const EVENT: &'static str = "DefensiveTestCall"; } } - pub mod storage { - use super::runtime_types; - pub mod types { - use super::runtime_types; - } - pub struct StorageApi; - impl StorageApi {} - } } - pub mod sudo { + pub mod conviction_voting { use super::root_mod; use super::runtime_types; - #[doc = "Error for the Sudo pallet"] - pub type Error = runtime_types::pallet_sudo::pallet::Error; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_conviction_voting::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub type Call = runtime_types::pallet_sudo::pallet::Call; + pub type Call = runtime_types::pallet_conviction_voting::pallet::Call; pub mod calls { use super::root_mod; use super::runtime_types; @@ -40603,17 +52501,22 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo`]."] - pub struct Sudo { - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + #[codec(compact)] + pub poll_index: vote::PollIndex, + pub vote: vote::Vote, } - pub mod sudo { + pub mod vote { use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type PollIndex = ::core::primitive::u32; + pub type Vote = runtime_types::pallet_conviction_voting::vote::AccountVote< + ::core::primitive::u128, + >; } - impl ::subxt::blocks::StaticExtrinsic for Sudo { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "sudo"; + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -40625,19 +52528,27 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_unchecked_weight`]."] - pub struct SudoUncheckedWeight { - pub call: ::std::boxed::Box, - pub weight: sudo_unchecked_weight::Weight, + #[doc = "See [`Pallet::delegate`]."] + pub struct Delegate { + pub class: delegate::Class, + pub to: delegate::To, + pub conviction: delegate::Conviction, + pub balance: delegate::Balance, } - pub mod sudo_unchecked_weight { + pub mod delegate { use super::runtime_types; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; - pub type Weight = runtime_types::sp_weights::weight_v2::Weight; + pub type Class = ::core::primitive::u16; + pub type To = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Conviction = + runtime_types::pallet_conviction_voting::conviction::Conviction; + pub type Balance = ::core::primitive::u128; } - impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "sudo_unchecked_weight"; + impl ::subxt::blocks::StaticExtrinsic for Delegate { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "delegate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -40649,17 +52560,17 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::set_key`]."] - pub struct SetKey { - pub new: set_key::New, + #[doc = "See [`Pallet::undelegate`]."] + pub struct Undelegate { + pub class: undelegate::Class, } - pub mod set_key { + pub mod undelegate { use super::runtime_types; - pub type New = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; + pub type Class = ::core::primitive::u16; } - impl ::subxt::blocks::StaticExtrinsic for SetKey { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "set_key"; + impl ::subxt::blocks::StaticExtrinsic for Undelegate { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "undelegate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -40671,100 +52582,201 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "See [`Pallet::sudo_as`]."] - pub struct SudoAs { - pub who: sudo_as::Who, - pub call: ::std::boxed::Box, + #[doc = "See [`Pallet::unlock`]."] + pub struct Unlock { + pub class: unlock::Class, + pub target: unlock::Target, } - pub mod sudo_as { + pub mod unlock { use super::runtime_types; - pub type Who = ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>; - pub type Call = runtime_types::rococo_runtime::RuntimeCall; + pub type Class = ::core::primitive::u16; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; } - impl ::subxt::blocks::StaticExtrinsic for SudoAs { - const PALLET: &'static str = "Sudo"; - const CALL: &'static str = "sudo_as"; + impl ::subxt::blocks::StaticExtrinsic for Unlock { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "unlock"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_vote`]."] + pub struct RemoveVote { + pub class: remove_vote::Class, + pub index: remove_vote::Index, + } + pub mod remove_vote { + use super::runtime_types; + pub type Class = ::core::option::Option<::core::primitive::u16>; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveVote { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "remove_vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_other_vote`]."] + pub struct RemoveOtherVote { + pub target: remove_other_vote::Target, + pub class: remove_other_vote::Class, + pub index: remove_other_vote::Index, + } + pub mod remove_other_vote { + use super::runtime_types; + pub type Target = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Class = ::core::primitive::u16; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { + const PALLET: &'static str = "ConvictionVoting"; + const CALL: &'static str = "remove_other_vote"; } } pub struct TransactionApi; impl TransactionApi { - #[doc = "See [`Pallet::sudo`]."] - pub fn sudo(&self, call: types::sudo::Call) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::vote`]."] + pub fn vote( + &self, + poll_index: types::vote::PollIndex, + vote: types::vote::Vote, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Sudo", - "sudo", - types::Sudo { - call: ::std::boxed::Box::new(call), - }, + "ConvictionVoting", + "vote", + types::Vote { poll_index, vote }, [ - 230u8, 66u8, 61u8, 240u8, 132u8, 75u8, 17u8, 14u8, 12u8, 233u8, 24u8, - 192u8, 91u8, 200u8, 209u8, 133u8, 251u8, 154u8, 221u8, 95u8, 165u8, - 112u8, 49u8, 192u8, 126u8, 134u8, 46u8, 221u8, 150u8, 120u8, 178u8, - 103u8, + 57u8, 170u8, 177u8, 168u8, 158u8, 43u8, 87u8, 242u8, 176u8, 85u8, + 230u8, 64u8, 103u8, 239u8, 190u8, 6u8, 228u8, 165u8, 248u8, 77u8, + 231u8, 221u8, 186u8, 107u8, 249u8, 201u8, 226u8, 52u8, 129u8, 90u8, + 142u8, 159u8, ], ) } - #[doc = "See [`Pallet::sudo_unchecked_weight`]."] - pub fn sudo_unchecked_weight( + #[doc = "See [`Pallet::delegate`]."] + pub fn delegate( &self, - call: types::sudo_unchecked_weight::Call, - weight: types::sudo_unchecked_weight::Weight, - ) -> ::subxt::tx::Payload { + class: types::delegate::Class, + to: types::delegate::To, + conviction: types::delegate::Conviction, + balance: types::delegate::Balance, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Sudo", - "sudo_unchecked_weight", - types::SudoUncheckedWeight { - call: ::std::boxed::Box::new(call), - weight, + "ConvictionVoting", + "delegate", + types::Delegate { + class, + to, + conviction, + balance, }, [ - 39u8, 207u8, 214u8, 172u8, 135u8, 112u8, 167u8, 27u8, 210u8, 182u8, - 160u8, 163u8, 128u8, 207u8, 98u8, 136u8, 35u8, 14u8, 163u8, 243u8, - 224u8, 232u8, 254u8, 35u8, 244u8, 13u8, 212u8, 137u8, 99u8, 158u8, - 249u8, 164u8, + 72u8, 121u8, 108u8, 197u8, 6u8, 127u8, 240u8, 48u8, 195u8, 205u8, 4u8, + 163u8, 24u8, 104u8, 187u8, 59u8, 10u8, 192u8, 242u8, 254u8, 140u8, + 42u8, 152u8, 199u8, 119u8, 205u8, 146u8, 131u8, 84u8, 192u8, 232u8, + 81u8, ], ) } - #[doc = "See [`Pallet::set_key`]."] - pub fn set_key( + #[doc = "See [`Pallet::undelegate`]."] + pub fn undelegate( &self, - new: types::set_key::New, - ) -> ::subxt::tx::Payload { + class: types::undelegate::Class, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Sudo", - "set_key", - types::SetKey { new }, + "ConvictionVoting", + "undelegate", + types::Undelegate { class }, [ - 9u8, 73u8, 39u8, 205u8, 188u8, 127u8, 143u8, 54u8, 128u8, 94u8, 8u8, - 227u8, 197u8, 44u8, 70u8, 93u8, 228u8, 196u8, 64u8, 165u8, 226u8, - 158u8, 101u8, 192u8, 22u8, 193u8, 102u8, 84u8, 21u8, 35u8, 92u8, 198u8, + 140u8, 232u8, 6u8, 53u8, 228u8, 8u8, 131u8, 144u8, 65u8, 66u8, 245u8, + 247u8, 147u8, 135u8, 198u8, 57u8, 82u8, 212u8, 89u8, 46u8, 236u8, + 168u8, 200u8, 220u8, 93u8, 168u8, 101u8, 29u8, 110u8, 76u8, 67u8, + 181u8, ], ) } - #[doc = "See [`Pallet::sudo_as`]."] - pub fn sudo_as( + #[doc = "See [`Pallet::unlock`]."] + pub fn unlock( &self, - who: types::sudo_as::Who, - call: types::sudo_as::Call, - ) -> ::subxt::tx::Payload { + class: types::unlock::Class, + target: types::unlock::Target, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( - "Sudo", - "sudo_as", - types::SudoAs { - who, - call: ::std::boxed::Box::new(call), + "ConvictionVoting", + "unlock", + types::Unlock { class, target }, + [ + 144u8, 162u8, 27u8, 86u8, 133u8, 252u8, 118u8, 223u8, 152u8, 116u8, + 181u8, 159u8, 122u8, 73u8, 88u8, 171u8, 144u8, 15u8, 128u8, 194u8, + 69u8, 80u8, 11u8, 173u8, 43u8, 255u8, 52u8, 140u8, 180u8, 177u8, 142u8, + 75u8, + ], + ) + } + #[doc = "See [`Pallet::remove_vote`]."] + pub fn remove_vote( + &self, + class: types::remove_vote::Class, + index: types::remove_vote::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ConvictionVoting", + "remove_vote", + types::RemoveVote { class, index }, + [ + 255u8, 108u8, 211u8, 146u8, 168u8, 231u8, 207u8, 44u8, 76u8, 24u8, + 235u8, 60u8, 23u8, 79u8, 192u8, 192u8, 46u8, 40u8, 134u8, 27u8, 125u8, + 114u8, 125u8, 247u8, 85u8, 102u8, 76u8, 159u8, 34u8, 167u8, 152u8, + 148u8, + ], + ) + } + #[doc = "See [`Pallet::remove_other_vote`]."] + pub fn remove_other_vote( + &self, + target: types::remove_other_vote::Target, + class: types::remove_other_vote::Class, + index: types::remove_other_vote::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ConvictionVoting", + "remove_other_vote", + types::RemoveOtherVote { + target, + class, + index, }, [ - 97u8, 37u8, 226u8, 52u8, 181u8, 51u8, 13u8, 232u8, 250u8, 246u8, 195u8, - 219u8, 186u8, 236u8, 187u8, 3u8, 246u8, 172u8, 203u8, 35u8, 30u8, - 227u8, 242u8, 134u8, 51u8, 90u8, 105u8, 119u8, 1u8, 65u8, 79u8, 36u8, + 83u8, 50u8, 64u8, 13u8, 168u8, 112u8, 177u8, 133u8, 205u8, 85u8, 178u8, + 197u8, 41u8, 111u8, 241u8, 32u8, 206u8, 12u8, 210u8, 145u8, 119u8, + 92u8, 24u8, 84u8, 172u8, 110u8, 175u8, 44u8, 124u8, 18u8, 176u8, 124u8, ], ) } } } #[doc = "The `Event` enum of this pallet"] - pub type Event = runtime_types::pallet_sudo::pallet::Event; + pub type Event = runtime_types::pallet_conviction_voting::pallet::Event; pub mod events { use super::runtime_types; #[derive( @@ -40777,18 +52789,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A sudo call just took place."] - pub struct Sudid { - pub sudo_result: sudid::SudoResult, - } - pub mod sudid { + #[doc = "An account has delegated their vote to another account. \\[who, target\\]"] + pub struct Delegated(pub delegated::Field0, pub delegated::Field1); + pub mod delegated { use super::runtime_types; - pub type SudoResult = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + pub type Field0 = ::subxt::utils::AccountId32; + pub type Field1 = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for Sudid { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "Sudid"; + impl ::subxt::events::StaticEvent for Delegated { + const PALLET: &'static str = "ConvictionVoting"; + const EVENT: &'static str = "Delegated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -40800,81 +52810,12993 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The sudo key has been updated."] - pub struct KeyChanged { - pub old_sudoer: key_changed::OldSudoer, - } - pub mod key_changed { + #[doc = "An \\[account\\] has cancelled a previous delegation operation."] + pub struct Undelegated(pub undelegated::Field0); + pub mod undelegated { use super::runtime_types; - pub type OldSudoer = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Field0 = ::subxt::utils::AccountId32; } - impl ::subxt::events::StaticEvent for KeyChanged { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "KeyChanged"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."] - pub struct SudoAsDone { - pub sudo_result: sudo_as_done::SudoResult, - } - pub mod sudo_as_done { - use super::runtime_types; - pub type SudoResult = - ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; - } - impl ::subxt::events::StaticEvent for SudoAsDone { - const PALLET: &'static str = "Sudo"; - const EVENT: &'static str = "SudoAsDone"; + impl ::subxt::events::StaticEvent for Undelegated { + const PALLET: &'static str = "ConvictionVoting"; + const EVENT: &'static str = "Undelegated"; } } pub mod storage { use super::runtime_types; pub mod types { use super::runtime_types; - pub mod key { + pub mod voting_for { use super::runtime_types; - pub type Key = ::subxt::utils::AccountId32; + pub type VotingFor = runtime_types::pallet_conviction_voting::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + ::core::primitive::u32, + >; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::core::primitive::u16; + } + pub mod class_locks_for { + use super::runtime_types; + pub type ClassLocksFor = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u16, + ::core::primitive::u128, + )>; + pub type Param0 = ::subxt::utils::AccountId32; } } pub struct StorageApi; impl StorageApi { - #[doc = " The `AccountId` of the sudo key."] - pub fn key( + #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] + #[doc = " number of votes that we have recorded."] + pub fn voting_for_iter( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - types::key::Key, + types::voting_for::VotingFor, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ConvictionVoting", + "VotingFor", + vec![], + [ + 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, + 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, + 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, + ], + ) + } + #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] + #[doc = " number of votes that we have recorded."] + pub fn voting_for_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting_for::VotingFor, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ConvictionVoting", + "VotingFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, + 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, + 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, + ], + ) + } + #[doc = " All voting for a particular voter in a particular voting class. We store the balance for the"] + #[doc = " number of votes that we have recorded."] + pub fn voting_for( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting_for::VotingFor, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ConvictionVoting", + "VotingFor", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 76u8, 63u8, 153u8, 193u8, 39u8, 137u8, 186u8, 29u8, 202u8, 56u8, 169u8, + 56u8, 103u8, 138u8, 192u8, 18u8, 179u8, 114u8, 56u8, 121u8, 197u8, + 12u8, 29u8, 239u8, 220u8, 231u8, 24u8, 46u8, 134u8, 99u8, 53u8, 206u8, + ], + ) + } + #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] + #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] + #[doc = " this list."] + pub fn class_locks_for_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::class_locks_for::ClassLocksFor, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ConvictionVoting", + "ClassLocksFor", + vec![], + [ + 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, + 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, + 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, + ], + ) + } + #[doc = " The voting classes which have a non-zero lock requirement and the lock amounts which they"] + #[doc = " require. The actual amount locked on behalf of this pallet should always be the maximum of"] + #[doc = " this list."] + pub fn class_locks_for( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::class_locks_for::ClassLocksFor, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ConvictionVoting", + "ClassLocksFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 74u8, 74u8, 8u8, 82u8, 215u8, 61u8, 13u8, 9u8, 44u8, 222u8, 33u8, + 245u8, 195u8, 124u8, 6u8, 174u8, 65u8, 245u8, 71u8, 42u8, 47u8, 46u8, + 164u8, 231u8, 11u8, 245u8, 115u8, 207u8, 209u8, 137u8, 90u8, 6u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum number of concurrent votes an account may have."] + #[doc = ""] + #[doc = " Also used to compute weight, an overly large value can lead to extrinsics with large"] + #[doc = " weight estimation: see `delegate` for instance."] + pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ConvictionVoting", + "MaxVotes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The minimum period of vote locking."] + #[doc = ""] + #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] + #[doc = " those successful voters are locked into the consequences that their votes entail."] + pub fn vote_locking_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ConvictionVoting", + "VoteLockingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod whitelist { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_whitelist::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_whitelist::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::whitelist_call`]."] + pub struct WhitelistCall { + pub call_hash: whitelist_call::CallHash, + } + pub mod whitelist_call { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for WhitelistCall { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "whitelist_call"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_whitelisted_call`]."] + pub struct RemoveWhitelistedCall { + pub call_hash: remove_whitelisted_call::CallHash, + } + pub mod remove_whitelisted_call { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveWhitelistedCall { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "remove_whitelisted_call"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] + pub struct DispatchWhitelistedCall { + pub call_hash: dispatch_whitelisted_call::CallHash, + pub call_encoded_len: dispatch_whitelisted_call::CallEncodedLen, + pub call_weight_witness: dispatch_whitelisted_call::CallWeightWitness, + } + pub mod dispatch_whitelisted_call { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; + pub type CallEncodedLen = ::core::primitive::u32; + pub type CallWeightWitness = runtime_types::sp_weights::weight_v2::Weight; + } + impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCall { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "dispatch_whitelisted_call"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] + pub struct DispatchWhitelistedCallWithPreimage { + pub call: ::std::boxed::Box, + } + pub mod dispatch_whitelisted_call_with_preimage { + use super::runtime_types; + pub type Call = runtime_types::kitchensink_runtime::RuntimeCall; + } + impl ::subxt::blocks::StaticExtrinsic for DispatchWhitelistedCallWithPreimage { + const PALLET: &'static str = "Whitelist"; + const CALL: &'static str = "dispatch_whitelisted_call_with_preimage"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::whitelist_call`]."] + pub fn whitelist_call( + &self, + call_hash: types::whitelist_call::CallHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Whitelist", + "whitelist_call", + types::WhitelistCall { call_hash }, + [ + 121u8, 165u8, 49u8, 37u8, 127u8, 38u8, 126u8, 213u8, 115u8, 148u8, + 122u8, 211u8, 24u8, 91u8, 147u8, 27u8, 87u8, 210u8, 84u8, 104u8, 229u8, + 155u8, 133u8, 30u8, 34u8, 249u8, 107u8, 110u8, 31u8, 191u8, 128u8, + 28u8, + ], + ) + } + #[doc = "See [`Pallet::remove_whitelisted_call`]."] + pub fn remove_whitelisted_call( + &self, + call_hash: types::remove_whitelisted_call::CallHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Whitelist", + "remove_whitelisted_call", + types::RemoveWhitelistedCall { call_hash }, + [ + 30u8, 47u8, 13u8, 231u8, 165u8, 219u8, 246u8, 210u8, 11u8, 38u8, 219u8, + 218u8, 151u8, 226u8, 101u8, 175u8, 0u8, 239u8, 35u8, 46u8, 156u8, + 104u8, 145u8, 173u8, 105u8, 100u8, 21u8, 189u8, 123u8, 227u8, 196u8, + 40u8, + ], + ) + } + #[doc = "See [`Pallet::dispatch_whitelisted_call`]."] + pub fn dispatch_whitelisted_call( + &self, + call_hash: types::dispatch_whitelisted_call::CallHash, + call_encoded_len: types::dispatch_whitelisted_call::CallEncodedLen, + call_weight_witness: types::dispatch_whitelisted_call::CallWeightWitness, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Whitelist", + "dispatch_whitelisted_call", + types::DispatchWhitelistedCall { + call_hash, + call_encoded_len, + call_weight_witness, + }, + [ + 112u8, 67u8, 72u8, 26u8, 3u8, 214u8, 86u8, 102u8, 29u8, 96u8, 222u8, + 24u8, 115u8, 15u8, 124u8, 160u8, 148u8, 184u8, 56u8, 162u8, 188u8, + 123u8, 213u8, 234u8, 208u8, 123u8, 133u8, 253u8, 43u8, 226u8, 66u8, + 116u8, + ], + ) + } + #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] + pub fn dispatch_whitelisted_call_with_preimage( + &self, + call: types::dispatch_whitelisted_call_with_preimage::Call, + ) -> ::subxt::tx::Payload + { + ::subxt::tx::Payload::new_static( + "Whitelist", + "dispatch_whitelisted_call_with_preimage", + types::DispatchWhitelistedCallWithPreimage { + call: ::std::boxed::Box::new(call), + }, + [ + 37u8, 171u8, 240u8, 222u8, 2u8, 248u8, 128u8, 200u8, 93u8, 14u8, 127u8, + 119u8, 230u8, 148u8, 138u8, 164u8, 62u8, 175u8, 7u8, 176u8, 189u8, 9u8, + 10u8, 182u8, 88u8, 20u8, 51u8, 84u8, 224u8, 79u8, 89u8, 226u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_whitelist::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CallWhitelisted { + pub call_hash: call_whitelisted::CallHash, + } + pub mod call_whitelisted { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for CallWhitelisted { + const PALLET: &'static str = "Whitelist"; + const EVENT: &'static str = "CallWhitelisted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WhitelistedCallRemoved { + pub call_hash: whitelisted_call_removed::CallHash, + } + pub mod whitelisted_call_removed { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for WhitelistedCallRemoved { + const PALLET: &'static str = "Whitelist"; + const EVENT: &'static str = "WhitelistedCallRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WhitelistedCallDispatched { + pub call_hash: whitelisted_call_dispatched::CallHash, + pub result: whitelisted_call_dispatched::Result, + } + pub mod whitelisted_call_dispatched { + use super::runtime_types; + pub type CallHash = ::subxt::utils::H256; + pub type Result = ::core::result::Result< + runtime_types::frame_support::dispatch::PostDispatchInfo, + runtime_types::sp_runtime::DispatchErrorWithPostInfo< + runtime_types::frame_support::dispatch::PostDispatchInfo, + >, + >; + } + impl ::subxt::events::StaticEvent for WhitelistedCallDispatched { + const PALLET: &'static str = "Whitelist"; + const EVENT: &'static str = "WhitelistedCallDispatched"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod whitelisted_call { + use super::runtime_types; + pub type WhitelistedCall = (); + pub type Param0 = ::subxt::utils::H256; + } + } + pub struct StorageApi; + impl StorageApi { + pub fn whitelisted_call_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::whitelisted_call::WhitelistedCall, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Whitelist", + "WhitelistedCall", + vec![], + [ + 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, + 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, + 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, + ], + ) + } + pub fn whitelisted_call( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::whitelisted_call::WhitelistedCall, ::subxt::storage::address::Yes, (), (), > { ::subxt::storage::address::Address::new_static( - "Sudo", - "Key", - vec![], + "Whitelist", + "WhitelistedCall", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], [ - 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, - 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, - 36u8, 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, + 82u8, 208u8, 214u8, 72u8, 225u8, 35u8, 51u8, 212u8, 25u8, 138u8, 30u8, + 87u8, 54u8, 232u8, 72u8, 132u8, 4u8, 9u8, 28u8, 143u8, 251u8, 106u8, + 167u8, 218u8, 130u8, 185u8, 253u8, 185u8, 113u8, 154u8, 202u8, 66u8, ], ) } } } } + pub mod alliance_motion { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_collective::pallet::Error3; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_collective::pallet::Call3; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_members`]."] + pub struct SetMembers { + pub new_members: set_members::NewMembers, + pub prime: set_members::Prime, + pub old_count: set_members::OldCount, + } + pub mod set_members { + use super::runtime_types; + pub type NewMembers = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Prime = ::core::option::Option<::subxt::utils::AccountId32>; + pub type OldCount = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for SetMembers { + const PALLET: &'static str = "AllianceMotion"; + const CALL: &'static str = "set_members"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::execute`]."] + pub struct Execute { + pub proposal: ::std::boxed::Box, + #[codec(compact)] + pub length_bound: execute::LengthBound, + } + pub mod execute { + use super::runtime_types; + pub type Proposal = runtime_types::kitchensink_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Execute { + const PALLET: &'static str = "AllianceMotion"; + const CALL: &'static str = "execute"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::propose`]."] + pub struct Propose { + #[codec(compact)] + pub threshold: propose::Threshold, + pub proposal: ::std::boxed::Box, + #[codec(compact)] + pub length_bound: propose::LengthBound, + } + pub mod propose { + use super::runtime_types; + pub type Threshold = ::core::primitive::u32; + pub type Proposal = runtime_types::kitchensink_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "AllianceMotion"; + const CALL: &'static str = "propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + pub proposal: vote::Proposal, + #[codec(compact)] + pub index: vote::Index, + pub approve: vote::Approve, + } + pub mod vote { + use super::runtime_types; + pub type Proposal = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Approve = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "AllianceMotion"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::disapprove_proposal`]."] + pub struct DisapproveProposal { + pub proposal_hash: disapprove_proposal::ProposalHash, + } + pub mod disapprove_proposal { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { + const PALLET: &'static str = "AllianceMotion"; + const CALL: &'static str = "disapprove_proposal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::close`]."] + pub struct Close { + pub proposal_hash: close::ProposalHash, + #[codec(compact)] + pub index: close::Index, + pub proposal_weight_bound: close::ProposalWeightBound, + #[codec(compact)] + pub length_bound: close::LengthBound, + } + pub mod close { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type ProposalWeightBound = runtime_types::sp_weights::weight_v2::Weight; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Close { + const PALLET: &'static str = "AllianceMotion"; + const CALL: &'static str = "close"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::set_members`]."] + pub fn set_members( + &self, + new_members: types::set_members::NewMembers, + prime: types::set_members::Prime, + old_count: types::set_members::OldCount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AllianceMotion", + "set_members", + types::SetMembers { + new_members, + prime, + old_count, + }, + [ + 66u8, 224u8, 186u8, 178u8, 41u8, 208u8, 67u8, 192u8, 57u8, 242u8, + 141u8, 31u8, 216u8, 118u8, 192u8, 43u8, 125u8, 213u8, 226u8, 85u8, + 142u8, 225u8, 131u8, 45u8, 172u8, 142u8, 12u8, 9u8, 73u8, 7u8, 218u8, + 61u8, + ], + ) + } + #[doc = "See [`Pallet::execute`]."] + pub fn execute( + &self, + proposal: types::execute::Proposal, + length_bound: types::execute::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AllianceMotion", + "execute", + types::Execute { + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 157u8, 207u8, 243u8, 239u8, 181u8, 183u8, 122u8, 137u8, 109u8, 51u8, + 174u8, 199u8, 13u8, 201u8, 103u8, 66u8, 27u8, 125u8, 252u8, 86u8, + 129u8, 30u8, 235u8, 40u8, 134u8, 122u8, 164u8, 46u8, 30u8, 34u8, 29u8, + 16u8, + ], + ) + } + #[doc = "See [`Pallet::propose`]."] + pub fn propose( + &self, + threshold: types::propose::Threshold, + proposal: types::propose::Proposal, + length_bound: types::propose::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AllianceMotion", + "propose", + types::Propose { + threshold, + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 139u8, 248u8, 151u8, 57u8, 176u8, 218u8, 224u8, 133u8, 192u8, 87u8, + 99u8, 162u8, 252u8, 169u8, 146u8, 165u8, 78u8, 11u8, 31u8, 206u8, + 171u8, 39u8, 123u8, 2u8, 241u8, 178u8, 192u8, 28u8, 9u8, 143u8, 97u8, + 123u8, + ], + ) + } + #[doc = "See [`Pallet::vote`]."] + pub fn vote( + &self, + proposal: types::vote::Proposal, + index: types::vote::Index, + approve: types::vote::Approve, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AllianceMotion", + "vote", + types::Vote { + proposal, + index, + approve, + }, + [ + 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, + 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, + 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, + 120u8, + ], + ) + } + #[doc = "See [`Pallet::disapprove_proposal`]."] + pub fn disapprove_proposal( + &self, + proposal_hash: types::disapprove_proposal::ProposalHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AllianceMotion", + "disapprove_proposal", + types::DisapproveProposal { proposal_hash }, + [ + 26u8, 140u8, 111u8, 193u8, 229u8, 59u8, 53u8, 196u8, 230u8, 60u8, 7u8, + 155u8, 168u8, 7u8, 201u8, 177u8, 70u8, 103u8, 190u8, 57u8, 244u8, + 156u8, 67u8, 101u8, 228u8, 6u8, 213u8, 83u8, 225u8, 95u8, 148u8, 96u8, + ], + ) + } + #[doc = "See [`Pallet::close`]."] + pub fn close( + &self, + proposal_hash: types::close::ProposalHash, + index: types::close::Index, + proposal_weight_bound: types::close::ProposalWeightBound, + length_bound: types::close::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AllianceMotion", + "close", + types::Close { + proposal_hash, + index, + proposal_weight_bound, + length_bound, + }, + [ + 136u8, 48u8, 243u8, 34u8, 60u8, 109u8, 186u8, 158u8, 72u8, 48u8, 62u8, + 34u8, 167u8, 46u8, 33u8, 142u8, 239u8, 43u8, 238u8, 125u8, 94u8, 80u8, + 157u8, 245u8, 220u8, 126u8, 58u8, 244u8, 186u8, 195u8, 30u8, 127u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_collective::pallet::Event3; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + pub struct Proposed { + pub account: proposed::Account, + pub proposal_index: proposed::ProposalIndex, + pub proposal_hash: proposed::ProposalHash, + pub threshold: proposed::Threshold, + } + pub mod proposed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalIndex = ::core::primitive::u32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Threshold = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "AllianceMotion"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + pub struct Voted { + pub account: voted::Account, + pub proposal_hash: voted::ProposalHash, + pub voted: voted::Voted, + pub yes: voted::Yes, + pub no: voted::No, + } + pub mod voted { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type ProposalHash = ::subxt::utils::H256; + pub type Voted = ::core::primitive::bool; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "AllianceMotion"; + const EVENT: &'static str = "Voted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was approved by the required threshold."] + pub struct Approved { + pub proposal_hash: approved::ProposalHash, + } + pub mod approved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for Approved { + const PALLET: &'static str = "AllianceMotion"; + const EVENT: &'static str = "Approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was not approved by the required threshold."] + pub struct Disapproved { + pub proposal_hash: disapproved::ProposalHash, + } + pub mod disapproved { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for Disapproved { + const PALLET: &'static str = "AllianceMotion"; + const EVENT: &'static str = "Disapproved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + pub struct Executed { + pub proposal_hash: executed::ProposalHash, + pub result: executed::Result, + } + pub mod executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for Executed { + const PALLET: &'static str = "AllianceMotion"; + const EVENT: &'static str = "Executed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + pub struct MemberExecuted { + pub proposal_hash: member_executed::ProposalHash, + pub result: member_executed::Result, + } + pub mod member_executed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for MemberExecuted { + const PALLET: &'static str = "AllianceMotion"; + const EVENT: &'static str = "MemberExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + pub struct Closed { + pub proposal_hash: closed::ProposalHash, + pub yes: closed::Yes, + pub no: closed::No, + } + pub mod closed { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Yes = ::core::primitive::u32; + pub type No = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Closed { + const PALLET: &'static str = "AllianceMotion"; + const EVENT: &'static str = "Closed"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod proposals { + use super::runtime_types; + pub type Proposals = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >; + } + pub mod proposal_of { + use super::runtime_types; + pub type ProposalOf = runtime_types::kitchensink_runtime::RuntimeCall; + pub type Param0 = ::subxt::utils::H256; + } + pub mod voting { + use super::runtime_types; + pub type Voting = runtime_types::pallet_collective::Votes< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Param0 = ::subxt::utils::H256; + } + pub mod proposal_count { + use super::runtime_types; + pub type ProposalCount = ::core::primitive::u32; + } + pub mod members { + use super::runtime_types; + pub type Members = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + pub mod prime { + use super::runtime_types; + pub type Prime = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The hashes of the active proposals."] + pub fn proposals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposals::Proposals, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AllianceMotion", + "Proposals", + vec![], + [ + 210u8, 234u8, 7u8, 29u8, 231u8, 80u8, 17u8, 36u8, 189u8, 34u8, 175u8, + 147u8, 56u8, 92u8, 201u8, 104u8, 207u8, 150u8, 58u8, 110u8, 90u8, 28u8, + 198u8, 79u8, 236u8, 245u8, 19u8, 38u8, 68u8, 59u8, 215u8, 74u8, + ], + ) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_of::ProposalOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AllianceMotion", + "ProposalOf", + vec![], + [ + 64u8, 157u8, 239u8, 215u8, 167u8, 82u8, 218u8, 126u8, 136u8, 8u8, 68u8, + 101u8, 66u8, 63u8, 203u8, 169u8, 232u8, 162u8, 174u8, 87u8, 253u8, + 33u8, 234u8, 154u8, 36u8, 65u8, 227u8, 33u8, 241u8, 52u8, 135u8, 126u8, + ], + ) + } + #[doc = " Actual proposal for a given hash, if it's current."] + pub fn proposal_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_of::ProposalOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "AllianceMotion", + "ProposalOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 64u8, 157u8, 239u8, 215u8, 167u8, 82u8, 218u8, 126u8, 136u8, 8u8, 68u8, + 101u8, 66u8, 63u8, 203u8, 169u8, 232u8, 162u8, 174u8, 87u8, 253u8, + 33u8, 234u8, 154u8, 36u8, 65u8, 227u8, 33u8, 241u8, 52u8, 135u8, 126u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AllianceMotion", + "Voting", + vec![], + [ + 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, + 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, + 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, + 132u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "AllianceMotion", + "Voting", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 109u8, 198u8, 2u8, 13u8, 29u8, 14u8, 241u8, 217u8, 55u8, 147u8, 147u8, + 4u8, 176u8, 69u8, 132u8, 228u8, 158u8, 203u8, 110u8, 239u8, 158u8, + 137u8, 97u8, 46u8, 228u8, 118u8, 251u8, 201u8, 88u8, 208u8, 94u8, + 132u8, + ], + ) + } + #[doc = " Proposals so far."] + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::proposal_count::ProposalCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AllianceMotion", + "ProposalCount", + vec![], + [ + 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, + 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, + 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, + ], + ) + } + #[doc = " The current members of the collective. This is stored sorted (just by value)."] + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::members::Members, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "AllianceMotion", + "Members", + vec![], + [ + 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, + 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, + 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, + ], + ) + } + #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] + pub fn prime( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::prime::Prime, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "AllianceMotion", + "Prime", + vec![], + [ + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, + 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, + 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] + pub fn max_proposal_weight( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "AllianceMotion", + "MaxProposalWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + } + } + } + pub mod alliance { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_alliance::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_alliance::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::propose`]."] + pub struct Propose { + #[codec(compact)] + pub threshold: propose::Threshold, + pub proposal: ::std::boxed::Box, + #[codec(compact)] + pub length_bound: propose::LengthBound, + } + pub mod propose { + use super::runtime_types; + pub type Threshold = ::core::primitive::u32; + pub type Proposal = runtime_types::kitchensink_runtime::RuntimeCall; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "propose"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + pub proposal: vote::Proposal, + #[codec(compact)] + pub index: vote::Index, + pub approve: vote::Approve, + } + pub mod vote { + use super::runtime_types; + pub type Proposal = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type Approve = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::init_members`]."] + pub struct InitMembers { + pub fellows: init_members::Fellows, + pub allies: init_members::Allies, + } + pub mod init_members { + use super::runtime_types; + pub type Fellows = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Allies = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + impl ::subxt::blocks::StaticExtrinsic for InitMembers { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "init_members"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::disband`]."] + pub struct Disband { + pub witness: disband::Witness, + } + pub mod disband { + use super::runtime_types; + pub type Witness = runtime_types::pallet_alliance::types::DisbandWitness; + } + impl ::subxt::blocks::StaticExtrinsic for Disband { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "disband"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_rule`]."] + pub struct SetRule { + pub rule: set_rule::Rule, + } + pub mod set_rule { + use super::runtime_types; + pub type Rule = runtime_types::pallet_alliance::types::Cid; + } + impl ::subxt::blocks::StaticExtrinsic for SetRule { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "set_rule"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::announce`]."] + pub struct Announce { + pub announcement: announce::Announcement, + } + pub mod announce { + use super::runtime_types; + pub type Announcement = runtime_types::pallet_alliance::types::Cid; + } + impl ::subxt::blocks::StaticExtrinsic for Announce { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "announce"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_announcement`]."] + pub struct RemoveAnnouncement { + pub announcement: remove_announcement::Announcement, + } + pub mod remove_announcement { + use super::runtime_types; + pub type Announcement = runtime_types::pallet_alliance::types::Cid; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveAnnouncement { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "remove_announcement"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::join_alliance`]."] + pub struct JoinAlliance; + impl ::subxt::blocks::StaticExtrinsic for JoinAlliance { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "join_alliance"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::nominate_ally`]."] + pub struct NominateAlly { + pub who: nominate_ally::Who, + } + pub mod nominate_ally { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for NominateAlly { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "nominate_ally"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::elevate_ally`]."] + pub struct ElevateAlly { + pub ally: elevate_ally::Ally, + } + pub mod elevate_ally { + use super::runtime_types; + pub type Ally = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for ElevateAlly { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "elevate_ally"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::give_retirement_notice`]."] + pub struct GiveRetirementNotice; + impl ::subxt::blocks::StaticExtrinsic for GiveRetirementNotice { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "give_retirement_notice"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::retire`]."] + pub struct Retire; + impl ::subxt::blocks::StaticExtrinsic for Retire { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "retire"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::kick_member`]."] + pub struct KickMember { + pub who: kick_member::Who, + } + pub mod kick_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for KickMember { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "kick_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::add_unscrupulous_items`]."] + pub struct AddUnscrupulousItems { + pub items: add_unscrupulous_items::Items, + } + pub mod add_unscrupulous_items { + use super::runtime_types; + pub type Items = ::std::vec::Vec< + runtime_types::pallet_alliance::UnscrupulousItem< + ::subxt::utils::AccountId32, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for AddUnscrupulousItems { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "add_unscrupulous_items"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_unscrupulous_items`]."] + pub struct RemoveUnscrupulousItems { + pub items: remove_unscrupulous_items::Items, + } + pub mod remove_unscrupulous_items { + use super::runtime_types; + pub type Items = ::std::vec::Vec< + runtime_types::pallet_alliance::UnscrupulousItem< + ::subxt::utils::AccountId32, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveUnscrupulousItems { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "remove_unscrupulous_items"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::close`]."] + pub struct Close { + pub proposal_hash: close::ProposalHash, + #[codec(compact)] + pub index: close::Index, + pub proposal_weight_bound: close::ProposalWeightBound, + #[codec(compact)] + pub length_bound: close::LengthBound, + } + pub mod close { + use super::runtime_types; + pub type ProposalHash = ::subxt::utils::H256; + pub type Index = ::core::primitive::u32; + pub type ProposalWeightBound = runtime_types::sp_weights::weight_v2::Weight; + pub type LengthBound = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Close { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "close"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::abdicate_fellow_status`]."] + pub struct AbdicateFellowStatus; + impl ::subxt::blocks::StaticExtrinsic for AbdicateFellowStatus { + const PALLET: &'static str = "Alliance"; + const CALL: &'static str = "abdicate_fellow_status"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::propose`]."] + pub fn propose( + &self, + threshold: types::propose::Threshold, + proposal: types::propose::Proposal, + length_bound: types::propose::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "propose", + types::Propose { + threshold, + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 139u8, 248u8, 151u8, 57u8, 176u8, 218u8, 224u8, 133u8, 192u8, 87u8, + 99u8, 162u8, 252u8, 169u8, 146u8, 165u8, 78u8, 11u8, 31u8, 206u8, + 171u8, 39u8, 123u8, 2u8, 241u8, 178u8, 192u8, 28u8, 9u8, 143u8, 97u8, + 123u8, + ], + ) + } + #[doc = "See [`Pallet::vote`]."] + pub fn vote( + &self, + proposal: types::vote::Proposal, + index: types::vote::Index, + approve: types::vote::Approve, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "vote", + types::Vote { + proposal, + index, + approve, + }, + [ + 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, + 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, + 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, + 120u8, + ], + ) + } + #[doc = "See [`Pallet::init_members`]."] + pub fn init_members( + &self, + fellows: types::init_members::Fellows, + allies: types::init_members::Allies, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "init_members", + types::InitMembers { fellows, allies }, + [ + 231u8, 73u8, 232u8, 25u8, 173u8, 23u8, 83u8, 9u8, 115u8, 106u8, 42u8, + 114u8, 109u8, 25u8, 172u8, 234u8, 26u8, 149u8, 38u8, 145u8, 64u8, + 182u8, 83u8, 209u8, 238u8, 70u8, 6u8, 250u8, 192u8, 54u8, 85u8, 168u8, + ], + ) + } + #[doc = "See [`Pallet::disband`]."] + pub fn disband( + &self, + witness: types::disband::Witness, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "disband", + types::Disband { witness }, + [ + 249u8, 208u8, 136u8, 127u8, 223u8, 159u8, 124u8, 191u8, 228u8, 116u8, + 130u8, 57u8, 136u8, 212u8, 221u8, 243u8, 14u8, 101u8, 161u8, 203u8, + 204u8, 75u8, 139u8, 165u8, 24u8, 8u8, 226u8, 72u8, 5u8, 15u8, 105u8, + 246u8, + ], + ) + } + #[doc = "See [`Pallet::set_rule`]."] + pub fn set_rule( + &self, + rule: types::set_rule::Rule, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "set_rule", + types::SetRule { rule }, + [ + 191u8, 115u8, 133u8, 171u8, 200u8, 93u8, 17u8, 17u8, 77u8, 194u8, 26u8, + 118u8, 248u8, 102u8, 125u8, 165u8, 130u8, 243u8, 214u8, 186u8, 54u8, + 187u8, 49u8, 201u8, 155u8, 222u8, 52u8, 3u8, 157u8, 61u8, 171u8, 28u8, + ], + ) + } + #[doc = "See [`Pallet::announce`]."] + pub fn announce( + &self, + announcement: types::announce::Announcement, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "announce", + types::Announce { announcement }, + [ + 141u8, 115u8, 207u8, 241u8, 43u8, 194u8, 160u8, 56u8, 67u8, 231u8, + 156u8, 135u8, 35u8, 230u8, 97u8, 248u8, 67u8, 107u8, 11u8, 10u8, 142u8, + 57u8, 54u8, 152u8, 121u8, 40u8, 154u8, 233u8, 37u8, 132u8, 254u8, + 168u8, + ], + ) + } + #[doc = "See [`Pallet::remove_announcement`]."] + pub fn remove_announcement( + &self, + announcement: types::remove_announcement::Announcement, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "remove_announcement", + types::RemoveAnnouncement { announcement }, + [ + 29u8, 188u8, 124u8, 165u8, 149u8, 163u8, 192u8, 230u8, 180u8, 188u8, + 110u8, 167u8, 201u8, 220u8, 156u8, 134u8, 110u8, 196u8, 208u8, 80u8, + 34u8, 67u8, 1u8, 11u8, 166u8, 196u8, 246u8, 28u8, 215u8, 12u8, 233u8, + 143u8, + ], + ) + } + #[doc = "See [`Pallet::join_alliance`]."] + pub fn join_alliance(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "join_alliance", + types::JoinAlliance {}, + [ + 36u8, 214u8, 57u8, 110u8, 139u8, 196u8, 1u8, 240u8, 103u8, 108u8, + 165u8, 131u8, 35u8, 91u8, 232u8, 175u8, 196u8, 218u8, 145u8, 211u8, + 201u8, 179u8, 162u8, 223u8, 212u8, 141u8, 35u8, 75u8, 154u8, 160u8, + 93u8, 28u8, + ], + ) + } + #[doc = "See [`Pallet::nominate_ally`]."] + pub fn nominate_ally( + &self, + who: types::nominate_ally::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "nominate_ally", + types::NominateAlly { who }, + [ + 65u8, 103u8, 255u8, 116u8, 0u8, 169u8, 43u8, 129u8, 1u8, 212u8, 199u8, + 192u8, 81u8, 17u8, 18u8, 208u8, 5u8, 122u8, 165u8, 31u8, 42u8, 224u8, + 111u8, 12u8, 156u8, 12u8, 212u8, 5u8, 102u8, 152u8, 187u8, 220u8, + ], + ) + } + #[doc = "See [`Pallet::elevate_ally`]."] + pub fn elevate_ally( + &self, + ally: types::elevate_ally::Ally, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "elevate_ally", + types::ElevateAlly { ally }, + [ + 56u8, 130u8, 189u8, 22u8, 196u8, 87u8, 53u8, 76u8, 226u8, 5u8, 59u8, + 224u8, 202u8, 48u8, 107u8, 128u8, 28u8, 104u8, 97u8, 249u8, 48u8, + 187u8, 156u8, 9u8, 175u8, 234u8, 211u8, 96u8, 27u8, 14u8, 105u8, 239u8, + ], + ) + } + #[doc = "See [`Pallet::give_retirement_notice`]."] + pub fn give_retirement_notice( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "give_retirement_notice", + types::GiveRetirementNotice {}, + [ + 64u8, 88u8, 231u8, 20u8, 74u8, 126u8, 6u8, 140u8, 18u8, 170u8, 156u8, + 231u8, 214u8, 97u8, 196u8, 137u8, 137u8, 171u8, 255u8, 149u8, 105u8, + 35u8, 88u8, 226u8, 179u8, 177u8, 217u8, 19u8, 194u8, 129u8, 158u8, + 29u8, + ], + ) + } + #[doc = "See [`Pallet::retire`]."] + pub fn retire(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "retire", + types::Retire {}, + [ + 178u8, 214u8, 7u8, 209u8, 147u8, 125u8, 63u8, 41u8, 152u8, 157u8, 45u8, + 113u8, 185u8, 45u8, 157u8, 76u8, 62u8, 106u8, 103u8, 7u8, 128u8, 44u8, + 71u8, 224u8, 108u8, 224u8, 146u8, 226u8, 87u8, 146u8, 169u8, 194u8, + ], + ) + } + #[doc = "See [`Pallet::kick_member`]."] + pub fn kick_member( + &self, + who: types::kick_member::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "kick_member", + types::KickMember { who }, + [ + 131u8, 173u8, 11u8, 18u8, 155u8, 34u8, 198u8, 239u8, 128u8, 17u8, 13u8, + 159u8, 249u8, 231u8, 218u8, 241u8, 228u8, 116u8, 124u8, 236u8, 145u8, + 92u8, 111u8, 214u8, 213u8, 176u8, 145u8, 238u8, 153u8, 200u8, 78u8, + 103u8, + ], + ) + } + #[doc = "See [`Pallet::add_unscrupulous_items`]."] + pub fn add_unscrupulous_items( + &self, + items: types::add_unscrupulous_items::Items, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "add_unscrupulous_items", + types::AddUnscrupulousItems { items }, + [ + 205u8, 113u8, 30u8, 82u8, 51u8, 133u8, 23u8, 77u8, 253u8, 85u8, 97u8, + 26u8, 61u8, 24u8, 247u8, 168u8, 254u8, 106u8, 23u8, 128u8, 239u8, 4u8, + 122u8, 208u8, 242u8, 51u8, 8u8, 97u8, 161u8, 112u8, 97u8, 222u8, + ], + ) + } + #[doc = "See [`Pallet::remove_unscrupulous_items`]."] + pub fn remove_unscrupulous_items( + &self, + items: types::remove_unscrupulous_items::Items, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "remove_unscrupulous_items", + types::RemoveUnscrupulousItems { items }, + [ + 212u8, 224u8, 51u8, 168u8, 38u8, 65u8, 241u8, 161u8, 206u8, 8u8, 118u8, + 187u8, 89u8, 120u8, 23u8, 179u8, 64u8, 3u8, 123u8, 93u8, 212u8, 244u8, + 193u8, 49u8, 168u8, 25u8, 123u8, 63u8, 234u8, 236u8, 159u8, 250u8, + ], + ) + } + #[doc = "See [`Pallet::close`]."] + pub fn close( + &self, + proposal_hash: types::close::ProposalHash, + index: types::close::Index, + proposal_weight_bound: types::close::ProposalWeightBound, + length_bound: types::close::LengthBound, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "close", + types::Close { + proposal_hash, + index, + proposal_weight_bound, + length_bound, + }, + [ + 136u8, 48u8, 243u8, 34u8, 60u8, 109u8, 186u8, 158u8, 72u8, 48u8, 62u8, + 34u8, 167u8, 46u8, 33u8, 142u8, 239u8, 43u8, 238u8, 125u8, 94u8, 80u8, + 157u8, 245u8, 220u8, 126u8, 58u8, 244u8, 186u8, 195u8, 30u8, 127u8, + ], + ) + } + #[doc = "See [`Pallet::abdicate_fellow_status`]."] + pub fn abdicate_fellow_status( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Alliance", + "abdicate_fellow_status", + types::AbdicateFellowStatus {}, + [ + 222u8, 111u8, 165u8, 181u8, 174u8, 58u8, 113u8, 24u8, 125u8, 96u8, + 72u8, 242u8, 191u8, 226u8, 107u8, 176u8, 191u8, 177u8, 89u8, 223u8, + 84u8, 185u8, 208u8, 215u8, 145u8, 216u8, 186u8, 235u8, 225u8, 78u8, + 128u8, 214u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_alliance::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new rule has been set."] + pub struct NewRuleSet { + pub rule: new_rule_set::Rule, + } + pub mod new_rule_set { + use super::runtime_types; + pub type Rule = runtime_types::pallet_alliance::types::Cid; + } + impl ::subxt::events::StaticEvent for NewRuleSet { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "NewRuleSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new announcement has been proposed."] + pub struct Announced { + pub announcement: announced::Announcement, + } + pub mod announced { + use super::runtime_types; + pub type Announcement = runtime_types::pallet_alliance::types::Cid; + } + impl ::subxt::events::StaticEvent for Announced { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "Announced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An on-chain announcement has been removed."] + pub struct AnnouncementRemoved { + pub announcement: announcement_removed::Announcement, + } + pub mod announcement_removed { + use super::runtime_types; + pub type Announcement = runtime_types::pallet_alliance::types::Cid; + } + impl ::subxt::events::StaticEvent for AnnouncementRemoved { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "AnnouncementRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some accounts have been initialized as members (fellows/allies)."] + pub struct MembersInitialized { + pub fellows: members_initialized::Fellows, + pub allies: members_initialized::Allies, + } + pub mod members_initialized { + use super::runtime_types; + pub type Fellows = ::std::vec::Vec<::subxt::utils::AccountId32>; + pub type Allies = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + impl ::subxt::events::StaticEvent for MembersInitialized { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "MembersInitialized"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account has been added as an Ally and reserved its deposit."] + pub struct NewAllyJoined { + pub ally: new_ally_joined::Ally, + pub nominator: new_ally_joined::Nominator, + pub reserved: new_ally_joined::Reserved, + } + pub mod new_ally_joined { + use super::runtime_types; + pub type Ally = ::subxt::utils::AccountId32; + pub type Nominator = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Reserved = ::core::option::Option<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for NewAllyJoined { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "NewAllyJoined"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An ally has been elevated to Fellow."] + pub struct AllyElevated { + pub ally: ally_elevated::Ally, + } + pub mod ally_elevated { + use super::runtime_types; + pub type Ally = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for AllyElevated { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "AllyElevated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member gave retirement notice and their retirement period started."] + pub struct MemberRetirementPeriodStarted { + pub member: member_retirement_period_started::Member, + } + pub mod member_retirement_period_started { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for MemberRetirementPeriodStarted { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "MemberRetirementPeriodStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has retired with its deposit unreserved."] + pub struct MemberRetired { + pub member: member_retired::Member, + pub unreserved: member_retired::Unreserved, + } + pub mod member_retired { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type Unreserved = ::core::option::Option<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for MemberRetired { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "MemberRetired"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has been kicked out with its deposit slashed."] + pub struct MemberKicked { + pub member: member_kicked::Member, + pub slashed: member_kicked::Slashed, + } + pub mod member_kicked { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type Slashed = ::core::option::Option<::core::primitive::u128>; + } + impl ::subxt::events::StaticEvent for MemberKicked { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "MemberKicked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Accounts or websites have been added into the list of unscrupulous items."] + pub struct UnscrupulousItemAdded { + pub items: unscrupulous_item_added::Items, + } + pub mod unscrupulous_item_added { + use super::runtime_types; + pub type Items = ::std::vec::Vec< + runtime_types::pallet_alliance::UnscrupulousItem< + ::subxt::utils::AccountId32, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >; + } + impl ::subxt::events::StaticEvent for UnscrupulousItemAdded { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "UnscrupulousItemAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Accounts or websites have been removed from the list of unscrupulous items."] + pub struct UnscrupulousItemRemoved { + pub items: unscrupulous_item_removed::Items, + } + pub mod unscrupulous_item_removed { + use super::runtime_types; + pub type Items = ::std::vec::Vec< + runtime_types::pallet_alliance::UnscrupulousItem< + ::subxt::utils::AccountId32, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >; + } + impl ::subxt::events::StaticEvent for UnscrupulousItemRemoved { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "UnscrupulousItemRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Alliance disbanded. Includes number deleted members and unreserved deposits."] + pub struct AllianceDisbanded { + pub fellow_members: alliance_disbanded::FellowMembers, + pub ally_members: alliance_disbanded::AllyMembers, + pub unreserved: alliance_disbanded::Unreserved, + } + pub mod alliance_disbanded { + use super::runtime_types; + pub type FellowMembers = ::core::primitive::u32; + pub type AllyMembers = ::core::primitive::u32; + pub type Unreserved = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for AllianceDisbanded { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "AllianceDisbanded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A Fellow abdicated their voting rights. They are now an Ally."] + pub struct FellowAbdicated { + pub fellow: fellow_abdicated::Fellow, + } + pub mod fellow_abdicated { + use super::runtime_types; + pub type Fellow = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for FellowAbdicated { + const PALLET: &'static str = "Alliance"; + const EVENT: &'static str = "FellowAbdicated"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod rule { + use super::runtime_types; + pub type Rule = runtime_types::pallet_alliance::types::Cid; + } + pub mod announcements { + use super::runtime_types; + pub type Announcements = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_alliance::types::Cid, + >; + } + pub mod deposit_of { + use super::runtime_types; + pub type DepositOf = ::core::primitive::u128; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod members { + use super::runtime_types; + pub type Members = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >; + pub type Param0 = runtime_types::pallet_alliance::MemberRole; + } + pub mod retiring_members { + use super::runtime_types; + pub type RetiringMembers = ::core::primitive::u32; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod unscrupulous_accounts { + use super::runtime_types; + pub type UnscrupulousAccounts = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >; + } + pub mod unscrupulous_websites { + use super::runtime_types; + pub type UnscrupulousWebsites = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The IPFS CID of the alliance rule."] + #[doc = " Fellows can propose a new rule with a super-majority."] + pub fn rule( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::rule::Rule, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "Rule", + vec![], + [ + 147u8, 102u8, 247u8, 191u8, 50u8, 138u8, 19u8, 84u8, 114u8, 165u8, + 79u8, 185u8, 133u8, 64u8, 96u8, 3u8, 21u8, 62u8, 96u8, 250u8, 14u8, + 80u8, 223u8, 132u8, 76u8, 60u8, 233u8, 252u8, 246u8, 14u8, 167u8, 7u8, + ], + ) + } + #[doc = " The current IPFS CIDs of any announcements."] + pub fn announcements( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::announcements::Announcements, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "Announcements", + vec![], + [ + 142u8, 110u8, 97u8, 35u8, 181u8, 241u8, 129u8, 54u8, 134u8, 137u8, + 153u8, 157u8, 11u8, 184u8, 181u8, 253u8, 225u8, 252u8, 0u8, 61u8, + 191u8, 151u8, 254u8, 115u8, 217u8, 20u8, 223u8, 190u8, 236u8, 209u8, + 42u8, 126u8, + ], + ) + } + #[doc = " Maps members to their candidacy deposit."] + pub fn deposit_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deposit_of::DepositOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "DepositOf", + vec![], + [ + 60u8, 18u8, 84u8, 244u8, 92u8, 183u8, 95u8, 105u8, 127u8, 249u8, 175u8, + 206u8, 128u8, 154u8, 170u8, 202u8, 17u8, 176u8, 133u8, 169u8, 118u8, + 28u8, 36u8, 252u8, 86u8, 22u8, 150u8, 158u8, 186u8, 161u8, 183u8, 54u8, + ], + ) + } + #[doc = " Maps members to their candidacy deposit."] + pub fn deposit_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deposit_of::DepositOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "DepositOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 60u8, 18u8, 84u8, 244u8, 92u8, 183u8, 95u8, 105u8, 127u8, 249u8, 175u8, + 206u8, 128u8, 154u8, 170u8, 202u8, 17u8, 176u8, 133u8, 169u8, 118u8, + 28u8, 36u8, 252u8, 86u8, 22u8, 150u8, 158u8, 186u8, 161u8, 183u8, 54u8, + ], + ) + } + #[doc = " Maps member type to members of each type."] + pub fn members_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::members::Members, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "Members", + vec![], + [ + 65u8, 195u8, 17u8, 5u8, 123u8, 52u8, 72u8, 42u8, 38u8, 151u8, 197u8, + 26u8, 99u8, 9u8, 242u8, 248u8, 101u8, 52u8, 41u8, 52u8, 194u8, 212u8, + 255u8, 162u8, 99u8, 58u8, 6u8, 187u8, 76u8, 199u8, 185u8, 190u8, + ], + ) + } + #[doc = " Maps member type to members of each type."] + pub fn members( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::members::Members, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "Members", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 65u8, 195u8, 17u8, 5u8, 123u8, 52u8, 72u8, 42u8, 38u8, 151u8, 197u8, + 26u8, 99u8, 9u8, 242u8, 248u8, 101u8, 52u8, 41u8, 52u8, 194u8, 212u8, + 255u8, 162u8, 99u8, 58u8, 6u8, 187u8, 76u8, 199u8, 185u8, 190u8, + ], + ) + } + #[doc = " A set of members who gave a retirement notice. They can retire after the end of retirement"] + #[doc = " period stored as a future block number."] + pub fn retiring_members_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::retiring_members::RetiringMembers, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "RetiringMembers", + vec![], + [ + 227u8, 240u8, 94u8, 17u8, 90u8, 2u8, 4u8, 68u8, 194u8, 255u8, 208u8, + 153u8, 48u8, 6u8, 193u8, 55u8, 138u8, 82u8, 58u8, 20u8, 248u8, 29u8, + 222u8, 194u8, 110u8, 244u8, 142u8, 252u8, 88u8, 63u8, 244u8, 122u8, + ], + ) + } + #[doc = " A set of members who gave a retirement notice. They can retire after the end of retirement"] + #[doc = " period stored as a future block number."] + pub fn retiring_members( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::retiring_members::RetiringMembers, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "RetiringMembers", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 227u8, 240u8, 94u8, 17u8, 90u8, 2u8, 4u8, 68u8, 194u8, 255u8, 208u8, + 153u8, 48u8, 6u8, 193u8, 55u8, 138u8, 82u8, 58u8, 20u8, 248u8, 29u8, + 222u8, 194u8, 110u8, 244u8, 142u8, 252u8, 88u8, 63u8, 244u8, 122u8, + ], + ) + } + #[doc = " The current list of accounts deemed unscrupulous. These accounts non grata cannot submit"] + #[doc = " candidacy."] + pub fn unscrupulous_accounts( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unscrupulous_accounts::UnscrupulousAccounts, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "UnscrupulousAccounts", + vec![], + [ + 101u8, 158u8, 129u8, 171u8, 11u8, 54u8, 198u8, 237u8, 34u8, 62u8, 83u8, + 132u8, 153u8, 218u8, 192u8, 13u8, 52u8, 112u8, 136u8, 124u8, 149u8, + 48u8, 44u8, 229u8, 147u8, 178u8, 134u8, 3u8, 132u8, 102u8, 97u8, 12u8, + ], + ) + } + #[doc = " The current list of websites deemed unscrupulous."] + pub fn unscrupulous_websites( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unscrupulous_websites::UnscrupulousWebsites, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Alliance", + "UnscrupulousWebsites", + vec![], + [ + 7u8, 2u8, 159u8, 212u8, 74u8, 175u8, 0u8, 151u8, 215u8, 173u8, 52u8, + 111u8, 212u8, 252u8, 68u8, 13u8, 190u8, 22u8, 50u8, 154u8, 29u8, 73u8, + 49u8, 126u8, 191u8, 56u8, 110u8, 92u8, 238u8, 118u8, 102u8, 87u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum number of the unscrupulous items supported by the pallet."] + pub fn max_unscrupulous_items( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Alliance", + "MaxUnscrupulousItems", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum length of a website URL."] + pub fn max_website_url_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Alliance", + "MaxWebsiteUrlLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The deposit required for submitting candidacy."] + pub fn ally_deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Alliance", + "AllyDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The maximum number of announcements."] + pub fn max_announcements_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Alliance", + "MaxAnnouncementsCount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of members per member role."] + pub fn max_members_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Alliance", + "MaxMembersCount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod nomination_pools { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::join`]."] + pub struct Join { + #[codec(compact)] + pub amount: join::Amount, + pub pool_id: join::PoolId, + } + pub mod join { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type PoolId = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Join { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "join"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::bond_extra`]."] + pub struct BondExtra { + pub extra: bond_extra::Extra, + } + pub mod bond_extra { + use super::runtime_types; + pub type Extra = + runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>; + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::claim_payout`]."] + pub struct ClaimPayout; + impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::unbond`]."] + pub struct Unbond { + pub member_account: unbond::MemberAccount, + #[codec(compact)] + pub unbonding_points: unbond::UnbondingPoints, + } + pub mod unbond { + use super::runtime_types; + pub type MemberAccount = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type UnbondingPoints = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "unbond"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] + pub struct PoolWithdrawUnbonded { + pub pool_id: pool_withdraw_unbonded::PoolId, + pub num_slashing_spans: pool_withdraw_unbonded::NumSlashingSpans, + } + pub mod pool_withdraw_unbonded { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type NumSlashingSpans = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "pool_withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::withdraw_unbonded`]."] + pub struct WithdrawUnbonded { + pub member_account: withdraw_unbonded::MemberAccount, + pub num_slashing_spans: withdraw_unbonded::NumSlashingSpans, + } + pub mod withdraw_unbonded { + use super::runtime_types; + pub type MemberAccount = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type NumSlashingSpans = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::create`]."] + pub struct Create { + #[codec(compact)] + pub amount: create::Amount, + pub root: create::Root, + pub nominator: create::Nominator, + pub bouncer: create::Bouncer, + } + pub mod create { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Root = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Nominator = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Bouncer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::create_with_pool_id`]."] + pub struct CreateWithPoolId { + #[codec(compact)] + pub amount: create_with_pool_id::Amount, + pub root: create_with_pool_id::Root, + pub nominator: create_with_pool_id::Nominator, + pub bouncer: create_with_pool_id::Bouncer, + pub pool_id: create_with_pool_id::PoolId, + } + pub mod create_with_pool_id { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Root = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Nominator = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Bouncer = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type PoolId = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create_with_pool_id"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::nominate`]."] + pub struct Nominate { + pub pool_id: nominate::PoolId, + pub validators: nominate::Validators, + } + pub mod nominate { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Validators = ::std::vec::Vec<::subxt::utils::AccountId32>; + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "nominate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_state`]."] + pub struct SetState { + pub pool_id: set_state::PoolId, + pub state: set_state::State, + } + pub mod set_state { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type State = runtime_types::pallet_nomination_pools::PoolState; + } + impl ::subxt::blocks::StaticExtrinsic for SetState { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_state"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + pub pool_id: set_metadata::PoolId, + pub metadata: set_metadata::Metadata, + } + pub mod set_metadata { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Metadata = ::std::vec::Vec<::core::primitive::u8>; + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_configs`]."] + pub struct SetConfigs { + pub min_join_bond: set_configs::MinJoinBond, + pub min_create_bond: set_configs::MinCreateBond, + pub max_pools: set_configs::MaxPools, + pub max_members: set_configs::MaxMembers, + pub max_members_per_pool: set_configs::MaxMembersPerPool, + pub global_max_commission: set_configs::GlobalMaxCommission, + } + pub mod set_configs { + use super::runtime_types; + pub type MinJoinBond = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>; + pub type MinCreateBond = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>; + pub type MaxPools = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>; + pub type MaxMembers = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>; + pub type MaxMembersPerPool = + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>; + pub type GlobalMaxCommission = runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetConfigs { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_configs"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::update_roles`]."] + pub struct UpdateRoles { + pub pool_id: update_roles::PoolId, + pub new_root: update_roles::NewRoot, + pub new_nominator: update_roles::NewNominator, + pub new_bouncer: update_roles::NewBouncer, + } + pub mod update_roles { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type NewRoot = runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >; + pub type NewNominator = runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >; + pub type NewBouncer = runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "update_roles"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::chill`]."] + pub struct Chill { + pub pool_id: chill::PoolId, + } + pub mod chill { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "chill"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::bond_extra_other`]."] + pub struct BondExtraOther { + pub member: bond_extra_other::Member, + pub extra: bond_extra_other::Extra, + } + pub mod bond_extra_other { + use super::runtime_types; + pub type Member = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type Extra = + runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>; + } + impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_claim_permission`]."] + pub struct SetClaimPermission { + pub permission: set_claim_permission::Permission, + } + pub mod set_claim_permission { + use super::runtime_types; + pub type Permission = runtime_types::pallet_nomination_pools::ClaimPermission; + } + impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_claim_permission"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::claim_payout_other`]."] + pub struct ClaimPayoutOther { + pub other: claim_payout_other::Other, + } + pub mod claim_payout_other { + use super::runtime_types; + pub type Other = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout_other"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_commission`]."] + pub struct SetCommission { + pub pool_id: set_commission::PoolId, + pub new_commission: set_commission::NewCommission, + } + pub mod set_commission { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type NewCommission = ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>; + } + impl ::subxt::blocks::StaticExtrinsic for SetCommission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_commission_max`]."] + pub struct SetCommissionMax { + pub pool_id: set_commission_max::PoolId, + pub max_commission: set_commission_max::MaxCommission, + } + pub mod set_commission_max { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type MaxCommission = runtime_types::sp_arithmetic::per_things::Perbill; + } + impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission_max"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_commission_change_rate`]."] + pub struct SetCommissionChangeRate { + pub pool_id: set_commission_change_rate::PoolId, + pub change_rate: set_commission_change_rate::ChangeRate, + } + pub mod set_commission_change_rate { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type ChangeRate = + runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetCommissionChangeRate { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission_change_rate"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::claim_commission`]."] + pub struct ClaimCommission { + pub pool_id: claim_commission::PoolId, + } + pub mod claim_commission { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_commission"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::adjust_pool_deposit`]."] + pub struct AdjustPoolDeposit { + pub pool_id: adjust_pool_deposit::PoolId, + } + pub mod adjust_pool_deposit { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for AdjustPoolDeposit { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "adjust_pool_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_commission_claim_permission`]."] + pub struct SetCommissionClaimPermission { + pub pool_id: set_commission_claim_permission::PoolId, + pub permission: set_commission_claim_permission::Permission, + } + pub mod set_commission_claim_permission { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Permission = ::core::option::Option< + runtime_types::pallet_nomination_pools::CommissionClaimPermission< + ::subxt::utils::AccountId32, + >, + >; + } + impl ::subxt::blocks::StaticExtrinsic for SetCommissionClaimPermission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission_claim_permission"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::join`]."] + pub fn join( + &self, + amount: types::join::Amount, + pool_id: types::join::PoolId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "join", + types::Join { amount, pool_id }, + [ + 9u8, 24u8, 209u8, 117u8, 242u8, 76u8, 192u8, 40u8, 196u8, 136u8, 158u8, + 182u8, 117u8, 140u8, 164u8, 64u8, 184u8, 160u8, 146u8, 143u8, 173u8, + 180u8, 6u8, 242u8, 203u8, 130u8, 41u8, 176u8, 158u8, 96u8, 94u8, 175u8, + ], + ) + } + #[doc = "See [`Pallet::bond_extra`]."] + pub fn bond_extra( + &self, + extra: types::bond_extra::Extra, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "bond_extra", + types::BondExtra { extra }, + [ + 149u8, 176u8, 102u8, 52u8, 76u8, 227u8, 61u8, 60u8, 109u8, 187u8, 40u8, + 176u8, 163u8, 37u8, 10u8, 228u8, 164u8, 77u8, 155u8, 155u8, 14u8, + 106u8, 5u8, 177u8, 176u8, 224u8, 163u8, 28u8, 66u8, 237u8, 186u8, + 188u8, + ], + ) + } + #[doc = "See [`Pallet::claim_payout`]."] + pub fn claim_payout(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_payout", + types::ClaimPayout {}, + [ + 28u8, 87u8, 180u8, 5u8, 69u8, 49u8, 121u8, 28u8, 34u8, 63u8, 78u8, + 228u8, 223u8, 12u8, 171u8, 41u8, 181u8, 137u8, 145u8, 141u8, 198u8, + 220u8, 5u8, 101u8, 173u8, 69u8, 222u8, 59u8, 111u8, 92u8, 182u8, 8u8, + ], + ) + } + #[doc = "See [`Pallet::unbond`]."] + pub fn unbond( + &self, + member_account: types::unbond::MemberAccount, + unbonding_points: types::unbond::UnbondingPoints, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "unbond", + types::Unbond { + member_account, + unbonding_points, + }, + [ + 183u8, 93u8, 100u8, 99u8, 110u8, 67u8, 49u8, 3u8, 32u8, 33u8, 33u8, + 213u8, 198u8, 81u8, 120u8, 187u8, 249u8, 177u8, 81u8, 156u8, 162u8, + 165u8, 80u8, 88u8, 34u8, 7u8, 19u8, 199u8, 26u8, 110u8, 208u8, 218u8, + ], + ) + } + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] + pub fn pool_withdraw_unbonded( + &self, + pool_id: types::pool_withdraw_unbonded::PoolId, + num_slashing_spans: types::pool_withdraw_unbonded::NumSlashingSpans, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "pool_withdraw_unbonded", + types::PoolWithdrawUnbonded { + pool_id, + num_slashing_spans, + }, + [ + 145u8, 39u8, 154u8, 109u8, 24u8, 233u8, 144u8, 66u8, 28u8, 252u8, + 180u8, 5u8, 54u8, 123u8, 28u8, 182u8, 26u8, 156u8, 69u8, 105u8, 226u8, + 208u8, 154u8, 34u8, 22u8, 201u8, 139u8, 104u8, 198u8, 195u8, 247u8, + 49u8, + ], + ) + } + #[doc = "See [`Pallet::withdraw_unbonded`]."] + pub fn withdraw_unbonded( + &self, + member_account: types::withdraw_unbonded::MemberAccount, + num_slashing_spans: types::withdraw_unbonded::NumSlashingSpans, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "withdraw_unbonded", + types::WithdrawUnbonded { + member_account, + num_slashing_spans, + }, + [ + 86u8, 117u8, 152u8, 53u8, 236u8, 139u8, 234u8, 34u8, 89u8, 229u8, + 163u8, 115u8, 248u8, 231u8, 39u8, 82u8, 188u8, 79u8, 125u8, 134u8, + 213u8, 26u8, 162u8, 42u8, 105u8, 212u8, 31u8, 192u8, 137u8, 68u8, 93u8, + 149u8, + ], + ) + } + #[doc = "See [`Pallet::create`]."] + pub fn create( + &self, + amount: types::create::Amount, + root: types::create::Root, + nominator: types::create::Nominator, + bouncer: types::create::Bouncer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "create", + types::Create { + amount, + root, + nominator, + bouncer, + }, + [ + 178u8, 5u8, 192u8, 56u8, 49u8, 78u8, 47u8, 174u8, 224u8, 191u8, 143u8, + 247u8, 33u8, 141u8, 180u8, 96u8, 236u8, 234u8, 181u8, 72u8, 254u8, + 148u8, 228u8, 85u8, 30u8, 187u8, 8u8, 24u8, 255u8, 247u8, 196u8, 229u8, + ], + ) + } + #[doc = "See [`Pallet::create_with_pool_id`]."] + pub fn create_with_pool_id( + &self, + amount: types::create_with_pool_id::Amount, + root: types::create_with_pool_id::Root, + nominator: types::create_with_pool_id::Nominator, + bouncer: types::create_with_pool_id::Bouncer, + pool_id: types::create_with_pool_id::PoolId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "create_with_pool_id", + types::CreateWithPoolId { + amount, + root, + nominator, + bouncer, + pool_id, + }, + [ + 3u8, 35u8, 125u8, 15u8, 31u8, 212u8, 98u8, 154u8, 127u8, 158u8, 202u8, + 73u8, 141u8, 248u8, 238u8, 102u8, 183u8, 24u8, 69u8, 211u8, 128u8, + 152u8, 205u8, 19u8, 215u8, 167u8, 221u8, 77u8, 210u8, 219u8, 69u8, + 246u8, + ], + ) + } + #[doc = "See [`Pallet::nominate`]."] + pub fn nominate( + &self, + pool_id: types::nominate::PoolId, + validators: types::nominate::Validators, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "nominate", + types::Nominate { + pool_id, + validators, + }, + [ + 118u8, 80u8, 137u8, 47u8, 102u8, 9u8, 20u8, 136u8, 76u8, 164u8, 161u8, + 114u8, 33u8, 159u8, 204u8, 49u8, 233u8, 199u8, 246u8, 67u8, 144u8, + 169u8, 211u8, 67u8, 12u8, 68u8, 198u8, 149u8, 87u8, 62u8, 226u8, 72u8, + ], + ) + } + #[doc = "See [`Pallet::set_state`]."] + pub fn set_state( + &self, + pool_id: types::set_state::PoolId, + state: types::set_state::State, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_state", + types::SetState { pool_id, state }, + [ + 39u8, 221u8, 24u8, 65u8, 144u8, 230u8, 228u8, 24u8, 191u8, 53u8, 171u8, + 148u8, 131u8, 45u8, 10u8, 22u8, 222u8, 240u8, 13u8, 87u8, 123u8, 182u8, + 102u8, 26u8, 124u8, 205u8, 23u8, 31u8, 25u8, 43u8, 12u8, 140u8, + ], + ) + } + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + pool_id: types::set_metadata::PoolId, + metadata: types::set_metadata::Metadata, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_metadata", + types::SetMetadata { pool_id, metadata }, + [ + 221u8, 189u8, 15u8, 232u8, 0u8, 49u8, 187u8, 67u8, 124u8, 26u8, 114u8, + 191u8, 81u8, 14u8, 253u8, 75u8, 88u8, 182u8, 136u8, 18u8, 238u8, 119u8, + 215u8, 248u8, 133u8, 160u8, 154u8, 193u8, 177u8, 140u8, 1u8, 16u8, + ], + ) + } + #[doc = "See [`Pallet::set_configs`]."] + pub fn set_configs( + &self, + min_join_bond: types::set_configs::MinJoinBond, + min_create_bond: types::set_configs::MinCreateBond, + max_pools: types::set_configs::MaxPools, + max_members: types::set_configs::MaxMembers, + max_members_per_pool: types::set_configs::MaxMembersPerPool, + global_max_commission: types::set_configs::GlobalMaxCommission, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_configs", + types::SetConfigs { + min_join_bond, + min_create_bond, + max_pools, + max_members, + max_members_per_pool, + global_max_commission, + }, + [ + 151u8, 222u8, 184u8, 213u8, 161u8, 89u8, 162u8, 112u8, 198u8, 87u8, + 186u8, 55u8, 99u8, 197u8, 164u8, 156u8, 185u8, 199u8, 202u8, 19u8, + 44u8, 34u8, 35u8, 39u8, 129u8, 22u8, 41u8, 32u8, 27u8, 37u8, 176u8, + 107u8, + ], + ) + } + #[doc = "See [`Pallet::update_roles`]."] + pub fn update_roles( + &self, + pool_id: types::update_roles::PoolId, + new_root: types::update_roles::NewRoot, + new_nominator: types::update_roles::NewNominator, + new_bouncer: types::update_roles::NewBouncer, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "update_roles", + types::UpdateRoles { + pool_id, + new_root, + new_nominator, + new_bouncer, + }, + [ + 48u8, 253u8, 39u8, 205u8, 196u8, 231u8, 254u8, 76u8, 238u8, 70u8, 2u8, + 192u8, 188u8, 240u8, 206u8, 91u8, 213u8, 98u8, 226u8, 51u8, 167u8, + 205u8, 120u8, 128u8, 40u8, 175u8, 238u8, 57u8, 147u8, 96u8, 116u8, + 133u8, + ], + ) + } + #[doc = "See [`Pallet::chill`]."] + pub fn chill( + &self, + pool_id: types::chill::PoolId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "chill", + types::Chill { pool_id }, + [ + 65u8, 206u8, 54u8, 53u8, 37u8, 97u8, 161u8, 104u8, 62u8, 9u8, 93u8, + 236u8, 61u8, 185u8, 204u8, 245u8, 234u8, 218u8, 213u8, 40u8, 154u8, + 29u8, 244u8, 19u8, 207u8, 172u8, 142u8, 221u8, 38u8, 70u8, 39u8, 10u8, + ], + ) + } + #[doc = "See [`Pallet::bond_extra_other`]."] + pub fn bond_extra_other( + &self, + member: types::bond_extra_other::Member, + extra: types::bond_extra_other::Extra, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "bond_extra_other", + types::BondExtraOther { member, extra }, + [ + 253u8, 254u8, 246u8, 159u8, 248u8, 251u8, 20u8, 192u8, 70u8, 196u8, + 152u8, 189u8, 177u8, 144u8, 15u8, 52u8, 188u8, 132u8, 132u8, 97u8, + 112u8, 183u8, 102u8, 170u8, 132u8, 119u8, 204u8, 193u8, 7u8, 170u8, + 31u8, 156u8, + ], + ) + } + #[doc = "See [`Pallet::set_claim_permission`]."] + pub fn set_claim_permission( + &self, + permission: types::set_claim_permission::Permission, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_claim_permission", + types::SetClaimPermission { permission }, + [ + 36u8, 137u8, 193u8, 200u8, 57u8, 46u8, 87u8, 236u8, 180u8, 170u8, 90u8, + 99u8, 137u8, 123u8, 99u8, 197u8, 113u8, 119u8, 72u8, 153u8, 207u8, + 189u8, 69u8, 89u8, 225u8, 115u8, 45u8, 32u8, 216u8, 43u8, 92u8, 135u8, + ], + ) + } + #[doc = "See [`Pallet::claim_payout_other`]."] + pub fn claim_payout_other( + &self, + other: types::claim_payout_other::Other, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_payout_other", + types::ClaimPayoutOther { other }, + [ + 202u8, 130u8, 122u8, 10u8, 159u8, 181u8, 124u8, 215u8, 23u8, 85u8, + 234u8, 178u8, 169u8, 41u8, 204u8, 226u8, 195u8, 69u8, 168u8, 88u8, + 58u8, 15u8, 3u8, 227u8, 180u8, 183u8, 62u8, 224u8, 39u8, 218u8, 75u8, + 166u8, + ], + ) + } + #[doc = "See [`Pallet::set_commission`]."] + pub fn set_commission( + &self, + pool_id: types::set_commission::PoolId, + new_commission: types::set_commission::NewCommission, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission", + types::SetCommission { + pool_id, + new_commission, + }, + [ + 77u8, 139u8, 221u8, 210u8, 51u8, 57u8, 243u8, 96u8, 25u8, 0u8, 42u8, + 81u8, 80u8, 7u8, 145u8, 28u8, 17u8, 44u8, 123u8, 28u8, 130u8, 194u8, + 153u8, 139u8, 222u8, 166u8, 169u8, 184u8, 46u8, 178u8, 236u8, 246u8, + ], + ) + } + #[doc = "See [`Pallet::set_commission_max`]."] + pub fn set_commission_max( + &self, + pool_id: types::set_commission_max::PoolId, + max_commission: types::set_commission_max::MaxCommission, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission_max", + types::SetCommissionMax { + pool_id, + max_commission, + }, + [ + 198u8, 127u8, 255u8, 230u8, 96u8, 142u8, 9u8, 220u8, 204u8, 82u8, + 192u8, 76u8, 140u8, 52u8, 94u8, 80u8, 153u8, 30u8, 162u8, 21u8, 71u8, + 31u8, 218u8, 160u8, 254u8, 180u8, 160u8, 219u8, 163u8, 30u8, 193u8, + 6u8, + ], + ) + } + #[doc = "See [`Pallet::set_commission_change_rate`]."] + pub fn set_commission_change_rate( + &self, + pool_id: types::set_commission_change_rate::PoolId, + change_rate: types::set_commission_change_rate::ChangeRate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission_change_rate", + types::SetCommissionChangeRate { + pool_id, + change_rate, + }, + [ + 20u8, 200u8, 249u8, 176u8, 168u8, 210u8, 180u8, 77u8, 93u8, 28u8, 0u8, + 79u8, 29u8, 172u8, 176u8, 38u8, 178u8, 13u8, 99u8, 240u8, 210u8, 108u8, + 245u8, 95u8, 197u8, 235u8, 143u8, 239u8, 190u8, 245u8, 63u8, 108u8, + ], + ) + } + #[doc = "See [`Pallet::claim_commission`]."] + pub fn claim_commission( + &self, + pool_id: types::claim_commission::PoolId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_commission", + types::ClaimCommission { pool_id }, + [ + 51u8, 64u8, 163u8, 230u8, 2u8, 119u8, 68u8, 5u8, 154u8, 4u8, 84u8, + 149u8, 9u8, 195u8, 173u8, 37u8, 98u8, 48u8, 188u8, 65u8, 81u8, 11u8, + 64u8, 254u8, 126u8, 62u8, 29u8, 204u8, 92u8, 230u8, 240u8, 91u8, + ], + ) + } + #[doc = "See [`Pallet::adjust_pool_deposit`]."] + pub fn adjust_pool_deposit( + &self, + pool_id: types::adjust_pool_deposit::PoolId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "adjust_pool_deposit", + types::AdjustPoolDeposit { pool_id }, + [ + 5u8, 203u8, 109u8, 141u8, 29u8, 58u8, 216u8, 21u8, 219u8, 139u8, 129u8, + 33u8, 49u8, 196u8, 255u8, 49u8, 79u8, 218u8, 24u8, 250u8, 254u8, 64u8, + 215u8, 33u8, 223u8, 205u8, 117u8, 209u8, 138u8, 115u8, 174u8, 181u8, + ], + ) + } + #[doc = "See [`Pallet::set_commission_claim_permission`]."] + pub fn set_commission_claim_permission( + &self, + pool_id: types::set_commission_claim_permission::PoolId, + permission: types::set_commission_claim_permission::Permission, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission_claim_permission", + types::SetCommissionClaimPermission { + pool_id, + permission, + }, + [ + 2u8, 140u8, 135u8, 31u8, 180u8, 2u8, 245u8, 33u8, 34u8, 204u8, 192u8, + 30u8, 131u8, 4u8, 108u8, 194u8, 154u8, 65u8, 104u8, 252u8, 84u8, 58u8, + 10u8, 47u8, 238u8, 185u8, 91u8, 162u8, 190u8, 239u8, 74u8, 38u8, + ], + ) + } + } + } + #[doc = "Events of this pallet."] + pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool has been created."] + pub struct Created { + pub depositor: created::Depositor, + pub pool_id: created::PoolId, + } + pub mod created { + use super::runtime_types; + pub type Depositor = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Created { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Created"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has became bonded in a pool."] + pub struct Bonded { + pub member: bonded::Member, + pub pool_id: bonded::PoolId, + pub bonded: bonded::Bonded, + pub joined: bonded::Joined, + } + pub mod bonded { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; + pub type Bonded = ::core::primitive::u128; + pub type Joined = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for Bonded { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Bonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A payout has been made to a member."] + pub struct PaidOut { + pub member: paid_out::Member, + pub pool_id: paid_out::PoolId, + pub payout: paid_out::Payout, + } + pub mod paid_out { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; + pub type Payout = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for PaidOut { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PaidOut"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has unbonded from their pool."] + #[doc = ""] + #[doc = "- `balance` is the corresponding balance of the number of points that has been"] + #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] + #[doc = " pool."] + #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] + #[doc = "dissolved into the corresponding unbonding pool."] + #[doc = "- `era` is the era in which the balance will be unbonded."] + #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] + #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] + #[doc = "requested to be unbonded."] + pub struct Unbonded { + pub member: unbonded::Member, + pub pool_id: unbonded::PoolId, + pub balance: unbonded::Balance, + pub points: unbonded::Points, + pub era: unbonded::Era, + } + pub mod unbonded { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; + pub type Balance = ::core::primitive::u128; + pub type Points = ::core::primitive::u128; + pub type Era = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Unbonded { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Unbonded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has withdrawn from their pool."] + #[doc = ""] + #[doc = "The given number of `points` have been dissolved in return of `balance`."] + #[doc = ""] + #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] + #[doc = "will be 1."] + pub struct Withdrawn { + pub member: withdrawn::Member, + pub pool_id: withdrawn::PoolId, + pub balance: withdrawn::Balance, + pub points: withdrawn::Points, + } + pub mod withdrawn { + use super::runtime_types; + pub type Member = ::subxt::utils::AccountId32; + pub type PoolId = ::core::primitive::u32; + pub type Balance = ::core::primitive::u128; + pub type Points = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool has been destroyed."] + pub struct Destroyed { + pub pool_id: destroyed::PoolId, + } + pub mod destroyed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Destroyed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Destroyed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The state of a pool has changed"] + pub struct StateChanged { + pub pool_id: state_changed::PoolId, + pub new_state: state_changed::NewState, + } + pub mod state_changed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type NewState = runtime_types::pallet_nomination_pools::PoolState; + } + impl ::subxt::events::StaticEvent for StateChanged { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "StateChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member has been removed from a pool."] + #[doc = ""] + #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] + pub struct MemberRemoved { + pub pool_id: member_removed::PoolId, + pub member: member_removed::Member, + } + pub mod member_removed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Member = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for MemberRemoved { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "MemberRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] + #[doc = "can never change."] + pub struct RolesUpdated { + pub root: roles_updated::Root, + pub bouncer: roles_updated::Bouncer, + pub nominator: roles_updated::Nominator, + } + pub mod roles_updated { + use super::runtime_types; + pub type Root = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Bouncer = ::core::option::Option<::subxt::utils::AccountId32>; + pub type Nominator = ::core::option::Option<::subxt::utils::AccountId32>; + } + impl ::subxt::events::StaticEvent for RolesUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "RolesUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] + pub struct PoolSlashed { + pub pool_id: pool_slashed::PoolId, + pub balance: pool_slashed::Balance, + } + pub mod pool_slashed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Balance = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for PoolSlashed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] + pub struct UnbondingPoolSlashed { + pub pool_id: unbonding_pool_slashed::PoolId, + pub era: unbonding_pool_slashed::Era, + pub balance: unbonding_pool_slashed::Balance, + } + pub mod unbonding_pool_slashed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Era = ::core::primitive::u32; + pub type Balance = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "UnbondingPoolSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool's commission setting has been changed."] + pub struct PoolCommissionUpdated { + pub pool_id: pool_commission_updated::PoolId, + pub current: pool_commission_updated::Current, + } + pub mod pool_commission_updated { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Current = ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>; + } + impl ::subxt::events::StaticEvent for PoolCommissionUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool's maximum commission setting has been changed."] + pub struct PoolMaxCommissionUpdated { + pub pool_id: pool_max_commission_updated::PoolId, + pub max_commission: pool_max_commission_updated::MaxCommission, + } + pub mod pool_max_commission_updated { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type MaxCommission = runtime_types::sp_arithmetic::per_things::Perbill; + } + impl ::subxt::events::StaticEvent for PoolMaxCommissionUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolMaxCommissionUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool's commission `change_rate` has been changed."] + pub struct PoolCommissionChangeRateUpdated { + pub pool_id: pool_commission_change_rate_updated::PoolId, + pub change_rate: pool_commission_change_rate_updated::ChangeRate, + } + pub mod pool_commission_change_rate_updated { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type ChangeRate = runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >; + } + impl ::subxt::events::StaticEvent for PoolCommissionChangeRateUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Pool commission claim permission has been updated."] + pub struct PoolCommissionClaimPermissionUpdated { + pub pool_id: pool_commission_claim_permission_updated::PoolId, + pub permission: pool_commission_claim_permission_updated::Permission, + } + pub mod pool_commission_claim_permission_updated { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Permission = ::core::option::Option< + runtime_types::pallet_nomination_pools::CommissionClaimPermission< + ::subxt::utils::AccountId32, + >, + >; + } + impl ::subxt::events::StaticEvent for PoolCommissionClaimPermissionUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionClaimPermissionUpdated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Pool commission has been claimed."] + pub struct PoolCommissionClaimed { + pub pool_id: pool_commission_claimed::PoolId, + pub commission: pool_commission_claimed::Commission, + } + pub mod pool_commission_claimed { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Commission = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for PoolCommissionClaimed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionClaimed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Topped up deficit in frozen ED of the reward pool."] + pub struct MinBalanceDeficitAdjusted { + pub pool_id: min_balance_deficit_adjusted::PoolId, + pub amount: min_balance_deficit_adjusted::Amount, + } + pub mod min_balance_deficit_adjusted { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for MinBalanceDeficitAdjusted { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "MinBalanceDeficitAdjusted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Claimed excess frozen ED of af the reward pool."] + pub struct MinBalanceExcessAdjusted { + pub pool_id: min_balance_excess_adjusted::PoolId, + pub amount: min_balance_excess_adjusted::Amount, + } + pub mod min_balance_excess_adjusted { + use super::runtime_types; + pub type PoolId = ::core::primitive::u32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for MinBalanceExcessAdjusted { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "MinBalanceExcessAdjusted"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod total_value_locked { + use super::runtime_types; + pub type TotalValueLocked = ::core::primitive::u128; + } + pub mod min_join_bond { + use super::runtime_types; + pub type MinJoinBond = ::core::primitive::u128; + } + pub mod min_create_bond { + use super::runtime_types; + pub type MinCreateBond = ::core::primitive::u128; + } + pub mod max_pools { + use super::runtime_types; + pub type MaxPools = ::core::primitive::u32; + } + pub mod max_pool_members { + use super::runtime_types; + pub type MaxPoolMembers = ::core::primitive::u32; + } + pub mod max_pool_members_per_pool { + use super::runtime_types; + pub type MaxPoolMembersPerPool = ::core::primitive::u32; + } + pub mod global_max_commission { + use super::runtime_types; + pub type GlobalMaxCommission = + runtime_types::sp_arithmetic::per_things::Perbill; + } + pub mod pool_members { + use super::runtime_types; + pub type PoolMembers = runtime_types::pallet_nomination_pools::PoolMember; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod counter_for_pool_members { + use super::runtime_types; + pub type CounterForPoolMembers = ::core::primitive::u32; + } + pub mod bonded_pools { + use super::runtime_types; + pub type BondedPools = runtime_types::pallet_nomination_pools::BondedPoolInner; + pub type Param0 = ::core::primitive::u32; + } + pub mod counter_for_bonded_pools { + use super::runtime_types; + pub type CounterForBondedPools = ::core::primitive::u32; + } + pub mod reward_pools { + use super::runtime_types; + pub type RewardPools = runtime_types::pallet_nomination_pools::RewardPool; + pub type Param0 = ::core::primitive::u32; + } + pub mod counter_for_reward_pools { + use super::runtime_types; + pub type CounterForRewardPools = ::core::primitive::u32; + } + pub mod sub_pools_storage { + use super::runtime_types; + pub type SubPoolsStorage = runtime_types::pallet_nomination_pools::SubPools; + pub type Param0 = ::core::primitive::u32; + } + pub mod counter_for_sub_pools_storage { + use super::runtime_types; + pub type CounterForSubPoolsStorage = ::core::primitive::u32; + } + pub mod metadata { + use super::runtime_types; + pub type Metadata = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod counter_for_metadata { + use super::runtime_types; + pub type CounterForMetadata = ::core::primitive::u32; + } + pub mod last_pool_id { + use super::runtime_types; + pub type LastPoolId = ::core::primitive::u32; + } + pub mod reverse_pool_id_lookup { + use super::runtime_types; + pub type ReversePoolIdLookup = ::core::primitive::u32; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod counter_for_reverse_pool_id_lookup { + use super::runtime_types; + pub type CounterForReversePoolIdLookup = ::core::primitive::u32; + } + pub mod claim_permissions { + use super::runtime_types; + pub type ClaimPermissions = + runtime_types::pallet_nomination_pools::ClaimPermission; + pub type Param0 = ::subxt::utils::AccountId32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The sum of funds across all pools."] + #[doc = ""] + #[doc = " This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]"] + #[doc = " because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's"] + #[doc = " `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s."] + pub fn total_value_locked( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::total_value_locked::TotalValueLocked, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "TotalValueLocked", + vec![], + [ + 141u8, 23u8, 101u8, 59u8, 165u8, 8u8, 41u8, 252u8, 239u8, 72u8, 142u8, + 19u8, 186u8, 29u8, 131u8, 8u8, 113u8, 64u8, 82u8, 158u8, 26u8, 87u8, + 142u8, 39u8, 80u8, 231u8, 46u8, 40u8, 71u8, 186u8, 35u8, 104u8, + ], + ) + } + #[doc = " Minimum amount to bond to join a pool."] + pub fn min_join_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::min_join_bond::MinJoinBond, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MinJoinBond", + vec![], + [ + 64u8, 180u8, 71u8, 185u8, 81u8, 46u8, 155u8, 26u8, 251u8, 84u8, 108u8, + 80u8, 128u8, 44u8, 163u8, 118u8, 107u8, 79u8, 250u8, 211u8, 194u8, + 71u8, 87u8, 16u8, 247u8, 9u8, 76u8, 95u8, 103u8, 227u8, 180u8, 231u8, + ], + ) + } + #[doc = " Minimum bond required to create a pool."] + #[doc = ""] + #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] + #[doc = " indication of \"skin in the game\"."] + #[doc = ""] + #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] + #[doc = " while all other accounts leave."] + pub fn min_create_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::min_create_bond::MinCreateBond, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MinCreateBond", + vec![], + [ + 210u8, 67u8, 92u8, 230u8, 231u8, 105u8, 54u8, 249u8, 154u8, 192u8, + 29u8, 217u8, 233u8, 79u8, 170u8, 126u8, 133u8, 98u8, 253u8, 153u8, + 248u8, 189u8, 63u8, 107u8, 170u8, 224u8, 12u8, 42u8, 198u8, 185u8, + 85u8, 46u8, + ], + ) + } + #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] + #[doc = " pools can exist."] + pub fn max_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::max_pools::MaxPools, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPools", + vec![], + [ + 230u8, 184u8, 242u8, 91u8, 118u8, 111u8, 90u8, 204u8, 136u8, 61u8, + 228u8, 50u8, 212u8, 40u8, 83u8, 49u8, 121u8, 161u8, 245u8, 80u8, 46u8, + 184u8, 105u8, 134u8, 249u8, 225u8, 39u8, 3u8, 123u8, 137u8, 156u8, + 240u8, + ], + ) + } + #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] + #[doc = " members are not bound on a system wide basis."] + pub fn max_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::max_pool_members::MaxPoolMembers, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPoolMembers", + vec![], + [ + 210u8, 222u8, 181u8, 146u8, 137u8, 200u8, 71u8, 196u8, 74u8, 38u8, + 36u8, 122u8, 187u8, 164u8, 218u8, 116u8, 216u8, 143u8, 182u8, 15u8, + 23u8, 124u8, 57u8, 121u8, 81u8, 151u8, 8u8, 247u8, 80u8, 136u8, 115u8, + 2u8, + ], + ) + } + #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] + #[doc = " members is not bound on a per pool basis."] + pub fn max_pool_members_per_pool( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::max_pool_members_per_pool::MaxPoolMembersPerPool, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPoolMembersPerPool", + vec![], + [ + 250u8, 255u8, 136u8, 223u8, 61u8, 119u8, 117u8, 240u8, 68u8, 114u8, + 55u8, 1u8, 176u8, 120u8, 143u8, 48u8, 232u8, 125u8, 218u8, 105u8, 28u8, + 230u8, 253u8, 36u8, 9u8, 44u8, 129u8, 225u8, 147u8, 33u8, 181u8, 68u8, + ], + ) + } + #[doc = " The maximum commission that can be charged by a pool. Used on commission payouts to bound"] + #[doc = " pool commissions that are > `GlobalMaxCommission`, necessary if a future"] + #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] + pub fn global_max_commission( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::global_max_commission::GlobalMaxCommission, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "GlobalMaxCommission", + vec![], + [ + 2u8, 112u8, 8u8, 116u8, 114u8, 97u8, 250u8, 106u8, 170u8, 215u8, 218u8, + 217u8, 80u8, 235u8, 149u8, 81u8, 85u8, 185u8, 201u8, 127u8, 107u8, + 251u8, 191u8, 231u8, 142u8, 74u8, 8u8, 70u8, 151u8, 238u8, 117u8, + 173u8, + ], + ) + } + #[doc = " Active members."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn pool_members_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pool_members::PoolMembers, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "PoolMembers", + vec![], + [ + 71u8, 14u8, 198u8, 220u8, 13u8, 117u8, 189u8, 187u8, 123u8, 105u8, + 247u8, 41u8, 154u8, 176u8, 134u8, 226u8, 195u8, 136u8, 193u8, 6u8, + 134u8, 131u8, 105u8, 80u8, 140u8, 160u8, 20u8, 80u8, 179u8, 187u8, + 151u8, 47u8, + ], + ) + } + #[doc = " Active members."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] + pub fn pool_members( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pool_members::PoolMembers, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "PoolMembers", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 71u8, 14u8, 198u8, 220u8, 13u8, 117u8, 189u8, 187u8, 123u8, 105u8, + 247u8, 41u8, 154u8, 176u8, 134u8, 226u8, 195u8, 136u8, 193u8, 6u8, + 134u8, 131u8, 105u8, 80u8, 140u8, 160u8, 20u8, 80u8, 179u8, 187u8, + 151u8, 47u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_pool_members::CounterForPoolMembers, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForPoolMembers", + vec![], + [ + 165u8, 158u8, 130u8, 19u8, 106u8, 227u8, 134u8, 73u8, 36u8, 237u8, + 103u8, 146u8, 198u8, 68u8, 219u8, 186u8, 134u8, 224u8, 89u8, 251u8, + 200u8, 46u8, 87u8, 232u8, 53u8, 152u8, 13u8, 10u8, 105u8, 49u8, 150u8, + 212u8, + ], + ) + } + #[doc = " Storage for bonded pools."] + pub fn bonded_pools_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::bonded_pools::BondedPools, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "BondedPools", + vec![], + [ + 141u8, 117u8, 148u8, 7u8, 29u8, 55u8, 25u8, 139u8, 8u8, 233u8, 171u8, + 230u8, 90u8, 110u8, 122u8, 134u8, 50u8, 179u8, 33u8, 248u8, 160u8, + 79u8, 87u8, 106u8, 90u8, 157u8, 236u8, 135u8, 54u8, 79u8, 172u8, 47u8, + ], + ) + } + #[doc = " Storage for bonded pools."] + pub fn bonded_pools( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::bonded_pools::BondedPools, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "BondedPools", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 141u8, 117u8, 148u8, 7u8, 29u8, 55u8, 25u8, 139u8, 8u8, 233u8, 171u8, + 230u8, 90u8, 110u8, 122u8, 134u8, 50u8, 179u8, 33u8, 248u8, 160u8, + 79u8, 87u8, 106u8, 90u8, 157u8, 236u8, 135u8, 54u8, 79u8, 172u8, 47u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_bonded_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_bonded_pools::CounterForBondedPools, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForBondedPools", + vec![], + [ + 198u8, 6u8, 213u8, 92u8, 4u8, 114u8, 164u8, 244u8, 51u8, 55u8, 157u8, + 20u8, 224u8, 183u8, 40u8, 236u8, 115u8, 86u8, 171u8, 207u8, 31u8, + 111u8, 0u8, 210u8, 48u8, 198u8, 243u8, 153u8, 5u8, 216u8, 107u8, 113u8, + ], + ) + } + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] + #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + pub fn reward_pools_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::reward_pools::RewardPools, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "RewardPools", + vec![], + [ + 9u8, 12u8, 53u8, 236u8, 133u8, 154u8, 71u8, 150u8, 220u8, 31u8, 130u8, + 126u8, 208u8, 240u8, 214u8, 66u8, 16u8, 43u8, 202u8, 222u8, 94u8, + 136u8, 76u8, 60u8, 174u8, 197u8, 130u8, 138u8, 253u8, 239u8, 89u8, + 46u8, + ], + ) + } + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] + #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + pub fn reward_pools( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::reward_pools::RewardPools, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "RewardPools", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 9u8, 12u8, 53u8, 236u8, 133u8, 154u8, 71u8, 150u8, 220u8, 31u8, 130u8, + 126u8, 208u8, 240u8, 214u8, 66u8, 16u8, 43u8, 202u8, 222u8, 94u8, + 136u8, 76u8, 60u8, 174u8, 197u8, 130u8, 138u8, 253u8, 239u8, 89u8, + 46u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_reward_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_reward_pools::CounterForRewardPools, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForRewardPools", + vec![], + [ + 218u8, 186u8, 28u8, 97u8, 205u8, 249u8, 187u8, 10u8, 127u8, 190u8, + 213u8, 152u8, 103u8, 20u8, 157u8, 183u8, 86u8, 104u8, 186u8, 236u8, + 84u8, 159u8, 117u8, 78u8, 5u8, 242u8, 193u8, 59u8, 112u8, 200u8, 34u8, + 166u8, + ], + ) + } + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] + #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] + pub fn sub_pools_storage_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::sub_pools_storage::SubPoolsStorage, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "SubPoolsStorage", + vec![], + [ + 43u8, 35u8, 94u8, 197u8, 201u8, 86u8, 21u8, 118u8, 230u8, 10u8, 66u8, + 180u8, 104u8, 146u8, 250u8, 207u8, 159u8, 153u8, 203u8, 58u8, 20u8, + 247u8, 102u8, 155u8, 47u8, 58u8, 136u8, 150u8, 167u8, 83u8, 81u8, 44u8, + ], + ) + } + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] + #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] + pub fn sub_pools_storage( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::sub_pools_storage::SubPoolsStorage, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "SubPoolsStorage", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 43u8, 35u8, 94u8, 197u8, 201u8, 86u8, 21u8, 118u8, 230u8, 10u8, 66u8, + 180u8, 104u8, 146u8, 250u8, 207u8, 159u8, 153u8, 203u8, 58u8, 20u8, + 247u8, 102u8, 155u8, 47u8, 58u8, 136u8, 150u8, 167u8, 83u8, 81u8, 44u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_sub_pools_storage( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_sub_pools_storage::CounterForSubPoolsStorage, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForSubPoolsStorage", + vec![], + [ + 137u8, 162u8, 32u8, 44u8, 163u8, 30u8, 54u8, 158u8, 169u8, 118u8, + 196u8, 101u8, 78u8, 28u8, 184u8, 78u8, 185u8, 225u8, 226u8, 207u8, + 14u8, 119u8, 0u8, 116u8, 140u8, 141u8, 116u8, 106u8, 71u8, 161u8, + 200u8, 228u8, + ], + ) + } + #[doc = " Metadata for the pool."] + pub fn metadata_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata::Metadata, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "Metadata", + vec![], + [ + 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, + 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, + 84u8, 12u8, 102u8, 10u8, 124u8, 103u8, 9u8, 86u8, 199u8, 233u8, 54u8, + ], + ) + } + #[doc = " Metadata for the pool."] + pub fn metadata( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata::Metadata, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "Metadata", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, + 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, + 84u8, 12u8, 102u8, 10u8, 124u8, 103u8, 9u8, 86u8, 199u8, 233u8, 54u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_metadata( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_metadata::CounterForMetadata, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForMetadata", + vec![], + [ + 49u8, 76u8, 175u8, 236u8, 99u8, 120u8, 156u8, 116u8, 153u8, 173u8, + 10u8, 102u8, 194u8, 139u8, 25u8, 149u8, 109u8, 195u8, 150u8, 21u8, + 43u8, 24u8, 196u8, 180u8, 231u8, 101u8, 69u8, 98u8, 82u8, 159u8, 183u8, + 174u8, + ], + ) + } + #[doc = " Ever increasing number of all pools created so far."] + pub fn last_pool_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::last_pool_id::LastPoolId, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "LastPoolId", + vec![], + [ + 178u8, 198u8, 245u8, 157u8, 176u8, 45u8, 214u8, 86u8, 73u8, 154u8, + 217u8, 39u8, 191u8, 53u8, 233u8, 145u8, 57u8, 100u8, 31u8, 13u8, 202u8, + 122u8, 115u8, 16u8, 205u8, 69u8, 157u8, 250u8, 216u8, 180u8, 113u8, + 30u8, + ], + ) + } + #[doc = " A reverse lookup from the pool's account id to its id."] + #[doc = ""] + #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] + #[doc = " accounts are deterministically derived from it."] + pub fn reverse_pool_id_lookup_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::reverse_pool_id_lookup::ReversePoolIdLookup, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ReversePoolIdLookup", + vec![], + [ + 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, + 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, + 160u8, 52u8, 54u8, 11u8, 64u8, 0u8, 103u8, 85u8, 86u8, 5u8, 71u8, + ], + ) + } + #[doc = " A reverse lookup from the pool's account id to its id."] + #[doc = ""] + #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] + #[doc = " accounts are deterministically derived from it."] + pub fn reverse_pool_id_lookup( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::reverse_pool_id_lookup::ReversePoolIdLookup, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ReversePoolIdLookup", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, + 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, + 160u8, 52u8, 54u8, 11u8, 64u8, 0u8, 103u8, 85u8, 86u8, 5u8, 71u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_reverse_pool_id_lookup( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_reverse_pool_id_lookup::CounterForReversePoolIdLookup, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForReversePoolIdLookup", + vec![], + [ + 135u8, 72u8, 203u8, 197u8, 101u8, 135u8, 114u8, 202u8, 122u8, 231u8, + 128u8, 17u8, 81u8, 70u8, 22u8, 146u8, 100u8, 138u8, 16u8, 74u8, 31u8, + 250u8, 110u8, 184u8, 250u8, 75u8, 249u8, 71u8, 171u8, 77u8, 95u8, + 251u8, + ], + ) + } + #[doc = " Map from a pool member account to their opted claim permission."] + pub fn claim_permissions_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::claim_permissions::ClaimPermissions, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ClaimPermissions", + vec![], + [ + 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, + 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, + 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, + ], + ) + } + #[doc = " Map from a pool member account to their opted claim permission."] + pub fn claim_permissions( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::claim_permissions::ClaimPermissions, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ClaimPermissions", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, + 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, + 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The nomination pool's pallet id."] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "NominationPools", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] + #[doc = ""] + #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] + #[doc = " ratio becomes disproportional."] + #[doc = ""] + #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] + #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] + #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] + #[doc = " the chain, in the absolute worse case."] + #[doc = ""] + #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] + #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] + pub fn max_points_to_balance( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u8> { + ::subxt::constants::Address::new_static( + "NominationPools", + "MaxPointsToBalance", + [ + 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8, + 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, + 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8, + 165u8, + ], + ) + } + #[doc = " The maximum number of simultaneous unbonding chunks that can exist per member."] + pub fn max_unbonding(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "NominationPools", + "MaxUnbonding", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod ranked_polls { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_referenda::pallet::Error2; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_referenda::pallet::Call2; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::submit`]."] + pub struct Submit { + pub proposal_origin: ::std::boxed::Box, + pub proposal: submit::Proposal, + pub enactment_moment: submit::EnactmentMoment, + } + pub mod submit { + use super::runtime_types; + pub type ProposalOrigin = runtime_types::kitchensink_runtime::OriginCaller; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + pub type EnactmentMoment = + runtime_types::frame_support::traits::schedule::DispatchTime< + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "RankedPolls"; + const CALL: &'static str = "submit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub struct PlaceDecisionDeposit { + pub index: place_decision_deposit::Index, + } + pub mod place_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for PlaceDecisionDeposit { + const PALLET: &'static str = "RankedPolls"; + const CALL: &'static str = "place_decision_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::refund_decision_deposit`]."] + pub struct RefundDecisionDeposit { + pub index: refund_decision_deposit::Index, + } + pub mod refund_decision_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for RefundDecisionDeposit { + const PALLET: &'static str = "RankedPolls"; + const CALL: &'static str = "refund_decision_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cancel`]."] + pub struct Cancel { + pub index: cancel::Index, + } + pub mod cancel { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Cancel { + const PALLET: &'static str = "RankedPolls"; + const CALL: &'static str = "cancel"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::kill`]."] + pub struct Kill { + pub index: kill::Index, + } + pub mod kill { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Kill { + const PALLET: &'static str = "RankedPolls"; + const CALL: &'static str = "kill"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::nudge_referendum`]."] + pub struct NudgeReferendum { + pub index: nudge_referendum::Index, + } + pub mod nudge_referendum { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for NudgeReferendum { + const PALLET: &'static str = "RankedPolls"; + const CALL: &'static str = "nudge_referendum"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::one_fewer_deciding`]."] + pub struct OneFewerDeciding { + pub track: one_fewer_deciding::Track, + } + pub mod one_fewer_deciding { + use super::runtime_types; + pub type Track = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for OneFewerDeciding { + const PALLET: &'static str = "RankedPolls"; + const CALL: &'static str = "one_fewer_deciding"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::refund_submission_deposit`]."] + pub struct RefundSubmissionDeposit { + pub index: refund_submission_deposit::Index, + } + pub mod refund_submission_deposit { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for RefundSubmissionDeposit { + const PALLET: &'static str = "RankedPolls"; + const CALL: &'static str = "refund_submission_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_metadata`]."] + pub struct SetMetadata { + pub index: set_metadata::Index, + pub maybe_hash: set_metadata::MaybeHash, + } + pub mod set_metadata { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type MaybeHash = ::core::option::Option<::subxt::utils::H256>; + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "RankedPolls"; + const CALL: &'static str = "set_metadata"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::submit`]."] + pub fn submit( + &self, + proposal_origin: types::submit::ProposalOrigin, + proposal: types::submit::Proposal, + enactment_moment: types::submit::EnactmentMoment, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedPolls", + "submit", + types::Submit { + proposal_origin: ::std::boxed::Box::new(proposal_origin), + proposal, + enactment_moment, + }, + [ + 184u8, 21u8, 12u8, 160u8, 90u8, 181u8, 130u8, 23u8, 137u8, 103u8, 90u8, + 56u8, 33u8, 143u8, 229u8, 225u8, 30u8, 21u8, 203u8, 162u8, 99u8, 136u8, + 214u8, 253u8, 60u8, 126u8, 195u8, 2u8, 143u8, 32u8, 216u8, 139u8, + ], + ) + } + #[doc = "See [`Pallet::place_decision_deposit`]."] + pub fn place_decision_deposit( + &self, + index: types::place_decision_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedPolls", + "place_decision_deposit", + types::PlaceDecisionDeposit { index }, + [ + 247u8, 158u8, 55u8, 191u8, 188u8, 200u8, 3u8, 47u8, 20u8, 175u8, 86u8, + 203u8, 52u8, 253u8, 91u8, 131u8, 21u8, 213u8, 56u8, 68u8, 40u8, 84u8, + 184u8, 30u8, 9u8, 193u8, 63u8, 182u8, 178u8, 241u8, 247u8, 220u8, + ], + ) + } + #[doc = "See [`Pallet::refund_decision_deposit`]."] + pub fn refund_decision_deposit( + &self, + index: types::refund_decision_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedPolls", + "refund_decision_deposit", + types::RefundDecisionDeposit { index }, + [ + 159u8, 19u8, 35u8, 216u8, 114u8, 105u8, 18u8, 42u8, 148u8, 151u8, + 136u8, 92u8, 117u8, 30u8, 29u8, 41u8, 238u8, 58u8, 195u8, 91u8, 115u8, + 135u8, 96u8, 99u8, 154u8, 233u8, 8u8, 249u8, 145u8, 165u8, 77u8, 164u8, + ], + ) + } + #[doc = "See [`Pallet::cancel`]."] + pub fn cancel( + &self, + index: types::cancel::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedPolls", + "cancel", + types::Cancel { index }, + [ + 55u8, 206u8, 119u8, 156u8, 238u8, 165u8, 193u8, 73u8, 242u8, 13u8, + 212u8, 75u8, 136u8, 156u8, 151u8, 14u8, 35u8, 41u8, 156u8, 107u8, 60u8, + 190u8, 39u8, 216u8, 8u8, 74u8, 213u8, 130u8, 160u8, 131u8, 237u8, + 122u8, + ], + ) + } + #[doc = "See [`Pallet::kill`]."] + pub fn kill(&self, index: types::kill::Index) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedPolls", + "kill", + types::Kill { index }, + [ + 50u8, 89u8, 57u8, 0u8, 87u8, 129u8, 113u8, 140u8, 179u8, 178u8, 126u8, + 198u8, 92u8, 92u8, 189u8, 64u8, 123u8, 232u8, 57u8, 227u8, 223u8, + 219u8, 73u8, 217u8, 179u8, 44u8, 210u8, 125u8, 180u8, 10u8, 143u8, + 48u8, + ], + ) + } + #[doc = "See [`Pallet::nudge_referendum`]."] + pub fn nudge_referendum( + &self, + index: types::nudge_referendum::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedPolls", + "nudge_referendum", + types::NudgeReferendum { index }, + [ + 75u8, 99u8, 172u8, 30u8, 170u8, 150u8, 211u8, 229u8, 249u8, 128u8, + 194u8, 246u8, 100u8, 142u8, 193u8, 184u8, 232u8, 81u8, 29u8, 17u8, + 99u8, 91u8, 236u8, 85u8, 230u8, 226u8, 57u8, 115u8, 45u8, 170u8, 54u8, + 213u8, + ], + ) + } + #[doc = "See [`Pallet::one_fewer_deciding`]."] + pub fn one_fewer_deciding( + &self, + track: types::one_fewer_deciding::Track, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedPolls", + "one_fewer_deciding", + types::OneFewerDeciding { track }, + [ + 15u8, 84u8, 79u8, 231u8, 21u8, 239u8, 244u8, 143u8, 183u8, 215u8, + 181u8, 25u8, 225u8, 195u8, 95u8, 171u8, 17u8, 156u8, 182u8, 128u8, + 111u8, 40u8, 151u8, 102u8, 196u8, 55u8, 36u8, 212u8, 89u8, 190u8, + 131u8, 167u8, + ], + ) + } + #[doc = "See [`Pallet::refund_submission_deposit`]."] + pub fn refund_submission_deposit( + &self, + index: types::refund_submission_deposit::Index, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedPolls", + "refund_submission_deposit", + types::RefundSubmissionDeposit { index }, + [ + 20u8, 217u8, 115u8, 6u8, 1u8, 60u8, 54u8, 136u8, 35u8, 41u8, 38u8, + 23u8, 85u8, 100u8, 141u8, 126u8, 30u8, 160u8, 61u8, 46u8, 134u8, 98u8, + 82u8, 38u8, 211u8, 124u8, 208u8, 222u8, 210u8, 10u8, 155u8, 122u8, + ], + ) + } + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + index: types::set_metadata::Index, + maybe_hash: types::set_metadata::MaybeHash, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedPolls", + "set_metadata", + types::SetMetadata { index, maybe_hash }, + [ + 207u8, 29u8, 146u8, 233u8, 219u8, 205u8, 88u8, 118u8, 106u8, 61u8, + 124u8, 101u8, 2u8, 41u8, 169u8, 70u8, 114u8, 189u8, 162u8, 118u8, 1u8, + 108u8, 234u8, 98u8, 245u8, 245u8, 183u8, 126u8, 89u8, 13u8, 112u8, + 88u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_referenda::pallet::Event2; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been submitted."] + pub struct Submitted { + pub index: submitted::Index, + pub track: submitted::Track, + pub proposal: submitted::Proposal, + } + pub mod submitted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Track = ::core::primitive::u16; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + } + impl ::subxt::events::StaticEvent for Submitted { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "Submitted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The decision deposit has been placed."] + pub struct DecisionDepositPlaced { + pub index: decision_deposit_placed::Index, + pub who: decision_deposit_placed::Who, + pub amount: decision_deposit_placed::Amount, + } + pub mod decision_deposit_placed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DecisionDepositPlaced { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "DecisionDepositPlaced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The decision deposit has been refunded."] + pub struct DecisionDepositRefunded { + pub index: decision_deposit_refunded::Index, + pub who: decision_deposit_refunded::Who, + pub amount: decision_deposit_refunded::Amount, + } + pub mod decision_deposit_refunded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DecisionDepositRefunded { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "DecisionDepositRefunded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A deposit has been slashed."] + pub struct DepositSlashed { + pub who: deposit_slashed::Who, + pub amount: deposit_slashed::Amount, + } + pub mod deposit_slashed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DepositSlashed { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "DepositSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has moved into the deciding phase."] + pub struct DecisionStarted { + pub index: decision_started::Index, + pub track: decision_started::Track, + pub proposal: decision_started::Proposal, + pub tally: decision_started::Tally, + } + pub mod decision_started { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Track = ::core::primitive::u16; + pub type Proposal = runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; + } + impl ::subxt::events::StaticEvent for DecisionStarted { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "DecisionStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConfirmStarted { + pub index: confirm_started::Index, + } + pub mod confirm_started { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ConfirmStarted { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "ConfirmStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConfirmAborted { + pub index: confirm_aborted::Index, + } + pub mod confirm_aborted { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for ConfirmAborted { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "ConfirmAborted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has ended its confirmation phase and is ready for approval."] + pub struct Confirmed { + pub index: confirmed::Index, + pub tally: confirmed::Tally, + } + pub mod confirmed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; + } + impl ::subxt::events::StaticEvent for Confirmed { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "Confirmed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been approved and its proposal has been scheduled."] + pub struct Approved { + pub index: approved::Index, + } + pub mod approved { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Approved { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "Approved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A proposal has been rejected by referendum."] + pub struct Rejected { + pub index: rejected::Index, + pub tally: rejected::Tally, + } + pub mod rejected { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; + } + impl ::subxt::events::StaticEvent for Rejected { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "Rejected"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been timed out without being decided."] + pub struct TimedOut { + pub index: timed_out::Index, + pub tally: timed_out::Tally, + } + pub mod timed_out { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; + } + impl ::subxt::events::StaticEvent for TimedOut { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "TimedOut"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been cancelled."] + pub struct Cancelled { + pub index: cancelled::Index, + pub tally: cancelled::Tally, + } + pub mod cancelled { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; + } + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "Cancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A referendum has been killed."] + pub struct Killed { + pub index: killed::Index, + pub tally: killed::Tally, + } + pub mod killed { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; + } + impl ::subxt::events::StaticEvent for Killed { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "Killed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The submission deposit has been refunded."] + pub struct SubmissionDepositRefunded { + pub index: submission_deposit_refunded::Index, + pub who: submission_deposit_refunded::Who, + pub amount: submission_deposit_refunded::Amount, + } + pub mod submission_deposit_refunded { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for SubmissionDepositRefunded { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "SubmissionDepositRefunded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a referendum has been set."] + pub struct MetadataSet { + pub index: metadata_set::Index, + pub hash: metadata_set::Hash, + } + pub mod metadata_set { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a referendum has been cleared."] + pub struct MetadataCleared { + pub index: metadata_cleared::Index, + pub hash: metadata_cleared::Hash, + } + pub mod metadata_cleared { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Hash = ::subxt::utils::H256; + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "RankedPolls"; + const EVENT: &'static str = "MetadataCleared"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod referendum_count { + use super::runtime_types; + pub type ReferendumCount = ::core::primitive::u32; + } + pub mod referendum_info_for { + use super::runtime_types; + pub type ReferendumInfoFor = + runtime_types::pallet_referenda::types::ReferendumInfo< + ::core::primitive::u16, + runtime_types::kitchensink_runtime::OriginCaller, + ::core::primitive::u32, + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + ::core::primitive::u128, + runtime_types::pallet_ranked_collective::Tally, + ::subxt::utils::AccountId32, + (::core::primitive::u32, ::core::primitive::u32), + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod track_queue { + use super::runtime_types; + pub type TrackQueue = + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + ::core::primitive::u32, + )>; + pub type Param0 = ::core::primitive::u16; + } + pub mod deciding_count { + use super::runtime_types; + pub type DecidingCount = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; + } + pub mod metadata_of { + use super::runtime_types; + pub type MetadataOf = ::subxt::utils::H256; + pub type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The next free referendum index, aka the number of referenda started so far."] + pub fn referendum_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::referendum_count::ReferendumCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedPolls", + "ReferendumCount", + vec![], + [ + 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, + 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, + 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, + 67u8, + ], + ) + } + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::referendum_info_for::ReferendumInfoFor, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedPolls", + "ReferendumInfoFor", + vec![], + [ + 138u8, 234u8, 223u8, 27u8, 15u8, 43u8, 253u8, 186u8, 0u8, 71u8, 168u8, + 34u8, 170u8, 60u8, 137u8, 241u8, 65u8, 189u8, 36u8, 159u8, 86u8, 168u8, + 96u8, 31u8, 205u8, 39u8, 90u8, 5u8, 237u8, 93u8, 3u8, 230u8, + ], + ) + } + #[doc = " Information concerning any given referendum."] + pub fn referendum_info_for( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::referendum_info_for::ReferendumInfoFor, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedPolls", + "ReferendumInfoFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 138u8, 234u8, 223u8, 27u8, 15u8, 43u8, 253u8, 186u8, 0u8, 71u8, 168u8, + 34u8, 170u8, 60u8, 137u8, 241u8, 65u8, 189u8, 36u8, 159u8, 86u8, 168u8, + 96u8, 31u8, 205u8, 39u8, 90u8, 5u8, 237u8, 93u8, 3u8, 230u8, + ], + ) + } + #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] + #[doc = " conviction-weighted approvals."] + #[doc = ""] + #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] + pub fn track_queue_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::track_queue::TrackQueue, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedPolls", + "TrackQueue", + vec![], + [ + 187u8, 113u8, 225u8, 99u8, 159u8, 207u8, 182u8, 41u8, 116u8, 136u8, + 119u8, 196u8, 152u8, 50u8, 192u8, 22u8, 171u8, 182u8, 237u8, 228u8, + 80u8, 255u8, 227u8, 141u8, 155u8, 83u8, 71u8, 131u8, 118u8, 109u8, + 186u8, 65u8, + ], + ) + } + #[doc = " The sorted list of referenda ready to be decided but not yet being decided, ordered by"] + #[doc = " conviction-weighted approvals."] + #[doc = ""] + #[doc = " This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`."] + pub fn track_queue( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::track_queue::TrackQueue, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedPolls", + "TrackQueue", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 187u8, 113u8, 225u8, 99u8, 159u8, 207u8, 182u8, 41u8, 116u8, 136u8, + 119u8, 196u8, 152u8, 50u8, 192u8, 22u8, 171u8, 182u8, 237u8, 228u8, + 80u8, 255u8, 227u8, 141u8, 155u8, 83u8, 71u8, 131u8, 118u8, 109u8, + 186u8, 65u8, + ], + ) + } + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deciding_count::DecidingCount, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedPolls", + "DecidingCount", + vec![], + [ + 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, + 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, + 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, + 245u8, + ], + ) + } + #[doc = " The number of referenda being decided currently."] + pub fn deciding_count( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deciding_count::DecidingCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedPolls", + "DecidingCount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 203u8, 89u8, 158u8, 179u8, 194u8, 82u8, 248u8, 162u8, 93u8, 140u8, + 146u8, 51u8, 110u8, 232u8, 51u8, 1u8, 128u8, 212u8, 199u8, 14u8, 182u8, + 103u8, 47u8, 252u8, 126u8, 108u8, 166u8, 69u8, 252u8, 179u8, 126u8, + 245u8, + ], + ) + } + #[doc = " The metadata is a general information concerning the referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata_of::MetadataOf, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedPolls", + "MetadataOf", + vec![], + [ + 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, + 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, + 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, + 110u8, + ], + ) + } + #[doc = " The metadata is a general information concerning the referendum."] + #[doc = " The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::metadata_of::MetadataOf, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedPolls", + "MetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 159u8, 250u8, 56u8, 189u8, 247u8, 165u8, 206u8, 166u8, 91u8, 139u8, + 124u8, 164u8, 25u8, 246u8, 199u8, 36u8, 159u8, 56u8, 227u8, 136u8, 4u8, + 45u8, 193u8, 72u8, 200u8, 164u8, 39u8, 207u8, 224u8, 124u8, 191u8, + 110u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] + pub fn submission_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "RankedPolls", + "SubmissionDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Maximum size of the referendum queue for a single track."] + pub fn max_queued(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "RankedPolls", + "MaxQueued", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The number of blocks after submission that a referendum must begin being decided by."] + #[doc = " Once this passes, then anyone may cancel the referendum."] + pub fn undeciding_timeout( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "RankedPolls", + "UndecidingTimeout", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Quantization level for the referendum wakeup scheduler. A higher number will result in"] + #[doc = " fewer storage reads/writes needed for smaller voters, but also result in delays to the"] + #[doc = " automatic referendum status changes. Explicit servicing instructions are unaffected."] + pub fn alarm_interval( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "RankedPolls", + "AlarmInterval", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Information concerning the different referendum tracks."] + pub fn tracks( + &self, + ) -> ::subxt::constants::Address< + ::std::vec::Vec<( + ::core::primitive::u16, + runtime_types::pallet_referenda::types::TrackInfo< + ::core::primitive::u128, + ::core::primitive::u32, + >, + )>, + > { + ::subxt::constants::Address::new_static( + "RankedPolls", + "Tracks", + [ + 35u8, 226u8, 207u8, 234u8, 184u8, 139u8, 187u8, 184u8, 128u8, 199u8, + 227u8, 15u8, 31u8, 196u8, 5u8, 207u8, 138u8, 174u8, 130u8, 201u8, + 200u8, 113u8, 86u8, 93u8, 221u8, 243u8, 229u8, 24u8, 18u8, 150u8, 56u8, + 159u8, + ], + ) + } + } + } + } + pub mod ranked_collective { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_ranked_collective::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_ranked_collective::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::add_member`]."] + pub struct AddMember { + pub who: add_member::Who, + } + pub mod add_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for AddMember { + const PALLET: &'static str = "RankedCollective"; + const CALL: &'static str = "add_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::promote_member`]."] + pub struct PromoteMember { + pub who: promote_member::Who, + } + pub mod promote_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for PromoteMember { + const PALLET: &'static str = "RankedCollective"; + const CALL: &'static str = "promote_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::demote_member`]."] + pub struct DemoteMember { + pub who: demote_member::Who, + } + pub mod demote_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for DemoteMember { + const PALLET: &'static str = "RankedCollective"; + const CALL: &'static str = "demote_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_member`]."] + pub struct RemoveMember { + pub who: remove_member::Who, + pub min_rank: remove_member::MinRank, + } + pub mod remove_member { + use super::runtime_types; + pub type Who = ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >; + pub type MinRank = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveMember { + const PALLET: &'static str = "RankedCollective"; + const CALL: &'static str = "remove_member"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::vote`]."] + pub struct Vote { + pub poll: vote::Poll, + pub aye: vote::Aye, + } + pub mod vote { + use super::runtime_types; + pub type Poll = ::core::primitive::u32; + pub type Aye = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "RankedCollective"; + const CALL: &'static str = "vote"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::cleanup_poll`]."] + pub struct CleanupPoll { + pub poll_index: cleanup_poll::PollIndex, + pub max: cleanup_poll::Max, + } + pub mod cleanup_poll { + use super::runtime_types; + pub type PollIndex = ::core::primitive::u32; + pub type Max = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for CleanupPoll { + const PALLET: &'static str = "RankedCollective"; + const CALL: &'static str = "cleanup_poll"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::add_member`]."] + pub fn add_member( + &self, + who: types::add_member::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedCollective", + "add_member", + types::AddMember { who }, + [ + 237u8, 212u8, 114u8, 106u8, 42u8, 1u8, 28u8, 244u8, 161u8, 140u8, 80u8, + 251u8, 217u8, 116u8, 9u8, 155u8, 234u8, 94u8, 3u8, 156u8, 5u8, 68u8, + 197u8, 90u8, 47u8, 223u8, 235u8, 200u8, 194u8, 195u8, 90u8, 70u8, + ], + ) + } + #[doc = "See [`Pallet::promote_member`]."] + pub fn promote_member( + &self, + who: types::promote_member::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedCollective", + "promote_member", + types::PromoteMember { who }, + [ + 151u8, 129u8, 198u8, 250u8, 9u8, 92u8, 68u8, 163u8, 82u8, 3u8, 98u8, + 178u8, 86u8, 246u8, 165u8, 97u8, 217u8, 237u8, 58u8, 38u8, 215u8, + 195u8, 108u8, 82u8, 115u8, 23u8, 227u8, 229u8, 138u8, 186u8, 130u8, + 96u8, + ], + ) + } + #[doc = "See [`Pallet::demote_member`]."] + pub fn demote_member( + &self, + who: types::demote_member::Who, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedCollective", + "demote_member", + types::DemoteMember { who }, + [ + 93u8, 134u8, 125u8, 30u8, 74u8, 38u8, 74u8, 176u8, 14u8, 161u8, 162u8, + 7u8, 20u8, 73u8, 96u8, 104u8, 242u8, 177u8, 191u8, 139u8, 204u8, 39u8, + 197u8, 142u8, 26u8, 222u8, 102u8, 141u8, 153u8, 249u8, 232u8, 49u8, + ], + ) + } + #[doc = "See [`Pallet::remove_member`]."] + pub fn remove_member( + &self, + who: types::remove_member::Who, + min_rank: types::remove_member::MinRank, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedCollective", + "remove_member", + types::RemoveMember { who, min_rank }, + [ + 142u8, 183u8, 142u8, 8u8, 123u8, 189u8, 207u8, 140u8, 125u8, 254u8, + 69u8, 113u8, 58u8, 128u8, 218u8, 113u8, 213u8, 50u8, 38u8, 251u8, + 107u8, 95u8, 114u8, 36u8, 9u8, 230u8, 151u8, 112u8, 177u8, 148u8, + 101u8, 227u8, + ], + ) + } + #[doc = "See [`Pallet::vote`]."] + pub fn vote( + &self, + poll: types::vote::Poll, + aye: types::vote::Aye, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedCollective", + "vote", + types::Vote { poll, aye }, + [ + 54u8, 116u8, 81u8, 239u8, 223u8, 35u8, 11u8, 244u8, 245u8, 94u8, 23u8, + 241u8, 125u8, 231u8, 56u8, 150u8, 105u8, 125u8, 100u8, 171u8, 182u8, + 186u8, 134u8, 40u8, 4u8, 121u8, 119u8, 11u8, 93u8, 158u8, 59u8, 209u8, + ], + ) + } + #[doc = "See [`Pallet::cleanup_poll`]."] + pub fn cleanup_poll( + &self, + poll_index: types::cleanup_poll::PollIndex, + max: types::cleanup_poll::Max, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "RankedCollective", + "cleanup_poll", + types::CleanupPoll { poll_index, max }, + [ + 157u8, 109u8, 86u8, 253u8, 62u8, 107u8, 235u8, 255u8, 171u8, 68u8, + 103u8, 92u8, 245u8, 25u8, 252u8, 158u8, 174u8, 137u8, 77u8, 251u8, + 105u8, 113u8, 165u8, 46u8, 39u8, 55u8, 166u8, 79u8, 103u8, 81u8, 121u8, + 37u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_ranked_collective::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A member `who` has been added."] + pub struct MemberAdded { + pub who: member_added::Who, + } + pub mod member_added { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for MemberAdded { + const PALLET: &'static str = "RankedCollective"; + const EVENT: &'static str = "MemberAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The member `who`se rank has been changed to the given `rank`."] + pub struct RankChanged { + pub who: rank_changed::Who, + pub rank: rank_changed::Rank, + } + pub mod rank_changed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Rank = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for RankChanged { + const PALLET: &'static str = "RankedCollective"; + const EVENT: &'static str = "RankChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The member `who` of given `rank` has been removed from the collective."] + pub struct MemberRemoved { + pub who: member_removed::Who, + pub rank: member_removed::Rank, + } + pub mod member_removed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Rank = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for MemberRemoved { + const PALLET: &'static str = "RankedCollective"; + const EVENT: &'static str = "MemberRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The member `who` has voted for the `poll` with the given `vote` leading to an updated"] + #[doc = "`tally`."] + pub struct Voted { + pub who: voted::Who, + pub poll: voted::Poll, + pub vote: voted::Vote, + pub tally: voted::Tally, + } + pub mod voted { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Poll = ::core::primitive::u32; + pub type Vote = runtime_types::pallet_ranked_collective::VoteRecord; + pub type Tally = runtime_types::pallet_ranked_collective::Tally; + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "RankedCollective"; + const EVENT: &'static str = "Voted"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod member_count { + use super::runtime_types; + pub type MemberCount = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; + } + pub mod members { + use super::runtime_types; + pub type Members = runtime_types::pallet_ranked_collective::MemberRecord; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod id_to_index { + use super::runtime_types; + pub type IdToIndex = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u16; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod index_to_id { + use super::runtime_types; + pub type IndexToId = ::subxt::utils::AccountId32; + pub type Param0 = ::core::primitive::u16; + pub type Param1 = ::core::primitive::u32; + } + pub mod voting { + use super::runtime_types; + pub type Voting = runtime_types::pallet_ranked_collective::VoteRecord; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::subxt::utils::AccountId32; + } + pub mod voting_cleanup { + use super::runtime_types; + pub type VotingCleanup = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The number of members in the collective who have at least the rank according to the index"] + #[doc = " of the vec."] + pub fn member_count_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::member_count::MemberCount, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "MemberCount", + vec![], + [ + 0u8, 141u8, 66u8, 91u8, 155u8, 74u8, 17u8, 191u8, 143u8, 41u8, 231u8, + 56u8, 123u8, 219u8, 145u8, 27u8, 197u8, 62u8, 118u8, 237u8, 30u8, 7u8, + 107u8, 96u8, 95u8, 17u8, 242u8, 206u8, 246u8, 79u8, 53u8, 214u8, + ], + ) + } + #[doc = " The number of members in the collective who have at least the rank according to the index"] + #[doc = " of the vec."] + pub fn member_count( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::member_count::MemberCount, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "MemberCount", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 0u8, 141u8, 66u8, 91u8, 155u8, 74u8, 17u8, 191u8, 143u8, 41u8, 231u8, + 56u8, 123u8, 219u8, 145u8, 27u8, 197u8, 62u8, 118u8, 237u8, 30u8, 7u8, + 107u8, 96u8, 95u8, 17u8, 242u8, 206u8, 246u8, 79u8, 53u8, 214u8, + ], + ) + } + #[doc = " The current members of the collective."] + pub fn members_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::members::Members, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "Members", + vec![], + [ + 101u8, 183u8, 36u8, 241u8, 67u8, 8u8, 252u8, 116u8, 110u8, 153u8, + 117u8, 210u8, 128u8, 80u8, 130u8, 163u8, 38u8, 76u8, 230u8, 107u8, + 112u8, 90u8, 102u8, 24u8, 217u8, 2u8, 244u8, 197u8, 103u8, 215u8, + 247u8, 133u8, + ], + ) + } + #[doc = " The current members of the collective."] + pub fn members( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::members::Members, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "Members", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 101u8, 183u8, 36u8, 241u8, 67u8, 8u8, 252u8, 116u8, 110u8, 153u8, + 117u8, 210u8, 128u8, 80u8, 130u8, 163u8, 38u8, 76u8, 230u8, 107u8, + 112u8, 90u8, 102u8, 24u8, 217u8, 2u8, 244u8, 197u8, 103u8, 215u8, + 247u8, 133u8, + ], + ) + } + #[doc = " The index of each ranks's member into the group of members who have at least that rank."] + pub fn id_to_index_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::id_to_index::IdToIndex, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "IdToIndex", + vec![], + [ + 121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8, + 45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8, + 153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8, + ], + ) + } + #[doc = " The index of each ranks's member into the group of members who have at least that rank."] + pub fn id_to_index_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::id_to_index::IdToIndex, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "IdToIndex", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8, + 45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8, + 153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8, + ], + ) + } + #[doc = " The index of each ranks's member into the group of members who have at least that rank."] + pub fn id_to_index( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::id_to_index::IdToIndex, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "IdToIndex", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 121u8, 225u8, 69u8, 131u8, 194u8, 3u8, 82u8, 27u8, 129u8, 152u8, 157u8, + 45u8, 39u8, 47u8, 166u8, 28u8, 42u8, 92u8, 217u8, 189u8, 160u8, 102u8, + 153u8, 196u8, 94u8, 48u8, 248u8, 113u8, 164u8, 111u8, 27u8, 9u8, + ], + ) + } + #[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"] + #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] + pub fn index_to_id_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::index_to_id::IndexToId, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "IndexToId", + vec![], + [ + 110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8, + 153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8, + 29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8, + 70u8, + ], + ) + } + #[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"] + #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] + pub fn index_to_id_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::index_to_id::IndexToId, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "IndexToId", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8, + 153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8, + 29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8, + 70u8, + ], + ) + } + #[doc = " The members in the collective by index. All indices in the range `0..MemberCount` will"] + #[doc = " return `Some`, however a member's index is not guaranteed to remain unchanged over time."] + pub fn index_to_id( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::index_to_id::IndexToId, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "IndexToId", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 110u8, 48u8, 214u8, 224u8, 56u8, 195u8, 186u8, 24u8, 111u8, 37u8, 15u8, + 153u8, 245u8, 101u8, 229u8, 149u8, 216u8, 185u8, 7u8, 242u8, 196u8, + 29u8, 205u8, 243u8, 162u8, 92u8, 71u8, 253u8, 102u8, 152u8, 137u8, + 70u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "Voting", + vec![], + [ + 180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8, + 220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8, + 243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8, + 175u8, 18u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "Voting", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8, + 220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8, + 243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8, + 175u8, 18u8, + ], + ) + } + #[doc = " Votes on a given proposal, if it is ongoing."] + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting::Voting, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "Voting", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 180u8, 146u8, 236u8, 178u8, 30u8, 50u8, 161u8, 50u8, 140u8, 110u8, + 220u8, 1u8, 109u8, 209u8, 17u8, 94u8, 234u8, 223u8, 222u8, 177u8, + 243u8, 194u8, 246u8, 48u8, 178u8, 86u8, 30u8, 185u8, 56u8, 206u8, + 175u8, 18u8, + ], + ) + } + pub fn voting_cleanup_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting_cleanup::VotingCleanup, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "VotingCleanup", + vec![], + [ + 223u8, 130u8, 79u8, 104u8, 94u8, 221u8, 222u8, 72u8, 187u8, 95u8, + 231u8, 59u8, 28u8, 119u8, 191u8, 63u8, 40u8, 186u8, 58u8, 254u8, 14u8, + 233u8, 152u8, 36u8, 2u8, 231u8, 120u8, 13u8, 120u8, 211u8, 232u8, 11u8, + ], + ) + } + pub fn voting_cleanup( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::voting_cleanup::VotingCleanup, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "RankedCollective", + "VotingCleanup", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 223u8, 130u8, 79u8, 104u8, 94u8, 221u8, 222u8, 72u8, 187u8, 95u8, + 231u8, 59u8, 28u8, 119u8, 191u8, 63u8, 40u8, 186u8, 58u8, 254u8, 14u8, + 233u8, 152u8, 36u8, 2u8, 231u8, 120u8, 13u8, 120u8, 211u8, 232u8, 11u8, + ], + ) + } + } + } + } + pub mod asset_conversion { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_asset_conversion::pallet::Error; + #[doc = "Pallet's callable functions."] + pub type Call = runtime_types::pallet_asset_conversion::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::create_pool`]."] + pub struct CreatePool { + pub asset1: ::std::boxed::Box, + pub asset2: ::std::boxed::Box, + } + pub mod create_pool { + use super::runtime_types; + pub type Asset1 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Asset2 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + } + impl ::subxt::blocks::StaticExtrinsic for CreatePool { + const PALLET: &'static str = "AssetConversion"; + const CALL: &'static str = "create_pool"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::add_liquidity`]."] + pub struct AddLiquidity { + pub asset1: ::std::boxed::Box, + pub asset2: ::std::boxed::Box, + pub amount1_desired: add_liquidity::Amount1Desired, + pub amount2_desired: add_liquidity::Amount2Desired, + pub amount1_min: add_liquidity::Amount1Min, + pub amount2_min: add_liquidity::Amount2Min, + pub mint_to: add_liquidity::MintTo, + } + pub mod add_liquidity { + use super::runtime_types; + pub type Asset1 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Asset2 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Amount1Desired = ::core::primitive::u128; + pub type Amount2Desired = ::core::primitive::u128; + pub type Amount1Min = ::core::primitive::u128; + pub type Amount2Min = ::core::primitive::u128; + pub type MintTo = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for AddLiquidity { + const PALLET: &'static str = "AssetConversion"; + const CALL: &'static str = "add_liquidity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::remove_liquidity`]."] + pub struct RemoveLiquidity { + pub asset1: ::std::boxed::Box, + pub asset2: ::std::boxed::Box, + pub lp_token_burn: remove_liquidity::LpTokenBurn, + pub amount1_min_receive: remove_liquidity::Amount1MinReceive, + pub amount2_min_receive: remove_liquidity::Amount2MinReceive, + pub withdraw_to: remove_liquidity::WithdrawTo, + } + pub mod remove_liquidity { + use super::runtime_types; + pub type Asset1 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Asset2 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type LpTokenBurn = ::core::primitive::u128; + pub type Amount1MinReceive = ::core::primitive::u128; + pub type Amount2MinReceive = ::core::primitive::u128; + pub type WithdrawTo = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for RemoveLiquidity { + const PALLET: &'static str = "AssetConversion"; + const CALL: &'static str = "remove_liquidity"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::swap_exact_tokens_for_tokens`]."] + pub struct SwapExactTokensForTokens { + pub path: ::std::boxed::Box, + pub amount_in: swap_exact_tokens_for_tokens::AmountIn, + pub amount_out_min: swap_exact_tokens_for_tokens::AmountOutMin, + pub send_to: swap_exact_tokens_for_tokens::SendTo, + pub keep_alive: swap_exact_tokens_for_tokens::KeepAlive, + } + pub mod swap_exact_tokens_for_tokens { + use super::runtime_types; + pub type Path = :: std :: vec :: Vec < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > ; + pub type AmountIn = ::core::primitive::u128; + pub type AmountOutMin = ::core::primitive::u128; + pub type SendTo = ::subxt::utils::AccountId32; + pub type KeepAlive = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for SwapExactTokensForTokens { + const PALLET: &'static str = "AssetConversion"; + const CALL: &'static str = "swap_exact_tokens_for_tokens"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::swap_tokens_for_exact_tokens`]."] + pub struct SwapTokensForExactTokens { + pub path: ::std::boxed::Box, + pub amount_out: swap_tokens_for_exact_tokens::AmountOut, + pub amount_in_max: swap_tokens_for_exact_tokens::AmountInMax, + pub send_to: swap_tokens_for_exact_tokens::SendTo, + pub keep_alive: swap_tokens_for_exact_tokens::KeepAlive, + } + pub mod swap_tokens_for_exact_tokens { + use super::runtime_types; + pub type Path = :: std :: vec :: Vec < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > ; + pub type AmountOut = ::core::primitive::u128; + pub type AmountInMax = ::core::primitive::u128; + pub type SendTo = ::subxt::utils::AccountId32; + pub type KeepAlive = ::core::primitive::bool; + } + impl ::subxt::blocks::StaticExtrinsic for SwapTokensForExactTokens { + const PALLET: &'static str = "AssetConversion"; + const CALL: &'static str = "swap_tokens_for_exact_tokens"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::create_pool`]."] + pub fn create_pool( + &self, + asset1: types::create_pool::Asset1, + asset2: types::create_pool::Asset2, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetConversion", + "create_pool", + types::CreatePool { + asset1: ::std::boxed::Box::new(asset1), + asset2: ::std::boxed::Box::new(asset2), + }, + [ + 199u8, 219u8, 125u8, 90u8, 48u8, 161u8, 44u8, 76u8, 180u8, 81u8, 168u8, + 91u8, 19u8, 98u8, 198u8, 247u8, 1u8, 154u8, 97u8, 220u8, 160u8, 102u8, + 157u8, 170u8, 119u8, 210u8, 26u8, 88u8, 171u8, 255u8, 238u8, 162u8, + ], + ) + } + #[doc = "See [`Pallet::add_liquidity`]."] + pub fn add_liquidity( + &self, + asset1: types::add_liquidity::Asset1, + asset2: types::add_liquidity::Asset2, + amount1_desired: types::add_liquidity::Amount1Desired, + amount2_desired: types::add_liquidity::Amount2Desired, + amount1_min: types::add_liquidity::Amount1Min, + amount2_min: types::add_liquidity::Amount2Min, + mint_to: types::add_liquidity::MintTo, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetConversion", + "add_liquidity", + types::AddLiquidity { + asset1: ::std::boxed::Box::new(asset1), + asset2: ::std::boxed::Box::new(asset2), + amount1_desired, + amount2_desired, + amount1_min, + amount2_min, + mint_to, + }, + [ + 115u8, 15u8, 222u8, 153u8, 111u8, 54u8, 37u8, 4u8, 161u8, 209u8, 204u8, + 84u8, 69u8, 186u8, 233u8, 144u8, 52u8, 171u8, 251u8, 49u8, 56u8, 116u8, + 244u8, 239u8, 255u8, 135u8, 140u8, 230u8, 115u8, 237u8, 190u8, 177u8, + ], + ) + } + #[doc = "See [`Pallet::remove_liquidity`]."] + pub fn remove_liquidity( + &self, + asset1: types::remove_liquidity::Asset1, + asset2: types::remove_liquidity::Asset2, + lp_token_burn: types::remove_liquidity::LpTokenBurn, + amount1_min_receive: types::remove_liquidity::Amount1MinReceive, + amount2_min_receive: types::remove_liquidity::Amount2MinReceive, + withdraw_to: types::remove_liquidity::WithdrawTo, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetConversion", + "remove_liquidity", + types::RemoveLiquidity { + asset1: ::std::boxed::Box::new(asset1), + asset2: ::std::boxed::Box::new(asset2), + lp_token_burn, + amount1_min_receive, + amount2_min_receive, + withdraw_to, + }, + [ + 190u8, 1u8, 39u8, 66u8, 222u8, 210u8, 23u8, 173u8, 33u8, 243u8, 237u8, + 122u8, 44u8, 134u8, 225u8, 37u8, 51u8, 108u8, 152u8, 108u8, 130u8, 9u8, + 181u8, 36u8, 87u8, 116u8, 135u8, 65u8, 70u8, 84u8, 248u8, 150u8, + ], + ) + } + #[doc = "See [`Pallet::swap_exact_tokens_for_tokens`]."] + pub fn swap_exact_tokens_for_tokens( + &self, + path: types::swap_exact_tokens_for_tokens::Path, + amount_in: types::swap_exact_tokens_for_tokens::AmountIn, + amount_out_min: types::swap_exact_tokens_for_tokens::AmountOutMin, + send_to: types::swap_exact_tokens_for_tokens::SendTo, + keep_alive: types::swap_exact_tokens_for_tokens::KeepAlive, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetConversion", + "swap_exact_tokens_for_tokens", + types::SwapExactTokensForTokens { + path: ::std::boxed::Box::new(path), + amount_in, + amount_out_min, + send_to, + keep_alive, + }, + [ + 255u8, 0u8, 158u8, 194u8, 7u8, 236u8, 23u8, 144u8, 62u8, 125u8, 243u8, + 213u8, 134u8, 56u8, 22u8, 241u8, 243u8, 195u8, 231u8, 247u8, 177u8, + 69u8, 125u8, 128u8, 185u8, 29u8, 115u8, 35u8, 248u8, 105u8, 40u8, + 167u8, + ], + ) + } + #[doc = "See [`Pallet::swap_tokens_for_exact_tokens`]."] + pub fn swap_tokens_for_exact_tokens( + &self, + path: types::swap_tokens_for_exact_tokens::Path, + amount_out: types::swap_tokens_for_exact_tokens::AmountOut, + amount_in_max: types::swap_tokens_for_exact_tokens::AmountInMax, + send_to: types::swap_tokens_for_exact_tokens::SendTo, + keep_alive: types::swap_tokens_for_exact_tokens::KeepAlive, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "AssetConversion", + "swap_tokens_for_exact_tokens", + types::SwapTokensForExactTokens { + path: ::std::boxed::Box::new(path), + amount_out, + amount_in_max, + send_to, + keep_alive, + }, + [ + 200u8, 28u8, 131u8, 20u8, 124u8, 72u8, 195u8, 225u8, 185u8, 171u8, + 251u8, 99u8, 132u8, 193u8, 22u8, 81u8, 231u8, 51u8, 130u8, 63u8, 176u8, + 143u8, 80u8, 243u8, 239u8, 5u8, 57u8, 33u8, 162u8, 24u8, 180u8, 51u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_asset_conversion::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A successful call of the `CretaPool` extrinsic will create this event."] + pub struct PoolCreated { + pub creator: pool_created::Creator, + pub pool_id: pool_created::PoolId, + pub pool_account: pool_created::PoolAccount, + pub lp_token: pool_created::LpToken, + } + pub mod pool_created { + use super::runtime_types; + pub type Creator = ::subxt::utils::AccountId32; + pub type PoolId = (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ,) ; + pub type PoolAccount = ::subxt::utils::AccountId32; + pub type LpToken = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for PoolCreated { + const PALLET: &'static str = "AssetConversion"; + const EVENT: &'static str = "PoolCreated"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A successful call of the `AddLiquidity` extrinsic will create this event."] + pub struct LiquidityAdded { + pub who: liquidity_added::Who, + pub mint_to: liquidity_added::MintTo, + pub pool_id: liquidity_added::PoolId, + pub amount1_provided: liquidity_added::Amount1Provided, + pub amount2_provided: liquidity_added::Amount2Provided, + pub lp_token: liquidity_added::LpToken, + pub lp_token_minted: liquidity_added::LpTokenMinted, + } + pub mod liquidity_added { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type MintTo = ::subxt::utils::AccountId32; + pub type PoolId = (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ,) ; + pub type Amount1Provided = ::core::primitive::u128; + pub type Amount2Provided = ::core::primitive::u128; + pub type LpToken = ::core::primitive::u32; + pub type LpTokenMinted = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for LiquidityAdded { + const PALLET: &'static str = "AssetConversion"; + const EVENT: &'static str = "LiquidityAdded"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A successful call of the `RemoveLiquidity` extrinsic will create this event."] + pub struct LiquidityRemoved { + pub who: liquidity_removed::Who, + pub withdraw_to: liquidity_removed::WithdrawTo, + pub pool_id: liquidity_removed::PoolId, + pub amount1: liquidity_removed::Amount1, + pub amount2: liquidity_removed::Amount2, + pub lp_token: liquidity_removed::LpToken, + pub lp_token_burned: liquidity_removed::LpTokenBurned, + pub withdrawal_fee: liquidity_removed::WithdrawalFee, + } + pub mod liquidity_removed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type WithdrawTo = ::subxt::utils::AccountId32; + pub type PoolId = (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ,) ; + pub type Amount1 = ::core::primitive::u128; + pub type Amount2 = ::core::primitive::u128; + pub type LpToken = ::core::primitive::u32; + pub type LpTokenBurned = ::core::primitive::u128; + pub type WithdrawalFee = runtime_types::sp_arithmetic::per_things::Permill; + } + impl ::subxt::events::StaticEvent for LiquidityRemoved { + const PALLET: &'static str = "AssetConversion"; + const EVENT: &'static str = "LiquidityRemoved"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Assets have been converted from one to another. Both `SwapExactTokenForToken`"] + #[doc = "and `SwapTokenForExactToken` will generate this event."] + pub struct SwapExecuted { + pub who: swap_executed::Who, + pub send_to: swap_executed::SendTo, + pub amount_in: swap_executed::AmountIn, + pub amount_out: swap_executed::AmountOut, + pub path: swap_executed::Path, + } + pub mod swap_executed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type SendTo = ::subxt::utils::AccountId32; + pub type AmountIn = ::core::primitive::u128; + pub type AmountOut = ::core::primitive::u128; + pub type Path = :: std :: vec :: Vec < (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , :: core :: primitive :: u128 ,) > ; + } + impl ::subxt::events::StaticEvent for SwapExecuted { + const PALLET: &'static str = "AssetConversion"; + const EVENT: &'static str = "SwapExecuted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Assets have been converted from one to another."] + pub struct SwapCreditExecuted { + pub amount_in: swap_credit_executed::AmountIn, + pub amount_out: swap_credit_executed::AmountOut, + pub path: swap_credit_executed::Path, + } + pub mod swap_credit_executed { + use super::runtime_types; + pub type AmountIn = ::core::primitive::u128; + pub type AmountOut = ::core::primitive::u128; + pub type Path = :: std :: vec :: Vec < (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , :: core :: primitive :: u128 ,) > ; + } + impl ::subxt::events::StaticEvent for SwapCreditExecuted { + const PALLET: &'static str = "AssetConversion"; + const EVENT: &'static str = "SwapCreditExecuted"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod pools { + use super::runtime_types; + pub type Pools = runtime_types::pallet_asset_conversion::types::PoolInfo< + ::core::primitive::u32, + >; + pub type Param0 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + pub type Param1 = runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ; + } + pub mod next_pool_asset_id { + use super::runtime_types; + pub type NextPoolAssetId = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially"] + #[doc = " created rather than people sending tokens directly to a pool's public account."] + pub fn pools_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pools::Pools, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetConversion", + "Pools", + vec![], + [ + 178u8, 26u8, 31u8, 42u8, 6u8, 108u8, 211u8, 112u8, 9u8, 145u8, 201u8, + 105u8, 84u8, 127u8, 56u8, 100u8, 23u8, 32u8, 186u8, 208u8, 219u8, + 122u8, 8u8, 190u8, 231u8, 141u8, 32u8, 141u8, 186u8, 254u8, 198u8, + 14u8, + ], + ) + } + #[doc = " Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially"] + #[doc = " created rather than people sending tokens directly to a pool's public account."] + pub fn pools_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pools::Pools, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "AssetConversion", + "Pools", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 178u8, 26u8, 31u8, 42u8, 6u8, 108u8, 211u8, 112u8, 9u8, 145u8, 201u8, + 105u8, 84u8, 127u8, 56u8, 100u8, 23u8, 32u8, 186u8, 208u8, 219u8, + 122u8, 8u8, 190u8, 231u8, 141u8, 32u8, 141u8, 186u8, 254u8, 198u8, + 14u8, + ], + ) + } + #[doc = " Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially"] + #[doc = " created rather than people sending tokens directly to a pool's public account."] + pub fn pools( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pools::Pools, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "AssetConversion", + "Pools", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 178u8, 26u8, 31u8, 42u8, 6u8, 108u8, 211u8, 112u8, 9u8, 145u8, 201u8, + 105u8, 84u8, 127u8, 56u8, 100u8, 23u8, 32u8, 186u8, 208u8, 219u8, + 122u8, 8u8, 190u8, 231u8, 141u8, 32u8, 141u8, 186u8, 254u8, 198u8, + 14u8, + ], + ) + } + #[doc = " Stores the `PoolAssetId` that is going to be used for the next lp token."] + #[doc = " This gets incremented whenever a new lp pool is created."] + pub fn next_pool_asset_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_pool_asset_id::NextPoolAssetId, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "AssetConversion", + "NextPoolAssetId", + vec![], + [ + 90u8, 56u8, 244u8, 83u8, 170u8, 140u8, 227u8, 125u8, 14u8, 139u8, 22u8, + 226u8, 30u8, 13u8, 128u8, 1u8, 136u8, 236u8, 250u8, 174u8, 70u8, 103u8, + 255u8, 146u8, 91u8, 157u8, 160u8, 46u8, 109u8, 112u8, 46u8, 110u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " A % the liquidity providers will take of every swap. Represents 10ths of a percent."] + pub fn lp_fee(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "AssetConversion", + "LPFee", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " A one-time fee to setup the pool."] + pub fn pool_setup_fee( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "AssetConversion", + "PoolSetupFee", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`]."] pub fn pool_setup_fee_asset (& self) -> :: subxt :: constants :: Address < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > >{ + ::subxt::constants::Address::new_static( + "AssetConversion", + "PoolSetupFeeAsset", + [ + 154u8, 4u8, 210u8, 210u8, 96u8, 169u8, 246u8, 153u8, 70u8, 152u8, 44u8, + 162u8, 134u8, 212u8, 141u8, 127u8, 16u8, 104u8, 75u8, 101u8, 3u8, + 244u8, 203u8, 156u8, 240u8, 225u8, 200u8, 16u8, 102u8, 59u8, 233u8, + 48u8, + ], + ) + } + #[doc = " A fee to withdraw the liquidity."] + pub fn liquidity_withdrawal_fee( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "AssetConversion", + "LiquidityWithdrawalFee", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + #[doc = " The minimum LP token amount that could be minted. Ameliorates rounding errors."] + pub fn mint_min_liquidity( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "AssetConversion", + "MintMinLiquidity", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " The max number of hops in a swap."] + pub fn max_swap_path_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "AssetConversion", + "MaxSwapPathLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The pallet's id, used for deriving its sovereign account ID."] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "AssetConversion", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + } + } + } + pub mod fast_unstake { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_fast_unstake::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_fast_unstake::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::register_fast_unstake`]."] + pub struct RegisterFastUnstake; + impl ::subxt::blocks::StaticExtrinsic for RegisterFastUnstake { + const PALLET: &'static str = "FastUnstake"; + const CALL: &'static str = "register_fast_unstake"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::deregister`]."] + pub struct Deregister; + impl ::subxt::blocks::StaticExtrinsic for Deregister { + const PALLET: &'static str = "FastUnstake"; + const CALL: &'static str = "deregister"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::control`]."] + pub struct Control { + pub eras_to_check: control::ErasToCheck, + } + pub mod control { + use super::runtime_types; + pub type ErasToCheck = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Control { + const PALLET: &'static str = "FastUnstake"; + const CALL: &'static str = "control"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::register_fast_unstake`]."] + pub fn register_fast_unstake( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FastUnstake", + "register_fast_unstake", + types::RegisterFastUnstake {}, + [ + 25u8, 175u8, 236u8, 174u8, 69u8, 228u8, 25u8, 109u8, 166u8, 101u8, + 80u8, 189u8, 17u8, 201u8, 95u8, 152u8, 209u8, 42u8, 140u8, 186u8, 61u8, + 73u8, 147u8, 103u8, 158u8, 39u8, 26u8, 54u8, 98u8, 3u8, 2u8, 49u8, + ], + ) + } + #[doc = "See [`Pallet::deregister`]."] + pub fn deregister(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FastUnstake", + "deregister", + types::Deregister {}, + [ + 228u8, 7u8, 6u8, 52u8, 110u8, 101u8, 41u8, 226u8, 254u8, 53u8, 44u8, + 229u8, 20u8, 205u8, 131u8, 91u8, 118u8, 71u8, 43u8, 97u8, 99u8, 205u8, + 75u8, 146u8, 27u8, 144u8, 219u8, 167u8, 98u8, 120u8, 11u8, 151u8, + ], + ) + } + #[doc = "See [`Pallet::control`]."] + pub fn control( + &self, + eras_to_check: types::control::ErasToCheck, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "FastUnstake", + "control", + types::Control { eras_to_check }, + [ + 93u8, 245u8, 35u8, 21u8, 125u8, 71u8, 144u8, 99u8, 90u8, 41u8, 161u8, + 90u8, 93u8, 132u8, 45u8, 155u8, 99u8, 175u8, 180u8, 1u8, 219u8, 37u8, + 182u8, 95u8, 203u8, 91u8, 181u8, 159u8, 169u8, 134u8, 139u8, 9u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_fast_unstake::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A staker was unstaked."] + pub struct Unstaked { + pub stash: unstaked::Stash, + pub result: unstaked::Result, + } + pub mod unstaked { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Result = + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>; + } + impl ::subxt::events::StaticEvent for Unstaked { + const PALLET: &'static str = "FastUnstake"; + const EVENT: &'static str = "Unstaked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A staker was slashed for requesting fast-unstake whilst being exposed."] + pub struct Slashed { + pub stash: slashed::Stash, + pub amount: slashed::Amount, + } + pub mod slashed { + use super::runtime_types; + pub type Stash = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "FastUnstake"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A batch was partially checked for the given eras, but the process did not finish."] + pub struct BatchChecked { + pub eras: batch_checked::Eras, + } + pub mod batch_checked { + use super::runtime_types; + pub type Eras = ::std::vec::Vec<::core::primitive::u32>; + } + impl ::subxt::events::StaticEvent for BatchChecked { + const PALLET: &'static str = "FastUnstake"; + const EVENT: &'static str = "BatchChecked"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A batch of a given size was terminated."] + #[doc = ""] + #[doc = "This is always follows by a number of `Unstaked` or `Slashed` events, marking the end"] + #[doc = "of the batch. A new batch will be created upon next block."] + pub struct BatchFinished { + pub size: batch_finished::Size, + } + pub mod batch_finished { + use super::runtime_types; + pub type Size = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for BatchFinished { + const PALLET: &'static str = "FastUnstake"; + const EVENT: &'static str = "BatchFinished"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An internal error happened. Operations will be paused now."] + pub struct InternalError; + impl ::subxt::events::StaticEvent for InternalError { + const PALLET: &'static str = "FastUnstake"; + const EVENT: &'static str = "InternalError"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod head { + use super::runtime_types; + pub type Head = runtime_types::pallet_fast_unstake::types::UnstakeRequest; + } + pub mod queue { + use super::runtime_types; + pub type Queue = ::core::primitive::u128; + pub type Param0 = ::subxt::utils::AccountId32; + } + pub mod counter_for_queue { + use super::runtime_types; + pub type CounterForQueue = ::core::primitive::u32; + } + pub mod eras_to_check_per_block { + use super::runtime_types; + pub type ErasToCheckPerBlock = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The current \"head of the queue\" being unstaked."] + #[doc = ""] + #[doc = " The head in itself can be a batch of up to [`Config::BatchSize`] stakers."] + pub fn head( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::head::Head, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "FastUnstake", + "Head", + vec![], + [ + 15u8, 207u8, 39u8, 233u8, 50u8, 252u8, 32u8, 127u8, 77u8, 94u8, 170u8, + 209u8, 72u8, 222u8, 77u8, 171u8, 175u8, 204u8, 191u8, 25u8, 15u8, + 104u8, 52u8, 129u8, 42u8, 199u8, 77u8, 44u8, 11u8, 242u8, 234u8, 6u8, + ], + ) + } + #[doc = " The map of all accounts wishing to be unstaked."] + #[doc = ""] + #[doc = " Keeps track of `AccountId` wishing to unstake and it's corresponding deposit."] + pub fn queue_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::queue::Queue, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "FastUnstake", + "Queue", + vec![], + [ + 72u8, 219u8, 212u8, 99u8, 189u8, 234u8, 57u8, 32u8, 80u8, 130u8, 178u8, + 101u8, 71u8, 186u8, 106u8, 129u8, 135u8, 165u8, 225u8, 112u8, 82u8, + 4u8, 215u8, 104u8, 107u8, 192u8, 118u8, 238u8, 70u8, 205u8, 205u8, + 148u8, + ], + ) + } + #[doc = " The map of all accounts wishing to be unstaked."] + #[doc = ""] + #[doc = " Keeps track of `AccountId` wishing to unstake and it's corresponding deposit."] + pub fn queue( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::queue::Queue, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "FastUnstake", + "Queue", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 72u8, 219u8, 212u8, 99u8, 189u8, 234u8, 57u8, 32u8, 80u8, 130u8, 178u8, + 101u8, 71u8, 186u8, 106u8, 129u8, 135u8, 165u8, 225u8, 112u8, 82u8, + 4u8, 215u8, 104u8, 107u8, 192u8, 118u8, 238u8, 70u8, 205u8, 205u8, + 148u8, + ], + ) + } + #[doc = "Counter for the related counted storage map"] + pub fn counter_for_queue( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::counter_for_queue::CounterForQueue, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "FastUnstake", + "CounterForQueue", + vec![], + [ + 236u8, 101u8, 74u8, 61u8, 59u8, 250u8, 165u8, 139u8, 110u8, 79u8, + 165u8, 124u8, 24u8, 188u8, 245u8, 175u8, 175u8, 102u8, 91u8, 121u8, + 215u8, 21u8, 12u8, 11u8, 194u8, 69u8, 180u8, 161u8, 160u8, 27u8, 39u8, + 17u8, + ], + ) + } + #[doc = " Number of eras to check per block."] + #[doc = ""] + #[doc = " If set to 0, this pallet does absolutely nothing. Cannot be set to more than"] + #[doc = " [`Config::MaxErasToCheckPerBlock`]."] + #[doc = ""] + #[doc = " Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are"] + #[doc = " checked. The checking is represented by updating [`UnstakeRequest::checked`], which is"] + #[doc = " stored in [`Head`]."] + pub fn eras_to_check_per_block( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::eras_to_check_per_block::ErasToCheckPerBlock, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "FastUnstake", + "ErasToCheckPerBlock", + vec![], + [ + 231u8, 147u8, 37u8, 154u8, 97u8, 151u8, 16u8, 240u8, 87u8, 38u8, 218u8, + 127u8, 68u8, 131u8, 2u8, 19u8, 46u8, 68u8, 232u8, 148u8, 197u8, 73u8, + 129u8, 102u8, 60u8, 19u8, 200u8, 77u8, 74u8, 31u8, 251u8, 27u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Deposit to take for unstaking, to make sure we're able to slash the it in order to cover"] + #[doc = " the costs of resources on unsuccessful unstake."] + pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "FastUnstake", + "Deposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + } + } + } + pub mod message_queue { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_message_queue::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_message_queue::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::reap_page`]."] + pub struct ReapPage { + pub message_origin: reap_page::MessageOrigin, + pub page_index: reap_page::PageIndex, + } + pub mod reap_page { + use super::runtime_types; + pub type MessageOrigin = ::core::primitive::u32; + pub type PageIndex = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ReapPage { + const PALLET: &'static str = "MessageQueue"; + const CALL: &'static str = "reap_page"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::execute_overweight`]."] + pub struct ExecuteOverweight { + pub message_origin: execute_overweight::MessageOrigin, + pub page: execute_overweight::Page, + pub index: execute_overweight::Index, + pub weight_limit: execute_overweight::WeightLimit, + } + pub mod execute_overweight { + use super::runtime_types; + pub type MessageOrigin = ::core::primitive::u32; + pub type Page = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + pub type WeightLimit = runtime_types::sp_weights::weight_v2::Weight; + } + impl ::subxt::blocks::StaticExtrinsic for ExecuteOverweight { + const PALLET: &'static str = "MessageQueue"; + const CALL: &'static str = "execute_overweight"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::reap_page`]."] + pub fn reap_page( + &self, + message_origin: types::reap_page::MessageOrigin, + page_index: types::reap_page::PageIndex, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MessageQueue", + "reap_page", + types::ReapPage { + message_origin, + page_index, + }, + [ + 93u8, 11u8, 170u8, 160u8, 112u8, 123u8, 9u8, 163u8, 58u8, 167u8, 101u8, + 254u8, 246u8, 157u8, 46u8, 134u8, 42u8, 229u8, 185u8, 147u8, 24u8, + 196u8, 196u8, 197u8, 243u8, 161u8, 94u8, 68u8, 202u8, 172u8, 26u8, + 165u8, + ], + ) + } + #[doc = "See [`Pallet::execute_overweight`]."] + pub fn execute_overweight( + &self, + message_origin: types::execute_overweight::MessageOrigin, + page: types::execute_overweight::Page, + index: types::execute_overweight::Index, + weight_limit: types::execute_overweight::WeightLimit, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "MessageQueue", + "execute_overweight", + types::ExecuteOverweight { + message_origin, + page, + index, + weight_limit, + }, + [ + 166u8, 43u8, 179u8, 152u8, 61u8, 11u8, 83u8, 164u8, 40u8, 45u8, 208u8, + 50u8, 219u8, 131u8, 196u8, 72u8, 124u8, 32u8, 189u8, 79u8, 139u8, 67u8, + 48u8, 249u8, 23u8, 224u8, 213u8, 184u8, 205u8, 176u8, 130u8, 62u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_message_queue::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] + pub struct ProcessingFailed { + pub id: processing_failed::Id, + pub origin: processing_failed::Origin, + pub error: processing_failed::Error, + } + pub mod processing_failed { + use super::runtime_types; + pub type Id = ::subxt::utils::H256; + pub type Origin = ::core::primitive::u32; + pub type Error = + runtime_types::frame_support::traits::messages::ProcessMessageError; + } + impl ::subxt::events::StaticEvent for ProcessingFailed { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "ProcessingFailed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Message is processed."] + pub struct Processed { + pub id: processed::Id, + pub origin: processed::Origin, + pub weight_used: processed::WeightUsed, + pub success: processed::Success, + } + pub mod processed { + use super::runtime_types; + pub type Id = ::subxt::utils::H256; + pub type Origin = ::core::primitive::u32; + pub type WeightUsed = runtime_types::sp_weights::weight_v2::Weight; + pub type Success = ::core::primitive::bool; + } + impl ::subxt::events::StaticEvent for Processed { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "Processed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Message placed in overweight queue."] + pub struct OverweightEnqueued { + pub id: overweight_enqueued::Id, + pub origin: overweight_enqueued::Origin, + pub page_index: overweight_enqueued::PageIndex, + pub message_index: overweight_enqueued::MessageIndex, + } + pub mod overweight_enqueued { + use super::runtime_types; + pub type Id = [::core::primitive::u8; 32usize]; + pub type Origin = ::core::primitive::u32; + pub type PageIndex = ::core::primitive::u32; + pub type MessageIndex = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for OverweightEnqueued { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "OverweightEnqueued"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "This page was reaped."] + pub struct PageReaped { + pub origin: page_reaped::Origin, + pub index: page_reaped::Index, + } + pub mod page_reaped { + use super::runtime_types; + pub type Origin = ::core::primitive::u32; + pub type Index = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for PageReaped { + const PALLET: &'static str = "MessageQueue"; + const EVENT: &'static str = "PageReaped"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod book_state_for { + use super::runtime_types; + pub type BookStateFor = + runtime_types::pallet_message_queue::BookState<::core::primitive::u32>; + pub type Param0 = ::core::primitive::u32; + } + pub mod service_head { + use super::runtime_types; + pub type ServiceHead = ::core::primitive::u32; + } + pub mod pages { + use super::runtime_types; + pub type Pages = + runtime_types::pallet_message_queue::Page<::core::primitive::u32>; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The index of the first and last (non-empty) pages."] + pub fn book_state_for_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::book_state_for::BookStateFor, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "BookStateFor", + vec![], + [ + 94u8, 236u8, 222u8, 240u8, 240u8, 182u8, 25u8, 181u8, 198u8, 190u8, + 57u8, 1u8, 25u8, 160u8, 76u8, 111u8, 82u8, 66u8, 192u8, 22u8, 108u8, + 65u8, 32u8, 159u8, 242u8, 67u8, 228u8, 228u8, 196u8, 244u8, 188u8, + 52u8, + ], + ) + } + #[doc = " The index of the first and last (non-empty) pages."] + pub fn book_state_for( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::book_state_for::BookStateFor, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "BookStateFor", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 94u8, 236u8, 222u8, 240u8, 240u8, 182u8, 25u8, 181u8, 198u8, 190u8, + 57u8, 1u8, 25u8, 160u8, 76u8, 111u8, 82u8, 66u8, 192u8, 22u8, 108u8, + 65u8, 32u8, 159u8, 242u8, 67u8, 228u8, 228u8, 196u8, 244u8, 188u8, + 52u8, + ], + ) + } + #[doc = " The origin at which we should begin servicing."] + pub fn service_head( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::service_head::ServiceHead, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "ServiceHead", + vec![], + [ + 5u8, 153u8, 60u8, 28u8, 12u8, 179u8, 210u8, 170u8, 31u8, 214u8, 6u8, + 139u8, 56u8, 85u8, 156u8, 74u8, 54u8, 131u8, 211u8, 168u8, 79u8, 225u8, + 143u8, 57u8, 194u8, 71u8, 178u8, 106u8, 166u8, 9u8, 17u8, 85u8, + ], + ) + } + #[doc = " The map of page indices to pages."] + pub fn pages_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pages::Pages, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "Pages", + vec![], + [ + 74u8, 153u8, 161u8, 65u8, 87u8, 74u8, 65u8, 34u8, 198u8, 0u8, 141u8, + 22u8, 55u8, 0u8, 135u8, 128u8, 30u8, 102u8, 82u8, 190u8, 58u8, 213u8, + 37u8, 206u8, 252u8, 47u8, 22u8, 239u8, 207u8, 178u8, 46u8, 14u8, + ], + ) + } + #[doc = " The map of page indices to pages."] + pub fn pages_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pages::Pages, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "Pages", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 74u8, 153u8, 161u8, 65u8, 87u8, 74u8, 65u8, 34u8, 198u8, 0u8, 141u8, + 22u8, 55u8, 0u8, 135u8, 128u8, 30u8, 102u8, 82u8, 190u8, 58u8, 213u8, + 37u8, 206u8, 252u8, 47u8, 22u8, 239u8, 207u8, 178u8, 46u8, 14u8, + ], + ) + } + #[doc = " The map of page indices to pages."] + pub fn pages( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::pages::Pages, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "MessageQueue", + "Pages", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 74u8, 153u8, 161u8, 65u8, 87u8, 74u8, 65u8, 34u8, 198u8, 0u8, 141u8, + 22u8, 55u8, 0u8, 135u8, 128u8, 30u8, 102u8, 82u8, 190u8, 58u8, 213u8, + 37u8, 206u8, 252u8, 47u8, 22u8, 239u8, 207u8, 178u8, 46u8, 14u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The size of the page; this implies the maximum message size which can be sent."] + #[doc = ""] + #[doc = " A good value depends on the expected message sizes, their weights, the weight that is"] + #[doc = " available for processing them and the maximal needed message size. The maximal message"] + #[doc = " size is slightly lower than this as defined by [`MaxMessageLenOf`]."] + pub fn heap_size(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "MessageQueue", + "HeapSize", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of stale pages (i.e. of overweight messages) allowed before culling"] + #[doc = " can happen. Once there are more stale pages than this, then historical pages may be"] + #[doc = " dropped, even if they contain unprocessed overweight messages."] + pub fn max_stale(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "MessageQueue", + "MaxStale", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The amount of weight (if any) which should be provided to the message queue for"] + #[doc = " servicing enqueued items."] + #[doc = ""] + #[doc = " This may be legitimately `None` in the case that you will call"] + #[doc = " `ServiceQueues::service_queues` manually."] + pub fn service_weight( + &self, + ) -> ::subxt::constants::Address< + ::core::option::Option, + > { + ::subxt::constants::Address::new_static( + "MessageQueue", + "ServiceWeight", + [ + 204u8, 140u8, 63u8, 167u8, 49u8, 8u8, 148u8, 163u8, 190u8, 224u8, 15u8, + 103u8, 86u8, 153u8, 248u8, 117u8, 223u8, 117u8, 210u8, 80u8, 205u8, + 155u8, 40u8, 11u8, 59u8, 63u8, 129u8, 156u8, 17u8, 83u8, 177u8, 250u8, + ], + ) + } + } + } + } + pub mod pov { + use super::root_mod; + use super::runtime_types; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::frame_benchmarking_pallet_pov::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::emit_event`]."] + pub struct EmitEvent; + impl ::subxt::blocks::StaticExtrinsic for EmitEvent { + const PALLET: &'static str = "Pov"; + const CALL: &'static str = "emit_event"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::noop`]."] + pub struct Noop; + impl ::subxt::blocks::StaticExtrinsic for Noop { + const PALLET: &'static str = "Pov"; + const CALL: &'static str = "noop"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::emit_event`]."] + pub fn emit_event(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Pov", + "emit_event", + types::EmitEvent {}, + [ + 222u8, 41u8, 43u8, 53u8, 157u8, 248u8, 94u8, 229u8, 44u8, 198u8, 174u8, + 132u8, 149u8, 112u8, 89u8, 160u8, 124u8, 10u8, 162u8, 2u8, 142u8, + 123u8, 3u8, 69u8, 151u8, 174u8, 122u8, 240u8, 255u8, 214u8, 38u8, + 189u8, + ], + ) + } + #[doc = "See [`Pallet::noop`]."] + pub fn noop(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Pov", + "noop", + types::Noop {}, + [ + 103u8, 20u8, 158u8, 2u8, 60u8, 89u8, 244u8, 85u8, 51u8, 23u8, 155u8, + 110u8, 192u8, 195u8, 52u8, 53u8, 22u8, 28u8, 182u8, 14u8, 138u8, 255u8, + 101u8, 169u8, 251u8, 222u8, 215u8, 90u8, 188u8, 20u8, 12u8, 131u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::frame_benchmarking_pallet_pov::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TestEvent; + impl ::subxt::events::StaticEvent for TestEvent { + const PALLET: &'static str = "Pov"; + const EVENT: &'static str = "TestEvent"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod value { + use super::runtime_types; + pub type Value = ::core::primitive::u32; + } + pub mod value2 { + use super::runtime_types; + pub type Value2 = ::core::primitive::u32; + } + pub mod unbounded_value { + use super::runtime_types; + pub type UnboundedValue = ::std::vec::Vec<::core::primitive::u8>; + } + pub mod bounded_value { + use super::runtime_types; + pub type BoundedValue = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + pub mod large_value { + use super::runtime_types; + pub type LargeValue = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + pub mod large_value2 { + use super::runtime_types; + pub type LargeValue2 = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + pub mod map1_m { + use super::runtime_types; + pub type Map1M = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + } + pub mod map16_m { + use super::runtime_types; + pub type Map16M = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + } + pub mod double_map1_m { + use super::runtime_types; + pub type DoubleMap1M = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + pub mod unbounded_map { + use super::runtime_types; + pub type UnboundedMap = ::std::vec::Vec<::core::primitive::u32>; + pub type Param0 = ::core::primitive::u32; + } + pub mod unbounded_map2 { + use super::runtime_types; + pub type UnboundedMap2 = ::std::vec::Vec<::core::primitive::u32>; + pub type Param0 = ::core::primitive::u32; + } + pub mod unbounded_map_twox { + use super::runtime_types; + pub type UnboundedMapTwox = ::std::vec::Vec<::core::primitive::u32>; + pub type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + pub fn value( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::value::Value, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "Value", + vec![], + [ + 82u8, 88u8, 90u8, 94u8, 161u8, 82u8, 41u8, 174u8, 222u8, 164u8, 61u8, + 117u8, 17u8, 233u8, 7u8, 131u8, 183u8, 162u8, 17u8, 242u8, 4u8, 35u8, + 148u8, 220u8, 251u8, 5u8, 225u8, 86u8, 10u8, 17u8, 126u8, 146u8, + ], + ) + } + pub fn value2( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::value2::Value2, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "Value2", + vec![], + [ + 82u8, 131u8, 180u8, 209u8, 150u8, 174u8, 8u8, 132u8, 51u8, 40u8, 182u8, + 173u8, 244u8, 218u8, 95u8, 29u8, 238u8, 75u8, 227u8, 87u8, 88u8, 137u8, + 93u8, 246u8, 146u8, 81u8, 13u8, 6u8, 112u8, 17u8, 182u8, 38u8, + ], + ) + } + #[doc = " A value without a MEL bound."] + pub fn unbounded_value( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unbounded_value::UnboundedValue, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "UnboundedValue", + vec![], + [ + 84u8, 92u8, 130u8, 47u8, 13u8, 147u8, 210u8, 55u8, 90u8, 34u8, 111u8, + 222u8, 100u8, 200u8, 2u8, 169u8, 190u8, 4u8, 225u8, 231u8, 170u8, + 212u8, 241u8, 26u8, 136u8, 4u8, 179u8, 156u8, 19u8, 37u8, 47u8, 167u8, + ], + ) + } + #[doc = " A value with a MEL bound of 32 byte."] + pub fn bounded_value( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::bounded_value::BoundedValue, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "BoundedValue", + vec![], + [ + 175u8, 244u8, 118u8, 246u8, 118u8, 211u8, 86u8, 39u8, 40u8, 103u8, + 51u8, 87u8, 21u8, 30u8, 103u8, 48u8, 109u8, 198u8, 9u8, 132u8, 86u8, + 254u8, 191u8, 160u8, 89u8, 2u8, 148u8, 142u8, 229u8, 7u8, 49u8, 241u8, + ], + ) + } + #[doc = " 4MiB value."] + pub fn large_value( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::large_value::LargeValue, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "LargeValue", + vec![], + [ + 231u8, 53u8, 43u8, 55u8, 186u8, 28u8, 29u8, 225u8, 110u8, 250u8, 219u8, + 113u8, 9u8, 169u8, 4u8, 127u8, 71u8, 223u8, 17u8, 107u8, 170u8, 154u8, + 175u8, 33u8, 113u8, 77u8, 201u8, 124u8, 5u8, 70u8, 158u8, 139u8, + ], + ) + } + pub fn large_value2( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::large_value2::LargeValue2, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "LargeValue2", + vec![], + [ + 164u8, 130u8, 27u8, 1u8, 55u8, 130u8, 151u8, 136u8, 143u8, 95u8, 162u8, + 240u8, 95u8, 225u8, 201u8, 204u8, 26u8, 168u8, 114u8, 113u8, 185u8, + 180u8, 204u8, 189u8, 45u8, 3u8, 248u8, 118u8, 76u8, 4u8, 242u8, 157u8, + ], + ) + } + #[doc = " A map with a maximum of 1M entries."] + pub fn map1_m_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::map1_m::Map1M, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "Map1M", + vec![], + [ + 198u8, 142u8, 95u8, 71u8, 147u8, 70u8, 167u8, 253u8, 140u8, 230u8, + 187u8, 255u8, 251u8, 244u8, 195u8, 184u8, 73u8, 181u8, 245u8, 91u8, + 236u8, 84u8, 223u8, 100u8, 224u8, 80u8, 116u8, 104u8, 44u8, 118u8, + 91u8, 159u8, + ], + ) + } + #[doc = " A map with a maximum of 1M entries."] + pub fn map1_m( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::map1_m::Map1M, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "Map1M", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 198u8, 142u8, 95u8, 71u8, 147u8, 70u8, 167u8, 253u8, 140u8, 230u8, + 187u8, 255u8, 251u8, 244u8, 195u8, 184u8, 73u8, 181u8, 245u8, 91u8, + 236u8, 84u8, 223u8, 100u8, 224u8, 80u8, 116u8, 104u8, 44u8, 118u8, + 91u8, 159u8, + ], + ) + } + #[doc = " A map with a maximum of 16M entries."] + pub fn map16_m_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::map16_m::Map16M, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "Map16M", + vec![], + [ + 134u8, 179u8, 252u8, 169u8, 122u8, 246u8, 237u8, 15u8, 151u8, 89u8, + 157u8, 43u8, 104u8, 85u8, 234u8, 170u8, 48u8, 143u8, 142u8, 143u8, + 217u8, 230u8, 164u8, 236u8, 181u8, 52u8, 172u8, 183u8, 17u8, 87u8, + 189u8, 44u8, + ], + ) + } + #[doc = " A map with a maximum of 16M entries."] + pub fn map16_m( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::map16_m::Map16M, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "Map16M", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 134u8, 179u8, 252u8, 169u8, 122u8, 246u8, 237u8, 15u8, 151u8, 89u8, + 157u8, 43u8, 104u8, 85u8, 234u8, 170u8, 48u8, 143u8, 142u8, 143u8, + 217u8, 230u8, 164u8, 236u8, 181u8, 52u8, 172u8, 183u8, 17u8, 87u8, + 189u8, 44u8, + ], + ) + } + pub fn double_map1_m_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::double_map1_m::DoubleMap1M, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "DoubleMap1M", + vec![], + [ + 144u8, 252u8, 247u8, 161u8, 126u8, 183u8, 46u8, 120u8, 172u8, 30u8, + 62u8, 71u8, 65u8, 39u8, 131u8, 191u8, 169u8, 184u8, 245u8, 25u8, 175u8, + 75u8, 219u8, 136u8, 14u8, 166u8, 12u8, 86u8, 135u8, 187u8, 184u8, + 118u8, + ], + ) + } + pub fn double_map1_m_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::double_map1_m::DoubleMap1M, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "DoubleMap1M", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 144u8, 252u8, 247u8, 161u8, 126u8, 183u8, 46u8, 120u8, 172u8, 30u8, + 62u8, 71u8, 65u8, 39u8, 131u8, 191u8, 169u8, 184u8, 245u8, 25u8, 175u8, + 75u8, 219u8, 136u8, 14u8, 166u8, 12u8, 86u8, 135u8, 187u8, 184u8, + 118u8, + ], + ) + } + pub fn double_map1_m( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::double_map1_m::DoubleMap1M, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "DoubleMap1M", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 144u8, 252u8, 247u8, 161u8, 126u8, 183u8, 46u8, 120u8, 172u8, 30u8, + 62u8, 71u8, 65u8, 39u8, 131u8, 191u8, 169u8, 184u8, 245u8, 25u8, 175u8, + 75u8, 219u8, 136u8, 14u8, 166u8, 12u8, 86u8, 135u8, 187u8, 184u8, + 118u8, + ], + ) + } + pub fn unbounded_map_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unbounded_map::UnboundedMap, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "UnboundedMap", + vec![], + [ + 220u8, 118u8, 66u8, 153u8, 47u8, 133u8, 201u8, 70u8, 168u8, 145u8, + 63u8, 250u8, 150u8, 89u8, 114u8, 38u8, 186u8, 174u8, 82u8, 57u8, 55u8, + 222u8, 165u8, 108u8, 176u8, 202u8, 64u8, 145u8, 10u8, 25u8, 249u8, + 140u8, + ], + ) + } + pub fn unbounded_map( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unbounded_map::UnboundedMap, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "UnboundedMap", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 220u8, 118u8, 66u8, 153u8, 47u8, 133u8, 201u8, 70u8, 168u8, 145u8, + 63u8, 250u8, 150u8, 89u8, 114u8, 38u8, 186u8, 174u8, 82u8, 57u8, 55u8, + 222u8, 165u8, 108u8, 176u8, 202u8, 64u8, 145u8, 10u8, 25u8, 249u8, + 140u8, + ], + ) + } + pub fn unbounded_map2_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unbounded_map2::UnboundedMap2, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "UnboundedMap2", + vec![], + [ + 223u8, 39u8, 181u8, 21u8, 143u8, 182u8, 101u8, 5u8, 218u8, 239u8, 46u8, + 255u8, 121u8, 167u8, 90u8, 125u8, 85u8, 252u8, 100u8, 162u8, 225u8, + 120u8, 45u8, 72u8, 77u8, 65u8, 11u8, 26u8, 132u8, 166u8, 13u8, 111u8, + ], + ) + } + pub fn unbounded_map2( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unbounded_map2::UnboundedMap2, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "UnboundedMap2", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 223u8, 39u8, 181u8, 21u8, 143u8, 182u8, 101u8, 5u8, 218u8, 239u8, 46u8, + 255u8, 121u8, 167u8, 90u8, 125u8, 85u8, 252u8, 100u8, 162u8, 225u8, + 120u8, 45u8, 72u8, 77u8, 65u8, 11u8, 26u8, 132u8, 166u8, 13u8, 111u8, + ], + ) + } + pub fn unbounded_map_twox_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unbounded_map_twox::UnboundedMapTwox, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "UnboundedMapTwox", + vec![], + [ + 194u8, 89u8, 69u8, 226u8, 207u8, 110u8, 191u8, 47u8, 22u8, 33u8, 18u8, + 137u8, 47u8, 241u8, 45u8, 147u8, 87u8, 7u8, 6u8, 133u8, 88u8, 121u8, + 237u8, 234u8, 36u8, 228u8, 60u8, 252u8, 149u8, 112u8, 250u8, 163u8, + ], + ) + } + pub fn unbounded_map_twox( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::unbounded_map_twox::UnboundedMapTwox, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Pov", + "UnboundedMapTwox", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 194u8, 89u8, 69u8, 226u8, 207u8, 110u8, 191u8, 47u8, 22u8, 33u8, 18u8, + 137u8, 47u8, 241u8, 45u8, 147u8, 87u8, 7u8, 6u8, 133u8, 88u8, 121u8, + 237u8, 234u8, 36u8, 228u8, 60u8, 252u8, 149u8, 112u8, 250u8, 163u8, + ], + ) + } + } + } + } + pub mod tx_pause { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_tx_pause::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_tx_pause::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::pause`]."] + pub struct Pause { + pub full_name: pause::FullName, + } + pub mod pause { + use super::runtime_types; + pub type FullName = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ); + } + impl ::subxt::blocks::StaticExtrinsic for Pause { + const PALLET: &'static str = "TxPause"; + const CALL: &'static str = "pause"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::unpause`]."] + pub struct Unpause { + pub ident: unpause::Ident, + } + pub mod unpause { + use super::runtime_types; + pub type Ident = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ); + } + impl ::subxt::blocks::StaticExtrinsic for Unpause { + const PALLET: &'static str = "TxPause"; + const CALL: &'static str = "unpause"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::pause`]."] + pub fn pause( + &self, + full_name: types::pause::FullName, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TxPause", + "pause", + types::Pause { full_name }, + [ + 244u8, 112u8, 104u8, 148u8, 17u8, 164u8, 228u8, 229u8, 103u8, 212u8, + 137u8, 16u8, 194u8, 167u8, 150u8, 148u8, 151u8, 233u8, 15u8, 2u8, 54u8, + 96u8, 158u8, 43u8, 222u8, 128u8, 199u8, 87u8, 74u8, 38u8, 6u8, 215u8, + ], + ) + } + #[doc = "See [`Pallet::unpause`]."] + pub fn unpause( + &self, + ident: types::unpause::Ident, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TxPause", + "unpause", + types::Unpause { ident }, + [ + 213u8, 245u8, 75u8, 131u8, 24u8, 188u8, 101u8, 168u8, 39u8, 246u8, + 228u8, 155u8, 255u8, 146u8, 245u8, 218u8, 68u8, 102u8, 75u8, 133u8, + 54u8, 142u8, 191u8, 87u8, 148u8, 59u8, 99u8, 11u8, 33u8, 184u8, 24u8, + 179u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_tx_pause::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "This pallet, or a specific call is now paused."] + pub struct CallPaused { + pub full_name: call_paused::FullName, + } + pub mod call_paused { + use super::runtime_types; + pub type FullName = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ); + } + impl ::subxt::events::StaticEvent for CallPaused { + const PALLET: &'static str = "TxPause"; + const EVENT: &'static str = "CallPaused"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "This pallet, or a specific call is now unpaused."] + pub struct CallUnpaused { + pub full_name: call_unpaused::FullName, + } + pub mod call_unpaused { + use super::runtime_types; + pub type FullName = ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ); + } + impl ::subxt::events::StaticEvent for CallUnpaused { + const PALLET: &'static str = "TxPause"; + const EVENT: &'static str = "CallUnpaused"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod paused_calls { + use super::runtime_types; + pub type PausedCalls = (); + pub type Param0 = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + pub type Param1 = runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The set of calls that are explicitly paused."] + pub fn paused_calls_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::paused_calls::PausedCalls, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TxPause", + "PausedCalls", + vec![], + [ + 36u8, 9u8, 29u8, 154u8, 39u8, 47u8, 237u8, 97u8, 176u8, 241u8, 153u8, + 131u8, 20u8, 16u8, 73u8, 63u8, 27u8, 21u8, 107u8, 5u8, 147u8, 198u8, + 82u8, 212u8, 38u8, 162u8, 1u8, 203u8, 57u8, 187u8, 53u8, 132u8, + ], + ) + } + #[doc = " The set of calls that are explicitly paused."] + pub fn paused_calls_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::paused_calls::PausedCalls, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TxPause", + "PausedCalls", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 36u8, 9u8, 29u8, 154u8, 39u8, 47u8, 237u8, 97u8, 176u8, 241u8, 153u8, + 131u8, 20u8, 16u8, 73u8, 63u8, 27u8, 21u8, 107u8, 5u8, 147u8, 198u8, + 82u8, 212u8, 38u8, 162u8, 1u8, 203u8, 57u8, 187u8, 53u8, 132u8, + ], + ) + } + #[doc = " The set of calls that are explicitly paused."] + pub fn paused_calls( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::paused_calls::PausedCalls, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "TxPause", + "PausedCalls", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 36u8, 9u8, 29u8, 154u8, 39u8, 47u8, 237u8, 97u8, 176u8, 241u8, 153u8, + 131u8, 20u8, 16u8, 73u8, 63u8, 27u8, 21u8, 107u8, 5u8, 147u8, 198u8, + 82u8, 212u8, 38u8, 162u8, 1u8, 203u8, 57u8, 187u8, 53u8, 132u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Maximum length for pallet name and call name SCALE encoded string names."] + #[doc = ""] + #[doc = " TOO LONG NAMES WILL BE TREATED AS PAUSED."] + pub fn max_name_len(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "TxPause", + "MaxNameLen", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod safe_mode { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_safe_mode::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_safe_mode::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::enter`]."] + pub struct Enter; + impl ::subxt::blocks::StaticExtrinsic for Enter { + const PALLET: &'static str = "SafeMode"; + const CALL: &'static str = "enter"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_enter`]."] + pub struct ForceEnter; + impl ::subxt::blocks::StaticExtrinsic for ForceEnter { + const PALLET: &'static str = "SafeMode"; + const CALL: &'static str = "force_enter"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::extend`]."] + pub struct Extend; + impl ::subxt::blocks::StaticExtrinsic for Extend { + const PALLET: &'static str = "SafeMode"; + const CALL: &'static str = "extend"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_extend`]."] + pub struct ForceExtend; + impl ::subxt::blocks::StaticExtrinsic for ForceExtend { + const PALLET: &'static str = "SafeMode"; + const CALL: &'static str = "force_extend"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_exit`]."] + pub struct ForceExit; + impl ::subxt::blocks::StaticExtrinsic for ForceExit { + const PALLET: &'static str = "SafeMode"; + const CALL: &'static str = "force_exit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_slash_deposit`]."] + pub struct ForceSlashDeposit { + pub account: force_slash_deposit::Account, + pub block: force_slash_deposit::Block, + } + pub mod force_slash_deposit { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Block = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ForceSlashDeposit { + const PALLET: &'static str = "SafeMode"; + const CALL: &'static str = "force_slash_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::release_deposit`]."] + pub struct ReleaseDeposit { + pub account: release_deposit::Account, + pub block: release_deposit::Block, + } + pub mod release_deposit { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Block = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ReleaseDeposit { + const PALLET: &'static str = "SafeMode"; + const CALL: &'static str = "release_deposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::force_release_deposit`]."] + pub struct ForceReleaseDeposit { + pub account: force_release_deposit::Account, + pub block: force_release_deposit::Block, + } + pub mod force_release_deposit { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Block = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ForceReleaseDeposit { + const PALLET: &'static str = "SafeMode"; + const CALL: &'static str = "force_release_deposit"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::enter`]."] + pub fn enter(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SafeMode", + "enter", + types::Enter {}, + [ + 143u8, 123u8, 102u8, 22u8, 143u8, 240u8, 102u8, 20u8, 99u8, 56u8, + 137u8, 160u8, 145u8, 237u8, 239u8, 13u8, 116u8, 150u8, 190u8, 85u8, + 39u8, 235u8, 252u8, 175u8, 118u8, 60u8, 231u8, 161u8, 61u8, 100u8, + 140u8, 15u8, + ], + ) + } + #[doc = "See [`Pallet::force_enter`]."] + pub fn force_enter(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SafeMode", + "force_enter", + types::ForceEnter {}, + [ + 226u8, 76u8, 165u8, 0u8, 74u8, 155u8, 226u8, 0u8, 184u8, 63u8, 229u8, + 216u8, 13u8, 44u8, 211u8, 141u8, 82u8, 33u8, 38u8, 220u8, 228u8, 13u8, + 105u8, 40u8, 3u8, 101u8, 98u8, 149u8, 169u8, 196u8, 135u8, 108u8, + ], + ) + } + #[doc = "See [`Pallet::extend`]."] + pub fn extend(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SafeMode", + "extend", + types::Extend {}, + [ + 197u8, 120u8, 159u8, 140u8, 252u8, 237u8, 41u8, 35u8, 158u8, 68u8, + 143u8, 99u8, 156u8, 153u8, 190u8, 6u8, 220u8, 153u8, 207u8, 98u8, + 126u8, 27u8, 29u8, 118u8, 77u8, 69u8, 135u8, 20u8, 66u8, 170u8, 240u8, + 129u8, + ], + ) + } + #[doc = "See [`Pallet::force_extend`]."] + pub fn force_extend(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SafeMode", + "force_extend", + types::ForceExtend {}, + [ + 117u8, 88u8, 218u8, 135u8, 217u8, 109u8, 142u8, 56u8, 165u8, 247u8, + 37u8, 236u8, 158u8, 153u8, 199u8, 154u8, 70u8, 17u8, 19u8, 225u8, + 184u8, 126u8, 169u8, 246u8, 187u8, 96u8, 124u8, 117u8, 3u8, 122u8, + 185u8, 255u8, + ], + ) + } + #[doc = "See [`Pallet::force_exit`]."] + pub fn force_exit(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SafeMode", + "force_exit", + types::ForceExit {}, + [ + 150u8, 4u8, 38u8, 204u8, 101u8, 158u8, 83u8, 108u8, 144u8, 146u8, 91u8, + 227u8, 118u8, 59u8, 39u8, 160u8, 157u8, 68u8, 241u8, 12u8, 42u8, 108u8, + 196u8, 221u8, 241u8, 61u8, 142u8, 140u8, 174u8, 224u8, 33u8, 213u8, + ], + ) + } + #[doc = "See [`Pallet::force_slash_deposit`]."] + pub fn force_slash_deposit( + &self, + account: types::force_slash_deposit::Account, + block: types::force_slash_deposit::Block, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SafeMode", + "force_slash_deposit", + types::ForceSlashDeposit { account, block }, + [ + 185u8, 154u8, 173u8, 77u8, 150u8, 104u8, 220u8, 14u8, 65u8, 197u8, + 253u8, 145u8, 112u8, 189u8, 99u8, 45u8, 138u8, 120u8, 94u8, 112u8, + 183u8, 205u8, 206u8, 14u8, 74u8, 9u8, 156u8, 76u8, 159u8, 37u8, 88u8, + 96u8, + ], + ) + } + #[doc = "See [`Pallet::release_deposit`]."] + pub fn release_deposit( + &self, + account: types::release_deposit::Account, + block: types::release_deposit::Block, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SafeMode", + "release_deposit", + types::ReleaseDeposit { account, block }, + [ + 79u8, 18u8, 165u8, 136u8, 30u8, 45u8, 169u8, 102u8, 195u8, 112u8, + 252u8, 42u8, 52u8, 65u8, 93u8, 168u8, 40u8, 180u8, 234u8, 248u8, 20u8, + 157u8, 147u8, 84u8, 89u8, 168u8, 219u8, 160u8, 193u8, 170u8, 95u8, + 20u8, + ], + ) + } + #[doc = "See [`Pallet::force_release_deposit`]."] + pub fn force_release_deposit( + &self, + account: types::force_release_deposit::Account, + block: types::force_release_deposit::Block, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "SafeMode", + "force_release_deposit", + types::ForceReleaseDeposit { account, block }, + [ + 32u8, 21u8, 194u8, 117u8, 164u8, 105u8, 175u8, 6u8, 77u8, 183u8, 153u8, + 93u8, 76u8, 102u8, 49u8, 232u8, 124u8, 27u8, 90u8, 189u8, 75u8, 76u8, + 6u8, 144u8, 232u8, 51u8, 152u8, 207u8, 122u8, 162u8, 232u8, 236u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_safe_mode::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The safe-mode was entered until inclusively this block."] + pub struct Entered { + pub until: entered::Until, + } + pub mod entered { + use super::runtime_types; + pub type Until = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Entered { + const PALLET: &'static str = "SafeMode"; + const EVENT: &'static str = "Entered"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The safe-mode was extended until inclusively this block."] + pub struct Extended { + pub until: extended::Until, + } + pub mod extended { + use super::runtime_types; + pub type Until = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Extended { + const PALLET: &'static str = "SafeMode"; + const EVENT: &'static str = "Extended"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Exited the safe-mode for a specific reason."] + pub struct Exited { + pub reason: exited::Reason, + } + pub mod exited { + use super::runtime_types; + pub type Reason = runtime_types::pallet_safe_mode::pallet::ExitReason; + } + impl ::subxt::events::StaticEvent for Exited { + const PALLET: &'static str = "SafeMode"; + const EVENT: &'static str = "Exited"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account reserved funds for either entering or extending the safe-mode."] + pub struct DepositPlaced { + pub account: deposit_placed::Account, + pub amount: deposit_placed::Amount, + } + pub mod deposit_placed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DepositPlaced { + const PALLET: &'static str = "SafeMode"; + const EVENT: &'static str = "DepositPlaced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account had a reserve released that was reserved."] + pub struct DepositReleased { + pub account: deposit_released::Account, + pub amount: deposit_released::Amount, + } + pub mod deposit_released { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DepositReleased { + const PALLET: &'static str = "SafeMode"; + const EVENT: &'static str = "DepositReleased"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account had reserve slashed that was reserved."] + pub struct DepositSlashed { + pub account: deposit_slashed::Account, + pub amount: deposit_slashed::Amount, + } + pub mod deposit_slashed { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for DepositSlashed { + const PALLET: &'static str = "SafeMode"; + const EVENT: &'static str = "DepositSlashed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Could not hold funds for entering or extending the safe-mode."] + #[doc = ""] + #[doc = "This error comes from the underlying `Currency`."] + pub struct CannotDeposit; + impl ::subxt::events::StaticEvent for CannotDeposit { + const PALLET: &'static str = "SafeMode"; + const EVENT: &'static str = "CannotDeposit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Could not release funds for entering or extending the safe-mode."] + #[doc = ""] + #[doc = "This error comes from the underlying `Currency`."] + pub struct CannotRelease; + impl ::subxt::events::StaticEvent for CannotRelease { + const PALLET: &'static str = "SafeMode"; + const EVENT: &'static str = "CannotRelease"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod entered_until { + use super::runtime_types; + pub type EnteredUntil = ::core::primitive::u32; + } + pub mod deposits { + use super::runtime_types; + pub type Deposits = ::core::primitive::u128; + pub type Param0 = ::subxt::utils::AccountId32; + pub type Param1 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Contains the last block number that the safe-mode will remain entered in."] + #[doc = ""] + #[doc = " Set to `None` when safe-mode is exited."] + #[doc = ""] + #[doc = " Safe-mode is automatically exited when the current block number exceeds this value."] + pub fn entered_until( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::entered_until::EnteredUntil, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "SafeMode", + "EnteredUntil", + vec![], + [ + 149u8, 83u8, 42u8, 40u8, 74u8, 142u8, 60u8, 30u8, 84u8, 16u8, 188u8, + 31u8, 142u8, 15u8, 123u8, 243u8, 224u8, 219u8, 21u8, 109u8, 199u8, + 124u8, 169u8, 154u8, 35u8, 198u8, 136u8, 36u8, 202u8, 218u8, 15u8, + 107u8, + ], + ) + } + #[doc = " Holds the reserve that was taken from an account at a specific block number."] + #[doc = ""] + #[doc = " This helps governance to have an overview of outstanding deposits that should be returned or"] + #[doc = " slashed."] + pub fn deposits_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deposits::Deposits, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "SafeMode", + "Deposits", + vec![], + [ + 102u8, 238u8, 49u8, 145u8, 38u8, 237u8, 5u8, 175u8, 115u8, 52u8, 160u8, + 73u8, 211u8, 238u8, 28u8, 239u8, 164u8, 236u8, 235u8, 106u8, 80u8, + 92u8, 185u8, 181u8, 115u8, 112u8, 100u8, 84u8, 232u8, 65u8, 32u8, + 165u8, + ], + ) + } + #[doc = " Holds the reserve that was taken from an account at a specific block number."] + #[doc = ""] + #[doc = " This helps governance to have an overview of outstanding deposits that should be returned or"] + #[doc = " slashed."] + pub fn deposits_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deposits::Deposits, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "SafeMode", + "Deposits", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 102u8, 238u8, 49u8, 145u8, 38u8, 237u8, 5u8, 175u8, 115u8, 52u8, 160u8, + 73u8, 211u8, 238u8, 28u8, 239u8, 164u8, 236u8, 235u8, 106u8, 80u8, + 92u8, 185u8, 181u8, 115u8, 112u8, 100u8, 84u8, 232u8, 65u8, 32u8, + 165u8, + ], + ) + } + #[doc = " Holds the reserve that was taken from an account at a specific block number."] + #[doc = ""] + #[doc = " This helps governance to have an overview of outstanding deposits that should be returned or"] + #[doc = " slashed."] + pub fn deposits( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::deposits::Deposits, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "SafeMode", + "Deposits", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 102u8, 238u8, 49u8, 145u8, 38u8, 237u8, 5u8, 175u8, 115u8, 52u8, 160u8, + 73u8, 211u8, 238u8, 28u8, 239u8, 164u8, 236u8, 235u8, 106u8, 80u8, + 92u8, 185u8, 181u8, 115u8, 112u8, 100u8, 84u8, 232u8, 65u8, 32u8, + 165u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " For how many blocks the safe-mode will be entered by [`Pallet::enter`]."] + pub fn enter_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "SafeMode", + "EnterDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " For how many blocks the safe-mode can be extended by each [`Pallet::extend`] call."] + #[doc = ""] + #[doc = " This does not impose a hard limit as the safe-mode can be extended multiple times."] + pub fn extend_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "SafeMode", + "ExtendDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The amount that will be reserved upon calling [`Pallet::enter`]."] + #[doc = ""] + #[doc = " `None` disallows permissionlessly enabling the safe-mode and is a sane default."] + pub fn enter_deposit_amount( + &self, + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> + { + ::subxt::constants::Address::new_static( + "SafeMode", + "EnterDepositAmount", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) + } + #[doc = " The amount that will be reserved upon calling [`Pallet::extend`]."] + #[doc = ""] + #[doc = " `None` disallows permissionlessly extending the safe-mode and is a sane default."] + pub fn extend_deposit_amount( + &self, + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> + { + ::subxt::constants::Address::new_static( + "SafeMode", + "ExtendDepositAmount", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) + } + #[doc = " The minimal duration a deposit will remain reserved after safe-mode is entered or"] + #[doc = " extended, unless [`Pallet::force_release_deposit`] is successfully called sooner."] + #[doc = ""] + #[doc = " Every deposit is tied to a specific activation or extension, thus each deposit can be"] + #[doc = " released independently after the delay for it has passed."] + #[doc = ""] + #[doc = " `None` disallows permissionlessly releasing the safe-mode deposits and is a sane"] + #[doc = " default."] + pub fn release_delay( + &self, + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u32>> + { + ::subxt::constants::Address::new_static( + "SafeMode", + "ReleaseDelay", + [ + 111u8, 234u8, 140u8, 193u8, 117u8, 12u8, 156u8, 42u8, 108u8, 165u8, + 55u8, 45u8, 64u8, 14u8, 126u8, 168u8, 240u8, 34u8, 185u8, 106u8, 152u8, + 134u8, 255u8, 67u8, 57u8, 132u8, 69u8, 70u8, 8u8, 41u8, 19u8, 90u8, + ], + ) + } + } + } + } + pub mod statement { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_statement::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new statement is submitted"] + pub struct NewStatement { + pub account: new_statement::Account, + pub statement: new_statement::Statement, + } + pub mod new_statement { + use super::runtime_types; + pub type Account = ::subxt::utils::AccountId32; + pub type Statement = runtime_types::sp_statement_store::Statement; + } + impl ::subxt::events::StaticEvent for NewStatement { + const PALLET: &'static str = "Statement"; + const EVENT: &'static str = "NewStatement"; + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Min balance for priority statements."] + pub fn statement_cost( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Statement", + "StatementCost", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Cost of data byte used for priority calculation."] + pub fn byte_cost(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Statement", + "ByteCost", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + #[doc = " Minimum number of statements allowed per account."] + pub fn min_allowed_statements( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Statement", + "MinAllowedStatements", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum number of statements allowed per account."] + pub fn max_allowed_statements( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Statement", + "MaxAllowedStatements", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Minimum data bytes allowed per account."] + pub fn min_allowed_bytes( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Statement", + "MinAllowedBytes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum data bytes allowed per account."] + pub fn max_allowed_bytes( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Statement", + "MaxAllowedBytes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod broker { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_broker::pallet::Error; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_broker::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::configure`]."] + pub struct Configure { + pub config: configure::Config, + } + pub mod configure { + use super::runtime_types; + pub type Config = runtime_types::pallet_broker::types::ConfigRecord< + ::core::primitive::u32, + ::core::primitive::u32, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Configure { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "configure"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::reserve`]."] + pub struct Reserve { + pub workload: reserve::Workload, + } + pub mod reserve { + use super::runtime_types; + pub type Workload = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >; + } + impl ::subxt::blocks::StaticExtrinsic for Reserve { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "reserve"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::unreserve`]."] + pub struct Unreserve { + pub item_index: unreserve::ItemIndex, + } + pub mod unreserve { + use super::runtime_types; + pub type ItemIndex = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Unreserve { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "unreserve"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::set_lease`]."] + pub struct SetLease { + pub task: set_lease::Task, + pub until: set_lease::Until, + } + pub mod set_lease { + use super::runtime_types; + pub type Task = ::core::primitive::u32; + pub type Until = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for SetLease { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "set_lease"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::start_sales`]."] + pub struct StartSales { + pub initial_price: start_sales::InitialPrice, + pub core_count: start_sales::CoreCount, + } + pub mod start_sales { + use super::runtime_types; + pub type InitialPrice = ::core::primitive::u128; + pub type CoreCount = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for StartSales { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "start_sales"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::purchase`]."] + pub struct Purchase { + pub price_limit: purchase::PriceLimit, + } + pub mod purchase { + use super::runtime_types; + pub type PriceLimit = ::core::primitive::u128; + } + impl ::subxt::blocks::StaticExtrinsic for Purchase { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "purchase"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::renew`]."] + pub struct Renew { + pub core: renew::Core, + } + pub mod renew { + use super::runtime_types; + pub type Core = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for Renew { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "renew"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::transfer`]."] + pub struct Transfer { + pub region_id: transfer::RegionId, + pub new_owner: transfer::NewOwner, + } + pub mod transfer { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type NewOwner = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "transfer"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::partition`]."] + pub struct Partition { + pub region_id: partition::RegionId, + pub pivot: partition::Pivot, + } + pub mod partition { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type Pivot = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for Partition { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "partition"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::interlace`]."] + pub struct Interlace { + pub region_id: interlace::RegionId, + pub pivot: interlace::Pivot, + } + pub mod interlace { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type Pivot = runtime_types::pallet_broker::core_mask::CoreMask; + } + impl ::subxt::blocks::StaticExtrinsic for Interlace { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "interlace"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::assign`]."] + pub struct Assign { + pub region_id: assign::RegionId, + pub task: assign::Task, + pub finality: assign::Finality, + } + pub mod assign { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type Task = ::core::primitive::u32; + pub type Finality = runtime_types::pallet_broker::types::Finality; + } + impl ::subxt::blocks::StaticExtrinsic for Assign { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "assign"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::pool`]."] + pub struct Pool { + pub region_id: pool::RegionId, + pub payee: pool::Payee, + pub finality: pool::Finality, + } + pub mod pool { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type Payee = ::subxt::utils::AccountId32; + pub type Finality = runtime_types::pallet_broker::types::Finality; + } + impl ::subxt::blocks::StaticExtrinsic for Pool { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "pool"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::claim_revenue`]."] + pub struct ClaimRevenue { + pub region_id: claim_revenue::RegionId, + pub max_timeslices: claim_revenue::MaxTimeslices, + } + pub mod claim_revenue { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type MaxTimeslices = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for ClaimRevenue { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "claim_revenue"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::purchase_credit`]."] + pub struct PurchaseCredit { + pub amount: purchase_credit::Amount, + pub beneficiary: purchase_credit::Beneficiary, + } + pub mod purchase_credit { + use super::runtime_types; + pub type Amount = ::core::primitive::u128; + pub type Beneficiary = ::subxt::utils::AccountId32; + } + impl ::subxt::blocks::StaticExtrinsic for PurchaseCredit { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "purchase_credit"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::drop_region`]."] + pub struct DropRegion { + pub region_id: drop_region::RegionId, + } + pub mod drop_region { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + } + impl ::subxt::blocks::StaticExtrinsic for DropRegion { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "drop_region"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::drop_contribution`]."] + pub struct DropContribution { + pub region_id: drop_contribution::RegionId, + } + pub mod drop_contribution { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + } + impl ::subxt::blocks::StaticExtrinsic for DropContribution { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "drop_contribution"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::drop_history`]."] + pub struct DropHistory { + pub when: drop_history::When, + } + pub mod drop_history { + use super::runtime_types; + pub type When = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for DropHistory { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "drop_history"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::drop_renewal`]."] + pub struct DropRenewal { + pub core: drop_renewal::Core, + pub when: drop_renewal::When, + } + pub mod drop_renewal { + use super::runtime_types; + pub type Core = ::core::primitive::u16; + pub type When = ::core::primitive::u32; + } + impl ::subxt::blocks::StaticExtrinsic for DropRenewal { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "drop_renewal"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::request_core_count`]."] + pub struct RequestCoreCount { + pub core_count: request_core_count::CoreCount, + } + pub mod request_core_count { + use super::runtime_types; + pub type CoreCount = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for RequestCoreCount { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "request_core_count"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See [`Pallet::notify_core_count`]."] + pub struct NotifyCoreCount { + pub core_count: notify_core_count::CoreCount, + } + pub mod notify_core_count { + use super::runtime_types; + pub type CoreCount = ::core::primitive::u16; + } + impl ::subxt::blocks::StaticExtrinsic for NotifyCoreCount { + const PALLET: &'static str = "Broker"; + const CALL: &'static str = "notify_core_count"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See [`Pallet::configure`]."] + pub fn configure( + &self, + config: types::configure::Config, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "configure", + types::Configure { config }, + [ + 47u8, 41u8, 114u8, 129u8, 138u8, 255u8, 77u8, 164u8, 39u8, 215u8, + 231u8, 16u8, 128u8, 220u8, 80u8, 21u8, 199u8, 112u8, 5u8, 209u8, 6u8, + 196u8, 157u8, 38u8, 124u8, 127u8, 134u8, 246u8, 255u8, 191u8, 29u8, + 235u8, + ], + ) + } + #[doc = "See [`Pallet::reserve`]."] + pub fn reserve( + &self, + workload: types::reserve::Workload, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "reserve", + types::Reserve { workload }, + [ + 179u8, 93u8, 196u8, 189u8, 19u8, 203u8, 18u8, 244u8, 161u8, 158u8, + 222u8, 96u8, 140u8, 137u8, 255u8, 4u8, 126u8, 244u8, 236u8, 163u8, + 99u8, 232u8, 70u8, 173u8, 205u8, 167u8, 26u8, 55u8, 133u8, 249u8, 20u8, + 154u8, + ], + ) + } + #[doc = "See [`Pallet::unreserve`]."] + pub fn unreserve( + &self, + item_index: types::unreserve::ItemIndex, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "unreserve", + types::Unreserve { item_index }, + [ + 159u8, 127u8, 127u8, 134u8, 252u8, 69u8, 255u8, 67u8, 14u8, 221u8, + 14u8, 56u8, 194u8, 46u8, 33u8, 150u8, 67u8, 124u8, 122u8, 138u8, 74u8, + 186u8, 185u8, 182u8, 42u8, 20u8, 42u8, 178u8, 245u8, 72u8, 116u8, 18u8, + ], + ) + } + #[doc = "See [`Pallet::set_lease`]."] + pub fn set_lease( + &self, + task: types::set_lease::Task, + until: types::set_lease::Until, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "set_lease", + types::SetLease { task, until }, + [ + 183u8, 72u8, 230u8, 156u8, 226u8, 167u8, 172u8, 191u8, 10u8, 221u8, + 224u8, 153u8, 217u8, 195u8, 165u8, 138u8, 154u8, 158u8, 140u8, 121u8, + 77u8, 139u8, 152u8, 7u8, 250u8, 8u8, 33u8, 183u8, 250u8, 150u8, 105u8, + 199u8, + ], + ) + } + #[doc = "See [`Pallet::start_sales`]."] + pub fn start_sales( + &self, + initial_price: types::start_sales::InitialPrice, + core_count: types::start_sales::CoreCount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "start_sales", + types::StartSales { + initial_price, + core_count, + }, + [ + 78u8, 51u8, 30u8, 152u8, 207u8, 24u8, 207u8, 149u8, 236u8, 132u8, 62u8, + 228u8, 250u8, 140u8, 44u8, 240u8, 59u8, 114u8, 148u8, 198u8, 151u8, + 127u8, 221u8, 188u8, 250u8, 161u8, 104u8, 7u8, 225u8, 80u8, 170u8, + 207u8, + ], + ) + } + #[doc = "See [`Pallet::purchase`]."] + pub fn purchase( + &self, + price_limit: types::purchase::PriceLimit, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "purchase", + types::Purchase { price_limit }, + [ + 180u8, 34u8, 117u8, 232u8, 116u8, 211u8, 229u8, 201u8, 144u8, 72u8, + 36u8, 255u8, 68u8, 70u8, 150u8, 113u8, 230u8, 12u8, 152u8, 88u8, 137u8, + 220u8, 36u8, 6u8, 96u8, 236u8, 108u8, 186u8, 103u8, 92u8, 207u8, 176u8, + ], + ) + } + #[doc = "See [`Pallet::renew`]."] + pub fn renew( + &self, + core: types::renew::Core, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "renew", + types::Renew { core }, + [ + 89u8, 65u8, 189u8, 173u8, 166u8, 60u8, 207u8, 186u8, 18u8, 239u8, + 130u8, 6u8, 200u8, 56u8, 74u8, 221u8, 220u8, 88u8, 213u8, 202u8, 125u8, + 44u8, 75u8, 102u8, 192u8, 238u8, 170u8, 18u8, 186u8, 101u8, 181u8, + 105u8, + ], + ) + } + #[doc = "See [`Pallet::transfer`]."] + pub fn transfer( + &self, + region_id: types::transfer::RegionId, + new_owner: types::transfer::NewOwner, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "transfer", + types::Transfer { + region_id, + new_owner, + }, + [ + 80u8, 18u8, 186u8, 227u8, 213u8, 255u8, 214u8, 84u8, 250u8, 102u8, + 108u8, 104u8, 158u8, 4u8, 14u8, 94u8, 122u8, 6u8, 74u8, 182u8, 193u8, + 11u8, 191u8, 226u8, 2u8, 184u8, 104u8, 126u8, 66u8, 22u8, 125u8, 249u8, + ], + ) + } + #[doc = "See [`Pallet::partition`]."] + pub fn partition( + &self, + region_id: types::partition::RegionId, + pivot: types::partition::Pivot, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "partition", + types::Partition { region_id, pivot }, + [ + 8u8, 89u8, 3u8, 231u8, 184u8, 148u8, 1u8, 32u8, 90u8, 170u8, 209u8, + 110u8, 243u8, 170u8, 140u8, 168u8, 241u8, 4u8, 223u8, 68u8, 70u8, 52u8, + 109u8, 128u8, 61u8, 167u8, 51u8, 133u8, 74u8, 141u8, 0u8, 36u8, + ], + ) + } + #[doc = "See [`Pallet::interlace`]."] + pub fn interlace( + &self, + region_id: types::interlace::RegionId, + pivot: types::interlace::Pivot, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "interlace", + types::Interlace { region_id, pivot }, + [ + 7u8, 93u8, 42u8, 166u8, 194u8, 35u8, 255u8, 78u8, 40u8, 127u8, 224u8, + 63u8, 218u8, 150u8, 143u8, 233u8, 48u8, 33u8, 140u8, 72u8, 247u8, + 251u8, 179u8, 25u8, 68u8, 157u8, 27u8, 108u8, 183u8, 159u8, 33u8, + 123u8, + ], + ) + } + #[doc = "See [`Pallet::assign`]."] + pub fn assign( + &self, + region_id: types::assign::RegionId, + task: types::assign::Task, + finality: types::assign::Finality, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "assign", + types::Assign { + region_id, + task, + finality, + }, + [ + 91u8, 132u8, 233u8, 43u8, 154u8, 152u8, 15u8, 44u8, 202u8, 230u8, + 122u8, 5u8, 3u8, 5u8, 116u8, 221u8, 207u8, 161u8, 160u8, 100u8, 151u8, + 98u8, 161u8, 218u8, 124u8, 92u8, 45u8, 0u8, 103u8, 188u8, 223u8, 53u8, + ], + ) + } + #[doc = "See [`Pallet::pool`]."] + pub fn pool( + &self, + region_id: types::pool::RegionId, + payee: types::pool::Payee, + finality: types::pool::Finality, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "pool", + types::Pool { + region_id, + payee, + finality, + }, + [ + 14u8, 189u8, 13u8, 148u8, 5u8, 149u8, 194u8, 194u8, 84u8, 123u8, 52u8, + 69u8, 38u8, 226u8, 26u8, 222u8, 247u8, 149u8, 148u8, 248u8, 145u8, + 205u8, 36u8, 139u8, 40u8, 126u8, 14u8, 54u8, 83u8, 248u8, 240u8, 139u8, + ], + ) + } + #[doc = "See [`Pallet::claim_revenue`]."] + pub fn claim_revenue( + &self, + region_id: types::claim_revenue::RegionId, + max_timeslices: types::claim_revenue::MaxTimeslices, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "claim_revenue", + types::ClaimRevenue { + region_id, + max_timeslices, + }, + [ + 124u8, 55u8, 35u8, 170u8, 105u8, 123u8, 63u8, 62u8, 63u8, 149u8, 17u8, + 149u8, 185u8, 220u8, 151u8, 206u8, 14u8, 217u8, 84u8, 97u8, 81u8, + 250u8, 122u8, 124u8, 189u8, 144u8, 211u8, 126u8, 158u8, 80u8, 249u8, + 237u8, + ], + ) + } + #[doc = "See [`Pallet::purchase_credit`]."] + pub fn purchase_credit( + &self, + amount: types::purchase_credit::Amount, + beneficiary: types::purchase_credit::Beneficiary, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "purchase_credit", + types::PurchaseCredit { + amount, + beneficiary, + }, + [ + 112u8, 183u8, 193u8, 102u8, 30u8, 216u8, 254u8, 165u8, 45u8, 117u8, + 26u8, 95u8, 232u8, 47u8, 237u8, 81u8, 13u8, 191u8, 179u8, 107u8, 183u8, + 182u8, 168u8, 106u8, 164u8, 89u8, 193u8, 116u8, 36u8, 181u8, 146u8, + 160u8, + ], + ) + } + #[doc = "See [`Pallet::drop_region`]."] + pub fn drop_region( + &self, + region_id: types::drop_region::RegionId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "drop_region", + types::DropRegion { region_id }, + [ + 192u8, 116u8, 124u8, 133u8, 187u8, 176u8, 149u8, 187u8, 230u8, 107u8, + 149u8, 185u8, 139u8, 18u8, 154u8, 186u8, 153u8, 56u8, 199u8, 218u8, + 117u8, 84u8, 113u8, 15u8, 233u8, 177u8, 33u8, 224u8, 182u8, 191u8, + 202u8, 234u8, + ], + ) + } + #[doc = "See [`Pallet::drop_contribution`]."] + pub fn drop_contribution( + &self, + region_id: types::drop_contribution::RegionId, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "drop_contribution", + types::DropContribution { region_id }, + [ + 174u8, 22u8, 254u8, 7u8, 41u8, 231u8, 26u8, 174u8, 125u8, 110u8, 9u8, + 27u8, 116u8, 152u8, 51u8, 247u8, 167u8, 126u8, 92u8, 232u8, 122u8, + 189u8, 37u8, 166u8, 181u8, 75u8, 33u8, 188u8, 147u8, 110u8, 111u8, + 10u8, + ], + ) + } + #[doc = "See [`Pallet::drop_history`]."] + pub fn drop_history( + &self, + when: types::drop_history::When, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "drop_history", + types::DropHistory { when }, + [ + 57u8, 162u8, 131u8, 40u8, 152u8, 60u8, 57u8, 118u8, 165u8, 10u8, 170u8, + 202u8, 43u8, 5u8, 118u8, 213u8, 151u8, 89u8, 119u8, 247u8, 133u8, 78u8, + 13u8, 229u8, 159u8, 106u8, 47u8, 244u8, 140u8, 20u8, 80u8, 106u8, + ], + ) + } + #[doc = "See [`Pallet::drop_renewal`]."] + pub fn drop_renewal( + &self, + core: types::drop_renewal::Core, + when: types::drop_renewal::When, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "drop_renewal", + types::DropRenewal { core, when }, + [ + 209u8, 97u8, 211u8, 220u8, 204u8, 144u8, 175u8, 124u8, 55u8, 157u8, + 186u8, 45u8, 197u8, 25u8, 107u8, 108u8, 45u8, 163u8, 95u8, 200u8, + 130u8, 163u8, 22u8, 229u8, 15u8, 249u8, 135u8, 102u8, 12u8, 179u8, + 77u8, 162u8, + ], + ) + } + #[doc = "See [`Pallet::request_core_count`]."] + pub fn request_core_count( + &self, + core_count: types::request_core_count::CoreCount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "request_core_count", + types::RequestCoreCount { core_count }, + [ + 32u8, 197u8, 224u8, 109u8, 148u8, 220u8, 31u8, 58u8, 219u8, 175u8, + 220u8, 169u8, 217u8, 190u8, 128u8, 122u8, 142u8, 12u8, 52u8, 105u8, + 40u8, 236u8, 54u8, 27u8, 246u8, 8u8, 152u8, 213u8, 127u8, 25u8, 118u8, + 20u8, + ], + ) + } + #[doc = "See [`Pallet::notify_core_count`]."] + pub fn notify_core_count( + &self, + core_count: types::notify_core_count::CoreCount, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Broker", + "notify_core_count", + types::NotifyCoreCount { core_count }, + [ + 53u8, 44u8, 53u8, 90u8, 247u8, 189u8, 94u8, 149u8, 143u8, 96u8, 51u8, + 87u8, 68u8, 179u8, 121u8, 183u8, 82u8, 109u8, 247u8, 21u8, 164u8, + 180u8, 133u8, 228u8, 247u8, 220u8, 15u8, 48u8, 113u8, 246u8, 112u8, + 49u8, + ], + ) + } + } + } + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_broker::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A Region of Bulk Coretime has been purchased."] + pub struct Purchased { + pub who: purchased::Who, + pub region_id: purchased::RegionId, + pub price: purchased::Price, + pub duration: purchased::Duration, + } + pub mod purchased { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type Price = ::core::primitive::u128; + pub type Duration = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Purchased { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "Purchased"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The workload of a core has become renewable."] + pub struct Renewable { + pub core: renewable::Core, + pub price: renewable::Price, + pub begin: renewable::Begin, + pub workload: renewable::Workload, + } + pub mod renewable { + use super::runtime_types; + pub type Core = ::core::primitive::u16; + pub type Price = ::core::primitive::u128; + pub type Begin = ::core::primitive::u32; + pub type Workload = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >; + } + impl ::subxt::events::StaticEvent for Renewable { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "Renewable"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A workload has been renewed."] + pub struct Renewed { + pub who: renewed::Who, + pub price: renewed::Price, + pub old_core: renewed::OldCore, + pub core: renewed::Core, + pub begin: renewed::Begin, + pub duration: renewed::Duration, + pub workload: renewed::Workload, + } + pub mod renewed { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Price = ::core::primitive::u128; + pub type OldCore = ::core::primitive::u16; + pub type Core = ::core::primitive::u16; + pub type Begin = ::core::primitive::u32; + pub type Duration = ::core::primitive::u32; + pub type Workload = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >; + } + impl ::subxt::events::StaticEvent for Renewed { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "Renewed"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Ownership of a Region has been transferred."] + pub struct Transferred { + pub region_id: transferred::RegionId, + pub duration: transferred::Duration, + pub old_owner: transferred::OldOwner, + pub owner: transferred::Owner, + } + pub mod transferred { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type Duration = ::core::primitive::u32; + pub type OldOwner = ::subxt::utils::AccountId32; + pub type Owner = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for Transferred { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "Transferred"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A Region has been split into two non-overlapping Regions."] + pub struct Partitioned { + pub old_region_id: partitioned::OldRegionId, + pub new_region_ids: partitioned::NewRegionIds, + } + pub mod partitioned { + use super::runtime_types; + pub type OldRegionId = runtime_types::pallet_broker::types::RegionId; + pub type NewRegionIds = ( + runtime_types::pallet_broker::types::RegionId, + runtime_types::pallet_broker::types::RegionId, + ); + } + impl ::subxt::events::StaticEvent for Partitioned { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "Partitioned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A Region has been converted into two overlapping Regions each of lesser regularity."] + pub struct Interlaced { + pub old_region_id: interlaced::OldRegionId, + pub new_region_ids: interlaced::NewRegionIds, + } + pub mod interlaced { + use super::runtime_types; + pub type OldRegionId = runtime_types::pallet_broker::types::RegionId; + pub type NewRegionIds = ( + runtime_types::pallet_broker::types::RegionId, + runtime_types::pallet_broker::types::RegionId, + ); + } + impl ::subxt::events::StaticEvent for Interlaced { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "Interlaced"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A Region has been assigned to a particular task."] + pub struct Assigned { + pub region_id: assigned::RegionId, + pub duration: assigned::Duration, + pub task: assigned::Task, + } + pub mod assigned { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type Duration = ::core::primitive::u32; + pub type Task = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Assigned { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "Assigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A Region has been added to the Instantaneous Coretime Pool."] + pub struct Pooled { + pub region_id: pooled::RegionId, + pub duration: pooled::Duration, + } + pub mod pooled { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type Duration = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Pooled { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "Pooled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new number of cores has been requested."] + pub struct CoreCountRequested { + pub core_count: core_count_requested::CoreCount, + } + pub mod core_count_requested { + use super::runtime_types; + pub type CoreCount = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for CoreCountRequested { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "CoreCountRequested"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The number of cores available for scheduling has changed."] + pub struct CoreCountChanged { + pub core_count: core_count_changed::CoreCount, + } + pub mod core_count_changed { + use super::runtime_types; + pub type CoreCount = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for CoreCountChanged { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "CoreCountChanged"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "There is a new reservation for a workload."] + pub struct ReservationMade { + pub index: reservation_made::Index, + pub workload: reservation_made::Workload, + } + pub mod reservation_made { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Workload = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >; + } + impl ::subxt::events::StaticEvent for ReservationMade { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "ReservationMade"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A reservation for a workload has been cancelled."] + pub struct ReservationCancelled { + pub index: reservation_cancelled::Index, + pub workload: reservation_cancelled::Workload, + } + pub mod reservation_cancelled { + use super::runtime_types; + pub type Index = ::core::primitive::u32; + pub type Workload = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >; + } + impl ::subxt::events::StaticEvent for ReservationCancelled { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "ReservationCancelled"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new sale has been initialized."] + pub struct SaleInitialized { + pub sale_start: sale_initialized::SaleStart, + pub leadin_length: sale_initialized::LeadinLength, + pub start_price: sale_initialized::StartPrice, + pub regular_price: sale_initialized::RegularPrice, + pub region_begin: sale_initialized::RegionBegin, + pub region_end: sale_initialized::RegionEnd, + pub ideal_cores_sold: sale_initialized::IdealCoresSold, + pub cores_offered: sale_initialized::CoresOffered, + } + pub mod sale_initialized { + use super::runtime_types; + pub type SaleStart = ::core::primitive::u32; + pub type LeadinLength = ::core::primitive::u32; + pub type StartPrice = ::core::primitive::u128; + pub type RegularPrice = ::core::primitive::u128; + pub type RegionBegin = ::core::primitive::u32; + pub type RegionEnd = ::core::primitive::u32; + pub type IdealCoresSold = ::core::primitive::u16; + pub type CoresOffered = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for SaleInitialized { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "SaleInitialized"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A new lease has been created."] + pub struct Leased { + pub task: leased::Task, + pub until: leased::Until, + } + pub mod leased { + use super::runtime_types; + pub type Task = ::core::primitive::u32; + pub type Until = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for Leased { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "Leased"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A lease is about to end."] + pub struct LeaseEnding { + pub task: lease_ending::Task, + pub when: lease_ending::When, + } + pub mod lease_ending { + use super::runtime_types; + pub type Task = ::core::primitive::u32; + pub type When = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for LeaseEnding { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "LeaseEnding"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The sale rotation has been started and a new sale is imminent."] + pub struct SalesStarted { + pub price: sales_started::Price, + pub core_count: sales_started::CoreCount, + } + pub mod sales_started { + use super::runtime_types; + pub type Price = ::core::primitive::u128; + pub type CoreCount = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for SalesStarted { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "SalesStarted"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The act of claiming revenue has begun."] + pub struct RevenueClaimBegun { + pub region: revenue_claim_begun::Region, + pub max_timeslices: revenue_claim_begun::MaxTimeslices, + } + pub mod revenue_claim_begun { + use super::runtime_types; + pub type Region = runtime_types::pallet_broker::types::RegionId; + pub type MaxTimeslices = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for RevenueClaimBegun { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "RevenueClaimBegun"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A particular timeslice has a non-zero claim."] + pub struct RevenueClaimItem { + pub when: revenue_claim_item::When, + pub amount: revenue_claim_item::Amount, + } + pub mod revenue_claim_item { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for RevenueClaimItem { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "RevenueClaimItem"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A revenue claim has (possibly only in part) been paid."] + pub struct RevenueClaimPaid { + pub who: revenue_claim_paid::Who, + pub amount: revenue_claim_paid::Amount, + pub next: revenue_claim_paid::Next, + } + pub mod revenue_claim_paid { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + pub type Next = + ::core::option::Option; + } + impl ::subxt::events::StaticEvent for RevenueClaimPaid { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "RevenueClaimPaid"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some Instantaneous Coretime Pool credit has been purchased."] + pub struct CreditPurchased { + pub who: credit_purchased::Who, + pub beneficiary: credit_purchased::Beneficiary, + pub amount: credit_purchased::Amount, + } + pub mod credit_purchased { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + pub type Beneficiary = ::subxt::utils::AccountId32; + pub type Amount = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for CreditPurchased { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "CreditPurchased"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A Region has been dropped due to being out of date."] + pub struct RegionDropped { + pub region_id: region_dropped::RegionId, + pub duration: region_dropped::Duration, + } + pub mod region_dropped { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + pub type Duration = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for RegionDropped { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "RegionDropped"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some historical Instantaneous Core Pool contribution record has been dropped."] + pub struct ContributionDropped { + pub region_id: contribution_dropped::RegionId, + } + pub mod contribution_dropped { + use super::runtime_types; + pub type RegionId = runtime_types::pallet_broker::types::RegionId; + } + impl ::subxt::events::StaticEvent for ContributionDropped { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "ContributionDropped"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some historical Instantaneous Core Pool payment record has been initialized."] + pub struct HistoryInitialized { + pub when: history_initialized::When, + pub private_pool_size: history_initialized::PrivatePoolSize, + pub system_pool_size: history_initialized::SystemPoolSize, + } + pub mod history_initialized { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type PrivatePoolSize = ::core::primitive::u32; + pub type SystemPoolSize = ::core::primitive::u32; + } + impl ::subxt::events::StaticEvent for HistoryInitialized { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "HistoryInitialized"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some historical Instantaneous Core Pool payment record has been dropped."] + pub struct HistoryDropped { + pub when: history_dropped::When, + pub revenue: history_dropped::Revenue, + } + pub mod history_dropped { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type Revenue = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for HistoryDropped { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "HistoryDropped"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some historical Instantaneous Core Pool payment record has been ignored because the"] + #[doc = "timeslice was already known. Governance may need to intervene."] + pub struct HistoryIgnored { + pub when: history_ignored::When, + pub revenue: history_ignored::Revenue, + } + pub mod history_ignored { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type Revenue = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for HistoryIgnored { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "HistoryIgnored"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some historical Instantaneous Core Pool Revenue is ready for payout claims."] + pub struct ClaimsReady { + pub when: claims_ready::When, + pub system_payout: claims_ready::SystemPayout, + pub private_payout: claims_ready::PrivatePayout, + } + pub mod claims_ready { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type SystemPayout = ::core::primitive::u128; + pub type PrivatePayout = ::core::primitive::u128; + } + impl ::subxt::events::StaticEvent for ClaimsReady { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "ClaimsReady"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A Core has been assigned to one or more tasks and/or the Pool on the Relay-chain."] + pub struct CoreAssigned { + pub core: core_assigned::Core, + pub when: core_assigned::When, + pub assignment: core_assigned::Assignment, + } + pub mod core_assigned { + use super::runtime_types; + pub type Core = ::core::primitive::u16; + pub type When = ::core::primitive::u32; + pub type Assignment = ::std::vec::Vec<( + runtime_types::pallet_broker::coretime_interface::CoreAssignment, + ::core::primitive::u16, + )>; + } + impl ::subxt::events::StaticEvent for CoreAssigned { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "CoreAssigned"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some historical Instantaneous Core Pool payment record has been dropped."] + pub struct AllowedRenewalDropped { + pub when: allowed_renewal_dropped::When, + pub core: allowed_renewal_dropped::Core, + } + pub mod allowed_renewal_dropped { + use super::runtime_types; + pub type When = ::core::primitive::u32; + pub type Core = ::core::primitive::u16; + } + impl ::subxt::events::StaticEvent for AllowedRenewalDropped { + const PALLET: &'static str = "Broker"; + const EVENT: &'static str = "AllowedRenewalDropped"; + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod configuration { + use super::runtime_types; + pub type Configuration = runtime_types::pallet_broker::types::ConfigRecord< + ::core::primitive::u32, + ::core::primitive::u32, + >; + } + pub mod reservations { + use super::runtime_types; + pub type Reservations = + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >, + >; + } + pub mod leases { + use super::runtime_types; + pub type Leases = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::LeaseRecordItem, + >; + } + pub mod status { + use super::runtime_types; + pub type Status = runtime_types::pallet_broker::types::StatusRecord; + } + pub mod sale_info { + use super::runtime_types; + pub type SaleInfo = runtime_types::pallet_broker::types::SaleInfoRecord< + ::core::primitive::u128, + ::core::primitive::u32, + >; + } + pub mod allowed_renewals { + use super::runtime_types; + pub type AllowedRenewals = + runtime_types::pallet_broker::types::AllowedRenewalRecord< + ::core::primitive::u128, + >; + pub type Param0 = runtime_types::pallet_broker::types::AllowedRenewalId; + } + pub mod regions { + use super::runtime_types; + pub type Regions = runtime_types::pallet_broker::types::RegionRecord< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >; + pub type Param0 = runtime_types::pallet_broker::types::RegionId; + } + pub mod workplan { + use super::runtime_types; + pub type Workplan = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u16; + } + pub mod workload { + use super::runtime_types; + pub type Workload = runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >; + pub type Param0 = ::core::primitive::u16; + } + pub mod insta_pool_contribution { + use super::runtime_types; + pub type InstaPoolContribution = + runtime_types::pallet_broker::types::ContributionRecord< + ::subxt::utils::AccountId32, + >; + pub type Param0 = runtime_types::pallet_broker::types::RegionId; + } + pub mod insta_pool_io { + use super::runtime_types; + pub type InstaPoolIo = runtime_types::pallet_broker::types::PoolIoRecord; + pub type Param0 = ::core::primitive::u32; + } + pub mod insta_pool_history { + use super::runtime_types; + pub type InstaPoolHistory = + runtime_types::pallet_broker::types::InstaPoolHistoryRecord< + ::core::primitive::u128, + >; + pub type Param0 = ::core::primitive::u32; + } + pub mod core_count_inbox { + use super::runtime_types; + pub type CoreCountInbox = ::core::primitive::u16; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " The current configuration of this pallet."] + pub fn configuration( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::configuration::Configuration, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Configuration", + vec![], + [ + 235u8, 144u8, 177u8, 6u8, 2u8, 211u8, 0u8, 98u8, 225u8, 133u8, 98u8, + 140u8, 13u8, 117u8, 87u8, 151u8, 42u8, 52u8, 237u8, 170u8, 59u8, 108u8, + 169u8, 254u8, 87u8, 225u8, 64u8, 42u8, 226u8, 214u8, 219u8, 255u8, + ], + ) + } + #[doc = " The Polkadot Core reservations (generally tasked with the maintenance of System Chains)."] + pub fn reservations( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::reservations::Reservations, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Reservations", + vec![], + [ + 181u8, 60u8, 95u8, 87u8, 83u8, 84u8, 101u8, 181u8, 171u8, 223u8, 229u8, + 6u8, 197u8, 87u8, 137u8, 19u8, 132u8, 252u8, 158u8, 51u8, 193u8, 13u8, + 205u8, 24u8, 133u8, 27u8, 53u8, 23u8, 97u8, 160u8, 39u8, 38u8, + ], + ) + } + #[doc = " The Polkadot Core legacy leases."] + pub fn leases( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::leases::Leases, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Leases", + vec![], + [ + 120u8, 85u8, 234u8, 191u8, 14u8, 161u8, 200u8, 43u8, 248u8, 220u8, + 220u8, 183u8, 62u8, 101u8, 32u8, 34u8, 2u8, 157u8, 140u8, 107u8, 114u8, + 168u8, 121u8, 161u8, 113u8, 223u8, 86u8, 183u8, 226u8, 233u8, 2u8, + 250u8, + ], + ) + } + #[doc = " The current status of miscellaneous subsystems of this pallet."] + pub fn status( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::status::Status, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Status", + vec![], + [ + 226u8, 93u8, 147u8, 26u8, 160u8, 235u8, 247u8, 150u8, 187u8, 108u8, + 138u8, 71u8, 227u8, 121u8, 51u8, 106u8, 10u8, 18u8, 58u8, 56u8, 128u8, + 186u8, 93u8, 230u8, 176u8, 248u8, 111u8, 140u8, 148u8, 39u8, 84u8, + 144u8, + ], + ) + } + #[doc = " The details of the current sale, including its properties and status."] + pub fn sale_info( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::sale_info::SaleInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "SaleInfo", + vec![], + [ + 127u8, 255u8, 82u8, 247u8, 241u8, 27u8, 105u8, 176u8, 147u8, 196u8, + 190u8, 63u8, 235u8, 1u8, 165u8, 106u8, 91u8, 165u8, 58u8, 132u8, 100u8, + 94u8, 106u8, 224u8, 16u8, 33u8, 50u8, 120u8, 90u8, 163u8, 108u8, 165u8, + ], + ) + } + #[doc = " Records of allowed renewals."] + pub fn allowed_renewals_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::allowed_renewals::AllowedRenewals, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "AllowedRenewals", + vec![], + [ + 198u8, 33u8, 189u8, 111u8, 176u8, 156u8, 94u8, 163u8, 130u8, 227u8, + 84u8, 165u8, 51u8, 92u8, 103u8, 62u8, 254u8, 102u8, 161u8, 31u8, 228u8, + 88u8, 91u8, 62u8, 155u8, 23u8, 183u8, 246u8, 73u8, 90u8, 151u8, 209u8, + ], + ) + } + #[doc = " Records of allowed renewals."] + pub fn allowed_renewals( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::allowed_renewals::AllowedRenewals, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "AllowedRenewals", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 198u8, 33u8, 189u8, 111u8, 176u8, 156u8, 94u8, 163u8, 130u8, 227u8, + 84u8, 165u8, 51u8, 92u8, 103u8, 62u8, 254u8, 102u8, 161u8, 31u8, 228u8, + 88u8, 91u8, 62u8, 155u8, 23u8, 183u8, 246u8, 73u8, 90u8, 151u8, 209u8, + ], + ) + } + #[doc = " The current (unassigned) Regions."] + pub fn regions_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::regions::Regions, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Regions", + vec![], + [ + 13u8, 138u8, 239u8, 59u8, 188u8, 5u8, 37u8, 111u8, 236u8, 244u8, 11u8, + 46u8, 70u8, 54u8, 140u8, 148u8, 153u8, 181u8, 57u8, 114u8, 27u8, 156u8, + 177u8, 222u8, 211u8, 79u8, 213u8, 252u8, 68u8, 12u8, 150u8, 70u8, + ], + ) + } + #[doc = " The current (unassigned) Regions."] + pub fn regions( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::regions::Regions, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Regions", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 13u8, 138u8, 239u8, 59u8, 188u8, 5u8, 37u8, 111u8, 236u8, 244u8, 11u8, + 46u8, 70u8, 54u8, 140u8, 148u8, 153u8, 181u8, 57u8, 114u8, 27u8, 156u8, + 177u8, 222u8, 211u8, 79u8, 213u8, 252u8, 68u8, 12u8, 150u8, 70u8, + ], + ) + } + #[doc = " The work we plan on having each core do at a particular time in the future."] + pub fn workplan_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::workplan::Workplan, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Workplan", + vec![], + [ + 208u8, 23u8, 159u8, 5u8, 97u8, 15u8, 8u8, 3u8, 120u8, 151u8, 25u8, + 172u8, 99u8, 84u8, 164u8, 151u8, 35u8, 231u8, 194u8, 176u8, 74u8, + 132u8, 110u8, 238u8, 159u8, 197u8, 36u8, 64u8, 54u8, 69u8, 72u8, 163u8, + ], + ) + } + #[doc = " The work we plan on having each core do at a particular time in the future."] + pub fn workplan_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::workplan::Workplan, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Workplan", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 208u8, 23u8, 159u8, 5u8, 97u8, 15u8, 8u8, 3u8, 120u8, 151u8, 25u8, + 172u8, 99u8, 84u8, 164u8, 151u8, 35u8, 231u8, 194u8, 176u8, 74u8, + 132u8, 110u8, 238u8, 159u8, 197u8, 36u8, 64u8, 54u8, 69u8, 72u8, 163u8, + ], + ) + } + #[doc = " The work we plan on having each core do at a particular time in the future."] + pub fn workplan( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::workplan::Workplan, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Workplan", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 208u8, 23u8, 159u8, 5u8, 97u8, 15u8, 8u8, 3u8, 120u8, 151u8, 25u8, + 172u8, 99u8, 84u8, 164u8, 151u8, 35u8, 231u8, 194u8, 176u8, 74u8, + 132u8, 110u8, 238u8, 159u8, 197u8, 36u8, 64u8, 54u8, 69u8, 72u8, 163u8, + ], + ) + } + #[doc = " The current workload of each core. This gets updated with workplan as timeslices pass."] + pub fn workload_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::workload::Workload, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Workload", + vec![], + [ + 45u8, 113u8, 84u8, 213u8, 62u8, 242u8, 79u8, 85u8, 136u8, 4u8, 216u8, + 202u8, 30u8, 188u8, 60u8, 157u8, 245u8, 141u8, 248u8, 95u8, 247u8, + 119u8, 9u8, 235u8, 164u8, 169u8, 68u8, 99u8, 217u8, 131u8, 250u8, + 137u8, + ], + ) + } + #[doc = " The current workload of each core. This gets updated with workplan as timeslices pass."] + pub fn workload( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::workload::Workload, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "Workload", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 45u8, 113u8, 84u8, 213u8, 62u8, 242u8, 79u8, 85u8, 136u8, 4u8, 216u8, + 202u8, 30u8, 188u8, 60u8, 157u8, 245u8, 141u8, 248u8, 95u8, 247u8, + 119u8, 9u8, 235u8, 164u8, 169u8, 68u8, 99u8, 217u8, 131u8, 250u8, + 137u8, + ], + ) + } + #[doc = " Record of a single contribution to the Instantaneous Coretime Pool."] + pub fn insta_pool_contribution_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::insta_pool_contribution::InstaPoolContribution, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "InstaPoolContribution", + vec![], + [ + 225u8, 37u8, 29u8, 149u8, 219u8, 135u8, 224u8, 209u8, 135u8, 209u8, + 121u8, 140u8, 72u8, 231u8, 213u8, 173u8, 125u8, 250u8, 14u8, 41u8, + 65u8, 242u8, 58u8, 65u8, 27u8, 164u8, 32u8, 174u8, 175u8, 253u8, 205u8, + 192u8, + ], + ) + } + #[doc = " Record of a single contribution to the Instantaneous Coretime Pool."] + pub fn insta_pool_contribution( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::insta_pool_contribution::InstaPoolContribution, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "InstaPoolContribution", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 225u8, 37u8, 29u8, 149u8, 219u8, 135u8, 224u8, 209u8, 135u8, 209u8, + 121u8, 140u8, 72u8, 231u8, 213u8, 173u8, 125u8, 250u8, 14u8, 41u8, + 65u8, 242u8, 58u8, 65u8, 27u8, 164u8, 32u8, 174u8, 175u8, 253u8, 205u8, + 192u8, + ], + ) + } + #[doc = " Record of Coretime entering or leaving the Instantaneous Coretime Pool."] + pub fn insta_pool_io_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::insta_pool_io::InstaPoolIo, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "InstaPoolIo", + vec![], + [ + 162u8, 151u8, 195u8, 176u8, 123u8, 253u8, 27u8, 213u8, 21u8, 145u8, + 189u8, 94u8, 166u8, 4u8, 46u8, 24u8, 68u8, 151u8, 16u8, 131u8, 45u8, + 201u8, 54u8, 188u8, 26u8, 164u8, 35u8, 251u8, 78u8, 56u8, 39u8, 141u8, + ], + ) + } + #[doc = " Record of Coretime entering or leaving the Instantaneous Coretime Pool."] + pub fn insta_pool_io( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::insta_pool_io::InstaPoolIo, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "InstaPoolIo", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 162u8, 151u8, 195u8, 176u8, 123u8, 253u8, 27u8, 213u8, 21u8, 145u8, + 189u8, 94u8, 166u8, 4u8, 46u8, 24u8, 68u8, 151u8, 16u8, 131u8, 45u8, + 201u8, 54u8, 188u8, 26u8, 164u8, 35u8, 251u8, 78u8, 56u8, 39u8, 141u8, + ], + ) + } + #[doc = " Total InstaPool rewards for each Timeslice and the number of core parts which contributed."] + pub fn insta_pool_history_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::insta_pool_history::InstaPoolHistory, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "InstaPoolHistory", + vec![], + [ + 126u8, 207u8, 245u8, 55u8, 169u8, 211u8, 138u8, 201u8, 39u8, 31u8, + 176u8, 228u8, 252u8, 247u8, 198u8, 195u8, 134u8, 17u8, 139u8, 200u8, + 58u8, 159u8, 232u8, 213u8, 232u8, 43u8, 30u8, 15u8, 151u8, 236u8, 76u8, + 85u8, + ], + ) + } + #[doc = " Total InstaPool rewards for each Timeslice and the number of core parts which contributed."] + pub fn insta_pool_history( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::insta_pool_history::InstaPoolHistory, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "InstaPoolHistory", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 126u8, 207u8, 245u8, 55u8, 169u8, 211u8, 138u8, 201u8, 39u8, 31u8, + 176u8, 228u8, 252u8, 247u8, 198u8, 195u8, 134u8, 17u8, 139u8, 200u8, + 58u8, 159u8, 232u8, 213u8, 232u8, 43u8, 30u8, 15u8, 151u8, 236u8, 76u8, + 85u8, + ], + ) + } + #[doc = " Received core count change from the relay chain."] + pub fn core_count_inbox( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::core_count_inbox::CoreCountInbox, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Broker", + "CoreCountInbox", + vec![], + [ + 78u8, 33u8, 242u8, 74u8, 188u8, 71u8, 31u8, 182u8, 130u8, 205u8, 58u8, + 165u8, 83u8, 161u8, 140u8, 26u8, 208u8, 233u8, 130u8, 27u8, 170u8, + 220u8, 249u8, 195u8, 200u8, 141u8, 28u8, 20u8, 68u8, 86u8, 23u8, 182u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " Identifier from which the internal Pot is generated."] + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Broker", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + #[doc = " Number of Relay-chain blocks per timeslice."] + pub fn timeslice_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Broker", + "TimeslicePeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum number of legacy leases."] + pub fn max_leased_cores( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Broker", + "MaxLeasedCores", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Maximum number of system cores."] + pub fn max_reserved_cores( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Broker", + "MaxReservedCores", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod tasks_example { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Error` enum of this pallet."] + pub type Error = runtime_types::pallet_example_tasks::pallet::Error; + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod total { + use super::runtime_types; + pub type Total = (::core::primitive::u32, ::core::primitive::u32); + } + pub mod numbers { + use super::runtime_types; + pub type Numbers = ::core::primitive::u32; + pub type Param0 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Some running total."] + pub fn total( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::total::Total, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TasksExample", + "Total", + vec![], + [ + 214u8, 49u8, 61u8, 206u8, 65u8, 12u8, 111u8, 204u8, 233u8, 149u8, 19u8, + 104u8, 76u8, 143u8, 0u8, 248u8, 198u8, 134u8, 241u8, 24u8, 193u8, + 116u8, 245u8, 140u8, 213u8, 62u8, 223u8, 33u8, 157u8, 2u8, 158u8, + 137u8, + ], + ) + } + #[doc = " Numbers to be added into the total."] + pub fn numbers_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::numbers::Numbers, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TasksExample", + "Numbers", + vec![], + [ + 101u8, 75u8, 254u8, 199u8, 29u8, 214u8, 22u8, 185u8, 47u8, 114u8, + 139u8, 30u8, 161u8, 115u8, 90u8, 26u8, 131u8, 182u8, 255u8, 140u8, + 85u8, 138u8, 96u8, 187u8, 168u8, 206u8, 121u8, 162u8, 200u8, 205u8, + 134u8, 173u8, + ], + ) + } + #[doc = " Numbers to be added into the total."] + pub fn numbers( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::numbers::Numbers, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "TasksExample", + "Numbers", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 101u8, 75u8, 254u8, 199u8, 29u8, 214u8, 22u8, 185u8, 47u8, 114u8, + 139u8, 30u8, 161u8, 115u8, 90u8, 26u8, 131u8, 182u8, 255u8, 140u8, + 85u8, 138u8, 96u8, 187u8, 168u8, 206u8, 121u8, 162u8, 200u8, 205u8, + 134u8, 173u8, + ], + ) + } + } + } + } + pub mod mixnet { + use super::root_mod; + use super::runtime_types; + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub type Call = runtime_types::pallet_mixnet::pallet::Call; + pub mod calls { + use super::root_mod; + use super::runtime_types; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "See `Pallet::register`."] + pub struct Register { + pub registration: register::Registration, + pub signature: register::Signature, + } + pub mod register { + use super::runtime_types; + pub type Registration = runtime_types::pallet_mixnet::Registration< + ::core::primitive::u32, + runtime_types::pallet_mixnet::BoundedMixnode< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >, + >; + pub type Signature = runtime_types::sp_mixnet::types::app::Signature; + } + impl ::subxt::blocks::StaticExtrinsic for Register { + const PALLET: &'static str = "Mixnet"; + const CALL: &'static str = "register"; + } + } + pub struct TransactionApi; + impl TransactionApi { + #[doc = "See `Pallet::register`."] + pub fn register( + &self, + registration: types::register::Registration, + signature: types::register::Signature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Mixnet", + "register", + types::Register { + registration, + signature, + }, + [ + 171u8, 152u8, 96u8, 116u8, 46u8, 81u8, 178u8, 56u8, 198u8, 194u8, + 232u8, 75u8, 64u8, 194u8, 167u8, 240u8, 232u8, 200u8, 2u8, 79u8, 130u8, + 138u8, 113u8, 194u8, 110u8, 35u8, 72u8, 240u8, 180u8, 171u8, 163u8, + 95u8, + ], + ) + } + } + } + pub mod storage { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod current_session_index { + use super::runtime_types; + pub type CurrentSessionIndex = ::core::primitive::u32; + } + pub mod current_session_start_block { + use super::runtime_types; + pub type CurrentSessionStartBlock = ::core::primitive::u32; + } + pub mod next_authority_ids { + use super::runtime_types; + pub type NextAuthorityIds = runtime_types::sp_mixnet::types::app::Public; + pub type Param0 = ::core::primitive::u32; + } + pub mod mixnodes { + use super::runtime_types; + pub type Mixnodes = runtime_types::pallet_mixnet::BoundedMixnode< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >; + pub type Param0 = ::core::primitive::u32; + pub type Param1 = ::core::primitive::u32; + } + } + pub struct StorageApi; + impl StorageApi { + #[doc = " Index of the current session. This may be offset relative to the session index tracked by"] + #[doc = " eg `pallet_session`; mixnet session indices are independent."] + pub fn current_session_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::current_session_index::CurrentSessionIndex, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Mixnet", + "CurrentSessionIndex", + vec![], + [ + 250u8, 164u8, 179u8, 84u8, 199u8, 245u8, 116u8, 48u8, 86u8, 127u8, + 50u8, 117u8, 236u8, 41u8, 107u8, 238u8, 151u8, 236u8, 68u8, 78u8, + 152u8, 5u8, 155u8, 107u8, 69u8, 197u8, 222u8, 94u8, 150u8, 2u8, 31u8, + 191u8, + ], + ) + } + #[doc = " Block in which the current session started."] + pub fn current_session_start_block( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::current_session_start_block::CurrentSessionStartBlock, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Mixnet", + "CurrentSessionStartBlock", + vec![], + [ + 172u8, 188u8, 109u8, 205u8, 225u8, 234u8, 121u8, 28u8, 157u8, 38u8, + 141u8, 208u8, 111u8, 93u8, 13u8, 81u8, 1u8, 16u8, 112u8, 176u8, 198u8, + 56u8, 15u8, 114u8, 166u8, 1u8, 38u8, 194u8, 239u8, 223u8, 26u8, 69u8, + ], + ) + } + #[doc = " Authority list for the next session."] + pub fn next_authority_ids_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_authority_ids::NextAuthorityIds, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Mixnet", + "NextAuthorityIds", + vec![], + [ + 64u8, 19u8, 124u8, 203u8, 114u8, 92u8, 233u8, 184u8, 8u8, 5u8, 90u8, + 96u8, 139u8, 72u8, 192u8, 62u8, 17u8, 37u8, 28u8, 215u8, 9u8, 87u8, + 73u8, 185u8, 144u8, 137u8, 93u8, 240u8, 148u8, 223u8, 56u8, 109u8, + ], + ) + } + #[doc = " Authority list for the next session."] + pub fn next_authority_ids( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::next_authority_ids::NextAuthorityIds, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Mixnet", + "NextAuthorityIds", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 64u8, 19u8, 124u8, 203u8, 114u8, 92u8, 233u8, 184u8, 8u8, 5u8, 90u8, + 96u8, 139u8, 72u8, 192u8, 62u8, 17u8, 37u8, 28u8, 215u8, 9u8, 87u8, + 73u8, 185u8, 144u8, 137u8, 93u8, 240u8, 148u8, 223u8, 56u8, 109u8, + ], + ) + } + #[doc = " Mixnode sets by session index. Only the mixnode sets for the previous, current, and next"] + #[doc = " sessions are kept; older sets are discarded."] + #[doc = ""] + #[doc = " The mixnodes in each set are keyed by authority index so we can easily check if an"] + #[doc = " authority has registered a mixnode. The authority indices should only be used during"] + #[doc = " registration; the authority indices for the very first session are made up."] + pub fn mixnodes_iter( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::mixnodes::Mixnodes, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Mixnet", + "Mixnodes", + vec![], + [ + 15u8, 83u8, 236u8, 152u8, 39u8, 116u8, 57u8, 28u8, 20u8, 19u8, 65u8, + 93u8, 18u8, 52u8, 116u8, 202u8, 46u8, 108u8, 143u8, 242u8, 44u8, 103u8, + 71u8, 63u8, 235u8, 10u8, 96u8, 38u8, 109u8, 70u8, 186u8, 149u8, + ], + ) + } + #[doc = " Mixnode sets by session index. Only the mixnode sets for the previous, current, and next"] + #[doc = " sessions are kept; older sets are discarded."] + #[doc = ""] + #[doc = " The mixnodes in each set are keyed by authority index so we can easily check if an"] + #[doc = " authority has registered a mixnode. The authority indices should only be used during"] + #[doc = " registration; the authority indices for the very first session are made up."] + pub fn mixnodes_iter1( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::mixnodes::Mixnodes, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Mixnet", + "Mixnodes", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 15u8, 83u8, 236u8, 152u8, 39u8, 116u8, 57u8, 28u8, 20u8, 19u8, 65u8, + 93u8, 18u8, 52u8, 116u8, 202u8, 46u8, 108u8, 143u8, 242u8, 44u8, 103u8, + 71u8, 63u8, 235u8, 10u8, 96u8, 38u8, 109u8, 70u8, 186u8, 149u8, + ], + ) + } + #[doc = " Mixnode sets by session index. Only the mixnode sets for the previous, current, and next"] + #[doc = " sessions are kept; older sets are discarded."] + #[doc = ""] + #[doc = " The mixnodes in each set are keyed by authority index so we can easily check if an"] + #[doc = " authority has registered a mixnode. The authority indices should only be used during"] + #[doc = " registration; the authority indices for the very first session are made up."] + pub fn mixnodes( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + types::mixnodes::Mixnodes, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Mixnet", + "Mixnodes", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 15u8, 83u8, 236u8, 152u8, 39u8, 116u8, 57u8, 28u8, 20u8, 19u8, 65u8, + 93u8, 18u8, 52u8, 116u8, 202u8, 46u8, 108u8, 143u8, 242u8, 44u8, 103u8, + 71u8, 63u8, 235u8, 10u8, 96u8, 38u8, 109u8, 70u8, 186u8, 149u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum number of authorities per session."] + pub fn max_authorities( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Mixnet", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum size of one of a mixnode's external addresses."] + pub fn max_external_address_size( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Mixnet", + "MaxExternalAddressSize", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The maximum number of external addresses for a mixnode."] + pub fn max_external_addresses_per_mixnode( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Mixnet", + "MaxExternalAddressesPerMixnode", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Length of the first phase of each session (`CoverToCurrent`), in blocks."] + pub fn num_cover_to_current_blocks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Mixnet", + "NumCoverToCurrentBlocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Length of the second phase of each session (`RequestsToCurrent`), in blocks."] + pub fn num_requests_to_current_blocks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Mixnet", + "NumRequestsToCurrentBlocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Length of the third phase of each session (`CoverToPrev`), in blocks."] + pub fn num_cover_to_prev_blocks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Mixnet", + "NumCoverToPrevBlocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The number of \"slack\" blocks at the start of each session, during which"] + #[doc = " [`maybe_register`](Pallet::maybe_register) will not attempt to post registration"] + #[doc = " transactions."] + pub fn num_register_start_slack_blocks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Mixnet", + "NumRegisterStartSlackBlocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " The number of \"slack\" blocks at the end of each session."] + #[doc = " [`maybe_register`](Pallet::maybe_register) will try to register before this slack"] + #[doc = " period, but may post registration transactions during the slack period as a last"] + #[doc = " resort."] + pub fn num_register_end_slack_blocks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Mixnet", + "NumRegisterEndSlackBlocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + #[doc = " Priority of unsigned transactions used to register mixnodes."] + pub fn registration_priority( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Mixnet", + "RegistrationPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + #[doc = " Minimum number of mixnodes. If there are fewer than this many mixnodes registered for a"] + #[doc = " session, the mixnet will not be active during the session."] + pub fn min_mixnodes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Mixnet", + "MinMixnodes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod skip_feeless_payment { + use super::root_mod; + use super::runtime_types; + #[doc = "The `Event` enum of this pallet"] + pub type Event = runtime_types::pallet_skip_feeless_payment::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A transaction fee was skipped."] + pub struct FeeSkipped { + pub who: fee_skipped::Who, + } + pub mod fee_skipped { + use super::runtime_types; + pub type Who = ::subxt::utils::AccountId32; + } + impl ::subxt::events::StaticEvent for FeeSkipped { + const PALLET: &'static str = "SkipFeelessPayment"; + const EVENT: &'static str = "FeeSkipped"; + } + } + } pub mod runtime_types { use super::runtime_types; pub mod bounded_collections { use super::runtime_types; + pub mod bounded_btree_map { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); + } + pub mod bounded_btree_set { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedBTreeSet<_0>(pub ::std::vec::Vec<_0>); + } pub mod bounded_vec { use super::runtime_types; #[derive( @@ -40951,6 +65873,46 @@ pub mod api { pub target_number: _1, } } + pub mod frame_benchmarking_pallet_pov { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::emit_event`]."] + emit_event, + #[codec(index = 1)] + #[doc = "See [`Pallet::noop`]."] + noop, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + TestEvent, + } + } + } pub mod frame_support { use super::runtime_types; pub mod dispatch { @@ -41134,6 +66096,25 @@ pub mod api { use super::runtime_types; pub mod fungible { use super::runtime_types; + pub mod union_of { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum NativeOrWithId<_0> { + #[codec(index = 0)] + Native, + #[codec(index = 1)] + WithId(_0), + } + } #[derive( :: subxt :: ext :: codec :: CompactAs, :: subxt :: ext :: codec :: Decode, @@ -41393,6 +66374,17 @@ pub mod api { remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8>, }, + #[codec(index = 9)] + #[doc = "See [`Pallet::authorize_upgrade`]."] + authorize_upgrade { code_hash: ::subxt::utils::H256 }, + #[codec(index = 10)] + #[doc = "See [`Pallet::authorize_upgrade_without_checks`]."] + authorize_upgrade_without_checks { code_hash: ::subxt::utils::H256 }, + #[codec(index = 11)] + #[doc = "See [`Pallet::apply_authorized_upgrade`]."] + apply_authorized_upgrade { + code: ::std::vec::Vec<::core::primitive::u8>, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -41428,6 +66420,12 @@ pub mod api { #[codec(index = 5)] #[doc = "The origin filter prevent the call to be dispatched."] CallFiltered, + #[codec(index = 6)] + #[doc = "No upgrade authorized."] + NothingAuthorized, + #[codec(index = 7)] + #[doc = "The submitted code is not authorized."] + Unauthorized, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -41471,6 +66469,12 @@ pub mod api { sender: ::subxt::utils::AccountId32, hash: ::subxt::utils::H256, }, + #[codec(index = 6)] + #[doc = "An upgrade was authorized."] + UpgradeAuthorized { + code_hash: ::subxt::utils::H256, + check_version: ::core::primitive::bool, + }, } } #[derive( @@ -41500,6 +66504,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CodeUpgradeAuthorization { + pub code_hash: ::subxt::utils::H256, + pub check_version: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EventRecord<_0, _1> { pub phase: runtime_types::frame_system::Phase, pub event: _0, @@ -41539,6 +66557,1307 @@ pub mod api { Initialization, } } + pub mod kitchensink_runtime { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NposSolution16 { + pub votes1: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes2: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + ( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ), + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes3: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 2usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes4: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 3usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes5: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 4usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes6: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 5usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes7: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 6usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes8: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 7usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes9: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 8usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes10: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 9usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes11: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 10usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes12: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 11usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes13: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 12usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes14: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 13usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes15: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 14usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes16: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 15usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum OriginCaller { + #[codec(index = 0)] + system( + runtime_types::frame_support::dispatch::RawOrigin<::subxt::utils::AccountId32>, + ), + #[codec(index = 17)] + Council(runtime_types::pallet_collective::RawOrigin<::subxt::utils::AccountId32>), + #[codec(index = 18)] + TechnicalCommittee( + runtime_types::pallet_collective::RawOrigin<::subxt::utils::AccountId32>, + ), + #[codec(index = 60)] + AllianceMotion( + runtime_types::pallet_collective::RawOrigin<::subxt::utils::AccountId32>, + ), + #[codec(index = 4)] + Void(runtime_types::sp_core::Void), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ProxyType { + #[codec(index = 0)] + Any, + #[codec(index = 1)] + NonTransfer, + #[codec(index = 2)] + Governance, + #[codec(index = 3)] + Staking, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Runtime; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeCall { + #[codec(index = 0)] + System(runtime_types::frame_system::pallet::Call), + #[codec(index = 1)] + Utility(runtime_types::pallet_utility::pallet::Call), + #[codec(index = 2)] + Babe(runtime_types::pallet_babe::pallet::Call), + #[codec(index = 3)] + Timestamp(runtime_types::pallet_timestamp::pallet::Call), + #[codec(index = 5)] + Indices(runtime_types::pallet_indices::pallet::Call), + #[codec(index = 6)] + Balances(runtime_types::pallet_balances::pallet::Call), + #[codec(index = 10)] + ElectionProviderMultiPhase( + runtime_types::pallet_election_provider_multi_phase::pallet::Call, + ), + #[codec(index = 11)] + Staking(runtime_types::pallet_staking::pallet::pallet::Call), + #[codec(index = 12)] + Beefy(runtime_types::pallet_beefy::pallet::Call), + #[codec(index = 15)] + Session(runtime_types::pallet_session::pallet::Call), + #[codec(index = 16)] + Democracy(runtime_types::pallet_democracy::pallet::Call), + #[codec(index = 17)] + Council(runtime_types::pallet_collective::pallet::Call), + #[codec(index = 18)] + TechnicalCommittee(runtime_types::pallet_collective::pallet::Call2), + #[codec(index = 19)] + Elections(runtime_types::pallet_elections_phragmen::pallet::Call), + #[codec(index = 20)] + TechnicalMembership(runtime_types::pallet_membership::pallet::Call), + #[codec(index = 21)] + Grandpa(runtime_types::pallet_grandpa::pallet::Call), + #[codec(index = 22)] + Treasury(runtime_types::pallet_treasury::pallet::Call), + #[codec(index = 23)] + AssetRate(runtime_types::pallet_asset_rate::pallet::Call), + #[codec(index = 24)] + Contracts(runtime_types::pallet_contracts::pallet::Call), + #[codec(index = 25)] + Sudo(runtime_types::pallet_sudo::pallet::Call), + #[codec(index = 26)] + ImOnline(runtime_types::pallet_im_online::pallet::Call), + #[codec(index = 31)] + Identity(runtime_types::pallet_identity::pallet::Call), + #[codec(index = 32)] + Society(runtime_types::pallet_society::pallet::Call), + #[codec(index = 33)] + Recovery(runtime_types::pallet_recovery::pallet::Call), + #[codec(index = 34)] + Vesting(runtime_types::pallet_vesting::pallet::Call), + #[codec(index = 35)] + Scheduler(runtime_types::pallet_scheduler::pallet::Call), + #[codec(index = 36)] + Glutton(runtime_types::pallet_glutton::pallet::Call), + #[codec(index = 37)] + Preimage(runtime_types::pallet_preimage::pallet::Call), + #[codec(index = 38)] + Proxy(runtime_types::pallet_proxy::pallet::Call), + #[codec(index = 39)] + Multisig(runtime_types::pallet_multisig::pallet::Call), + #[codec(index = 40)] + Bounties(runtime_types::pallet_bounties::pallet::Call), + #[codec(index = 41)] + Tips(runtime_types::pallet_tips::pallet::Call), + #[codec(index = 42)] + Assets(runtime_types::pallet_assets::pallet::Call), + #[codec(index = 43)] + PoolAssets(runtime_types::pallet_assets::pallet::Call2), + #[codec(index = 44)] + Lottery(runtime_types::pallet_lottery::pallet::Call), + #[codec(index = 45)] + Nis(runtime_types::pallet_nis::pallet::Call), + #[codec(index = 46)] + Uniques(runtime_types::pallet_uniques::pallet::Call), + #[codec(index = 47)] + Nfts(runtime_types::pallet_nfts::pallet::Call), + #[codec(index = 48)] + NftFractionalization(runtime_types::pallet_nft_fractionalization::pallet::Call), + #[codec(index = 49)] + Salary(runtime_types::pallet_salary::pallet::Call), + #[codec(index = 50)] + CoreFellowship(runtime_types::pallet_core_fellowship::pallet::Call), + #[codec(index = 51)] + TransactionStorage(runtime_types::pallet_transaction_storage::pallet::Call), + #[codec(index = 52)] + VoterList(runtime_types::pallet_bags_list::pallet::Call), + #[codec(index = 53)] + StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Call), + #[codec(index = 54)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Call), + #[codec(index = 55)] + Referenda(runtime_types::pallet_referenda::pallet::Call), + #[codec(index = 56)] + Remark(runtime_types::pallet_remark::pallet::Call), + #[codec(index = 57)] + RootTesting(runtime_types::pallet_root_testing::pallet::Call), + #[codec(index = 58)] + ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Call), + #[codec(index = 59)] + Whitelist(runtime_types::pallet_whitelist::pallet::Call), + #[codec(index = 60)] + AllianceMotion(runtime_types::pallet_collective::pallet::Call3), + #[codec(index = 61)] + Alliance(runtime_types::pallet_alliance::pallet::Call), + #[codec(index = 62)] + NominationPools(runtime_types::pallet_nomination_pools::pallet::Call), + #[codec(index = 63)] + RankedPolls(runtime_types::pallet_referenda::pallet::Call2), + #[codec(index = 64)] + RankedCollective(runtime_types::pallet_ranked_collective::pallet::Call), + #[codec(index = 65)] + AssetConversion(runtime_types::pallet_asset_conversion::pallet::Call), + #[codec(index = 66)] + FastUnstake(runtime_types::pallet_fast_unstake::pallet::Call), + #[codec(index = 67)] + MessageQueue(runtime_types::pallet_message_queue::pallet::Call), + #[codec(index = 68)] + Pov(runtime_types::frame_benchmarking_pallet_pov::pallet::Call), + #[codec(index = 69)] + TxPause(runtime_types::pallet_tx_pause::pallet::Call), + #[codec(index = 70)] + SafeMode(runtime_types::pallet_safe_mode::pallet::Call), + #[codec(index = 72)] + Broker(runtime_types::pallet_broker::pallet::Call), + #[codec(index = 74)] + Mixnet(runtime_types::pallet_mixnet::pallet::Call), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeError { + #[codec(index = 0)] + System(runtime_types::frame_system::pallet::Error), + #[codec(index = 1)] + Utility(runtime_types::pallet_utility::pallet::Error), + #[codec(index = 2)] + Babe(runtime_types::pallet_babe::pallet::Error), + #[codec(index = 5)] + Indices(runtime_types::pallet_indices::pallet::Error), + #[codec(index = 6)] + Balances(runtime_types::pallet_balances::pallet::Error), + #[codec(index = 10)] + ElectionProviderMultiPhase( + runtime_types::pallet_election_provider_multi_phase::pallet::Error, + ), + #[codec(index = 11)] + Staking(runtime_types::pallet_staking::pallet::pallet::Error), + #[codec(index = 12)] + Beefy(runtime_types::pallet_beefy::pallet::Error), + #[codec(index = 15)] + Session(runtime_types::pallet_session::pallet::Error), + #[codec(index = 16)] + Democracy(runtime_types::pallet_democracy::pallet::Error), + #[codec(index = 17)] + Council(runtime_types::pallet_collective::pallet::Error), + #[codec(index = 18)] + TechnicalCommittee(runtime_types::pallet_collective::pallet::Error2), + #[codec(index = 19)] + Elections(runtime_types::pallet_elections_phragmen::pallet::Error), + #[codec(index = 20)] + TechnicalMembership(runtime_types::pallet_membership::pallet::Error), + #[codec(index = 21)] + Grandpa(runtime_types::pallet_grandpa::pallet::Error), + #[codec(index = 22)] + Treasury(runtime_types::pallet_treasury::pallet::Error), + #[codec(index = 23)] + AssetRate(runtime_types::pallet_asset_rate::pallet::Error), + #[codec(index = 24)] + Contracts(runtime_types::pallet_contracts::pallet::Error), + #[codec(index = 25)] + Sudo(runtime_types::pallet_sudo::pallet::Error), + #[codec(index = 26)] + ImOnline(runtime_types::pallet_im_online::pallet::Error), + #[codec(index = 31)] + Identity(runtime_types::pallet_identity::pallet::Error), + #[codec(index = 32)] + Society(runtime_types::pallet_society::pallet::Error), + #[codec(index = 33)] + Recovery(runtime_types::pallet_recovery::pallet::Error), + #[codec(index = 34)] + Vesting(runtime_types::pallet_vesting::pallet::Error), + #[codec(index = 35)] + Scheduler(runtime_types::pallet_scheduler::pallet::Error), + #[codec(index = 36)] + Glutton(runtime_types::pallet_glutton::pallet::Error), + #[codec(index = 37)] + Preimage(runtime_types::pallet_preimage::pallet::Error), + #[codec(index = 38)] + Proxy(runtime_types::pallet_proxy::pallet::Error), + #[codec(index = 39)] + Multisig(runtime_types::pallet_multisig::pallet::Error), + #[codec(index = 40)] + Bounties(runtime_types::pallet_bounties::pallet::Error), + #[codec(index = 41)] + Tips(runtime_types::pallet_tips::pallet::Error), + #[codec(index = 42)] + Assets(runtime_types::pallet_assets::pallet::Error), + #[codec(index = 43)] + PoolAssets(runtime_types::pallet_assets::pallet::Error2), + #[codec(index = 44)] + Lottery(runtime_types::pallet_lottery::pallet::Error), + #[codec(index = 45)] + Nis(runtime_types::pallet_nis::pallet::Error), + #[codec(index = 46)] + Uniques(runtime_types::pallet_uniques::pallet::Error), + #[codec(index = 47)] + Nfts(runtime_types::pallet_nfts::pallet::Error), + #[codec(index = 48)] + NftFractionalization(runtime_types::pallet_nft_fractionalization::pallet::Error), + #[codec(index = 49)] + Salary(runtime_types::pallet_salary::pallet::Error), + #[codec(index = 50)] + CoreFellowship(runtime_types::pallet_core_fellowship::pallet::Error), + #[codec(index = 51)] + TransactionStorage(runtime_types::pallet_transaction_storage::pallet::Error), + #[codec(index = 52)] + VoterList(runtime_types::pallet_bags_list::pallet::Error), + #[codec(index = 53)] + StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Error), + #[codec(index = 54)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Error), + #[codec(index = 55)] + Referenda(runtime_types::pallet_referenda::pallet::Error), + #[codec(index = 56)] + Remark(runtime_types::pallet_remark::pallet::Error), + #[codec(index = 58)] + ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Error), + #[codec(index = 59)] + Whitelist(runtime_types::pallet_whitelist::pallet::Error), + #[codec(index = 60)] + AllianceMotion(runtime_types::pallet_collective::pallet::Error3), + #[codec(index = 61)] + Alliance(runtime_types::pallet_alliance::pallet::Error), + #[codec(index = 62)] + NominationPools(runtime_types::pallet_nomination_pools::pallet::Error), + #[codec(index = 63)] + RankedPolls(runtime_types::pallet_referenda::pallet::Error2), + #[codec(index = 64)] + RankedCollective(runtime_types::pallet_ranked_collective::pallet::Error), + #[codec(index = 65)] + AssetConversion(runtime_types::pallet_asset_conversion::pallet::Error), + #[codec(index = 66)] + FastUnstake(runtime_types::pallet_fast_unstake::pallet::Error), + #[codec(index = 67)] + MessageQueue(runtime_types::pallet_message_queue::pallet::Error), + #[codec(index = 69)] + TxPause(runtime_types::pallet_tx_pause::pallet::Error), + #[codec(index = 70)] + SafeMode(runtime_types::pallet_safe_mode::pallet::Error), + #[codec(index = 72)] + Broker(runtime_types::pallet_broker::pallet::Error), + #[codec(index = 73)] + TasksExample(runtime_types::pallet_example_tasks::pallet::Error), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeEvent { + #[codec(index = 0)] + System(runtime_types::frame_system::pallet::Event), + #[codec(index = 1)] + Utility(runtime_types::pallet_utility::pallet::Event), + #[codec(index = 5)] + Indices(runtime_types::pallet_indices::pallet::Event), + #[codec(index = 6)] + Balances(runtime_types::pallet_balances::pallet::Event), + #[codec(index = 7)] + TransactionPayment(runtime_types::pallet_transaction_payment::pallet::Event), + #[codec(index = 8)] + AssetTxPayment(runtime_types::pallet_asset_tx_payment::pallet::Event), + #[codec(index = 9)] + AssetConversionTxPayment( + runtime_types::pallet_asset_conversion_tx_payment::pallet::Event, + ), + #[codec(index = 10)] + ElectionProviderMultiPhase( + runtime_types::pallet_election_provider_multi_phase::pallet::Event, + ), + #[codec(index = 11)] + Staking(runtime_types::pallet_staking::pallet::pallet::Event), + #[codec(index = 15)] + Session(runtime_types::pallet_session::pallet::Event), + #[codec(index = 16)] + Democracy(runtime_types::pallet_democracy::pallet::Event), + #[codec(index = 17)] + Council(runtime_types::pallet_collective::pallet::Event), + #[codec(index = 18)] + TechnicalCommittee(runtime_types::pallet_collective::pallet::Event2), + #[codec(index = 19)] + Elections(runtime_types::pallet_elections_phragmen::pallet::Event), + #[codec(index = 20)] + TechnicalMembership(runtime_types::pallet_membership::pallet::Event), + #[codec(index = 21)] + Grandpa(runtime_types::pallet_grandpa::pallet::Event), + #[codec(index = 22)] + Treasury(runtime_types::pallet_treasury::pallet::Event), + #[codec(index = 23)] + AssetRate(runtime_types::pallet_asset_rate::pallet::Event), + #[codec(index = 24)] + Contracts(runtime_types::pallet_contracts::pallet::Event), + #[codec(index = 25)] + Sudo(runtime_types::pallet_sudo::pallet::Event), + #[codec(index = 26)] + ImOnline(runtime_types::pallet_im_online::pallet::Event), + #[codec(index = 28)] + Offences(runtime_types::pallet_offences::pallet::Event), + #[codec(index = 31)] + Identity(runtime_types::pallet_identity::pallet::Event), + #[codec(index = 32)] + Society(runtime_types::pallet_society::pallet::Event), + #[codec(index = 33)] + Recovery(runtime_types::pallet_recovery::pallet::Event), + #[codec(index = 34)] + Vesting(runtime_types::pallet_vesting::pallet::Event), + #[codec(index = 35)] + Scheduler(runtime_types::pallet_scheduler::pallet::Event), + #[codec(index = 36)] + Glutton(runtime_types::pallet_glutton::pallet::Event), + #[codec(index = 37)] + Preimage(runtime_types::pallet_preimage::pallet::Event), + #[codec(index = 38)] + Proxy(runtime_types::pallet_proxy::pallet::Event), + #[codec(index = 39)] + Multisig(runtime_types::pallet_multisig::pallet::Event), + #[codec(index = 40)] + Bounties(runtime_types::pallet_bounties::pallet::Event), + #[codec(index = 41)] + Tips(runtime_types::pallet_tips::pallet::Event), + #[codec(index = 42)] + Assets(runtime_types::pallet_assets::pallet::Event), + #[codec(index = 43)] + PoolAssets(runtime_types::pallet_assets::pallet::Event2), + #[codec(index = 44)] + Lottery(runtime_types::pallet_lottery::pallet::Event), + #[codec(index = 45)] + Nis(runtime_types::pallet_nis::pallet::Event), + #[codec(index = 46)] + Uniques(runtime_types::pallet_uniques::pallet::Event), + #[codec(index = 47)] + Nfts(runtime_types::pallet_nfts::pallet::Event), + #[codec(index = 48)] + NftFractionalization(runtime_types::pallet_nft_fractionalization::pallet::Event), + #[codec(index = 49)] + Salary(runtime_types::pallet_salary::pallet::Event), + #[codec(index = 50)] + CoreFellowship(runtime_types::pallet_core_fellowship::pallet::Event), + #[codec(index = 51)] + TransactionStorage(runtime_types::pallet_transaction_storage::pallet::Event), + #[codec(index = 52)] + VoterList(runtime_types::pallet_bags_list::pallet::Event), + #[codec(index = 53)] + StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Event), + #[codec(index = 54)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Event), + #[codec(index = 55)] + Referenda(runtime_types::pallet_referenda::pallet::Event), + #[codec(index = 56)] + Remark(runtime_types::pallet_remark::pallet::Event), + #[codec(index = 57)] + RootTesting(runtime_types::pallet_root_testing::pallet::Event), + #[codec(index = 58)] + ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Event), + #[codec(index = 59)] + Whitelist(runtime_types::pallet_whitelist::pallet::Event), + #[codec(index = 60)] + AllianceMotion(runtime_types::pallet_collective::pallet::Event3), + #[codec(index = 61)] + Alliance(runtime_types::pallet_alliance::pallet::Event), + #[codec(index = 62)] + NominationPools(runtime_types::pallet_nomination_pools::pallet::Event), + #[codec(index = 63)] + RankedPolls(runtime_types::pallet_referenda::pallet::Event2), + #[codec(index = 64)] + RankedCollective(runtime_types::pallet_ranked_collective::pallet::Event), + #[codec(index = 65)] + AssetConversion(runtime_types::pallet_asset_conversion::pallet::Event), + #[codec(index = 66)] + FastUnstake(runtime_types::pallet_fast_unstake::pallet::Event), + #[codec(index = 67)] + MessageQueue(runtime_types::pallet_message_queue::pallet::Event), + #[codec(index = 68)] + Pov(runtime_types::frame_benchmarking_pallet_pov::pallet::Event), + #[codec(index = 69)] + TxPause(runtime_types::pallet_tx_pause::pallet::Event), + #[codec(index = 70)] + SafeMode(runtime_types::pallet_safe_mode::pallet::Event), + #[codec(index = 71)] + Statement(runtime_types::pallet_statement::pallet::Event), + #[codec(index = 72)] + Broker(runtime_types::pallet_broker::pallet::Event), + #[codec(index = 75)] + SkipFeelessPayment(runtime_types::pallet_skip_feeless_payment::pallet::Event), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeFreezeReason { + #[codec(index = 62)] + NominationPools(runtime_types::pallet_nomination_pools::pallet::FreezeReason), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeHoldReason { + #[codec(index = 24)] + Contracts(runtime_types::pallet_contracts::pallet::HoldReason), + #[codec(index = 37)] + Preimage(runtime_types::pallet_preimage::pallet::HoldReason), + #[codec(index = 45)] + Nis(runtime_types::pallet_nis::pallet::HoldReason), + #[codec(index = 48)] + NftFractionalization( + runtime_types::pallet_nft_fractionalization::pallet::HoldReason, + ), + #[codec(index = 51)] + TransactionStorage(runtime_types::pallet_transaction_storage::pallet::HoldReason), + #[codec(index = 53)] + StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::HoldReason), + #[codec(index = 70)] + SafeMode(runtime_types::pallet_safe_mode::pallet::HoldReason), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SessionKeys { + pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, + pub babe: runtime_types::sp_consensus_babe::app::Public, + pub im_online: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, + pub mixnet: runtime_types::sp_mixnet::types::app::Public, + pub beefy: runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, + } + } + pub mod pallet_alliance { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::propose`]."] + propose { + #[codec(compact)] + threshold: ::core::primitive::u32, + proposal: + ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::vote`]."] + vote { + proposal: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + approve: ::core::primitive::bool, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::init_members`]."] + init_members { + fellows: ::std::vec::Vec<::subxt::utils::AccountId32>, + allies: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::disband`]."] + disband { + witness: runtime_types::pallet_alliance::types::DisbandWitness, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::set_rule`]."] + set_rule { + rule: runtime_types::pallet_alliance::types::Cid, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::announce`]."] + announce { + announcement: runtime_types::pallet_alliance::types::Cid, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::remove_announcement`]."] + remove_announcement { + announcement: runtime_types::pallet_alliance::types::Cid, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::join_alliance`]."] + join_alliance, + #[codec(index = 9)] + #[doc = "See [`Pallet::nominate_ally`]."] + nominate_ally { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 10)] + #[doc = "See [`Pallet::elevate_ally`]."] + elevate_ally { + ally: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 11)] + #[doc = "See [`Pallet::give_retirement_notice`]."] + give_retirement_notice, + #[codec(index = 12)] + #[doc = "See [`Pallet::retire`]."] + retire, + #[codec(index = 13)] + #[doc = "See [`Pallet::kick_member`]."] + kick_member { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 14)] + #[doc = "See [`Pallet::add_unscrupulous_items`]."] + add_unscrupulous_items { + items: ::std::vec::Vec< + runtime_types::pallet_alliance::UnscrupulousItem< + ::subxt::utils::AccountId32, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::remove_unscrupulous_items`]."] + remove_unscrupulous_items { + items: ::std::vec::Vec< + runtime_types::pallet_alliance::UnscrupulousItem< + ::subxt::utils::AccountId32, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::close`]."] + close { + proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 17)] + #[doc = "See [`Pallet::abdicate_fellow_status`]."] + abdicate_fellow_status, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The Alliance has not been initialized yet, therefore accounts cannot join it."] + AllianceNotYetInitialized, + #[codec(index = 1)] + #[doc = "The Alliance has been initialized, therefore cannot be initialized again."] + AllianceAlreadyInitialized, + #[codec(index = 2)] + #[doc = "Account is already a member."] + AlreadyMember, + #[codec(index = 3)] + #[doc = "Account is not a member."] + NotMember, + #[codec(index = 4)] + #[doc = "Account is not an ally."] + NotAlly, + #[codec(index = 5)] + #[doc = "Account does not have voting rights."] + NoVotingRights, + #[codec(index = 6)] + #[doc = "Account is already an elevated (fellow) member."] + AlreadyElevated, + #[codec(index = 7)] + #[doc = "Item is already listed as unscrupulous."] + AlreadyUnscrupulous, + #[codec(index = 8)] + #[doc = "Account has been deemed unscrupulous by the Alliance and is not welcome to join or be"] + #[doc = "nominated."] + AccountNonGrata, + #[codec(index = 9)] + #[doc = "Item has not been deemed unscrupulous."] + NotListedAsUnscrupulous, + #[codec(index = 10)] + #[doc = "The number of unscrupulous items exceeds `MaxUnscrupulousItems`."] + TooManyUnscrupulousItems, + #[codec(index = 11)] + #[doc = "Length of website URL exceeds `MaxWebsiteUrlLength`."] + TooLongWebsiteUrl, + #[codec(index = 12)] + #[doc = "Balance is insufficient for the required deposit."] + InsufficientFunds, + #[codec(index = 13)] + #[doc = "The account's identity does not have display field and website field."] + WithoutRequiredIdentityFields, + #[codec(index = 14)] + #[doc = "The account's identity has no good judgement."] + WithoutGoodIdentityJudgement, + #[codec(index = 15)] + #[doc = "The proposal hash is not found."] + MissingProposalHash, + #[codec(index = 16)] + #[doc = "The announcement is not found."] + MissingAnnouncement, + #[codec(index = 17)] + #[doc = "Number of members exceeds `MaxMembersCount`."] + TooManyMembers, + #[codec(index = 18)] + #[doc = "Number of announcements exceeds `MaxAnnouncementsCount`."] + TooManyAnnouncements, + #[codec(index = 19)] + #[doc = "Invalid witness data given."] + BadWitness, + #[codec(index = 20)] + #[doc = "Account already gave retirement notice"] + AlreadyRetiring, + #[codec(index = 21)] + #[doc = "Account did not give a retirement notice required to retire."] + RetirementNoticeNotGiven, + #[codec(index = 22)] + #[doc = "Retirement period has not passed."] + RetirementPeriodNotPassed, + #[codec(index = 23)] + #[doc = "Fellows must be provided to initialize the Alliance."] + FellowsMissing, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A new rule has been set."] + NewRuleSet { + rule: runtime_types::pallet_alliance::types::Cid, + }, + #[codec(index = 1)] + #[doc = "A new announcement has been proposed."] + Announced { + announcement: runtime_types::pallet_alliance::types::Cid, + }, + #[codec(index = 2)] + #[doc = "An on-chain announcement has been removed."] + AnnouncementRemoved { + announcement: runtime_types::pallet_alliance::types::Cid, + }, + #[codec(index = 3)] + #[doc = "Some accounts have been initialized as members (fellows/allies)."] + MembersInitialized { + fellows: ::std::vec::Vec<::subxt::utils::AccountId32>, + allies: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 4)] + #[doc = "An account has been added as an Ally and reserved its deposit."] + NewAllyJoined { + ally: ::subxt::utils::AccountId32, + nominator: ::core::option::Option<::subxt::utils::AccountId32>, + reserved: ::core::option::Option<::core::primitive::u128>, + }, + #[codec(index = 5)] + #[doc = "An ally has been elevated to Fellow."] + AllyElevated { ally: ::subxt::utils::AccountId32 }, + #[codec(index = 6)] + #[doc = "A member gave retirement notice and their retirement period started."] + MemberRetirementPeriodStarted { member: ::subxt::utils::AccountId32 }, + #[codec(index = 7)] + #[doc = "A member has retired with its deposit unreserved."] + MemberRetired { + member: ::subxt::utils::AccountId32, + unreserved: ::core::option::Option<::core::primitive::u128>, + }, + #[codec(index = 8)] + #[doc = "A member has been kicked out with its deposit slashed."] + MemberKicked { + member: ::subxt::utils::AccountId32, + slashed: ::core::option::Option<::core::primitive::u128>, + }, + #[codec(index = 9)] + #[doc = "Accounts or websites have been added into the list of unscrupulous items."] + UnscrupulousItemAdded { + items: ::std::vec::Vec< + runtime_types::pallet_alliance::UnscrupulousItem< + ::subxt::utils::AccountId32, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >, + }, + #[codec(index = 10)] + #[doc = "Accounts or websites have been removed from the list of unscrupulous items."] + UnscrupulousItemRemoved { + items: ::std::vec::Vec< + runtime_types::pallet_alliance::UnscrupulousItem< + ::subxt::utils::AccountId32, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >, + }, + #[codec(index = 11)] + #[doc = "Alliance disbanded. Includes number deleted members and unreserved deposits."] + AllianceDisbanded { + fellow_members: ::core::primitive::u32, + ally_members: ::core::primitive::u32, + unreserved: ::core::primitive::u32, + }, + #[codec(index = 12)] + #[doc = "A Fellow abdicated their voting rights. They are now an Ally."] + FellowAbdicated { fellow: ::subxt::utils::AccountId32 }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Cid { + pub version: runtime_types::pallet_alliance::types::Version, + pub codec: ::core::primitive::u64, + pub hash: runtime_types::pallet_alliance::types::Multihash, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DisbandWitness { + #[codec(compact)] + pub fellow_members: ::core::primitive::u32, + #[codec(compact)] + pub ally_members: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Multihash { + pub code: ::core::primitive::u64, + pub digest: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Version { + #[codec(index = 0)] + V0, + #[codec(index = 1)] + V1, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MemberRole { + #[codec(index = 0)] + Fellow, + #[codec(index = 1)] + Ally, + #[codec(index = 2)] + Retiring, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum UnscrupulousItem<_0, _1> { + #[codec(index = 0)] + AccountId(_0), + #[codec(index = 1)] + Website(_1), + } + } + pub mod pallet_asset_conversion { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Pallet's callable functions."] + pub enum Call { + # [codec (index = 0)] # [doc = "See [`Pallet::create_pool`]."] create_pool { asset1 : :: std :: boxed :: Box < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > , asset2 : :: std :: boxed :: Box < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > , } , # [codec (index = 1)] # [doc = "See [`Pallet::add_liquidity`]."] add_liquidity { asset1 : :: std :: boxed :: Box < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > , asset2 : :: std :: boxed :: Box < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > , amount1_desired : :: core :: primitive :: u128 , amount2_desired : :: core :: primitive :: u128 , amount1_min : :: core :: primitive :: u128 , amount2_min : :: core :: primitive :: u128 , mint_to : :: subxt :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "See [`Pallet::remove_liquidity`]."] remove_liquidity { asset1 : :: std :: boxed :: Box < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > , asset2 : :: std :: boxed :: Box < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > , lp_token_burn : :: core :: primitive :: u128 , amount1_min_receive : :: core :: primitive :: u128 , amount2_min_receive : :: core :: primitive :: u128 , withdraw_to : :: subxt :: utils :: AccountId32 , } , # [codec (index = 3)] # [doc = "See [`Pallet::swap_exact_tokens_for_tokens`]."] swap_exact_tokens_for_tokens { path : :: std :: boxed :: Box < :: std :: vec :: Vec < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > > , amount_in : :: core :: primitive :: u128 , amount_out_min : :: core :: primitive :: u128 , send_to : :: subxt :: utils :: AccountId32 , keep_alive : :: core :: primitive :: bool , } , # [codec (index = 4)] # [doc = "See [`Pallet::swap_tokens_for_exact_tokens`]."] swap_tokens_for_exact_tokens { path : :: std :: boxed :: Box < :: std :: vec :: Vec < runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > > > , amount_out : :: core :: primitive :: u128 , amount_in_max : :: core :: primitive :: u128 , send_to : :: subxt :: utils :: AccountId32 , keep_alive : :: core :: primitive :: bool , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Provided asset pair is not supported for pool."] + InvalidAssetPair, + #[codec(index = 1)] + #[doc = "Pool already exists."] + PoolExists, + #[codec(index = 2)] + #[doc = "Desired amount can't be zero."] + WrongDesiredAmount, + #[codec(index = 3)] + #[doc = "Provided amount should be greater than or equal to the existential deposit/asset's"] + #[doc = "minimal amount."] + AmountOneLessThanMinimal, + #[codec(index = 4)] + #[doc = "Provided amount should be greater than or equal to the existential deposit/asset's"] + #[doc = "minimal amount."] + AmountTwoLessThanMinimal, + #[codec(index = 5)] + #[doc = "Reserve needs to always be greater than or equal to the existential deposit/asset's"] + #[doc = "minimal amount."] + ReserveLeftLessThanMinimal, + #[codec(index = 6)] + #[doc = "Desired amount can't be equal to the pool reserve."] + AmountOutTooHigh, + #[codec(index = 7)] + #[doc = "The pool doesn't exist."] + PoolNotFound, + #[codec(index = 8)] + #[doc = "An overflow happened."] + Overflow, + #[codec(index = 9)] + #[doc = "The minimal amount requirement for the first token in the pair wasn't met."] + AssetOneDepositDidNotMeetMinimum, + #[codec(index = 10)] + #[doc = "The minimal amount requirement for the second token in the pair wasn't met."] + AssetTwoDepositDidNotMeetMinimum, + #[codec(index = 11)] + #[doc = "The minimal amount requirement for the first token in the pair wasn't met."] + AssetOneWithdrawalDidNotMeetMinimum, + #[codec(index = 12)] + #[doc = "The minimal amount requirement for the second token in the pair wasn't met."] + AssetTwoWithdrawalDidNotMeetMinimum, + #[codec(index = 13)] + #[doc = "Optimal calculated amount is less than desired."] + OptimalAmountLessThanDesired, + #[codec(index = 14)] + #[doc = "Insufficient liquidity minted."] + InsufficientLiquidityMinted, + #[codec(index = 15)] + #[doc = "Requested liquidity can't be zero."] + ZeroLiquidity, + #[codec(index = 16)] + #[doc = "Amount can't be zero."] + ZeroAmount, + #[codec(index = 17)] + #[doc = "Calculated amount out is less than provided minimum amount."] + ProvidedMinimumNotSufficientForSwap, + #[codec(index = 18)] + #[doc = "Provided maximum amount is not sufficient for swap."] + ProvidedMaximumNotSufficientForSwap, + #[codec(index = 19)] + #[doc = "The provided path must consists of 2 assets at least."] + InvalidPath, + #[codec(index = 20)] + #[doc = "The provided path must consists of unique assets."] + NonUniquePath, + #[codec(index = 21)] + #[doc = "It was not possible to get or increment the Id of the pool."] + IncorrectPoolAssetId, + #[codec(index = 22)] + #[doc = "The destination account cannot exist with the swapped funds."] + BelowMinimum, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + # [codec (index = 0)] # [doc = "A successful call of the `CretaPool` extrinsic will create this event."] PoolCreated { creator : :: subxt :: utils :: AccountId32 , pool_id : (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ,) , pool_account : :: subxt :: utils :: AccountId32 , lp_token : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "A successful call of the `AddLiquidity` extrinsic will create this event."] LiquidityAdded { who : :: subxt :: utils :: AccountId32 , mint_to : :: subxt :: utils :: AccountId32 , pool_id : (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ,) , amount1_provided : :: core :: primitive :: u128 , amount2_provided : :: core :: primitive :: u128 , lp_token : :: core :: primitive :: u32 , lp_token_minted : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A successful call of the `RemoveLiquidity` extrinsic will create this event."] LiquidityRemoved { who : :: subxt :: utils :: AccountId32 , withdraw_to : :: subxt :: utils :: AccountId32 , pool_id : (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > ,) , amount1 : :: core :: primitive :: u128 , amount2 : :: core :: primitive :: u128 , lp_token : :: core :: primitive :: u32 , lp_token_burned : :: core :: primitive :: u128 , withdrawal_fee : runtime_types :: sp_arithmetic :: per_things :: Permill , } , # [codec (index = 3)] # [doc = "Assets have been converted from one to another. Both `SwapExactTokenForToken`"] # [doc = "and `SwapTokenForExactToken` will generate this event."] SwapExecuted { who : :: subxt :: utils :: AccountId32 , send_to : :: subxt :: utils :: AccountId32 , amount_in : :: core :: primitive :: u128 , amount_out : :: core :: primitive :: u128 , path : :: std :: vec :: Vec < (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , :: core :: primitive :: u128 ,) > , } , # [codec (index = 4)] # [doc = "Assets have been converted from one to another."] SwapCreditExecuted { amount_in : :: core :: primitive :: u128 , amount_out : :: core :: primitive :: u128 , path : :: std :: vec :: Vec < (runtime_types :: frame_support :: traits :: tokens :: fungible :: union_of :: NativeOrWithId < :: core :: primitive :: u32 > , :: core :: primitive :: u128 ,) > , } , } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolInfo<_0> { + pub lp_token: _0, + } + } + } + pub mod pallet_asset_conversion_tx_payment { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] + #[doc = "has been paid by `who` in an asset `asset_id`."] + AssetTxFeePaid { + who: ::subxt::utils::AccountId32, + actual_fee: ::core::primitive::u128, + tip: ::core::primitive::u128, + asset_id: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A swap of the refund in native currency back to asset failed."] + AssetRefundFailed { + native_amount_kept: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChargeAssetTxPayment { + #[codec(compact)] + pub tip: ::core::primitive::u128, + pub asset_id: ::core::option::Option<::core::primitive::u32>, + } + } pub mod pallet_asset_rate { use super::runtime_types; pub mod pallet { @@ -41558,25 +67877,19 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::create`]."] create { - asset_kind: ::std::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - >, + asset_kind: ::std::boxed::Box<::core::primitive::u32>, rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, #[codec(index = 1)] #[doc = "See [`Pallet::update`]."] update { - asset_kind: ::std::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - >, + asset_kind: ::std::boxed::Box<::core::primitive::u32>, rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, #[codec(index = 2)] #[doc = "See [`Pallet::remove`]."] remove { - asset_kind: ::std::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - >, + asset_kind: ::std::boxed::Box<::core::primitive::u32>, }, } #[derive( @@ -41612,25 +67925,1346 @@ pub mod api { pub enum Event { #[codec(index = 0)] AssetRateCreated { - asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + asset_kind: ::core::primitive::u32, rate: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, #[codec(index = 1)] - AssetRateRemoved { - asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - }, + AssetRateRemoved { asset_kind: ::core::primitive::u32 }, #[codec(index = 2)] AssetRateUpdated { - asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + asset_kind: ::core::primitive::u32, old: runtime_types::sp_arithmetic::fixed_point::FixedU128, new: runtime_types::sp_arithmetic::fixed_point::FixedU128, }, } } } + pub mod pallet_asset_tx_payment { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] + #[doc = "has been paid by `who` in an asset `asset_id`."] + AssetTxFeePaid { + who: ::subxt::utils::AccountId32, + actual_fee: ::core::primitive::u128, + tip: ::core::primitive::u128, + asset_id: ::core::option::Option<::core::primitive::u32>, + }, + } + } + } + pub mod pallet_assets { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::create`]."] + create { + #[codec(compact)] + id: ::core::primitive::u32, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + min_balance: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::force_create`]."] + force_create { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + is_sufficient: ::core::primitive::bool, + #[codec(compact)] + min_balance: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::start_destroy`]."] + start_destroy { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::destroy_accounts`]."] + destroy_accounts { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::destroy_approvals`]."] + destroy_approvals { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::finish_destroy`]."] + finish_destroy { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::mint`]."] + mint { + #[codec(compact)] + id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::burn`]."] + burn { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::transfer`]."] + transfer { + #[codec(compact)] + id: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 9)] + #[doc = "See [`Pallet::transfer_keep_alive`]."] + transfer_keep_alive { + #[codec(compact)] + id: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 10)] + #[doc = "See [`Pallet::force_transfer`]."] + force_transfer { + #[codec(compact)] + id: ::core::primitive::u32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 11)] + #[doc = "See [`Pallet::freeze`]."] + freeze { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 12)] + #[doc = "See [`Pallet::thaw`]."] + thaw { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 13)] + #[doc = "See [`Pallet::freeze_asset`]."] + freeze_asset { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 14)] + #[doc = "See [`Pallet::thaw_asset`]."] + thaw_asset { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::transfer_ownership`]."] + transfer_ownership { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::set_team`]."] + set_team { + #[codec(compact)] + id: ::core::primitive::u32, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 17)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::clear_metadata`]."] + clear_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::force_set_metadata`]."] + force_set_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 20)] + #[doc = "See [`Pallet::force_clear_metadata`]."] + force_clear_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 21)] + #[doc = "See [`Pallet::force_asset_status`]."] + force_asset_status { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + min_balance: ::core::primitive::u128, + is_sufficient: ::core::primitive::bool, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 22)] + #[doc = "See [`Pallet::approve_transfer`]."] + approve_transfer { + #[codec(compact)] + id: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 23)] + #[doc = "See [`Pallet::cancel_approval`]."] + cancel_approval { + #[codec(compact)] + id: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 24)] + #[doc = "See [`Pallet::force_cancel_approval`]."] + force_cancel_approval { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 25)] + #[doc = "See [`Pallet::transfer_approved`]."] + transfer_approved { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + destination: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 26)] + #[doc = "See [`Pallet::touch`]."] + touch { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 27)] + #[doc = "See [`Pallet::refund`]."] + refund { + #[codec(compact)] + id: ::core::primitive::u32, + allow_burn: ::core::primitive::bool, + }, + #[codec(index = 28)] + #[doc = "See [`Pallet::set_min_balance`]."] + set_min_balance { + #[codec(compact)] + id: ::core::primitive::u32, + min_balance: ::core::primitive::u128, + }, + #[codec(index = 29)] + #[doc = "See [`Pallet::touch_other`]."] + touch_other { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 30)] + #[doc = "See [`Pallet::refund_other`]."] + refund_other { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 31)] + #[doc = "See [`Pallet::block`]."] + block { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call2 { + #[codec(index = 0)] + #[doc = "See [`Pallet::create`]."] + create { + #[codec(compact)] + id: ::core::primitive::u32, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + min_balance: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::force_create`]."] + force_create { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + is_sufficient: ::core::primitive::bool, + #[codec(compact)] + min_balance: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::start_destroy`]."] + start_destroy { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::destroy_accounts`]."] + destroy_accounts { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::destroy_approvals`]."] + destroy_approvals { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::finish_destroy`]."] + finish_destroy { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::mint`]."] + mint { + #[codec(compact)] + id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::burn`]."] + burn { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::transfer`]."] + transfer { + #[codec(compact)] + id: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 9)] + #[doc = "See [`Pallet::transfer_keep_alive`]."] + transfer_keep_alive { + #[codec(compact)] + id: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 10)] + #[doc = "See [`Pallet::force_transfer`]."] + force_transfer { + #[codec(compact)] + id: ::core::primitive::u32, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 11)] + #[doc = "See [`Pallet::freeze`]."] + freeze { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 12)] + #[doc = "See [`Pallet::thaw`]."] + thaw { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 13)] + #[doc = "See [`Pallet::freeze_asset`]."] + freeze_asset { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 14)] + #[doc = "See [`Pallet::thaw_asset`]."] + thaw_asset { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::transfer_ownership`]."] + transfer_ownership { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::set_team`]."] + set_team { + #[codec(compact)] + id: ::core::primitive::u32, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 17)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::clear_metadata`]."] + clear_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::force_set_metadata`]."] + force_set_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 20)] + #[doc = "See [`Pallet::force_clear_metadata`]."] + force_clear_metadata { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 21)] + #[doc = "See [`Pallet::force_asset_status`]."] + force_asset_status { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + min_balance: ::core::primitive::u128, + is_sufficient: ::core::primitive::bool, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 22)] + #[doc = "See [`Pallet::approve_transfer`]."] + approve_transfer { + #[codec(compact)] + id: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 23)] + #[doc = "See [`Pallet::cancel_approval`]."] + cancel_approval { + #[codec(compact)] + id: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 24)] + #[doc = "See [`Pallet::force_cancel_approval`]."] + force_cancel_approval { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 25)] + #[doc = "See [`Pallet::transfer_approved`]."] + transfer_approved { + #[codec(compact)] + id: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + destination: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 26)] + #[doc = "See [`Pallet::touch`]."] + touch { + #[codec(compact)] + id: ::core::primitive::u32, + }, + #[codec(index = 27)] + #[doc = "See [`Pallet::refund`]."] + refund { + #[codec(compact)] + id: ::core::primitive::u32, + allow_burn: ::core::primitive::bool, + }, + #[codec(index = 28)] + #[doc = "See [`Pallet::set_min_balance`]."] + set_min_balance { + #[codec(compact)] + id: ::core::primitive::u32, + min_balance: ::core::primitive::u128, + }, + #[codec(index = 29)] + #[doc = "See [`Pallet::touch_other`]."] + touch_other { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 30)] + #[doc = "See [`Pallet::refund_other`]."] + refund_other { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 31)] + #[doc = "See [`Pallet::block`]."] + block { + #[codec(compact)] + id: ::core::primitive::u32, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account balance must be greater than or equal to the transfer amount."] + BalanceLow, + #[codec(index = 1)] + #[doc = "The account to alter does not exist."] + NoAccount, + #[codec(index = 2)] + #[doc = "The signing account has no permission to do the operation."] + NoPermission, + #[codec(index = 3)] + #[doc = "The given asset ID is unknown."] + Unknown, + #[codec(index = 4)] + #[doc = "The origin account is frozen."] + Frozen, + #[codec(index = 5)] + #[doc = "The asset ID is already taken."] + InUse, + #[codec(index = 6)] + #[doc = "Invalid witness data given."] + BadWitness, + #[codec(index = 7)] + #[doc = "Minimum balance should be non-zero."] + MinBalanceZero, + #[codec(index = 8)] + #[doc = "Unable to increment the consumer reference counters on the account. Either no provider"] + #[doc = "reference exists to allow a non-zero balance of a non-self-sufficient asset, or one"] + #[doc = "fewer then the maximum number of consumers has been reached."] + UnavailableConsumer, + #[codec(index = 9)] + #[doc = "Invalid metadata given."] + BadMetadata, + #[codec(index = 10)] + #[doc = "No approval exists that would allow the transfer."] + Unapproved, + #[codec(index = 11)] + #[doc = "The source account would not survive the transfer and it needs to stay alive."] + WouldDie, + #[codec(index = 12)] + #[doc = "The asset-account already exists."] + AlreadyExists, + #[codec(index = 13)] + #[doc = "The asset-account doesn't have an associated deposit."] + NoDeposit, + #[codec(index = 14)] + #[doc = "The operation would result in funds being burned."] + WouldBurn, + #[codec(index = 15)] + #[doc = "The asset is a live asset and is actively being used. Usually emit for operations such"] + #[doc = "as `start_destroy` which require the asset to be in a destroying state."] + LiveAsset, + #[codec(index = 16)] + #[doc = "The asset is not live, and likely being destroyed."] + AssetNotLive, + #[codec(index = 17)] + #[doc = "The asset status is not the expected status."] + IncorrectStatus, + #[codec(index = 18)] + #[doc = "The asset should be frozen before the given operation."] + NotFrozen, + #[codec(index = 19)] + #[doc = "Callback action resulted in error"] + CallbackFailed, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error2 { + #[codec(index = 0)] + #[doc = "Account balance must be greater than or equal to the transfer amount."] + BalanceLow, + #[codec(index = 1)] + #[doc = "The account to alter does not exist."] + NoAccount, + #[codec(index = 2)] + #[doc = "The signing account has no permission to do the operation."] + NoPermission, + #[codec(index = 3)] + #[doc = "The given asset ID is unknown."] + Unknown, + #[codec(index = 4)] + #[doc = "The origin account is frozen."] + Frozen, + #[codec(index = 5)] + #[doc = "The asset ID is already taken."] + InUse, + #[codec(index = 6)] + #[doc = "Invalid witness data given."] + BadWitness, + #[codec(index = 7)] + #[doc = "Minimum balance should be non-zero."] + MinBalanceZero, + #[codec(index = 8)] + #[doc = "Unable to increment the consumer reference counters on the account. Either no provider"] + #[doc = "reference exists to allow a non-zero balance of a non-self-sufficient asset, or one"] + #[doc = "fewer then the maximum number of consumers has been reached."] + UnavailableConsumer, + #[codec(index = 9)] + #[doc = "Invalid metadata given."] + BadMetadata, + #[codec(index = 10)] + #[doc = "No approval exists that would allow the transfer."] + Unapproved, + #[codec(index = 11)] + #[doc = "The source account would not survive the transfer and it needs to stay alive."] + WouldDie, + #[codec(index = 12)] + #[doc = "The asset-account already exists."] + AlreadyExists, + #[codec(index = 13)] + #[doc = "The asset-account doesn't have an associated deposit."] + NoDeposit, + #[codec(index = 14)] + #[doc = "The operation would result in funds being burned."] + WouldBurn, + #[codec(index = 15)] + #[doc = "The asset is a live asset and is actively being used. Usually emit for operations such"] + #[doc = "as `start_destroy` which require the asset to be in a destroying state."] + LiveAsset, + #[codec(index = 16)] + #[doc = "The asset is not live, and likely being destroyed."] + AssetNotLive, + #[codec(index = 17)] + #[doc = "The asset status is not the expected status."] + IncorrectStatus, + #[codec(index = 18)] + #[doc = "The asset should be frozen before the given operation."] + NotFrozen, + #[codec(index = 19)] + #[doc = "Callback action resulted in error"] + CallbackFailed, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Some asset class was created."] + Created { + asset_id: ::core::primitive::u32, + creator: ::subxt::utils::AccountId32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "Some assets were issued."] + Issued { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "Some assets were transferred."] + Transferred { + asset_id: ::core::primitive::u32, + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "Some assets were destroyed."] + Burned { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + balance: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "The management team changed."] + TeamChanged { + asset_id: ::core::primitive::u32, + issuer: ::subxt::utils::AccountId32, + admin: ::subxt::utils::AccountId32, + freezer: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "The owner changed."] + OwnerChanged { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 6)] + #[doc = "Some account `who` was frozen."] + Frozen { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + }, + #[codec(index = 7)] + #[doc = "Some account `who` was thawed."] + Thawed { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + #[doc = "Some asset `asset_id` was frozen."] + AssetFrozen { asset_id: ::core::primitive::u32 }, + #[codec(index = 9)] + #[doc = "Some asset `asset_id` was thawed."] + AssetThawed { asset_id: ::core::primitive::u32 }, + #[codec(index = 10)] + #[doc = "Accounts were destroyed for given asset."] + AccountsDestroyed { + asset_id: ::core::primitive::u32, + accounts_destroyed: ::core::primitive::u32, + accounts_remaining: ::core::primitive::u32, + }, + #[codec(index = 11)] + #[doc = "Approvals were destroyed for given asset."] + ApprovalsDestroyed { + asset_id: ::core::primitive::u32, + approvals_destroyed: ::core::primitive::u32, + approvals_remaining: ::core::primitive::u32, + }, + #[codec(index = 12)] + #[doc = "An asset class is in the process of being destroyed."] + DestructionStarted { asset_id: ::core::primitive::u32 }, + #[codec(index = 13)] + #[doc = "An asset class was destroyed."] + Destroyed { asset_id: ::core::primitive::u32 }, + #[codec(index = 14)] + #[doc = "Some asset class was force-created."] + ForceCreated { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 15)] + #[doc = "New metadata has been set for an asset."] + MetadataSet { + asset_id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 16)] + #[doc = "Metadata has been cleared for an asset."] + MetadataCleared { asset_id: ::core::primitive::u32 }, + #[codec(index = 17)] + #[doc = "(Additional) funds have been approved for transfer to a destination account."] + ApprovedTransfer { + asset_id: ::core::primitive::u32, + source: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 18)] + #[doc = "An approval for account `delegate` was cancelled by `owner`."] + ApprovalCancelled { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + }, + #[codec(index = 19)] + #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] + #[doc = "the approved `delegate`."] + TransferredApproved { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + destination: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 20)] + #[doc = "An asset has had its attributes changed by the `Force` origin."] + AssetStatusChanged { asset_id: ::core::primitive::u32 }, + #[codec(index = 21)] + #[doc = "The min_balance of an asset has been updated by the asset owner."] + AssetMinBalanceChanged { + asset_id: ::core::primitive::u32, + new_min_balance: ::core::primitive::u128, + }, + #[codec(index = 22)] + #[doc = "Some account `who` was created with a deposit from `depositor`."] + Touched { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + depositor: ::subxt::utils::AccountId32, + }, + #[codec(index = 23)] + #[doc = "Some account `who` was blocked."] + Blocked { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event2 { + #[codec(index = 0)] + #[doc = "Some asset class was created."] + Created { + asset_id: ::core::primitive::u32, + creator: ::subxt::utils::AccountId32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "Some assets were issued."] + Issued { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "Some assets were transferred."] + Transferred { + asset_id: ::core::primitive::u32, + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "Some assets were destroyed."] + Burned { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + balance: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "The management team changed."] + TeamChanged { + asset_id: ::core::primitive::u32, + issuer: ::subxt::utils::AccountId32, + admin: ::subxt::utils::AccountId32, + freezer: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "The owner changed."] + OwnerChanged { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 6)] + #[doc = "Some account `who` was frozen."] + Frozen { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + }, + #[codec(index = 7)] + #[doc = "Some account `who` was thawed."] + Thawed { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + #[doc = "Some asset `asset_id` was frozen."] + AssetFrozen { asset_id: ::core::primitive::u32 }, + #[codec(index = 9)] + #[doc = "Some asset `asset_id` was thawed."] + AssetThawed { asset_id: ::core::primitive::u32 }, + #[codec(index = 10)] + #[doc = "Accounts were destroyed for given asset."] + AccountsDestroyed { + asset_id: ::core::primitive::u32, + accounts_destroyed: ::core::primitive::u32, + accounts_remaining: ::core::primitive::u32, + }, + #[codec(index = 11)] + #[doc = "Approvals were destroyed for given asset."] + ApprovalsDestroyed { + asset_id: ::core::primitive::u32, + approvals_destroyed: ::core::primitive::u32, + approvals_remaining: ::core::primitive::u32, + }, + #[codec(index = 12)] + #[doc = "An asset class is in the process of being destroyed."] + DestructionStarted { asset_id: ::core::primitive::u32 }, + #[codec(index = 13)] + #[doc = "An asset class was destroyed."] + Destroyed { asset_id: ::core::primitive::u32 }, + #[codec(index = 14)] + #[doc = "Some asset class was force-created."] + ForceCreated { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 15)] + #[doc = "New metadata has been set for an asset."] + MetadataSet { + asset_id: ::core::primitive::u32, + name: ::std::vec::Vec<::core::primitive::u8>, + symbol: ::std::vec::Vec<::core::primitive::u8>, + decimals: ::core::primitive::u8, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 16)] + #[doc = "Metadata has been cleared for an asset."] + MetadataCleared { asset_id: ::core::primitive::u32 }, + #[codec(index = 17)] + #[doc = "(Additional) funds have been approved for transfer to a destination account."] + ApprovedTransfer { + asset_id: ::core::primitive::u32, + source: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 18)] + #[doc = "An approval for account `delegate` was cancelled by `owner`."] + ApprovalCancelled { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + }, + #[codec(index = 19)] + #[doc = "An `amount` was transferred in its entirety from `owner` to `destination` by"] + #[doc = "the approved `delegate`."] + TransferredApproved { + asset_id: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + destination: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 20)] + #[doc = "An asset has had its attributes changed by the `Force` origin."] + AssetStatusChanged { asset_id: ::core::primitive::u32 }, + #[codec(index = 21)] + #[doc = "The min_balance of an asset has been updated by the asset owner."] + AssetMinBalanceChanged { + asset_id: ::core::primitive::u32, + new_min_balance: ::core::primitive::u128, + }, + #[codec(index = 22)] + #[doc = "Some account `who` was created with a deposit from `depositor`."] + Touched { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + depositor: ::subxt::utils::AccountId32, + }, + #[codec(index = 23)] + #[doc = "Some account `who` was blocked."] + Blocked { + asset_id: ::core::primitive::u32, + who: ::subxt::utils::AccountId32, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AccountStatus { + #[codec(index = 0)] + Liquid, + #[codec(index = 1)] + Frozen, + #[codec(index = 2)] + Blocked, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Approval<_0, _1> { + pub amount: _0, + pub deposit: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AssetAccount<_0, _1, _2, _3> { + pub balance: _0, + pub status: runtime_types::pallet_assets::types::AccountStatus, + pub reason: runtime_types::pallet_assets::types::ExistenceReason<_0, _3>, + pub extra: _2, + #[codec(skip)] + pub __ignore: ::core::marker::PhantomData<_1>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AssetDetails<_0, _1, _2> { + pub owner: _1, + pub issuer: _1, + pub admin: _1, + pub freezer: _1, + pub supply: _0, + pub deposit: _2, + pub min_balance: _0, + pub is_sufficient: ::core::primitive::bool, + pub accounts: ::core::primitive::u32, + pub sufficients: ::core::primitive::u32, + pub approvals: ::core::primitive::u32, + pub status: runtime_types::pallet_assets::types::AssetStatus, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AssetMetadata<_0, _1> { + pub deposit: _0, + pub name: _1, + pub symbol: _1, + pub decimals: ::core::primitive::u8, + pub is_frozen: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AssetStatus { + #[codec(index = 0)] + Live, + #[codec(index = 1)] + Frozen, + #[codec(index = 2)] + Destroying, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ExistenceReason<_0, _1> { + #[codec(index = 0)] + Consumer, + #[codec(index = 1)] + Sufficient, + #[codec(index = 2)] + DepositHeld(_0), + #[codec(index = 3)] + DepositRefunded, + #[codec(index = 4)] + DepositFrom(_1, _0), + } + } + } pub mod pallet_babe { use super::runtime_types; pub mod pallet { @@ -41706,6 +69340,149 @@ pub mod api { } } } + pub mod pallet_bags_list { + use super::runtime_types; + pub mod list { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Bag { + pub head: ::core::option::Option<::subxt::utils::AccountId32>, + pub tail: ::core::option::Option<::subxt::utils::AccountId32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ListError { + #[codec(index = 0)] + Duplicate, + #[codec(index = 1)] + NotHeavier, + #[codec(index = 2)] + NotInSameBag, + #[codec(index = 3)] + NodeNotFound, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Node { + pub id: ::subxt::utils::AccountId32, + pub prev: ::core::option::Option<::subxt::utils::AccountId32>, + pub next: ::core::option::Option<::subxt::utils::AccountId32>, + pub bag_upper: ::core::primitive::u64, + pub score: ::core::primitive::u64, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::rebag`]."] + rebag { + dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::put_in_front_of`]."] + put_in_front_of { + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::put_in_front_of_other`]."] + put_in_front_of_other { + heavier: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "A error in the list interface implementation."] + List(runtime_types::pallet_bags_list::list::ListError), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Moved an account from one bag to another."] + Rebagged { + who: ::subxt::utils::AccountId32, + from: ::core::primitive::u64, + to: ::core::primitive::u64, + }, + #[codec(index = 1)] + #[doc = "Updated the score of some account to the given amount."] + ScoreUpdated { + who: ::subxt::utils::AccountId32, + new_score: ::core::primitive::u64, + }, + } + } + } pub mod pallet_balances { use super::runtime_types; pub mod pallet { @@ -41725,35 +69502,53 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::transfer_allow_death`]."] transfer_allow_death { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 2)] #[doc = "See [`Pallet::force_transfer`]."] force_transfer { - source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] #[doc = "See [`Pallet::transfer_keep_alive`]."] transfer_keep_alive { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "See [`Pallet::transfer_all`]."] transfer_all { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, keep_alive: ::core::primitive::bool, }, #[codec(index = 5)] #[doc = "See [`Pallet::force_unreserve`]."] force_unreserve { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, amount: ::core::primitive::u128, }, #[codec(index = 6)] @@ -41764,66 +69559,10 @@ pub mod api { #[codec(index = 8)] #[doc = "See [`Pallet::force_set_balance`]."] force_set_balance { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - new_free: ::core::primitive::u128, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call2 { - #[codec(index = 0)] - #[doc = "See [`Pallet::transfer_allow_death`]."] - transfer_allow_death { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::force_transfer`]."] - force_transfer { - source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::transfer_keep_alive`]."] - transfer_keep_alive { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::transfer_all`]."] - transfer_all { - dest: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - keep_alive: ::core::primitive::bool, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::force_unreserve`]."] - force_unreserve { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - amount: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::upgrade_accounts`]."] - upgrade_accounts { - who: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::force_set_balance`]."] - force_set_balance { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, #[codec(compact)] new_free: ::core::primitive::u128, }, @@ -41881,49 +69620,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error2 { - #[codec(index = 0)] - #[doc = "Vesting balance too high to send value."] - VestingBalance, - #[codec(index = 1)] - #[doc = "Account liquidity restrictions prevent withdrawal."] - LiquidityRestrictions, - #[codec(index = 2)] - #[doc = "Balance too low to send value."] - InsufficientBalance, - #[codec(index = 3)] - #[doc = "Value too low to create account due to existential deposit."] - ExistentialDeposit, - #[codec(index = 4)] - #[doc = "Transfer/payment would kill account."] - Expendability, - #[codec(index = 5)] - #[doc = "A vesting schedule already exists for this account."] - ExistingVestingSchedule, - #[codec(index = 6)] - #[doc = "Beneficiary account must pre-exist."] - DeadAccount, - #[codec(index = 7)] - #[doc = "Number of named reserves exceed `MaxReserves`."] - TooManyReserves, - #[codec(index = 8)] - #[doc = "Number of holds exceed `MaxHolds`."] - TooManyHolds, - #[codec(index = 9)] - #[doc = "Number of freezes exceed `MaxFreezes`."] - TooManyFreezes, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] @@ -42050,142 +69746,6 @@ pub mod api { amount: ::core::primitive::u128, }, } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event2 { - #[codec(index = 0)] - #[doc = "An account was created with some free balance."] - Endowed { - account: ::subxt::utils::AccountId32, - free_balance: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] - #[doc = "resulting in an outright loss."] - DustLost { - account: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Transfer succeeded."] - Transfer { - from: ::subxt::utils::AccountId32, - to: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "A balance was set by root."] - BalanceSet { - who: ::subxt::utils::AccountId32, - free: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "Some balance was reserved (moved from free to reserved)."] - Reserved { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "Some balance was unreserved (moved from reserved to free)."] - Unreserved { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 6)] - #[doc = "Some balance was moved from the reserve of the first account to the second account."] - #[doc = "Final argument indicates the destination balance type."] - ReserveRepatriated { - from: ::subxt::utils::AccountId32, - to: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - destination_status: - runtime_types::frame_support::traits::tokens::misc::BalanceStatus, - }, - #[codec(index = 7)] - #[doc = "Some amount was deposited (e.g. for transaction fees)."] - Deposit { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 8)] - #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] - Withdraw { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 9)] - #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] - Slashed { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 10)] - #[doc = "Some amount was minted into an account."] - Minted { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 11)] - #[doc = "Some amount was burned from an account."] - Burned { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 12)] - #[doc = "Some amount was suspended from an account (it can be restored later)."] - Suspended { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 13)] - #[doc = "Some amount was restored into an account."] - Restored { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 14)] - #[doc = "An account was upgraded."] - Upgraded { who: ::subxt::utils::AccountId32 }, - #[codec(index = 15)] - #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] - Issued { amount: ::core::primitive::u128 }, - #[codec(index = 16)] - #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] - Rescinded { amount: ::core::primitive::u128 }, - #[codec(index = 17)] - #[doc = "Some balance was locked."] - Locked { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 18)] - #[doc = "Some balance was unlocked."] - Unlocked { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 19)] - #[doc = "Some balance was frozen."] - Frozen { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 20)] - #[doc = "Some balance was thawed."] - Thawed { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - } } pub mod types { use super::runtime_types; @@ -42387,7 +69947,10 @@ pub mod api { propose_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, #[codec(compact)] fee: ::core::primitive::u128, }, @@ -42408,7 +69971,10 @@ pub mod api { award_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 6)] #[doc = "See [`Pallet::claim_bounty`]."] @@ -42587,6 +70153,710 @@ pub mod api { }, } } + pub mod pallet_broker { + use super::runtime_types; + pub mod core_mask { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CoreMask(pub [::core::primitive::u8; 10usize]); + } + pub mod coretime_interface { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum CoreAssignment { + #[codec(index = 0)] + Idle, + #[codec(index = 1)] + Pool, + #[codec(index = 2)] + Task(::core::primitive::u32), + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::configure`]."] + configure { + config: runtime_types::pallet_broker::types::ConfigRecord< + ::core::primitive::u32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::reserve`]."] + reserve { + workload: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::unreserve`]."] + unreserve { item_index: ::core::primitive::u32 }, + #[codec(index = 3)] + #[doc = "See [`Pallet::set_lease`]."] + set_lease { + task: ::core::primitive::u32, + until: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::start_sales`]."] + start_sales { + initial_price: ::core::primitive::u128, + core_count: ::core::primitive::u16, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::purchase`]."] + purchase { + price_limit: ::core::primitive::u128, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::renew`]."] + renew { core: ::core::primitive::u16 }, + #[codec(index = 7)] + #[doc = "See [`Pallet::transfer`]."] + transfer { + region_id: runtime_types::pallet_broker::types::RegionId, + new_owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::partition`]."] + partition { + region_id: runtime_types::pallet_broker::types::RegionId, + pivot: ::core::primitive::u32, + }, + #[codec(index = 9)] + #[doc = "See [`Pallet::interlace`]."] + interlace { + region_id: runtime_types::pallet_broker::types::RegionId, + pivot: runtime_types::pallet_broker::core_mask::CoreMask, + }, + #[codec(index = 10)] + #[doc = "See [`Pallet::assign`]."] + assign { + region_id: runtime_types::pallet_broker::types::RegionId, + task: ::core::primitive::u32, + finality: runtime_types::pallet_broker::types::Finality, + }, + #[codec(index = 11)] + #[doc = "See [`Pallet::pool`]."] + pool { + region_id: runtime_types::pallet_broker::types::RegionId, + payee: ::subxt::utils::AccountId32, + finality: runtime_types::pallet_broker::types::Finality, + }, + #[codec(index = 12)] + #[doc = "See [`Pallet::claim_revenue`]."] + claim_revenue { + region_id: runtime_types::pallet_broker::types::RegionId, + max_timeslices: ::core::primitive::u32, + }, + #[codec(index = 13)] + #[doc = "See [`Pallet::purchase_credit`]."] + purchase_credit { + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 14)] + #[doc = "See [`Pallet::drop_region`]."] + drop_region { + region_id: runtime_types::pallet_broker::types::RegionId, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::drop_contribution`]."] + drop_contribution { + region_id: runtime_types::pallet_broker::types::RegionId, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::drop_history`]."] + drop_history { when: ::core::primitive::u32 }, + #[codec(index = 17)] + #[doc = "See [`Pallet::drop_renewal`]."] + drop_renewal { + core: ::core::primitive::u16, + when: ::core::primitive::u32, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::request_core_count`]."] + request_core_count { core_count: ::core::primitive::u16 }, + #[codec(index = 19)] + #[doc = "See [`Pallet::notify_core_count`]."] + notify_core_count { core_count: ::core::primitive::u16 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The given region identity is not known."] + UnknownRegion, + #[codec(index = 1)] + #[doc = "The owner of the region is not the origin."] + NotOwner, + #[codec(index = 2)] + #[doc = "The pivot point of the partition at or after the end of the region."] + PivotTooLate, + #[codec(index = 3)] + #[doc = "The pivot point of the partition at the beginning of the region."] + PivotTooEarly, + #[codec(index = 4)] + #[doc = "The pivot mask for the interlacing is not contained within the region's interlace mask."] + ExteriorPivot, + #[codec(index = 5)] + #[doc = "The pivot mask for the interlacing is void (and therefore unschedulable)."] + VoidPivot, + #[codec(index = 6)] + #[doc = "The pivot mask for the interlacing is complete (and therefore not a strict subset)."] + CompletePivot, + #[codec(index = 7)] + #[doc = "The workplan of the pallet's state is invalid. This indicates a state corruption."] + CorruptWorkplan, + #[codec(index = 8)] + #[doc = "There is no sale happening currently."] + NoSales, + #[codec(index = 9)] + #[doc = "The price limit is exceeded."] + Overpriced, + #[codec(index = 10)] + #[doc = "There are no cores available."] + Unavailable, + #[codec(index = 11)] + #[doc = "The sale limit has been reached."] + SoldOut, + #[codec(index = 12)] + #[doc = "The renewal operation is not valid at the current time (it may become valid in the next"] + #[doc = "sale)."] + WrongTime, + #[codec(index = 13)] + #[doc = "Invalid attempt to renew."] + NotAllowed, + #[codec(index = 14)] + #[doc = "This pallet has not yet been initialized."] + Uninitialized, + #[codec(index = 15)] + #[doc = "The purchase cannot happen yet as the sale period is yet to begin."] + TooEarly, + #[codec(index = 16)] + #[doc = "There is no work to be done."] + NothingToDo, + #[codec(index = 17)] + #[doc = "The maximum amount of reservations has already been reached."] + TooManyReservations, + #[codec(index = 18)] + #[doc = "The maximum amount of leases has already been reached."] + TooManyLeases, + #[codec(index = 19)] + #[doc = "The revenue for the Instantaneous Core Sales of this period is not (yet) known and thus"] + #[doc = "this operation cannot proceed."] + UnknownRevenue, + #[codec(index = 20)] + #[doc = "The identified contribution to the Instantaneous Core Pool is unknown."] + UnknownContribution, + #[codec(index = 21)] + #[doc = "The workload assigned for renewal is incomplete. This is unexpected and indicates a"] + #[doc = "logic error."] + IncompleteAssignment, + #[codec(index = 22)] + #[doc = "An item cannot be dropped because it is still valid."] + StillValid, + #[codec(index = 23)] + #[doc = "The history item does not exist."] + NoHistory, + #[codec(index = 24)] + #[doc = "No reservation of the given index exists."] + UnknownReservation, + #[codec(index = 25)] + #[doc = "The renewal record cannot be found."] + UnknownRenewal, + #[codec(index = 26)] + #[doc = "The lease expiry time has already passed."] + AlreadyExpired, + #[codec(index = 27)] + #[doc = "The configuration could not be applied because it is invalid."] + InvalidConfig, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A Region of Bulk Coretime has been purchased."] + Purchased { + who: ::subxt::utils::AccountId32, + region_id: runtime_types::pallet_broker::types::RegionId, + price: ::core::primitive::u128, + duration: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "The workload of a core has become renewable."] + Renewable { + core: ::core::primitive::u16, + price: ::core::primitive::u128, + begin: ::core::primitive::u32, + workload: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >, + }, + #[codec(index = 2)] + #[doc = "A workload has been renewed."] + Renewed { + who: ::subxt::utils::AccountId32, + price: ::core::primitive::u128, + old_core: ::core::primitive::u16, + core: ::core::primitive::u16, + begin: ::core::primitive::u32, + duration: ::core::primitive::u32, + workload: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >, + }, + #[codec(index = 3)] + #[doc = "Ownership of a Region has been transferred."] + Transferred { + region_id: runtime_types::pallet_broker::types::RegionId, + duration: ::core::primitive::u32, + old_owner: ::subxt::utils::AccountId32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 4)] + #[doc = "A Region has been split into two non-overlapping Regions."] + Partitioned { + old_region_id: runtime_types::pallet_broker::types::RegionId, + new_region_ids: ( + runtime_types::pallet_broker::types::RegionId, + runtime_types::pallet_broker::types::RegionId, + ), + }, + #[codec(index = 5)] + #[doc = "A Region has been converted into two overlapping Regions each of lesser regularity."] + Interlaced { + old_region_id: runtime_types::pallet_broker::types::RegionId, + new_region_ids: ( + runtime_types::pallet_broker::types::RegionId, + runtime_types::pallet_broker::types::RegionId, + ), + }, + #[codec(index = 6)] + #[doc = "A Region has been assigned to a particular task."] + Assigned { + region_id: runtime_types::pallet_broker::types::RegionId, + duration: ::core::primitive::u32, + task: ::core::primitive::u32, + }, + #[codec(index = 7)] + #[doc = "A Region has been added to the Instantaneous Coretime Pool."] + Pooled { + region_id: runtime_types::pallet_broker::types::RegionId, + duration: ::core::primitive::u32, + }, + #[codec(index = 8)] + #[doc = "A new number of cores has been requested."] + CoreCountRequested { core_count: ::core::primitive::u16 }, + #[codec(index = 9)] + #[doc = "The number of cores available for scheduling has changed."] + CoreCountChanged { core_count: ::core::primitive::u16 }, + #[codec(index = 10)] + #[doc = "There is a new reservation for a workload."] + ReservationMade { + index: ::core::primitive::u32, + workload: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >, + }, + #[codec(index = 11)] + #[doc = "A reservation for a workload has been cancelled."] + ReservationCancelled { + index: ::core::primitive::u32, + workload: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >, + }, + #[codec(index = 12)] + #[doc = "A new sale has been initialized."] + SaleInitialized { + sale_start: ::core::primitive::u32, + leadin_length: ::core::primitive::u32, + start_price: ::core::primitive::u128, + regular_price: ::core::primitive::u128, + region_begin: ::core::primitive::u32, + region_end: ::core::primitive::u32, + ideal_cores_sold: ::core::primitive::u16, + cores_offered: ::core::primitive::u16, + }, + #[codec(index = 13)] + #[doc = "A new lease has been created."] + Leased { + task: ::core::primitive::u32, + until: ::core::primitive::u32, + }, + #[codec(index = 14)] + #[doc = "A lease is about to end."] + LeaseEnding { + task: ::core::primitive::u32, + when: ::core::primitive::u32, + }, + #[codec(index = 15)] + #[doc = "The sale rotation has been started and a new sale is imminent."] + SalesStarted { + price: ::core::primitive::u128, + core_count: ::core::primitive::u16, + }, + #[codec(index = 16)] + #[doc = "The act of claiming revenue has begun."] + RevenueClaimBegun { + region: runtime_types::pallet_broker::types::RegionId, + max_timeslices: ::core::primitive::u32, + }, + #[codec(index = 17)] + #[doc = "A particular timeslice has a non-zero claim."] + RevenueClaimItem { + when: ::core::primitive::u32, + amount: ::core::primitive::u128, + }, + #[codec(index = 18)] + #[doc = "A revenue claim has (possibly only in part) been paid."] + RevenueClaimPaid { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + next: ::core::option::Option, + }, + #[codec(index = 19)] + #[doc = "Some Instantaneous Coretime Pool credit has been purchased."] + CreditPurchased { + who: ::subxt::utils::AccountId32, + beneficiary: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 20)] + #[doc = "A Region has been dropped due to being out of date."] + RegionDropped { + region_id: runtime_types::pallet_broker::types::RegionId, + duration: ::core::primitive::u32, + }, + #[codec(index = 21)] + #[doc = "Some historical Instantaneous Core Pool contribution record has been dropped."] + ContributionDropped { + region_id: runtime_types::pallet_broker::types::RegionId, + }, + #[codec(index = 22)] + #[doc = "Some historical Instantaneous Core Pool payment record has been initialized."] + HistoryInitialized { + when: ::core::primitive::u32, + private_pool_size: ::core::primitive::u32, + system_pool_size: ::core::primitive::u32, + }, + #[codec(index = 23)] + #[doc = "Some historical Instantaneous Core Pool payment record has been dropped."] + HistoryDropped { + when: ::core::primitive::u32, + revenue: ::core::primitive::u128, + }, + #[codec(index = 24)] + #[doc = "Some historical Instantaneous Core Pool payment record has been ignored because the"] + #[doc = "timeslice was already known. Governance may need to intervene."] + HistoryIgnored { + when: ::core::primitive::u32, + revenue: ::core::primitive::u128, + }, + #[codec(index = 25)] + #[doc = "Some historical Instantaneous Core Pool Revenue is ready for payout claims."] + ClaimsReady { + when: ::core::primitive::u32, + system_payout: ::core::primitive::u128, + private_payout: ::core::primitive::u128, + }, + #[codec(index = 26)] + #[doc = "A Core has been assigned to one or more tasks and/or the Pool on the Relay-chain."] + CoreAssigned { + core: ::core::primitive::u16, + when: ::core::primitive::u32, + assignment: ::std::vec::Vec<( + runtime_types::pallet_broker::coretime_interface::CoreAssignment, + ::core::primitive::u16, + )>, + }, + #[codec(index = 27)] + #[doc = "Some historical Instantaneous Core Pool payment record has been dropped."] + AllowedRenewalDropped { + when: ::core::primitive::u32, + core: ::core::primitive::u16, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AllowedRenewalId { + pub core: ::core::primitive::u16, + pub when: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AllowedRenewalRecord<_0> { + pub price: _0, + pub completion: runtime_types::pallet_broker::types::CompletionStatus, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum CompletionStatus { + #[codec(index = 0)] + Partial(runtime_types::pallet_broker::core_mask::CoreMask), + #[codec(index = 1)] + Complete( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_broker::types::ScheduleItem, + >, + ), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConfigRecord<_0, _1> { + pub advance_notice: _1, + pub interlude_length: _0, + pub leadin_length: _0, + pub region_length: ::core::primitive::u32, + pub ideal_bulk_proportion: runtime_types::sp_arithmetic::per_things::Perbill, + pub limit_cores_offered: ::core::option::Option<::core::primitive::u16>, + pub renewal_bump: runtime_types::sp_arithmetic::per_things::Perbill, + pub contribution_timeout: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ContributionRecord<_0> { + pub length: ::core::primitive::u32, + pub payee: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Finality { + #[codec(index = 0)] + Provisional, + #[codec(index = 1)] + Final, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct InstaPoolHistoryRecord<_0> { + pub private_contributions: ::core::primitive::u32, + pub system_contributions: ::core::primitive::u32, + pub maybe_payout: ::core::option::Option<_0>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct LeaseRecordItem { + pub until: ::core::primitive::u32, + pub task: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolIoRecord { + pub private: ::core::primitive::i32, + pub system: ::core::primitive::i32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RegionId { + pub begin: ::core::primitive::u32, + pub core: ::core::primitive::u16, + pub mask: runtime_types::pallet_broker::core_mask::CoreMask, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RegionRecord<_0, _1> { + pub end: ::core::primitive::u32, + pub owner: _0, + pub paid: ::core::option::Option<_1>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SaleInfoRecord<_0, _1> { + pub sale_start: _1, + pub leadin_length: _1, + pub price: _0, + pub region_begin: ::core::primitive::u32, + pub region_end: ::core::primitive::u32, + pub ideal_cores_sold: ::core::primitive::u16, + pub cores_offered: ::core::primitive::u16, + pub first_core: ::core::primitive::u16, + pub sellout_price: ::core::option::Option<_0>, + pub cores_sold: ::core::primitive::u16, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ScheduleItem { + pub mask: runtime_types::pallet_broker::core_mask::CoreMask, + pub assignment: + runtime_types::pallet_broker::coretime_interface::CoreAssignment, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct StatusRecord { + pub core_count: ::core::primitive::u16, + pub private_pool_size: ::core::primitive::u32, + pub system_pool_size: ::core::primitive::u32, + pub last_committed_timeslice: ::core::primitive::u32, + pub last_timeslice: ::core::primitive::u32, + } + } + } pub mod pallet_child_bounties { use super::runtime_types; pub mod pallet { @@ -42619,7 +70889,10 @@ pub mod api { parent_bounty_id: ::core::primitive::u32, #[codec(compact)] child_bounty_id: ::core::primitive::u32, - curator: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, #[codec(compact)] fee: ::core::primitive::u128, }, @@ -42646,7 +70919,10 @@ pub mod api { parent_bounty_id: ::core::primitive::u32, #[codec(compact)] child_bounty_id: ::core::primitive::u32, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 5)] #[doc = "See [`Pallet::claim_child_bounty`]."] @@ -42770,6 +71046,1319 @@ pub mod api { }, } } + pub mod pallet_collective { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::set_members`]."] + set_members { + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, + old_count: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::execute`]."] + execute { + proposal: + ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::propose`]."] + propose { + #[codec(compact)] + threshold: ::core::primitive::u32, + proposal: + ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::vote`]."] + vote { + proposal: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + approve: ::core::primitive::bool, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::disapprove_proposal`]."] + disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 6)] + #[doc = "See [`Pallet::close`]."] + close { + proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call2 { + #[codec(index = 0)] + #[doc = "See [`Pallet::set_members`]."] + set_members { + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, + old_count: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::execute`]."] + execute { + proposal: + ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::propose`]."] + propose { + #[codec(compact)] + threshold: ::core::primitive::u32, + proposal: + ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::vote`]."] + vote { + proposal: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + approve: ::core::primitive::bool, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::disapprove_proposal`]."] + disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 6)] + #[doc = "See [`Pallet::close`]."] + close { + proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call3 { + #[codec(index = 0)] + #[doc = "See [`Pallet::set_members`]."] + set_members { + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, + old_count: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::execute`]."] + execute { + proposal: + ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::propose`]."] + propose { + #[codec(compact)] + threshold: ::core::primitive::u32, + proposal: + ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::vote`]."] + vote { + proposal: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + approve: ::core::primitive::bool, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::disapprove_proposal`]."] + disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 6)] + #[doc = "See [`Pallet::close`]."] + close { + proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Account is not a member"] + NotMember, + #[codec(index = 1)] + #[doc = "Duplicate proposals not allowed"] + DuplicateProposal, + #[codec(index = 2)] + #[doc = "Proposal must exist"] + ProposalMissing, + #[codec(index = 3)] + #[doc = "Mismatched index"] + WrongIndex, + #[codec(index = 4)] + #[doc = "Duplicate vote ignored"] + DuplicateVote, + #[codec(index = 5)] + #[doc = "Members are already initialized!"] + AlreadyInitialized, + #[codec(index = 6)] + #[doc = "The close call was made too early, before the end of the voting."] + TooEarly, + #[codec(index = 7)] + #[doc = "There can only be a maximum of `MaxProposals` active proposals."] + TooManyProposals, + #[codec(index = 8)] + #[doc = "The given weight bound for the proposal was too low."] + WrongProposalWeight, + #[codec(index = 9)] + #[doc = "The given length bound for the proposal was too low."] + WrongProposalLength, + #[codec(index = 10)] + #[doc = "Prime account is not a member"] + PrimeAccountNotMember, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error2 { + #[codec(index = 0)] + #[doc = "Account is not a member"] + NotMember, + #[codec(index = 1)] + #[doc = "Duplicate proposals not allowed"] + DuplicateProposal, + #[codec(index = 2)] + #[doc = "Proposal must exist"] + ProposalMissing, + #[codec(index = 3)] + #[doc = "Mismatched index"] + WrongIndex, + #[codec(index = 4)] + #[doc = "Duplicate vote ignored"] + DuplicateVote, + #[codec(index = 5)] + #[doc = "Members are already initialized!"] + AlreadyInitialized, + #[codec(index = 6)] + #[doc = "The close call was made too early, before the end of the voting."] + TooEarly, + #[codec(index = 7)] + #[doc = "There can only be a maximum of `MaxProposals` active proposals."] + TooManyProposals, + #[codec(index = 8)] + #[doc = "The given weight bound for the proposal was too low."] + WrongProposalWeight, + #[codec(index = 9)] + #[doc = "The given length bound for the proposal was too low."] + WrongProposalLength, + #[codec(index = 10)] + #[doc = "Prime account is not a member"] + PrimeAccountNotMember, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error3 { + #[codec(index = 0)] + #[doc = "Account is not a member"] + NotMember, + #[codec(index = 1)] + #[doc = "Duplicate proposals not allowed"] + DuplicateProposal, + #[codec(index = 2)] + #[doc = "Proposal must exist"] + ProposalMissing, + #[codec(index = 3)] + #[doc = "Mismatched index"] + WrongIndex, + #[codec(index = 4)] + #[doc = "Duplicate vote ignored"] + DuplicateVote, + #[codec(index = 5)] + #[doc = "Members are already initialized!"] + AlreadyInitialized, + #[codec(index = 6)] + #[doc = "The close call was made too early, before the end of the voting."] + TooEarly, + #[codec(index = 7)] + #[doc = "There can only be a maximum of `MaxProposals` active proposals."] + TooManyProposals, + #[codec(index = 8)] + #[doc = "The given weight bound for the proposal was too low."] + WrongProposalWeight, + #[codec(index = 9)] + #[doc = "The given length bound for the proposal was too low."] + WrongProposalLength, + #[codec(index = 10)] + #[doc = "Prime account is not a member"] + PrimeAccountNotMember, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + Proposed { + account: ::subxt::utils::AccountId32, + proposal_index: ::core::primitive::u32, + proposal_hash: ::subxt::utils::H256, + threshold: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + Voted { + account: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, + voted: ::core::primitive::bool, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "A motion was approved by the required threshold."] + Approved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 3)] + #[doc = "A motion was not approved by the required threshold."] + Disapproved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 4)] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + Executed { + proposal_hash: ::subxt::utils::H256, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 5)] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + MemberExecuted { + proposal_hash: ::subxt::utils::H256, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 6)] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + Closed { + proposal_hash: ::subxt::utils::H256, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event2 { + #[codec(index = 0)] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + Proposed { + account: ::subxt::utils::AccountId32, + proposal_index: ::core::primitive::u32, + proposal_hash: ::subxt::utils::H256, + threshold: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + Voted { + account: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, + voted: ::core::primitive::bool, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "A motion was approved by the required threshold."] + Approved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 3)] + #[doc = "A motion was not approved by the required threshold."] + Disapproved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 4)] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + Executed { + proposal_hash: ::subxt::utils::H256, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 5)] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + MemberExecuted { + proposal_hash: ::subxt::utils::H256, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 6)] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + Closed { + proposal_hash: ::subxt::utils::H256, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event3 { + #[codec(index = 0)] + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] + Proposed { + account: ::subxt::utils::AccountId32, + proposal_index: ::core::primitive::u32, + proposal_hash: ::subxt::utils::H256, + threshold: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A motion (given hash) has been voted on by given account, leaving"] + #[doc = "a tally (yes votes and no votes given respectively as `MemberCount`)."] + Voted { + account: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, + voted: ::core::primitive::bool, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "A motion was approved by the required threshold."] + Approved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 3)] + #[doc = "A motion was not approved by the required threshold."] + Disapproved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 4)] + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] + Executed { + proposal_hash: ::subxt::utils::H256, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 5)] + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] + MemberExecuted { + proposal_hash: ::subxt::utils::H256, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 6)] + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] + Closed { + proposal_hash: ::subxt::utils::H256, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Members(::core::primitive::u32, ::core::primitive::u32), + #[codec(index = 1)] + Member(_0), + #[codec(index = 2)] + _Phantom, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Votes<_0, _1> { + pub index: ::core::primitive::u32, + pub threshold: ::core::primitive::u32, + pub ayes: ::std::vec::Vec<_0>, + pub nays: ::std::vec::Vec<_0>, + pub end: _1, + } + } + pub mod pallet_contracts { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::call_old_weight`]."] + call_old_weight { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + #[codec(compact)] + gas_limit: ::core::primitive::u64, + storage_deposit_limit: ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >, + data: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::instantiate_with_code_old_weight`]."] + instantiate_with_code_old_weight { + #[codec(compact)] + value: ::core::primitive::u128, + #[codec(compact)] + gas_limit: ::core::primitive::u64, + storage_deposit_limit: ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >, + code: ::std::vec::Vec<::core::primitive::u8>, + data: ::std::vec::Vec<::core::primitive::u8>, + salt: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::instantiate_old_weight`]."] + instantiate_old_weight { + #[codec(compact)] + value: ::core::primitive::u128, + #[codec(compact)] + gas_limit: ::core::primitive::u64, + storage_deposit_limit: ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >, + code_hash: ::subxt::utils::H256, + data: ::std::vec::Vec<::core::primitive::u8>, + salt: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::upload_code`]."] + upload_code { + code: ::std::vec::Vec<::core::primitive::u8>, + storage_deposit_limit: ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >, + determinism: runtime_types::pallet_contracts::wasm::Determinism, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::remove_code`]."] + remove_code { code_hash: ::subxt::utils::H256 }, + #[codec(index = 5)] + #[doc = "See [`Pallet::set_code`]."] + set_code { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + code_hash: ::subxt::utils::H256, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::call`]."] + call { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + gas_limit: runtime_types::sp_weights::weight_v2::Weight, + storage_deposit_limit: ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >, + data: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::instantiate_with_code`]."] + instantiate_with_code { + #[codec(compact)] + value: ::core::primitive::u128, + gas_limit: runtime_types::sp_weights::weight_v2::Weight, + storage_deposit_limit: ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >, + code: ::std::vec::Vec<::core::primitive::u8>, + data: ::std::vec::Vec<::core::primitive::u8>, + salt: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::instantiate`]."] + instantiate { + #[codec(compact)] + value: ::core::primitive::u128, + gas_limit: runtime_types::sp_weights::weight_v2::Weight, + storage_deposit_limit: ::core::option::Option< + ::subxt::ext::codec::Compact<::core::primitive::u128>, + >, + code_hash: ::subxt::utils::H256, + data: ::std::vec::Vec<::core::primitive::u8>, + salt: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 9)] + #[doc = "See [`Pallet::migrate`]."] + migrate { + weight_limit: runtime_types::sp_weights::weight_v2::Weight, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Invalid schedule supplied, e.g. with zero weight of a basic operation."] + InvalidSchedule, + #[codec(index = 1)] + #[doc = "Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`."] + InvalidCallFlags, + #[codec(index = 2)] + #[doc = "The executed contract exhausted its gas limit."] + OutOfGas, + #[codec(index = 3)] + #[doc = "The output buffer supplied to a contract API call was too small."] + OutputBufferTooSmall, + #[codec(index = 4)] + #[doc = "Performing the requested transfer failed. Probably because there isn't enough"] + #[doc = "free balance in the sender's account."] + TransferFailed, + #[codec(index = 5)] + #[doc = "Performing a call was denied because the calling depth reached the limit"] + #[doc = "of what is specified in the schedule."] + MaxCallDepthReached, + #[codec(index = 6)] + #[doc = "No contract was found at the specified address."] + ContractNotFound, + #[codec(index = 7)] + #[doc = "The code supplied to `instantiate_with_code` exceeds the limit specified in the"] + #[doc = "current schedule."] + CodeTooLarge, + #[codec(index = 8)] + #[doc = "No code could be found at the supplied code hash."] + CodeNotFound, + #[codec(index = 9)] + #[doc = "No code info could be found at the supplied code hash."] + CodeInfoNotFound, + #[codec(index = 10)] + #[doc = "A buffer outside of sandbox memory was passed to a contract API function."] + OutOfBounds, + #[codec(index = 11)] + #[doc = "Input passed to a contract API function failed to decode as expected type."] + DecodingFailed, + #[codec(index = 12)] + #[doc = "Contract trapped during execution."] + ContractTrapped, + #[codec(index = 13)] + #[doc = "The size defined in `T::MaxValueSize` was exceeded."] + ValueTooLarge, + #[codec(index = 14)] + #[doc = "Termination of a contract is not allowed while the contract is already"] + #[doc = "on the call stack. Can be triggered by `seal_terminate`."] + TerminatedWhileReentrant, + #[codec(index = 15)] + #[doc = "`seal_call` forwarded this contracts input. It therefore is no longer available."] + InputForwarded, + #[codec(index = 16)] + #[doc = "The subject passed to `seal_random` exceeds the limit."] + RandomSubjectTooLong, + #[codec(index = 17)] + #[doc = "The amount of topics passed to `seal_deposit_events` exceeds the limit."] + TooManyTopics, + #[codec(index = 18)] + #[doc = "The chain does not provide a chain extension. Calling the chain extension results"] + #[doc = "in this error. Note that this usually shouldn't happen as deploying such contracts"] + #[doc = "is rejected."] + NoChainExtension, + #[codec(index = 19)] + #[doc = "Failed to decode the XCM program."] + XCMDecodeFailed, + #[codec(index = 20)] + #[doc = "A contract with the same AccountId already exists."] + DuplicateContract, + #[codec(index = 21)] + #[doc = "A contract self destructed in its constructor."] + #[doc = ""] + #[doc = "This can be triggered by a call to `seal_terminate`."] + TerminatedInConstructor, + #[codec(index = 22)] + #[doc = "A call tried to invoke a contract that is flagged as non-reentrant."] + #[doc = "The only other cause is that a call from a contract into the runtime tried to call back"] + #[doc = "into `pallet-contracts`. This would make the whole pallet reentrant with regard to"] + #[doc = "contract code execution which is not supported."] + ReentranceDenied, + #[codec(index = 23)] + #[doc = "Origin doesn't have enough balance to pay the required storage deposits."] + StorageDepositNotEnoughFunds, + #[codec(index = 24)] + #[doc = "More storage was created than allowed by the storage deposit limit."] + StorageDepositLimitExhausted, + #[codec(index = 25)] + #[doc = "Code removal was denied because the code is still in use by at least one contract."] + CodeInUse, + #[codec(index = 26)] + #[doc = "The contract ran to completion but decided to revert its storage changes."] + #[doc = "Please note that this error is only returned from extrinsics. When called directly"] + #[doc = "or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags"] + #[doc = "to determine whether a reversion has taken place."] + ContractReverted, + #[codec(index = 27)] + #[doc = "The contract's code was found to be invalid during validation."] + #[doc = ""] + #[doc = "The most likely cause of this is that an API was used which is not supported by the"] + #[doc = "node. This happens if an older node is used with a new version of ink!. Try updating"] + #[doc = "your node to the newest available version."] + #[doc = ""] + #[doc = "A more detailed error can be found on the node console if debug messages are enabled"] + #[doc = "by supplying `-lruntime::contracts=debug`."] + CodeRejected, + #[codec(index = 28)] + #[doc = "An indetermistic code was used in a context where this is not permitted."] + Indeterministic, + #[codec(index = 29)] + #[doc = "A pending migration needs to complete before the extrinsic can be called."] + MigrationInProgress, + #[codec(index = 30)] + #[doc = "Migrate dispatch call was attempted but no migration was performed."] + NoMigrationPerformed, + #[codec(index = 31)] + #[doc = "The contract has reached its maximum number of delegate dependencies."] + MaxDelegateDependenciesReached, + #[codec(index = 32)] + #[doc = "The dependency was not found in the contract's delegate dependencies."] + DelegateDependencyNotFound, + #[codec(index = 33)] + #[doc = "The contract already depends on the given delegate dependency."] + DelegateDependencyAlreadyExists, + #[codec(index = 34)] + #[doc = "Can not add a delegate dependency to the code hash of the contract itself."] + CannotAddSelfAsDelegateDependency, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Contract deployed by address at the specified address."] + Instantiated { + deployer: ::subxt::utils::AccountId32, + contract: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "Contract has been removed."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "The only way for a contract to be removed and emitting this event is by calling"] + #[doc = "`seal_terminate`."] + Terminated { + contract: ::subxt::utils::AccountId32, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 2)] + #[doc = "Code with the specified hash has been stored."] + CodeStored { + code_hash: ::subxt::utils::H256, + deposit_held: ::core::primitive::u128, + uploader: ::subxt::utils::AccountId32, + }, + #[codec(index = 3)] + #[doc = "A custom event emitted by the contract."] + ContractEmitted { + contract: ::subxt::utils::AccountId32, + data: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 4)] + #[doc = "A code with the specified hash was removed."] + CodeRemoved { + code_hash: ::subxt::utils::H256, + deposit_released: ::core::primitive::u128, + remover: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "A contract's code was updated."] + ContractCodeUpdated { + contract: ::subxt::utils::AccountId32, + new_code_hash: ::subxt::utils::H256, + old_code_hash: ::subxt::utils::H256, + }, + #[codec(index = 6)] + #[doc = "A contract was called either by a plain account or another contract."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "Please keep in mind that like all events this is only emitted for successful"] + #[doc = "calls. This is because on failure all storage changes including events are"] + #[doc = "rolled back."] + Called { + caller: runtime_types::pallet_contracts::Origin< + runtime_types::kitchensink_runtime::Runtime, + >, + contract: ::subxt::utils::AccountId32, + }, + #[codec(index = 7)] + #[doc = "A contract delegate called a code hash."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "Please keep in mind that like all events this is only emitted for successful"] + #[doc = "calls. This is because on failure all storage changes including events are"] + #[doc = "rolled back."] + DelegateCalled { + contract: ::subxt::utils::AccountId32, + code_hash: ::subxt::utils::H256, + }, + #[codec(index = 8)] + #[doc = "Some funds have been transferred and held as storage deposit."] + StorageDepositTransferredAndHeld { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 9)] + #[doc = "Some storage deposit funds have been transferred and released."] + StorageDepositTransferredAndReleased { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum HoldReason { + #[codec(index = 0)] + CodeUploadDepositReserve, + #[codec(index = 1)] + StorageDepositReserve, + } + } + pub mod primitives { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Code<_0> { + #[codec(index = 0)] + Upload(::std::vec::Vec<::core::primitive::u8>), + #[codec(index = 1)] + Existing(_0), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CodeUploadReturnValue<_0, _1> { + pub code_hash: _0, + pub deposit: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ContractAccessError { + #[codec(index = 0)] + DoesntExist, + #[codec(index = 1)] + KeyDecodingFailed, + #[codec(index = 2)] + MigrationInProgress, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ContractResult<_0, _1, _2> { + pub gas_consumed: runtime_types::sp_weights::weight_v2::Weight, + pub gas_required: runtime_types::sp_weights::weight_v2::Weight, + pub storage_deposit: + runtime_types::pallet_contracts::primitives::StorageDeposit<_1>, + pub debug_message: ::std::vec::Vec<::core::primitive::u8>, + pub result: _0, + pub events: ::core::option::Option<::std::vec::Vec<_2>>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecReturnValue { + pub flags: runtime_types::pallet_contracts_uapi::flags::ReturnFlags, + pub data: ::std::vec::Vec<::core::primitive::u8>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct InstantiateReturnValue<_0> { + pub result: runtime_types::pallet_contracts::primitives::ExecReturnValue, + pub account_id: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum StorageDeposit<_0> { + #[codec(index = 0)] + Refund(_0), + #[codec(index = 1)] + Charge(_0), + } + } + pub mod schedule { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct HostFnWeights { + pub caller: runtime_types::sp_weights::weight_v2::Weight, + pub is_contract: runtime_types::sp_weights::weight_v2::Weight, + pub code_hash: runtime_types::sp_weights::weight_v2::Weight, + pub own_code_hash: runtime_types::sp_weights::weight_v2::Weight, + pub caller_is_origin: runtime_types::sp_weights::weight_v2::Weight, + pub caller_is_root: runtime_types::sp_weights::weight_v2::Weight, + pub address: runtime_types::sp_weights::weight_v2::Weight, + pub gas_left: runtime_types::sp_weights::weight_v2::Weight, + pub balance: runtime_types::sp_weights::weight_v2::Weight, + pub value_transferred: runtime_types::sp_weights::weight_v2::Weight, + pub minimum_balance: runtime_types::sp_weights::weight_v2::Weight, + pub block_number: runtime_types::sp_weights::weight_v2::Weight, + pub now: runtime_types::sp_weights::weight_v2::Weight, + pub weight_to_fee: runtime_types::sp_weights::weight_v2::Weight, + pub input: runtime_types::sp_weights::weight_v2::Weight, + pub input_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub r#return: runtime_types::sp_weights::weight_v2::Weight, + pub return_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub terminate: runtime_types::sp_weights::weight_v2::Weight, + pub random: runtime_types::sp_weights::weight_v2::Weight, + pub deposit_event: runtime_types::sp_weights::weight_v2::Weight, + pub deposit_event_per_topic: runtime_types::sp_weights::weight_v2::Weight, + pub deposit_event_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub debug_message: runtime_types::sp_weights::weight_v2::Weight, + pub debug_message_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub set_storage: runtime_types::sp_weights::weight_v2::Weight, + pub set_storage_per_new_byte: runtime_types::sp_weights::weight_v2::Weight, + pub set_storage_per_old_byte: runtime_types::sp_weights::weight_v2::Weight, + pub set_code_hash: runtime_types::sp_weights::weight_v2::Weight, + pub clear_storage: runtime_types::sp_weights::weight_v2::Weight, + pub clear_storage_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub contains_storage: runtime_types::sp_weights::weight_v2::Weight, + pub contains_storage_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub get_storage: runtime_types::sp_weights::weight_v2::Weight, + pub get_storage_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub take_storage: runtime_types::sp_weights::weight_v2::Weight, + pub take_storage_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub transfer: runtime_types::sp_weights::weight_v2::Weight, + pub call: runtime_types::sp_weights::weight_v2::Weight, + pub delegate_call: runtime_types::sp_weights::weight_v2::Weight, + pub call_transfer_surcharge: runtime_types::sp_weights::weight_v2::Weight, + pub call_per_cloned_byte: runtime_types::sp_weights::weight_v2::Weight, + pub instantiate: runtime_types::sp_weights::weight_v2::Weight, + pub instantiate_transfer_surcharge: + runtime_types::sp_weights::weight_v2::Weight, + pub instantiate_per_input_byte: runtime_types::sp_weights::weight_v2::Weight, + pub instantiate_per_salt_byte: runtime_types::sp_weights::weight_v2::Weight, + pub hash_sha2_256: runtime_types::sp_weights::weight_v2::Weight, + pub hash_sha2_256_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub hash_keccak_256: runtime_types::sp_weights::weight_v2::Weight, + pub hash_keccak_256_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub hash_blake2_256: runtime_types::sp_weights::weight_v2::Weight, + pub hash_blake2_256_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub hash_blake2_128: runtime_types::sp_weights::weight_v2::Weight, + pub hash_blake2_128_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub ecdsa_recover: runtime_types::sp_weights::weight_v2::Weight, + pub ecdsa_to_eth_address: runtime_types::sp_weights::weight_v2::Weight, + pub sr25519_verify: runtime_types::sp_weights::weight_v2::Weight, + pub sr25519_verify_per_byte: runtime_types::sp_weights::weight_v2::Weight, + pub reentrance_count: runtime_types::sp_weights::weight_v2::Weight, + pub account_reentrance_count: runtime_types::sp_weights::weight_v2::Weight, + pub instantiation_nonce: runtime_types::sp_weights::weight_v2::Weight, + pub add_delegate_dependency: runtime_types::sp_weights::weight_v2::Weight, + pub remove_delegate_dependency: runtime_types::sp_weights::weight_v2::Weight, + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct InstructionWeights { + pub base: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Limits { + pub event_topics: ::core::primitive::u32, + pub globals: ::core::primitive::u32, + pub locals: ::core::primitive::u32, + pub parameters: ::core::primitive::u32, + pub memory_pages: ::core::primitive::u32, + pub table_size: ::core::primitive::u32, + pub br_table_size: ::core::primitive::u32, + pub subject_len: ::core::primitive::u32, + pub payload_len: ::core::primitive::u32, + pub runtime_memory: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Schedule { + pub limits: runtime_types::pallet_contracts::schedule::Limits, + pub instruction_weights: + runtime_types::pallet_contracts::schedule::InstructionWeights, + pub host_fn_weights: runtime_types::pallet_contracts::schedule::HostFnWeights, + } + } + pub mod storage { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ContractInfo { + pub trie_id: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub code_hash: ::subxt::utils::H256, + pub storage_bytes: ::core::primitive::u32, + pub storage_items: ::core::primitive::u32, + pub storage_byte_deposit: ::core::primitive::u128, + pub storage_item_deposit: ::core::primitive::u128, + pub storage_base_deposit: ::core::primitive::u128, + pub delegate_dependencies: + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + ::subxt::utils::H256, + ::core::primitive::u128, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DeletionQueueManager { + pub insert_counter: ::core::primitive::u32, + pub delete_counter: ::core::primitive::u32, + } + } + pub mod wasm { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CodeInfo { + pub owner: ::subxt::utils::AccountId32, + #[codec(compact)] + pub deposit: ::core::primitive::u128, + #[codec(compact)] + pub refcount: ::core::primitive::u64, + pub determinism: runtime_types::pallet_contracts::wasm::Determinism, + pub code_len: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Determinism { + #[codec(index = 0)] + Enforced, + #[codec(index = 1)] + Relaxed, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Environment { + pub account_id: + runtime_types::pallet_contracts::EnvironmentType<::subxt::utils::AccountId32>, + pub balance: + runtime_types::pallet_contracts::EnvironmentType<::core::primitive::u128>, + pub hash: runtime_types::pallet_contracts::EnvironmentType<::subxt::utils::H256>, + pub hasher: runtime_types::pallet_contracts::EnvironmentType< + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + pub timestamp: + runtime_types::pallet_contracts::EnvironmentType<::core::primitive::u64>, + pub block_number: + runtime_types::pallet_contracts::EnvironmentType<::core::primitive::u32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EnvironmentType<_0>(pub ::core::marker::PhantomData<_0>); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Origin<_0> { + #[codec(index = 0)] + Root, + #[codec(index = 1)] + Signed(::subxt::utils::AccountId32), + __Ignore(::core::marker::PhantomData<_0>), + } + } + pub mod pallet_contracts_uapi { + use super::runtime_types; + pub mod flags { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReturnFlags { + pub bits: ::core::primitive::u32, + } + } + } pub mod pallet_conviction_voting { use super::runtime_types; pub mod conviction { @@ -42828,7 +72417,10 @@ pub mod api { #[doc = "See [`Pallet::delegate`]."] delegate { class: ::core::primitive::u16, - to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, conviction: runtime_types::pallet_conviction_voting::conviction::Conviction, balance: ::core::primitive::u128, }, @@ -42839,7 +72431,10 @@ pub mod api { #[doc = "See [`Pallet::unlock`]."] unlock { class: ::core::primitive::u16, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 4)] #[doc = "See [`Pallet::remove_vote`]."] @@ -42850,7 +72445,10 @@ pub mod api { #[codec(index = 5)] #[doc = "See [`Pallet::remove_other_vote`]."] remove_other_vote { - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, class: ::core::primitive::u16, index: ::core::primitive::u32, }, @@ -43063,6 +72661,1489 @@ pub mod api { } } } + pub mod pallet_core_fellowship { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::bump`]."] + bump { who: ::subxt::utils::AccountId32 }, + #[codec(index = 1)] + #[doc = "See [`Pallet::set_params`]."] + set_params { + params: ::std::boxed::Box< + runtime_types::pallet_core_fellowship::ParamsType< + ::core::primitive::u128, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::set_active`]."] + set_active { is_active: ::core::primitive::bool }, + #[codec(index = 3)] + #[doc = "See [`Pallet::approve`]."] + approve { + who: ::subxt::utils::AccountId32, + at_rank: ::core::primitive::u16, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::induct`]."] + induct { who: ::subxt::utils::AccountId32 }, + #[codec(index = 5)] + #[doc = "See [`Pallet::promote`]."] + promote { + who: ::subxt::utils::AccountId32, + to_rank: ::core::primitive::u16, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::offboard`]."] + offboard { who: ::subxt::utils::AccountId32 }, + #[codec(index = 7)] + #[doc = "See [`Pallet::submit_evidence`]."] + submit_evidence { + wish: runtime_types::pallet_core_fellowship::Wish, + evidence: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::import`]."] + import, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Member's rank is too low."] + Unranked, + #[codec(index = 1)] + #[doc = "Member's rank is not zero."] + Ranked, + #[codec(index = 2)] + #[doc = "Member's rank is not as expected - generally means that the rank provided to the call"] + #[doc = "does not agree with the state of the system."] + UnexpectedRank, + #[codec(index = 3)] + #[doc = "The given rank is invalid - this generally means it's not between 1 and `RANK_COUNT`."] + InvalidRank, + #[codec(index = 4)] + #[doc = "The origin does not have enough permission to do this operation."] + NoPermission, + #[codec(index = 5)] + #[doc = "No work needs to be done at present for this member."] + NothingDoing, + #[codec(index = 6)] + #[doc = "The candidate has already been inducted. This should never happen since it would"] + #[doc = "require a candidate (rank 0) to already be tracked in the pallet."] + AlreadyInducted, + #[codec(index = 7)] + #[doc = "The candidate has not been inducted, so cannot be offboarded from this pallet."] + NotTracked, + #[codec(index = 8)] + #[doc = "Operation cannot be done yet since not enough time has passed."] + TooSoon, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Parameters for the pallet have changed."] + ParamsChanged { + params: runtime_types::pallet_core_fellowship::ParamsType< + ::core::primitive::u128, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "Member activity flag has been set."] + ActiveChanged { + who: ::subxt::utils::AccountId32, + is_active: ::core::primitive::bool, + }, + #[codec(index = 2)] + #[doc = "Member has begun being tracked in this pallet."] + Inducted { who: ::subxt::utils::AccountId32 }, + #[codec(index = 3)] + #[doc = "Member has been removed from being tracked in this pallet (i.e. because rank is now"] + #[doc = "zero)."] + Offboarded { who: ::subxt::utils::AccountId32 }, + #[codec(index = 4)] + #[doc = "Member has been promoted to the given rank."] + Promoted { + who: ::subxt::utils::AccountId32, + to_rank: ::core::primitive::u16, + }, + #[codec(index = 5)] + #[doc = "Member has been demoted to the given (non-zero) rank."] + Demoted { + who: ::subxt::utils::AccountId32, + to_rank: ::core::primitive::u16, + }, + #[codec(index = 6)] + #[doc = "Member has been proven at their current rank, postponing auto-demotion."] + Proven { + who: ::subxt::utils::AccountId32, + at_rank: ::core::primitive::u16, + }, + #[codec(index = 7)] + #[doc = "Member has stated evidence of their efforts their request for rank."] + Requested { + who: ::subxt::utils::AccountId32, + wish: runtime_types::pallet_core_fellowship::Wish, + }, + #[codec(index = 8)] + #[doc = "Some submitted evidence was judged and removed. There may or may not have been a change"] + #[doc = "to the rank, but in any case, `last_proof` is reset."] + EvidenceJudged { + who: ::subxt::utils::AccountId32, + wish: runtime_types::pallet_core_fellowship::Wish, + evidence: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + old_rank: ::core::primitive::u16, + new_rank: ::core::option::Option<::core::primitive::u16>, + }, + #[codec(index = 9)] + #[doc = "Pre-ranked account has been inducted at their current rank."] + Imported { + who: ::subxt::utils::AccountId32, + rank: ::core::primitive::u16, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MemberStatus<_0> { + pub is_active: ::core::primitive::bool, + pub last_promotion: _0, + pub last_proof: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ParamsType<_0, _1> { + pub active_salary: [_0; 9usize], + pub passive_salary: [_0; 9usize], + pub demotion_period: [_1; 9usize], + pub min_promotion_period: [_1; 9usize], + pub offboard_timeout: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Wish { + #[codec(index = 0)] + Retention, + #[codec(index = 1)] + Promotion, + } + } + pub mod pallet_democracy { + use super::runtime_types; + pub mod conviction { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Conviction { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Locked1x, + #[codec(index = 2)] + Locked2x, + #[codec(index = 3)] + Locked3x, + #[codec(index = 4)] + Locked4x, + #[codec(index = 5)] + Locked5x, + #[codec(index = 6)] + Locked6x, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::propose`]."] + propose { + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::second`]."] + second { + #[codec(compact)] + proposal: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::vote`]."] + vote { + #[codec(compact)] + ref_index: ::core::primitive::u32, + vote: runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::emergency_cancel`]."] + emergency_cancel { ref_index: ::core::primitive::u32 }, + #[codec(index = 4)] + #[doc = "See [`Pallet::external_propose`]."] + external_propose { + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::external_propose_majority`]."] + external_propose_majority { + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::external_propose_default`]."] + external_propose_default { + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::kitchensink_runtime::RuntimeCall, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::fast_track`]."] + fast_track { + proposal_hash: ::subxt::utils::H256, + voting_period: ::core::primitive::u32, + delay: ::core::primitive::u32, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::veto_external`]."] + veto_external { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 9)] + #[doc = "See [`Pallet::cancel_referendum`]."] + cancel_referendum { + #[codec(compact)] + ref_index: ::core::primitive::u32, + }, + #[codec(index = 10)] + #[doc = "See [`Pallet::delegate`]."] + delegate { + to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + conviction: runtime_types::pallet_democracy::conviction::Conviction, + balance: ::core::primitive::u128, + }, + #[codec(index = 11)] + #[doc = "See [`Pallet::undelegate`]."] + undelegate, + #[codec(index = 12)] + #[doc = "See [`Pallet::clear_public_proposals`]."] + clear_public_proposals, + #[codec(index = 13)] + #[doc = "See [`Pallet::unlock`]."] + unlock { + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 14)] + #[doc = "See [`Pallet::remove_vote`]."] + remove_vote { index: ::core::primitive::u32 }, + #[codec(index = 15)] + #[doc = "See [`Pallet::remove_other_vote`]."] + remove_other_vote { + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::blacklist`]."] + blacklist { + proposal_hash: ::subxt::utils::H256, + maybe_ref_index: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 17)] + #[doc = "See [`Pallet::cancel_proposal`]."] + cancel_proposal { + #[codec(compact)] + prop_index: ::core::primitive::u32, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Value too low"] + ValueLow, + #[codec(index = 1)] + #[doc = "Proposal does not exist"] + ProposalMissing, + #[codec(index = 2)] + #[doc = "Cannot cancel the same proposal twice"] + AlreadyCanceled, + #[codec(index = 3)] + #[doc = "Proposal already made"] + DuplicateProposal, + #[codec(index = 4)] + #[doc = "Proposal still blacklisted"] + ProposalBlacklisted, + #[codec(index = 5)] + #[doc = "Next external proposal not simple majority"] + NotSimpleMajority, + #[codec(index = 6)] + #[doc = "Invalid hash"] + InvalidHash, + #[codec(index = 7)] + #[doc = "No external proposal"] + NoProposal, + #[codec(index = 8)] + #[doc = "Identity may not veto a proposal twice"] + AlreadyVetoed, + #[codec(index = 9)] + #[doc = "Vote given for invalid referendum"] + ReferendumInvalid, + #[codec(index = 10)] + #[doc = "No proposals waiting"] + NoneWaiting, + #[codec(index = 11)] + #[doc = "The given account did not vote on the referendum."] + NotVoter, + #[codec(index = 12)] + #[doc = "The actor has no permission to conduct the action."] + NoPermission, + #[codec(index = 13)] + #[doc = "The account is already delegating."] + AlreadyDelegating, + #[codec(index = 14)] + #[doc = "Too high a balance was provided that the account cannot afford."] + InsufficientFunds, + #[codec(index = 15)] + #[doc = "The account is not currently delegating."] + NotDelegating, + #[codec(index = 16)] + #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] + #[doc = "these are removed, either through `unvote` or `reap_vote`."] + VotesExist, + #[codec(index = 17)] + #[doc = "The instant referendum origin is currently disallowed."] + InstantNotAllowed, + #[codec(index = 18)] + #[doc = "Delegation to oneself makes no sense."] + Nonsense, + #[codec(index = 19)] + #[doc = "Invalid upper bound."] + WrongUpperBound, + #[codec(index = 20)] + #[doc = "Maximum number of votes reached."] + MaxVotesReached, + #[codec(index = 21)] + #[doc = "Maximum number of items reached."] + TooMany, + #[codec(index = 22)] + #[doc = "Voting period too low"] + VotingPeriodLow, + #[codec(index = 23)] + #[doc = "The preimage does not exist."] + PreimageNotExist, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A motion has been proposed by a public account."] + Proposed { + proposal_index: ::core::primitive::u32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "A public proposal has been tabled for referendum vote."] + Tabled { + proposal_index: ::core::primitive::u32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "An external proposal has been tabled."] + ExternalTabled, + #[codec(index = 3)] + #[doc = "A referendum has begun."] + Started { + ref_index: ::core::primitive::u32, + threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + }, + #[codec(index = 4)] + #[doc = "A proposal has been approved by referendum."] + Passed { ref_index: ::core::primitive::u32 }, + #[codec(index = 5)] + #[doc = "A proposal has been rejected by referendum."] + NotPassed { ref_index: ::core::primitive::u32 }, + #[codec(index = 6)] + #[doc = "A referendum has been cancelled."] + Cancelled { ref_index: ::core::primitive::u32 }, + #[codec(index = 7)] + #[doc = "An account has delegated their vote to another account."] + Delegated { + who: ::subxt::utils::AccountId32, + target: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + #[doc = "An account has cancelled a previous delegation operation."] + Undelegated { + account: ::subxt::utils::AccountId32, + }, + #[codec(index = 9)] + #[doc = "An external proposal has been vetoed."] + Vetoed { + who: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, + until: ::core::primitive::u32, + }, + #[codec(index = 10)] + #[doc = "A proposal_hash has been blacklisted permanently."] + Blacklisted { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 11)] + #[doc = "An account has voted in a referendum"] + Voted { + voter: ::subxt::utils::AccountId32, + ref_index: ::core::primitive::u32, + vote: runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + }, + #[codec(index = 12)] + #[doc = "An account has secconded a proposal"] + Seconded { + seconder: ::subxt::utils::AccountId32, + prop_index: ::core::primitive::u32, + }, + #[codec(index = 13)] + #[doc = "A proposal got canceled."] + ProposalCanceled { prop_index: ::core::primitive::u32 }, + #[codec(index = 14)] + #[doc = "Metadata for a proposal or a referendum has been set."] + MetadataSet { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + #[codec(index = 15)] + #[doc = "Metadata for a proposal or a referendum has been cleared."] + MetadataCleared { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + #[codec(index = 16)] + #[doc = "Metadata has been transferred to new owner."] + MetadataTransferred { + prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Delegations<_0> { + pub votes: _0, + pub capital: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MetadataOwner { + #[codec(index = 0)] + External, + #[codec(index = 1)] + Proposal(::core::primitive::u32), + #[codec(index = 2)] + Referendum(::core::primitive::u32), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ReferendumInfo<_0, _1, _2> { + #[codec(index = 0)] + Ongoing(runtime_types::pallet_democracy::types::ReferendumStatus<_0, _1, _2>), + #[codec(index = 1)] + Finished { + approved: ::core::primitive::bool, + end: _0, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReferendumStatus<_0, _1, _2> { + pub end: _0, + pub proposal: _1, + pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + pub delay: _0, + pub tally: runtime_types::pallet_democracy::types::Tally<_2>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Tally<_0> { + pub ayes: _0, + pub nays: _0, + pub turnout: _0, + } + } + pub mod vote { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AccountVote<_0> { + #[codec(index = 0)] + Standard { + vote: runtime_types::pallet_democracy::vote::Vote, + balance: _0, + }, + #[codec(index = 1)] + Split { aye: _0, nay: _0 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PriorLock<_0, _1>(pub _0, pub _1); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Vote(pub ::core::primitive::u8); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Voting<_0, _1, _2> { + #[codec(index = 0)] + Direct { + votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + _2, + runtime_types::pallet_democracy::vote::AccountVote<_0>, + )>, + delegations: runtime_types::pallet_democracy::types::Delegations<_0>, + prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, + }, + #[codec(index = 1)] + Delegating { + balance: _0, + target: _1, + conviction: runtime_types::pallet_democracy::conviction::Conviction, + delegations: runtime_types::pallet_democracy::types::Delegations<_0>, + prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, + }, + } + } + pub mod vote_threshold { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum VoteThreshold { + #[codec(index = 0)] + SuperMajorityApprove, + #[codec(index = 1)] + SuperMajorityAgainst, + #[codec(index = 2)] + SimpleMajority, + } + } + } + pub mod pallet_election_provider_multi_phase { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + # [codec (index = 0)] # [doc = "See [`Pallet::submit_unsigned`]."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: kitchensink_runtime :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_minimum_untrusted_score`]."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_emergency_election_result`]."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "See [`Pallet::submit`]."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: kitchensink_runtime :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "See [`Pallet::governance_fallback`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Error of the pallet that can be returned in response to dispatches."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Submission was too early."] + PreDispatchEarlySubmission, + #[codec(index = 1)] + #[doc = "Wrong number of winners presented."] + PreDispatchWrongWinnerCount, + #[codec(index = 2)] + #[doc = "Submission was too weak, score-wise."] + PreDispatchWeakSubmission, + #[codec(index = 3)] + #[doc = "The queue was full, and the solution was not better than any of the existing ones."] + SignedQueueFull, + #[codec(index = 4)] + #[doc = "The origin failed to pay the deposit."] + SignedCannotPayDeposit, + #[codec(index = 5)] + #[doc = "Witness data to dispatchable is invalid."] + SignedInvalidWitness, + #[codec(index = 6)] + #[doc = "The signed submission consumes too much weight"] + SignedTooMuchWeight, + #[codec(index = 7)] + #[doc = "OCW submitted solution for wrong round"] + OcwCallWrongEra, + #[codec(index = 8)] + #[doc = "Snapshot metadata should exist but didn't."] + MissingSnapshotMetadata, + #[codec(index = 9)] + #[doc = "`Self::insert_submission` returned an invalid index."] + InvalidSubmissionIndex, + #[codec(index = 10)] + #[doc = "The call is not allowed at this point."] + CallNotAllowed, + #[codec(index = 11)] + #[doc = "The fallback failed"] + FallbackFailed, + #[codec(index = 12)] + #[doc = "Some bound not met"] + BoundNotMet, + #[codec(index = 13)] + #[doc = "Submitted solution has too many winners"] + TooManyWinners, + #[codec(index = 14)] + #[doc = "Sumission was prepared for a different round."] + PreDispatchDifferentRound, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A solution was stored with the given compute."] + #[doc = ""] + #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] + #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] + #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] + #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] + #[doc = "room for this one."] + SolutionStored { + compute: + runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + origin: ::core::option::Option<::subxt::utils::AccountId32>, + prev_ejected: ::core::primitive::bool, + }, + #[codec(index = 1)] + #[doc = "The election has been finalized, with the given computation and score."] + ElectionFinalized { + compute: + runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + score: runtime_types::sp_npos_elections::ElectionScore, + }, + #[codec(index = 2)] + #[doc = "An election failed."] + #[doc = ""] + #[doc = "Not much can be said about which computes failed in the process."] + ElectionFailed, + #[codec(index = 3)] + #[doc = "An account has been rewarded for their signed submission being finalized."] + Rewarded { + account: ::subxt::utils::AccountId32, + value: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "An account has been slashed for submitting an invalid signed submission."] + Slashed { + account: ::subxt::utils::AccountId32, + value: ::core::primitive::u128, + }, + #[codec(index = 5)] + #[doc = "There was a phase transition in a given round."] + PhaseTransitioned { + from: runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, + to: runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u32, + >, + round: ::core::primitive::u32, + }, + } + } + pub mod signed { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SignedSubmission<_0, _1, _2> { + pub who: _0, + pub deposit: _1, + pub raw_solution: + runtime_types::pallet_election_provider_multi_phase::RawSolution<_2>, + pub call_fee: _1, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ElectionCompute { + #[codec(index = 0)] + OnChain, + #[codec(index = 1)] + Signed, + #[codec(index = 2)] + Unsigned, + #[codec(index = 3)] + Fallback, + #[codec(index = 4)] + Emergency, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Phase<_0> { + #[codec(index = 0)] + Off, + #[codec(index = 1)] + Signed, + #[codec(index = 2)] + Unsigned((::core::primitive::bool, _0)), + #[codec(index = 3)] + Emergency, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RawSolution<_0> { + pub solution: _0, + pub score: runtime_types::sp_npos_elections::ElectionScore, + pub round: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReadySolution { + pub supports: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, + )>, + pub score: runtime_types::sp_npos_elections::ElectionScore, + pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RoundSnapshot<_0, _1> { + pub voters: ::std::vec::Vec<_1>, + pub targets: ::std::vec::Vec<_0>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SolutionOrSnapshotSize { + #[codec(compact)] + pub voters: ::core::primitive::u32, + #[codec(compact)] + pub targets: ::core::primitive::u32, + } + } + pub mod pallet_elections_phragmen { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::vote`]."] + vote { + votes: ::std::vec::Vec<::subxt::utils::AccountId32>, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::remove_voter`]."] + remove_voter, + #[codec(index = 2)] + #[doc = "See [`Pallet::submit_candidacy`]."] + submit_candidacy { + #[codec(compact)] + candidate_count: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::renounce_candidacy`]."] + renounce_candidacy { + renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::remove_member`]."] + remove_member { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + slash_bond: ::core::primitive::bool, + rerun_election: ::core::primitive::bool, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::clean_defunct_voters`]."] + clean_defunct_voters { + num_voters: ::core::primitive::u32, + num_defunct: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Cannot vote when no candidates or members exist."] + UnableToVote, + #[codec(index = 1)] + #[doc = "Must vote for at least one candidate."] + NoVotes, + #[codec(index = 2)] + #[doc = "Cannot vote more than candidates."] + TooManyVotes, + #[codec(index = 3)] + #[doc = "Cannot vote more than maximum allowed."] + MaximumVotesExceeded, + #[codec(index = 4)] + #[doc = "Cannot vote with stake less than minimum balance."] + LowBalance, + #[codec(index = 5)] + #[doc = "Voter can not pay voting bond."] + UnableToPayBond, + #[codec(index = 6)] + #[doc = "Must be a voter."] + MustBeVoter, + #[codec(index = 7)] + #[doc = "Duplicated candidate submission."] + DuplicatedCandidate, + #[codec(index = 8)] + #[doc = "Too many candidates have been created."] + TooManyCandidates, + #[codec(index = 9)] + #[doc = "Member cannot re-submit candidacy."] + MemberSubmit, + #[codec(index = 10)] + #[doc = "Runner cannot re-submit candidacy."] + RunnerUpSubmit, + #[codec(index = 11)] + #[doc = "Candidate does not have enough funds."] + InsufficientCandidateFunds, + #[codec(index = 12)] + #[doc = "Not a member."] + NotMember, + #[codec(index = 13)] + #[doc = "The provided count of number of candidates is incorrect."] + InvalidWitnessData, + #[codec(index = 14)] + #[doc = "The provided count of number of votes is incorrect."] + InvalidVoteCount, + #[codec(index = 15)] + #[doc = "The renouncing origin presented a wrong `Renouncing` parameter."] + InvalidRenouncing, + #[codec(index = 16)] + #[doc = "Prediction regarding replacement after member removal is wrong."] + InvalidReplacement, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] + #[doc = "the election, not that enough have has been elected. The inner value must be examined"] + #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] + #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] + #[doc = "begin with."] + NewTerm { + new_members: + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, + }, + #[codec(index = 1)] + #[doc = "No (or not enough) candidates existed for this round. This is different from"] + #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] + EmptyTerm, + #[codec(index = 2)] + #[doc = "Internal error happened while trying to perform election."] + ElectionError, + #[codec(index = 3)] + #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] + #[doc = "`EmptyTerm`."] + MemberKicked { member: ::subxt::utils::AccountId32 }, + #[codec(index = 4)] + #[doc = "Someone has renounced their candidacy."] + Renounced { + candidate: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] + #[doc = "runner-up."] + #[doc = ""] + #[doc = "Note that old members and runners-up are also candidates."] + CandidateSlashed { + candidate: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 6)] + #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] + SeatHolderSlashed { + seat_holder: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Renouncing { + #[codec(index = 0)] + Member, + #[codec(index = 1)] + RunnerUp, + #[codec(index = 2)] + Candidate(#[codec(compact)] ::core::primitive::u32), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SeatHolder<_0, _1> { + pub who: _0, + pub stake: _1, + pub deposit: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Voter<_0, _1> { + pub votes: ::std::vec::Vec<_0>, + pub stake: _1, + pub deposit: _1, + } + } + pub mod pallet_example_tasks { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The referenced task was not found."] + NotFound, + } + } + } + pub mod pallet_fast_unstake { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::register_fast_unstake`]."] + register_fast_unstake, + #[codec(index = 1)] + #[doc = "See [`Pallet::deregister`]."] + deregister, + #[codec(index = 2)] + #[doc = "See [`Pallet::control`]."] + control { + eras_to_check: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The provided Controller account was not found."] + #[doc = ""] + #[doc = "This means that the given account is not bonded."] + NotController, + #[codec(index = 1)] + #[doc = "The bonded account has already been queued."] + AlreadyQueued, + #[codec(index = 2)] + #[doc = "The bonded account has active unlocking chunks."] + NotFullyBonded, + #[codec(index = 3)] + #[doc = "The provided un-staker is not in the `Queue`."] + NotQueued, + #[codec(index = 4)] + #[doc = "The provided un-staker is already in Head, and cannot deregister."] + AlreadyHead, + #[codec(index = 5)] + #[doc = "The call is not allowed at this point because the pallet is not active."] + CallNotAllowed, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A staker was unstaked."] + Unstaked { + stash: ::subxt::utils::AccountId32, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 1)] + #[doc = "A staker was slashed for requesting fast-unstake whilst being exposed."] + Slashed { + stash: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "A batch was partially checked for the given eras, but the process did not finish."] + BatchChecked { + eras: ::std::vec::Vec<::core::primitive::u32>, + }, + #[codec(index = 3)] + #[doc = "A batch of a given size was terminated."] + #[doc = ""] + #[doc = "This is always follows by a number of `Unstaked` or `Slashed` events, marking the end"] + #[doc = "of the batch. A new batch will be created upon next block."] + BatchFinished { size: ::core::primitive::u32 }, + #[codec(index = 4)] + #[doc = "An internal error happened. Operations will be paused now."] + InternalError, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnstakeRequest { + pub stashes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::subxt::utils::AccountId32, + ::core::primitive::u128, + )>, + pub checked: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + } + } + } + pub mod pallet_glutton { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::initialize_pallet`]."] + initialize_pallet { + new_count: ::core::primitive::u32, + witness_count: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::set_compute`]."] + set_compute { + compute: runtime_types::sp_arithmetic::fixed_point::FixedU64, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::set_storage`]."] + set_storage { + storage: runtime_types::sp_arithmetic::fixed_point::FixedU64, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The pallet was already initialized."] + #[doc = ""] + #[doc = "Set `witness_count` to `Some` to bypass this error."] + AlreadyInitialized, + #[codec(index = 1)] + #[doc = "The limit was over [`crate::RESOURCE_HARD_LIMIT`]."] + InsaneLimit, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "The pallet has been (re)initialized."] + PalletInitialized { reinit: ::core::primitive::bool }, + #[codec(index = 1)] + #[doc = "The computation limit has been updated."] + ComputationLimitSet { + compute: runtime_types::sp_arithmetic::fixed_point::FixedU64, + }, + #[codec(index = 2)] + #[doc = "The storage limit has been updated."] + StorageLimitSet { + storage: runtime_types::sp_arithmetic::fixed_point::FixedU64, + }, + } + } + } pub mod pallet_grandpa { use super::runtime_types; pub mod pallet { @@ -43259,7 +74340,10 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::add_registrar`]."] add_registrar { - account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 1)] #[doc = "See [`Pallet::set_identity`]."] @@ -43302,7 +74386,10 @@ pub mod api { set_account_id { #[codec(compact)] index: ::core::primitive::u32, - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 8)] #[doc = "See [`Pallet::set_fields`]."] @@ -43316,7 +74403,10 @@ pub mod api { provide_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, judgement: runtime_types::pallet_identity::types::Judgement< ::core::primitive::u128, >, @@ -43325,28 +74415,97 @@ pub mod api { #[codec(index = 10)] #[doc = "See [`Pallet::kill_identity`]."] kill_identity { - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 11)] #[doc = "See [`Pallet::add_sub`]."] add_sub { - sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 12)] #[doc = "See [`Pallet::rename_sub`]."] rename_sub { - sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 13)] #[doc = "See [`Pallet::remove_sub`]."] remove_sub { - sub: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 14)] #[doc = "See [`Pallet::quit_sub`]."] quit_sub, + #[codec(index = 15)] + #[doc = "See [`Pallet::add_username_authority`]."] + add_username_authority { + authority: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + suffix: ::std::vec::Vec<::core::primitive::u8>, + allocation: ::core::primitive::u32, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::remove_username_authority`]."] + remove_username_authority { + authority: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 17)] + #[doc = "See [`Pallet::set_username_for`]."] + set_username_for { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + username: ::std::vec::Vec<::core::primitive::u8>, + signature: + ::core::option::Option, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::accept_username`]."] + accept_username { + username: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::remove_expired_approval`]."] + remove_expired_approval { + username: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 20)] + #[doc = "See [`Pallet::set_primary_username`]."] + set_primary_username { + username: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 21)] + #[doc = "See [`Pallet::remove_dangling_username`]."] + remove_dangling_username { + username: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -43411,6 +74570,33 @@ pub mod api { #[codec(index = 16)] #[doc = "Error that occurs when there is an issue paying for judgement."] JudgementPaymentFailed, + #[codec(index = 17)] + #[doc = "The provided suffix is too long."] + InvalidSuffix, + #[codec(index = 18)] + #[doc = "The sender does not have permission to issue a username."] + NotUsernameAuthority, + #[codec(index = 19)] + #[doc = "The authority cannot allocate any more usernames."] + NoAllocation, + #[codec(index = 20)] + #[doc = "The signature on a username was not valid."] + InvalidSignature, + #[codec(index = 21)] + #[doc = "Setting this username requires a signature, but none was provided."] + RequiresSignature, + #[codec(index = 22)] + #[doc = "The username does not meet the requirements."] + InvalidUsername, + #[codec(index = 23)] + #[doc = "The username is already taken."] + UsernameTaken, + #[codec(index = 24)] + #[doc = "The requested username does not exist."] + NoUsername, + #[codec(index = 25)] + #[doc = "The username cannot be forcefully removed because it can still be accepted."] + NotExpired, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -43484,6 +74670,53 @@ pub mod api { main: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, + #[codec(index = 10)] + #[doc = "A username authority was added."] + AuthorityAdded { + authority: ::subxt::utils::AccountId32, + }, + #[codec(index = 11)] + #[doc = "A username authority was removed."] + AuthorityRemoved { + authority: ::subxt::utils::AccountId32, + }, + #[codec(index = 12)] + #[doc = "A username was set for `who`."] + UsernameSet { + who: ::subxt::utils::AccountId32, + username: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 13)] + #[doc = "A username was queued, but `who` must accept it prior to `expiration`."] + UsernameQueued { + who: ::subxt::utils::AccountId32, + username: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + expiration: ::core::primitive::u32, + }, + #[codec(index = 14)] + #[doc = "A queued username passed its expiration without being claimed and was removed."] + PreapprovalExpired { whose: ::subxt::utils::AccountId32 }, + #[codec(index = 15)] + #[doc = "A username was set as a primary and can be looked up from `who`."] + PrimaryUsernameSet { + who: ::subxt::utils::AccountId32, + username: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 16)] + #[doc = "A dangling username (as in, a username corresponding to an account that has removed its"] + #[doc = "identity) has been removed."] + DanglingUsernameRemoved { + who: ::subxt::utils::AccountId32, + username: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, } } pub mod types { @@ -43498,6 +74731,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AuthorityProperties<_0> { + pub suffix: _0, + pub allocation: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Data { #[codec(index = 0)] None, @@ -43703,7 +74950,13 @@ pub mod api { #[codec(index = 2)] #[doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { - offline: ::std::vec::Vec<(::subxt::utils::AccountId32, ())>, + offline: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + )>, }, } } @@ -43774,7 +75027,10 @@ pub mod api { #[codec(index = 1)] #[doc = "See [`Pallet::transfer`]."] transfer { - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, index: ::core::primitive::u32, }, #[codec(index = 2)] @@ -43783,7 +75039,10 @@ pub mod api { #[codec(index = 3)] #[doc = "See [`Pallet::force_transfer`]."] force_transfer { - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, index: ::core::primitive::u32, freeze: ::core::primitive::bool, }, @@ -43849,6 +75108,252 @@ pub mod api { } } } + pub mod pallet_lottery { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::buy_ticket`]."] + buy_ticket { + call: ::std::boxed::Box, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::set_calls`]."] + set_calls { + calls: ::std::vec::Vec, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::start_lottery`]."] + start_lottery { + price: ::core::primitive::u128, + length: ::core::primitive::u32, + delay: ::core::primitive::u32, + repeat: ::core::primitive::bool, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::stop_repeat`]."] + stop_repeat, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "A lottery has not been configured."] + NotConfigured, + #[codec(index = 1)] + #[doc = "A lottery is already in progress."] + InProgress, + #[codec(index = 2)] + #[doc = "A lottery has already ended."] + AlreadyEnded, + #[codec(index = 3)] + #[doc = "The call is not valid for an open lottery."] + InvalidCall, + #[codec(index = 4)] + #[doc = "You are already participating in the lottery with this call."] + AlreadyParticipating, + #[codec(index = 5)] + #[doc = "Too many calls for a single lottery."] + TooManyCalls, + #[codec(index = 6)] + #[doc = "Failed to encode calls"] + EncodingFailed, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A lottery has been started!"] + LotteryStarted, + #[codec(index = 1)] + #[doc = "A new set of calls have been set!"] + CallsUpdated, + #[codec(index = 2)] + #[doc = "A winner has been chosen!"] + Winner { + winner: ::subxt::utils::AccountId32, + lottery_balance: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "A ticket has been bought!"] + TicketBought { + who: ::subxt::utils::AccountId32, + call_index: (::core::primitive::u8, ::core::primitive::u8), + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct LotteryConfig<_0, _1> { + pub price: _1, + pub start: _0, + pub length: _0, + pub delay: _0, + pub repeat: ::core::primitive::bool, + } + } + pub mod pallet_membership { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::add_member`]."] + add_member { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::remove_member`]."] + remove_member { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::swap_member`]."] + swap_member { + remove: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + add: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::reset_members`]."] + reset_members { + members: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::change_key`]."] + change_key { + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::set_prime`]."] + set_prime { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::clear_prime`]."] + clear_prime, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Already a member."] + AlreadyMember, + #[codec(index = 1)] + #[doc = "Not a member."] + NotMember, + #[codec(index = 2)] + #[doc = "Too many members."] + TooManyMembers, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "The given member was added; see the transaction for who."] + MemberAdded, + #[codec(index = 1)] + #[doc = "The given member was removed; see the transaction for who."] + MemberRemoved, + #[codec(index = 2)] + #[doc = "Two members were swapped; see the transaction for who."] + MembersSwapped, + #[codec(index = 3)] + #[doc = "The membership was reset; see the transaction for who the new set is."] + MembersReset, + #[codec(index = 4)] + #[doc = "One of the members' keys changed."] + KeyChanged, + #[codec(index = 5)] + #[doc = "Phantom member, never used."] + Dummy, + } + } + } pub mod pallet_message_queue { use super::runtime_types; pub mod pallet { @@ -43865,7 +75370,21 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::reap_page`]."] reap_page { message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page_index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::execute_overweight`]."] execute_overweight { message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } + #[codec(index = 0)] + #[doc = "See [`Pallet::reap_page`]."] + reap_page { + message_origin: ::core::primitive::u32, + page_index: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::execute_overweight`]."] + execute_overweight { + message_origin: ::core::primitive::u32, + page: ::core::primitive::u32, + index: ::core::primitive::u32, + weight_limit: runtime_types::sp_weights::weight_v2::Weight, + }, + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -43908,6 +75427,9 @@ pub mod api { #[doc = ""] #[doc = "This can change at any time and may resolve in the future by re-trying."] QueuePaused, + #[codec(index = 8)] + #[doc = "Another call is in progress and needs to finish before this call can happen."] + RecursiveDisallowed, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -43921,7 +75443,36 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "The `Event` enum of this pallet"] pub enum Event { - # [codec (index = 0)] # [doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] ProcessingFailed { id : [:: core :: primitive :: u8 ; 32usize] , origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , error : runtime_types :: frame_support :: traits :: messages :: ProcessMessageError , } , # [codec (index = 1)] # [doc = "Message is processed."] Processed { id : [:: core :: primitive :: u8 ; 32usize] , origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , weight_used : runtime_types :: sp_weights :: weight_v2 :: Weight , success : :: core :: primitive :: bool , } , # [codec (index = 2)] # [doc = "Message placed in overweight queue."] OverweightEnqueued { id : [:: core :: primitive :: u8 ; 32usize] , origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page_index : :: core :: primitive :: u32 , message_index : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "This page was reaped."] PageReaped { origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , index : :: core :: primitive :: u32 , } , } + #[codec(index = 0)] + #[doc = "Message discarded due to an error in the `MessageProcessor` (usually a format error)."] + ProcessingFailed { + id: ::subxt::utils::H256, + origin: ::core::primitive::u32, + error: runtime_types::frame_support::traits::messages::ProcessMessageError, + }, + #[codec(index = 1)] + #[doc = "Message is processed."] + Processed { + id: ::subxt::utils::H256, + origin: ::core::primitive::u32, + weight_used: runtime_types::sp_weights::weight_v2::Weight, + success: ::core::primitive::bool, + }, + #[codec(index = 2)] + #[doc = "Message placed in overweight queue."] + OverweightEnqueued { + id: [::core::primitive::u8; 32usize], + origin: ::core::primitive::u32, + page_index: ::core::primitive::u32, + message_index: ::core::primitive::u32, + }, + #[codec(index = 3)] + #[doc = "This page was reaped."] + PageReaped { + origin: ::core::primitive::u32, + index: ::core::primitive::u32, + }, + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -43977,6 +75528,71 @@ pub mod api { >, } } + pub mod pallet_mixnet { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See `Pallet::register`."] + register { + registration: runtime_types::pallet_mixnet::Registration< + ::core::primitive::u32, + runtime_types::pallet_mixnet::BoundedMixnode< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + >, + >, + signature: runtime_types::sp_mixnet::types::app::Signature, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedMixnode<_0> { + pub kx_public: [::core::primitive::u8; 32usize], + pub peer_id: [::core::primitive::u8; 32usize], + pub external_addresses: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Registration<_0, _1> { + pub block_number: _0, + pub session_index: ::core::primitive::u32, + pub authority_index: ::core::primitive::u32, + pub mixnode: _1, + } + } pub mod pallet_multisig { use super::runtime_types; pub mod pallet { @@ -43997,7 +75613,7 @@ pub mod api { #[doc = "See [`Pallet::as_multi_threshold_1`]."] as_multi_threshold_1 { other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "See [`Pallet::as_multi`]."] @@ -44007,7 +75623,7 @@ pub mod api { maybe_timepoint: ::core::option::Option< runtime_types::pallet_multisig::Timepoint<::core::primitive::u32>, >, - call: ::std::boxed::Box, + call: ::std::boxed::Box, max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] @@ -44167,6 +75783,1465 @@ pub mod api { pub index: ::core::primitive::u32, } } + pub mod pallet_nft_fractionalization { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::fractionalize`]."] + fractionalize { + nft_collection_id: ::core::primitive::u32, + nft_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + fractions: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::unify`]."] + unify { + nft_collection_id: ::core::primitive::u32, + nft_id: ::core::primitive::u32, + asset_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Asset ID does not correspond to locked NFT."] + IncorrectAssetId, + #[codec(index = 1)] + #[doc = "The signing account has no permission to do the operation."] + NoPermission, + #[codec(index = 2)] + #[doc = "NFT doesn't exist."] + NftNotFound, + #[codec(index = 3)] + #[doc = "NFT has not yet been fractionalised."] + NftNotFractionalized, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "An NFT was successfully fractionalized."] + NftFractionalized { + nft_collection: ::core::primitive::u32, + nft: ::core::primitive::u32, + fractions: ::core::primitive::u128, + asset: ::core::primitive::u32, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "An NFT was successfully returned back."] + NftUnified { + nft_collection: ::core::primitive::u32, + nft: ::core::primitive::u32, + asset: ::core::primitive::u32, + beneficiary: ::subxt::utils::AccountId32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum HoldReason { + #[codec(index = 0)] + Fractionalized, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Details<_0, _1, _2, _3> { + pub asset: _0, + pub fractions: _1, + pub deposit: _2, + pub asset_creator: _3, + } + } + } + pub mod pallet_nfts { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::create`]."] + create { + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + config: runtime_types::pallet_nfts::types::CollectionConfig< + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::force_create`]."] + force_create { + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + config: runtime_types::pallet_nfts::types::CollectionConfig< + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::destroy`]."] + destroy { + collection: ::core::primitive::u32, + witness: runtime_types::pallet_nfts::types::DestroyWitness, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::mint`]."] + mint { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + mint_to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + witness_data: ::core::option::Option< + runtime_types::pallet_nfts::types::MintWitness< + ::core::primitive::u32, + ::core::primitive::u128, + >, + >, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::force_mint`]."] + force_mint { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + mint_to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + item_config: runtime_types::pallet_nfts::types::ItemConfig, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::burn`]."] + burn { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::transfer`]."] + transfer { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::redeposit`]."] + redeposit { + collection: ::core::primitive::u32, + items: ::std::vec::Vec<::core::primitive::u32>, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::lock_item_transfer`]."] + lock_item_transfer { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 9)] + #[doc = "See [`Pallet::unlock_item_transfer`]."] + unlock_item_transfer { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 10)] + #[doc = "See [`Pallet::lock_collection`]."] + lock_collection { + collection: ::core::primitive::u32, + lock_settings: runtime_types::pallet_nfts::types::BitFlags< + runtime_types::pallet_nfts::types::CollectionSetting, + >, + }, + #[codec(index = 11)] + #[doc = "See [`Pallet::transfer_ownership`]."] + transfer_ownership { + collection: ::core::primitive::u32, + new_owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 12)] + #[doc = "See [`Pallet::set_team`]."] + set_team { + collection: ::core::primitive::u32, + issuer: ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + admin: ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + freezer: ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 13)] + #[doc = "See [`Pallet::force_collection_owner`]."] + force_collection_owner { + collection: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 14)] + #[doc = "See [`Pallet::force_collection_config`]."] + force_collection_config { + collection: ::core::primitive::u32, + config: runtime_types::pallet_nfts::types::CollectionConfig< + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::approve_transfer`]."] + approve_transfer { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + maybe_deadline: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::cancel_approval`]."] + cancel_approval { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 17)] + #[doc = "See [`Pallet::clear_all_transfer_approvals`]."] + clear_all_transfer_approvals { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::lock_item_properties`]."] + lock_item_properties { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + lock_metadata: ::core::primitive::bool, + lock_attributes: ::core::primitive::bool, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::set_attribute`]."] + set_attribute { + collection: ::core::primitive::u32, + maybe_item: ::core::option::Option<::core::primitive::u32>, + namespace: runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >, + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + value: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 20)] + #[doc = "See [`Pallet::force_set_attribute`]."] + force_set_attribute { + set_as: ::core::option::Option<::subxt::utils::AccountId32>, + collection: ::core::primitive::u32, + maybe_item: ::core::option::Option<::core::primitive::u32>, + namespace: runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >, + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + value: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 21)] + #[doc = "See [`Pallet::clear_attribute`]."] + clear_attribute { + collection: ::core::primitive::u32, + maybe_item: ::core::option::Option<::core::primitive::u32>, + namespace: runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >, + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 22)] + #[doc = "See [`Pallet::approve_item_attributes`]."] + approve_item_attributes { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 23)] + #[doc = "See [`Pallet::cancel_item_attributes_approval`]."] + cancel_item_attributes_approval { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + witness: runtime_types::pallet_nfts::types::CancelAttributesApprovalWitness, + }, + #[codec(index = 24)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 25)] + #[doc = "See [`Pallet::clear_metadata`]."] + clear_metadata { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 26)] + #[doc = "See [`Pallet::set_collection_metadata`]."] + set_collection_metadata { + collection: ::core::primitive::u32, + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 27)] + #[doc = "See [`Pallet::clear_collection_metadata`]."] + clear_collection_metadata { collection: ::core::primitive::u32 }, + #[codec(index = 28)] + #[doc = "See [`Pallet::set_accept_ownership`]."] + set_accept_ownership { + maybe_collection: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 29)] + #[doc = "See [`Pallet::set_collection_max_supply`]."] + set_collection_max_supply { + collection: ::core::primitive::u32, + max_supply: ::core::primitive::u32, + }, + #[codec(index = 30)] + #[doc = "See [`Pallet::update_mint_settings`]."] + update_mint_settings { + collection: ::core::primitive::u32, + mint_settings: runtime_types::pallet_nfts::types::MintSettings< + ::core::primitive::u128, + ::core::primitive::u32, + ::core::primitive::u32, + >, + }, + #[codec(index = 31)] + #[doc = "See [`Pallet::set_price`]."] + set_price { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + price: ::core::option::Option<::core::primitive::u128>, + whitelisted_buyer: ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 32)] + #[doc = "See [`Pallet::buy_item`]."] + buy_item { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + bid_price: ::core::primitive::u128, + }, + #[codec(index = 33)] + #[doc = "See [`Pallet::pay_tips`]."] + pay_tips { + tips: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_nfts::types::ItemTip< + ::core::primitive::u32, + ::core::primitive::u32, + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + }, + #[codec(index = 34)] + #[doc = "See [`Pallet::create_swap`]."] + create_swap { + offered_collection: ::core::primitive::u32, + offered_item: ::core::primitive::u32, + desired_collection: ::core::primitive::u32, + maybe_desired_item: ::core::option::Option<::core::primitive::u32>, + maybe_price: ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection< + ::core::primitive::u128, + >, + >, + duration: ::core::primitive::u32, + }, + #[codec(index = 35)] + #[doc = "See [`Pallet::cancel_swap`]."] + cancel_swap { + offered_collection: ::core::primitive::u32, + offered_item: ::core::primitive::u32, + }, + #[codec(index = 36)] + #[doc = "See [`Pallet::claim_swap`]."] + claim_swap { + send_collection: ::core::primitive::u32, + send_item: ::core::primitive::u32, + receive_collection: ::core::primitive::u32, + receive_item: ::core::primitive::u32, + witness_price: ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection< + ::core::primitive::u128, + >, + >, + }, + #[codec(index = 37)] + #[doc = "See [`Pallet::mint_pre_signed`]."] + mint_pre_signed { + mint_data: ::std::boxed::Box< + runtime_types::pallet_nfts::types::PreSignedMint< + ::core::primitive::u32, + ::core::primitive::u32, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + ::core::primitive::u128, + >, + >, + signature: runtime_types::sp_runtime::MultiSignature, + signer: ::subxt::utils::AccountId32, + }, + #[codec(index = 38)] + #[doc = "See [`Pallet::set_attributes_pre_signed`]."] + set_attributes_pre_signed { + data: runtime_types::pallet_nfts::types::PreSignedAttributes< + ::core::primitive::u32, + ::core::primitive::u32, + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + signature: runtime_types::sp_runtime::MultiSignature, + signer: ::subxt::utils::AccountId32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The signing account has no permission to do the operation."] + NoPermission, + #[codec(index = 1)] + #[doc = "The given item ID is unknown."] + UnknownCollection, + #[codec(index = 2)] + #[doc = "The item ID has already been used for an item."] + AlreadyExists, + #[codec(index = 3)] + #[doc = "The approval had a deadline that expired, so the approval isn't valid anymore."] + ApprovalExpired, + #[codec(index = 4)] + #[doc = "The owner turned out to be different to what was expected."] + WrongOwner, + #[codec(index = 5)] + #[doc = "The witness data given does not match the current state of the chain."] + BadWitness, + #[codec(index = 6)] + #[doc = "Collection ID is already taken."] + CollectionIdInUse, + #[codec(index = 7)] + #[doc = "Items within that collection are non-transferable."] + ItemsNonTransferable, + #[codec(index = 8)] + #[doc = "The provided account is not a delegate."] + NotDelegate, + #[codec(index = 9)] + #[doc = "The delegate turned out to be different to what was expected."] + WrongDelegate, + #[codec(index = 10)] + #[doc = "No approval exists that would allow the transfer."] + Unapproved, + #[codec(index = 11)] + #[doc = "The named owner has not signed ownership acceptance of the collection."] + Unaccepted, + #[codec(index = 12)] + #[doc = "The item is locked (non-transferable)."] + ItemLocked, + #[codec(index = 13)] + #[doc = "Item's attributes are locked."] + LockedItemAttributes, + #[codec(index = 14)] + #[doc = "Collection's attributes are locked."] + LockedCollectionAttributes, + #[codec(index = 15)] + #[doc = "Item's metadata is locked."] + LockedItemMetadata, + #[codec(index = 16)] + #[doc = "Collection's metadata is locked."] + LockedCollectionMetadata, + #[codec(index = 17)] + #[doc = "All items have been minted."] + MaxSupplyReached, + #[codec(index = 18)] + #[doc = "The max supply is locked and can't be changed."] + MaxSupplyLocked, + #[codec(index = 19)] + #[doc = "The provided max supply is less than the number of items a collection already has."] + MaxSupplyTooSmall, + #[codec(index = 20)] + #[doc = "The given item ID is unknown."] + UnknownItem, + #[codec(index = 21)] + #[doc = "Swap doesn't exist."] + UnknownSwap, + #[codec(index = 22)] + #[doc = "The given item has no metadata set."] + MetadataNotFound, + #[codec(index = 23)] + #[doc = "The provided attribute can't be found."] + AttributeNotFound, + #[codec(index = 24)] + #[doc = "Item is not for sale."] + NotForSale, + #[codec(index = 25)] + #[doc = "The provided bid is too low."] + BidTooLow, + #[codec(index = 26)] + #[doc = "The item has reached its approval limit."] + ReachedApprovalLimit, + #[codec(index = 27)] + #[doc = "The deadline has already expired."] + DeadlineExpired, + #[codec(index = 28)] + #[doc = "The duration provided should be less than or equal to `MaxDeadlineDuration`."] + WrongDuration, + #[codec(index = 29)] + #[doc = "The method is disabled by system settings."] + MethodDisabled, + #[codec(index = 30)] + #[doc = "The provided setting can't be set."] + WrongSetting, + #[codec(index = 31)] + #[doc = "Item's config already exists and should be equal to the provided one."] + InconsistentItemConfig, + #[codec(index = 32)] + #[doc = "Config for a collection or an item can't be found."] + NoConfig, + #[codec(index = 33)] + #[doc = "Some roles were not cleared."] + RolesNotCleared, + #[codec(index = 34)] + #[doc = "Mint has not started yet."] + MintNotStarted, + #[codec(index = 35)] + #[doc = "Mint has already ended."] + MintEnded, + #[codec(index = 36)] + #[doc = "The provided Item was already used for claiming."] + AlreadyClaimed, + #[codec(index = 37)] + #[doc = "The provided data is incorrect."] + IncorrectData, + #[codec(index = 38)] + #[doc = "The extrinsic was sent by the wrong origin."] + WrongOrigin, + #[codec(index = 39)] + #[doc = "The provided signature is incorrect."] + WrongSignature, + #[codec(index = 40)] + #[doc = "The provided metadata might be too long."] + IncorrectMetadata, + #[codec(index = 41)] + #[doc = "Can't set more attributes per one call."] + MaxAttributesLimitReached, + #[codec(index = 42)] + #[doc = "The provided namespace isn't supported in this call."] + WrongNamespace, + #[codec(index = 43)] + #[doc = "Can't delete non-empty collections."] + CollectionNotEmpty, + #[codec(index = 44)] + #[doc = "The witness data should be provided."] + WitnessRequired, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A `collection` was created."] + Created { + collection: ::core::primitive::u32, + creator: ::subxt::utils::AccountId32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "A `collection` was force-created."] + ForceCreated { + collection: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 2)] + #[doc = "A `collection` was destroyed."] + Destroyed { collection: ::core::primitive::u32 }, + #[codec(index = 3)] + #[doc = "An `item` was issued."] + Issued { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 4)] + #[doc = "An `item` was transferred."] + Transferred { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "An `item` was destroyed."] + Burned { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 6)] + #[doc = "An `item` became non-transferable."] + ItemTransferLocked { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 7)] + #[doc = "An `item` became transferable."] + ItemTransferUnlocked { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 8)] + #[doc = "`item` metadata or attributes were locked."] + ItemPropertiesLocked { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + lock_metadata: ::core::primitive::bool, + lock_attributes: ::core::primitive::bool, + }, + #[codec(index = 9)] + #[doc = "Some `collection` was locked."] + CollectionLocked { collection: ::core::primitive::u32 }, + #[codec(index = 10)] + #[doc = "The owner changed."] + OwnerChanged { + collection: ::core::primitive::u32, + new_owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 11)] + #[doc = "The management team changed."] + TeamChanged { + collection: ::core::primitive::u32, + issuer: ::core::option::Option<::subxt::utils::AccountId32>, + admin: ::core::option::Option<::subxt::utils::AccountId32>, + freezer: ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 12)] + #[doc = "An `item` of a `collection` has been approved by the `owner` for transfer by"] + #[doc = "a `delegate`."] + TransferApproved { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + deadline: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 13)] + #[doc = "An approval for a `delegate` account to transfer the `item` of an item"] + #[doc = "`collection` was cancelled by its `owner`."] + ApprovalCancelled { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + }, + #[codec(index = 14)] + #[doc = "All approvals of an item got cancelled."] + AllApprovalsCancelled { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 15)] + #[doc = "A `collection` has had its config changed by the `Force` origin."] + CollectionConfigChanged { collection: ::core::primitive::u32 }, + #[codec(index = 16)] + #[doc = "New metadata has been set for a `collection`."] + CollectionMetadataSet { + collection: ::core::primitive::u32, + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 17)] + #[doc = "Metadata has been cleared for a `collection`."] + CollectionMetadataCleared { collection: ::core::primitive::u32 }, + #[codec(index = 18)] + #[doc = "New metadata has been set for an item."] + ItemMetadataSet { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 19)] + #[doc = "Metadata has been cleared for an item."] + ItemMetadataCleared { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 20)] + #[doc = "The deposit for a set of `item`s within a `collection` has been updated."] + Redeposited { + collection: ::core::primitive::u32, + successful_items: ::std::vec::Vec<::core::primitive::u32>, + }, + #[codec(index = 21)] + #[doc = "New attribute metadata has been set for a `collection` or `item`."] + AttributeSet { + collection: ::core::primitive::u32, + maybe_item: ::core::option::Option<::core::primitive::u32>, + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + value: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + namespace: runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 22)] + #[doc = "Attribute metadata has been cleared for a `collection` or `item`."] + AttributeCleared { + collection: ::core::primitive::u32, + maybe_item: ::core::option::Option<::core::primitive::u32>, + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + namespace: runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 23)] + #[doc = "A new approval to modify item attributes was added."] + ItemAttributesApprovalAdded { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + delegate: ::subxt::utils::AccountId32, + }, + #[codec(index = 24)] + #[doc = "A new approval to modify item attributes was removed."] + ItemAttributesApprovalRemoved { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + delegate: ::subxt::utils::AccountId32, + }, + #[codec(index = 25)] + #[doc = "Ownership acceptance has changed for an account."] + OwnershipAcceptanceChanged { + who: ::subxt::utils::AccountId32, + maybe_collection: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 26)] + #[doc = "Max supply has been set for a collection."] + CollectionMaxSupplySet { + collection: ::core::primitive::u32, + max_supply: ::core::primitive::u32, + }, + #[codec(index = 27)] + #[doc = "Mint settings for a collection had changed."] + CollectionMintSettingsUpdated { collection: ::core::primitive::u32 }, + #[codec(index = 28)] + #[doc = "Event gets emitted when the `NextCollectionId` gets incremented."] + NextCollectionIdIncremented { + next_id: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 29)] + #[doc = "The price was set for the item."] + ItemPriceSet { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + price: ::core::primitive::u128, + whitelisted_buyer: ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 30)] + #[doc = "The price for the item was removed."] + ItemPriceRemoved { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 31)] + #[doc = "An item was bought."] + ItemBought { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + price: ::core::primitive::u128, + seller: ::subxt::utils::AccountId32, + buyer: ::subxt::utils::AccountId32, + }, + #[codec(index = 32)] + #[doc = "A tip was sent."] + TipSent { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + sender: ::subxt::utils::AccountId32, + receiver: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 33)] + #[doc = "An `item` swap intent was created."] + SwapCreated { + offered_collection: ::core::primitive::u32, + offered_item: ::core::primitive::u32, + desired_collection: ::core::primitive::u32, + desired_item: ::core::option::Option<::core::primitive::u32>, + price: ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection< + ::core::primitive::u128, + >, + >, + deadline: ::core::primitive::u32, + }, + #[codec(index = 34)] + #[doc = "The swap was cancelled."] + SwapCancelled { + offered_collection: ::core::primitive::u32, + offered_item: ::core::primitive::u32, + desired_collection: ::core::primitive::u32, + desired_item: ::core::option::Option<::core::primitive::u32>, + price: ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection< + ::core::primitive::u128, + >, + >, + deadline: ::core::primitive::u32, + }, + #[codec(index = 35)] + #[doc = "The swap has been claimed."] + SwapClaimed { + sent_collection: ::core::primitive::u32, + sent_item: ::core::primitive::u32, + sent_item_owner: ::subxt::utils::AccountId32, + received_collection: ::core::primitive::u32, + received_item: ::core::primitive::u32, + received_item_owner: ::subxt::utils::AccountId32, + price: ::core::option::Option< + runtime_types::pallet_nfts::types::PriceWithDirection< + ::core::primitive::u128, + >, + >, + deadline: ::core::primitive::u32, + }, + #[codec(index = 36)] + #[doc = "New attributes have been set for an `item` of the `collection`."] + PreSignedAttributesSet { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + namespace: runtime_types::pallet_nfts::types::AttributeNamespace< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 37)] + #[doc = "A new attribute in the `Pallet` namespace was set for the `collection` or an `item`"] + #[doc = "within that `collection`."] + PalletAttributeSet { + collection: ::core::primitive::u32, + item: ::core::option::Option<::core::primitive::u32>, + attribute: runtime_types::pallet_nfts::types::PalletAttributes< + ::core::primitive::u32, + >, + value: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AttributeDeposit<_0, _1> { + pub account: ::core::option::Option<_1>, + pub amount: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AttributeNamespace<_0> { + #[codec(index = 0)] + Pallet, + #[codec(index = 1)] + CollectionOwner, + #[codec(index = 2)] + ItemOwner, + #[codec(index = 3)] + Account(_0), + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BitFlags<_0>( + pub ::core::primitive::u64, + #[codec(skip)] pub ::core::marker::PhantomData<_0>, + ); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CancelAttributesApprovalWitness { + pub account_attributes: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CollectionConfig<_0, _1, _2> { + pub settings: runtime_types::pallet_nfts::types::BitFlags< + runtime_types::pallet_nfts::types::CollectionSetting, + >, + pub max_supply: ::core::option::Option<_1>, + pub mint_settings: runtime_types::pallet_nfts::types::MintSettings<_0, _1, _1>, + #[codec(skip)] + pub __ignore: ::core::marker::PhantomData<_2>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CollectionDetails<_0, _1> { + pub owner: _0, + pub owner_deposit: _1, + pub items: ::core::primitive::u32, + pub item_metadatas: ::core::primitive::u32, + pub item_configs: ::core::primitive::u32, + pub attributes: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CollectionMetadata<_0> { + pub deposit: _0, + pub data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum CollectionRole { + #[codec(index = 1)] + Issuer, + #[codec(index = 2)] + Freezer, + #[codec(index = 4)] + Admin, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum CollectionSetting { + #[codec(index = 1)] + TransferableItems, + #[codec(index = 2)] + UnlockedMetadata, + #[codec(index = 4)] + UnlockedAttributes, + #[codec(index = 8)] + UnlockedMaxSupply, + #[codec(index = 16)] + DepositRequired, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DestroyWitness { + #[codec(compact)] + pub item_metadatas: ::core::primitive::u32, + #[codec(compact)] + pub item_configs: ::core::primitive::u32, + #[codec(compact)] + pub attributes: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ItemConfig { + pub settings: runtime_types::pallet_nfts::types::BitFlags< + runtime_types::pallet_nfts::types::ItemSetting, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ItemDeposit<_0, _1> { + pub account: _1, + pub amount: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ItemDetails<_0, _1, _2> { + pub owner: _0, + pub approvals: _2, + pub deposit: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ItemMetadata<_0> { + pub deposit: _0, + pub data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ItemMetadataDeposit<_0, _1> { + pub account: ::core::option::Option<_1>, + pub amount: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ItemSetting { + #[codec(index = 1)] + Transferable, + #[codec(index = 2)] + UnlockedMetadata, + #[codec(index = 4)] + UnlockedAttributes, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ItemTip<_0, _1, _2, _3> { + pub collection: _0, + pub item: _1, + pub receiver: _2, + pub amount: _3, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MintSettings<_0, _1, _2> { + pub mint_type: runtime_types::pallet_nfts::types::MintType<_1>, + pub price: ::core::option::Option<_0>, + pub start_block: ::core::option::Option<_1>, + pub end_block: ::core::option::Option<_1>, + pub default_item_settings: runtime_types::pallet_nfts::types::BitFlags< + runtime_types::pallet_nfts::types::ItemSetting, + >, + #[codec(skip)] + pub __ignore: ::core::marker::PhantomData<_2>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MintType<_0> { + #[codec(index = 0)] + Issuer, + #[codec(index = 1)] + Public, + #[codec(index = 2)] + HolderOf(_0), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MintWitness<_0, _1> { + pub owned_item: ::core::option::Option<_0>, + pub mint_price: ::core::option::Option<_1>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum PalletAttributes<_0> { + #[codec(index = 0)] + UsedToClaim(_0), + #[codec(index = 1)] + TransferDisabled, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum PalletFeature { + #[codec(index = 1)] + Trading, + #[codec(index = 2)] + Attributes, + #[codec(index = 4)] + Approvals, + #[codec(index = 8)] + Swaps, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PendingSwap<_0, _1, _2, _3> { + pub desired_collection: _0, + pub desired_item: ::core::option::Option<_0>, + pub price: ::core::option::Option<_2>, + pub deadline: _3, + #[codec(skip)] + pub __ignore: ::core::marker::PhantomData<_1>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PreSignedAttributes<_0, _1, _2, _3> { + pub collection: _0, + pub item: _1, + pub attributes: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + pub namespace: runtime_types::pallet_nfts::types::AttributeNamespace<_2>, + pub deadline: _3, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PreSignedMint<_0, _1, _2, _3, _4> { + pub collection: _0, + pub item: _1, + pub attributes: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + pub metadata: ::std::vec::Vec<::core::primitive::u8>, + pub only_account: ::core::option::Option<_2>, + pub deadline: _3, + pub mint_price: ::core::option::Option<_4>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum PriceDirection { + #[codec(index = 0)] + Send, + #[codec(index = 1)] + Receive, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PriceWithDirection<_0> { + pub amount: _0, + pub direction: runtime_types::pallet_nfts::types::PriceDirection, + } + } + } pub mod pallet_nis { use super::runtime_types; pub mod pallet { @@ -44411,6 +77486,762 @@ pub mod api { } } } + pub mod pallet_nomination_pools { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::join`]."] + join { + #[codec(compact)] + amount: ::core::primitive::u128, + pool_id: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::bond_extra`]."] + bond_extra { + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::claim_payout`]."] + claim_payout, + #[codec(index = 3)] + #[doc = "See [`Pallet::unbond`]."] + unbond { + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + unbonding_points: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] + pool_withdraw_unbonded { + pool_id: ::core::primitive::u32, + num_slashing_spans: ::core::primitive::u32, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::withdraw_unbonded`]."] + withdraw_unbonded { + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + num_slashing_spans: ::core::primitive::u32, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::create`]."] + create { + #[codec(compact)] + amount: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::create_with_pool_id`]."] + create_with_pool_id { + #[codec(compact)] + amount: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pool_id: ::core::primitive::u32, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::nominate`]."] + nominate { + pool_id: ::core::primitive::u32, + validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 9)] + #[doc = "See [`Pallet::set_state`]."] + set_state { + pool_id: ::core::primitive::u32, + state: runtime_types::pallet_nomination_pools::PoolState, + }, + #[codec(index = 10)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + pool_id: ::core::primitive::u32, + metadata: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 11)] + #[doc = "See [`Pallet::set_configs`]."] + set_configs { + min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + min_create_bond: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + max_pools: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + max_members: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + }, + #[codec(index = 12)] + #[doc = "See [`Pallet::update_roles`]."] + update_roles { + pool_id: ::core::primitive::u32, + new_root: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 13)] + #[doc = "See [`Pallet::chill`]."] + chill { pool_id: ::core::primitive::u32 }, + #[codec(index = 14)] + #[doc = "See [`Pallet::bond_extra_other`]."] + bond_extra_other { + member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::set_claim_permission`]."] + set_claim_permission { + permission: runtime_types::pallet_nomination_pools::ClaimPermission, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::claim_payout_other`]."] + claim_payout_other { other: ::subxt::utils::AccountId32 }, + #[codec(index = 17)] + #[doc = "See [`Pallet::set_commission`]."] + set_commission { + pool_id: ::core::primitive::u32, + new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::set_commission_max`]."] + set_commission_max { + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::set_commission_change_rate`]."] + set_commission_change_rate { + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + }, + #[codec(index = 20)] + #[doc = "See [`Pallet::claim_commission`]."] + claim_commission { pool_id: ::core::primitive::u32 }, + #[codec(index = 21)] + #[doc = "See [`Pallet::adjust_pool_deposit`]."] + adjust_pool_deposit { pool_id: ::core::primitive::u32 }, + #[codec(index = 22)] + #[doc = "See [`Pallet::set_commission_claim_permission`]."] + set_commission_claim_permission { + pool_id: ::core::primitive::u32, + permission: ::core::option::Option< + runtime_types::pallet_nomination_pools::CommissionClaimPermission< + ::subxt::utils::AccountId32, + >, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum DefensiveError { + #[codec(index = 0)] + NotEnoughSpaceInUnbondPool, + #[codec(index = 1)] + PoolNotFound, + #[codec(index = 2)] + RewardPoolNotFound, + #[codec(index = 3)] + SubPoolsNotFound, + #[codec(index = 4)] + BondedStashKilledPrematurely, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "A (bonded) pool id does not exist."] + PoolNotFound, + #[codec(index = 1)] + #[doc = "An account is not a member."] + PoolMemberNotFound, + #[codec(index = 2)] + #[doc = "A reward pool does not exist. In all cases this is a system logic error."] + RewardPoolNotFound, + #[codec(index = 3)] + #[doc = "A sub pool does not exist."] + SubPoolsNotFound, + #[codec(index = 4)] + #[doc = "An account is already delegating in another pool. An account may only belong to one"] + #[doc = "pool at a time."] + AccountBelongsToOtherPool, + #[codec(index = 5)] + #[doc = "The member is fully unbonded (and thus cannot access the bonded and reward pool"] + #[doc = "anymore to, for example, collect rewards)."] + FullyUnbonding, + #[codec(index = 6)] + #[doc = "The member cannot unbond further chunks due to reaching the limit."] + MaxUnbondingLimit, + #[codec(index = 7)] + #[doc = "None of the funds can be withdrawn yet because the bonding duration has not passed."] + CannotWithdrawAny, + #[codec(index = 8)] + #[doc = "The amount does not meet the minimum bond to either join or create a pool."] + #[doc = ""] + #[doc = "The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The"] + #[doc = "caller does not have nominating permissions for the pool. Members can never unbond to a"] + #[doc = "value below `MinJoinBond`."] + MinimumBondNotMet, + #[codec(index = 9)] + #[doc = "The transaction could not be executed due to overflow risk for the pool."] + OverflowRisk, + #[codec(index = 10)] + #[doc = "A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for"] + #[doc = "other members to be permissionlessly unbonded."] + NotDestroying, + #[codec(index = 11)] + #[doc = "The caller does not have nominating permissions for the pool."] + NotNominator, + #[codec(index = 12)] + #[doc = "Either a) the caller cannot make a valid kick or b) the pool is not destroying."] + NotKickerOrDestroying, + #[codec(index = 13)] + #[doc = "The pool is not open to join"] + NotOpen, + #[codec(index = 14)] + #[doc = "The system is maxed out on pools."] + MaxPools, + #[codec(index = 15)] + #[doc = "Too many members in the pool or system."] + MaxPoolMembers, + #[codec(index = 16)] + #[doc = "The pools state cannot be changed."] + CanNotChangeState, + #[codec(index = 17)] + #[doc = "The caller does not have adequate permissions."] + DoesNotHavePermission, + #[codec(index = 18)] + #[doc = "Metadata exceeds [`Config::MaxMetadataLen`]"] + MetadataExceedsMaxLen, + #[codec(index = 19)] + #[doc = "Some error occurred that should never happen. This should be reported to the"] + #[doc = "maintainers."] + Defensive(runtime_types::pallet_nomination_pools::pallet::DefensiveError), + #[codec(index = 20)] + #[doc = "Partial unbonding now allowed permissionlessly."] + PartialUnbondNotAllowedPermissionlessly, + #[codec(index = 21)] + #[doc = "The pool's max commission cannot be set higher than the existing value."] + MaxCommissionRestricted, + #[codec(index = 22)] + #[doc = "The supplied commission exceeds the max allowed commission."] + CommissionExceedsMaximum, + #[codec(index = 23)] + #[doc = "The supplied commission exceeds global maximum commission."] + CommissionExceedsGlobalMaximum, + #[codec(index = 24)] + #[doc = "Not enough blocks have surpassed since the last commission update."] + CommissionChangeThrottled, + #[codec(index = 25)] + #[doc = "The submitted changes to commission change rate are not allowed."] + CommissionChangeRateNotAllowed, + #[codec(index = 26)] + #[doc = "There is no pending commission to claim."] + NoPendingCommission, + #[codec(index = 27)] + #[doc = "No commission current has been set."] + NoCommissionCurrentSet, + #[codec(index = 28)] + #[doc = "Pool id currently in use."] + PoolIdInUse, + #[codec(index = 29)] + #[doc = "Pool id provided is not correct/usable."] + InvalidPoolId, + #[codec(index = 30)] + #[doc = "Bonding extra is restricted to the exact pending reward amount."] + BondExtraRestricted, + #[codec(index = 31)] + #[doc = "No imbalance in the ED deposit for the pool."] + NothingToAdjust, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Events of this pallet."] + pub enum Event { + #[codec(index = 0)] + #[doc = "A pool has been created."] + Created { + depositor: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + }, + #[codec(index = 1)] + #[doc = "A member has became bonded in a pool."] + Bonded { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + bonded: ::core::primitive::u128, + joined: ::core::primitive::bool, + }, + #[codec(index = 2)] + #[doc = "A payout has been made to a member."] + PaidOut { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + payout: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "A member has unbonded from their pool."] + #[doc = ""] + #[doc = "- `balance` is the corresponding balance of the number of points that has been"] + #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] + #[doc = " pool."] + #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] + #[doc = "dissolved into the corresponding unbonding pool."] + #[doc = "- `era` is the era in which the balance will be unbonded."] + #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] + #[doc = "number of points that are issued in the unbonding pool will be less than the amount"] + #[doc = "requested to be unbonded."] + Unbonded { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + points: ::core::primitive::u128, + era: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "A member has withdrawn from their pool."] + #[doc = ""] + #[doc = "The given number of `points` have been dissolved in return of `balance`."] + #[doc = ""] + #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] + #[doc = "will be 1."] + Withdrawn { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + points: ::core::primitive::u128, + }, + #[codec(index = 5)] + #[doc = "A pool has been destroyed."] + Destroyed { pool_id: ::core::primitive::u32 }, + #[codec(index = 6)] + #[doc = "The state of a pool has changed"] + StateChanged { + pool_id: ::core::primitive::u32, + new_state: runtime_types::pallet_nomination_pools::PoolState, + }, + #[codec(index = 7)] + #[doc = "A member has been removed from a pool."] + #[doc = ""] + #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] + MemberRemoved { + pool_id: ::core::primitive::u32, + member: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + #[doc = "The roles of a pool have been updated to the given new roles. Note that the depositor"] + #[doc = "can never change."] + RolesUpdated { + root: ::core::option::Option<::subxt::utils::AccountId32>, + bouncer: ::core::option::Option<::subxt::utils::AccountId32>, + nominator: ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 9)] + #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] + PoolSlashed { + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + }, + #[codec(index = 10)] + #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] + UnbondingPoolSlashed { + pool_id: ::core::primitive::u32, + era: ::core::primitive::u32, + balance: ::core::primitive::u128, + }, + #[codec(index = 11)] + #[doc = "A pool's commission setting has been changed."] + PoolCommissionUpdated { + pool_id: ::core::primitive::u32, + current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + }, + #[codec(index = 12)] + #[doc = "A pool's maximum commission setting has been changed."] + PoolMaxCommissionUpdated { + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 13)] + #[doc = "A pool's commission `change_rate` has been changed."] + PoolCommissionChangeRateUpdated { + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + }, + #[codec(index = 14)] + #[doc = "Pool commission claim permission has been updated."] + PoolCommissionClaimPermissionUpdated { + pool_id: ::core::primitive::u32, + permission: ::core::option::Option< + runtime_types::pallet_nomination_pools::CommissionClaimPermission< + ::subxt::utils::AccountId32, + >, + >, + }, + #[codec(index = 15)] + #[doc = "Pool commission has been claimed."] + PoolCommissionClaimed { + pool_id: ::core::primitive::u32, + commission: ::core::primitive::u128, + }, + #[codec(index = 16)] + #[doc = "Topped up deficit in frozen ED of the reward pool."] + MinBalanceDeficitAdjusted { + pool_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + }, + #[codec(index = 17)] + #[doc = "Claimed excess frozen ED of af the reward pool."] + MinBalanceExcessAdjusted { + pool_id: ::core::primitive::u32, + amount: ::core::primitive::u128, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum FreezeReason { + #[codec(index = 0)] + PoolMinBalance, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum BondExtra<_0> { + #[codec(index = 0)] + FreeBalance(_0), + #[codec(index = 1)] + Rewards, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondedPoolInner { + pub commission: runtime_types::pallet_nomination_pools::Commission, + pub member_counter: ::core::primitive::u32, + pub points: ::core::primitive::u128, + pub roles: + runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, + pub state: runtime_types::pallet_nomination_pools::PoolState, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ClaimPermission { + #[codec(index = 0)] + Permissioned, + #[codec(index = 1)] + PermissionlessCompound, + #[codec(index = 2)] + PermissionlessWithdraw, + #[codec(index = 3)] + PermissionlessAll, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Commission { + pub current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + pub max: ::core::option::Option, + pub change_rate: ::core::option::Option< + runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + >, + pub throttle_from: ::core::option::Option<::core::primitive::u32>, + pub claim_permission: ::core::option::Option< + runtime_types::pallet_nomination_pools::CommissionClaimPermission< + ::subxt::utils::AccountId32, + >, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CommissionChangeRate<_0> { + pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, + pub min_delay: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum CommissionClaimPermission<_0> { + #[codec(index = 0)] + Permissionless, + #[codec(index = 1)] + Account(_0), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ConfigOp<_0> { + #[codec(index = 0)] + Noop, + #[codec(index = 1)] + Set(_0), + #[codec(index = 2)] + Remove, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolMember { + pub pool_id: ::core::primitive::u32, + pub points: ::core::primitive::u128, + pub last_recorded_reward_counter: + runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub unbonding_eras: + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + ::core::primitive::u32, + ::core::primitive::u128, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolRoles<_0> { + pub depositor: _0, + pub root: ::core::option::Option<_0>, + pub nominator: ::core::option::Option<_0>, + pub bouncer: ::core::option::Option<_0>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum PoolState { + #[codec(index = 0)] + Open, + #[codec(index = 1)] + Blocked, + #[codec(index = 2)] + Destroying, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RewardPool { + pub last_recorded_reward_counter: + runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub last_recorded_total_payouts: ::core::primitive::u128, + pub total_rewards_claimed: ::core::primitive::u128, + pub total_commission_pending: ::core::primitive::u128, + pub total_commission_claimed: ::core::primitive::u128, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubPools { + pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, + pub with_era: + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + ::core::primitive::u32, + runtime_types::pallet_nomination_pools::UnbondPool, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnbondPool { + pub points: ::core::primitive::u128, + pub balance: ::core::primitive::u128, + } + } pub mod pallet_offences { use super::runtime_types; pub mod pallet { @@ -44614,23 +78445,32 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::proxy`]."] proxy { - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, force_proxy_type: - ::core::option::Option, - call: ::std::boxed::Box, + ::core::option::Option, + call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "See [`Pallet::add_proxy`]."] add_proxy { - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::rococo_runtime::ProxyType, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + proxy_type: runtime_types::kitchensink_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 2)] #[doc = "See [`Pallet::remove_proxy`]."] remove_proxy { - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::rococo_runtime::ProxyType, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + proxy_type: runtime_types::kitchensink_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 3)] @@ -44639,15 +78479,18 @@ pub mod api { #[codec(index = 4)] #[doc = "See [`Pallet::create_pure`]."] create_pure { - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::kitchensink_runtime::ProxyType, delay: ::core::primitive::u32, index: ::core::primitive::u16, }, #[codec(index = 5)] #[doc = "See [`Pallet::kill_pure`]."] kill_pure { - spawner: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - proxy_type: runtime_types::rococo_runtime::ProxyType, + spawner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + proxy_type: runtime_types::kitchensink_runtime::ProxyType, index: ::core::primitive::u16, #[codec(compact)] height: ::core::primitive::u32, @@ -44657,29 +78500,44 @@ pub mod api { #[codec(index = 6)] #[doc = "See [`Pallet::announce`]."] announce { - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, call_hash: ::subxt::utils::H256, }, #[codec(index = 7)] #[doc = "See [`Pallet::remove_announcement`]."] remove_announcement { - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, call_hash: ::subxt::utils::H256, }, #[codec(index = 8)] #[doc = "See [`Pallet::reject_announcement`]."] reject_announcement { - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, call_hash: ::subxt::utils::H256, }, #[codec(index = 9)] #[doc = "See [`Pallet::proxy_announced`]."] proxy_announced { - delegate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - real: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + real: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, force_proxy_type: - ::core::option::Option, - call: ::std::boxed::Box, + ::core::option::Option, + call: ::std::boxed::Box, }, } #[derive( @@ -44743,7 +78601,7 @@ pub mod api { PureCreated { pure: ::subxt::utils::AccountId32, who: ::subxt::utils::AccountId32, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::kitchensink_runtime::ProxyType, disambiguation_index: ::core::primitive::u16, }, #[codec(index = 2)] @@ -44758,7 +78616,7 @@ pub mod api { ProxyAdded { delegator: ::subxt::utils::AccountId32, delegatee: ::subxt::utils::AccountId32, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::kitchensink_runtime::ProxyType, delay: ::core::primitive::u32, }, #[codec(index = 4)] @@ -44766,7 +78624,7 @@ pub mod api { ProxyRemoved { delegator: ::subxt::utils::AccountId32, delegatee: ::subxt::utils::AccountId32, - proxy_type: runtime_types::rococo_runtime::ProxyType, + proxy_type: runtime_types::kitchensink_runtime::ProxyType, delay: ::core::primitive::u32, }, } @@ -44821,22 +78679,34 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::add_member`]."] add_member { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 1)] #[doc = "See [`Pallet::promote_member`]."] promote_member { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 2)] #[doc = "See [`Pallet::demote_member`]."] demote_member { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 3)] #[doc = "See [`Pallet::remove_member`]."] remove_member { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, min_rank: ::core::primitive::u16, }, #[codec(index = 4)] @@ -44995,14 +78865,23 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::as_recovered`]."] as_recovered { - account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - call: ::std::boxed::Box, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "See [`Pallet::set_recovered`]."] set_recovered { - lost: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + lost: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + rescuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 2)] #[doc = "See [`Pallet::create_recovery`]."] @@ -45014,23 +78893,38 @@ pub mod api { #[codec(index = 3)] #[doc = "See [`Pallet::initiate_recovery`]."] initiate_recovery { - account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 4)] #[doc = "See [`Pallet::vouch_recovery`]."] vouch_recovery { - lost: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + lost: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + rescuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 5)] #[doc = "See [`Pallet::claim_recovery`]."] claim_recovery { - account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 6)] #[doc = "See [`Pallet::close_recovery`]."] close_recovery { - rescuer: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + rescuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 7)] #[doc = "See [`Pallet::remove_recovery`]."] @@ -45038,7 +78932,10 @@ pub mod api { #[codec(index = 8)] #[doc = "See [`Pallet::cancel_recovered`]."] cancel_recovered { - account: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, } #[derive( @@ -45203,9 +79100,9 @@ pub mod api { #[doc = "See [`Pallet::submit`]."] submit { proposal_origin: - ::std::boxed::Box, + ::std::boxed::Box, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::kitchensink_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, enactment_moment: @@ -45257,9 +79154,9 @@ pub mod api { #[doc = "See [`Pallet::submit`]."] submit { proposal_origin: - ::std::boxed::Box, + ::std::boxed::Box, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::kitchensink_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, enactment_moment: @@ -45417,7 +79314,7 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::kitchensink_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, }, @@ -45447,7 +79344,7 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::kitchensink_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, tally: runtime_types::pallet_conviction_voting::types::Tally< @@ -45539,7 +79436,7 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::kitchensink_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, }, @@ -45569,7 +79466,7 @@ pub mod api { index: ::core::primitive::u32, track: ::core::primitive::u16, proposal: runtime_types::frame_support::traits::preimages::Bounded< - runtime_types::rococo_runtime::RuntimeCall, + runtime_types::kitchensink_runtime::RuntimeCall, runtime_types::sp_runtime::traits::BlakeTwo256, >, tally: runtime_types::pallet_ranked_collective::Tally, @@ -45810,6 +79707,68 @@ pub mod api { } } } + pub mod pallet_remark { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::store`]."] + store { + remark: ::std::vec::Vec<::core::primitive::u8>, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Attempting to store empty data."] + Empty, + #[codec(index = 1)] + #[doc = "Attempted to call `store` outside of block execution."] + BadContext, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Stored data off chain."] + Stored { + sender: ::subxt::utils::AccountId32, + content_hash: ::subxt::utils::H256, + }, + } + } + } pub mod pallet_root_testing { use super::runtime_types; pub mod pallet { @@ -45853,6 +79812,356 @@ pub mod api { } } } + pub mod pallet_safe_mode { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::enter`]."] + enter, + #[codec(index = 1)] + #[doc = "See [`Pallet::force_enter`]."] + force_enter, + #[codec(index = 2)] + #[doc = "See [`Pallet::extend`]."] + extend, + #[codec(index = 3)] + #[doc = "See [`Pallet::force_extend`]."] + force_extend, + #[codec(index = 4)] + #[doc = "See [`Pallet::force_exit`]."] + force_exit, + #[codec(index = 5)] + #[doc = "See [`Pallet::force_slash_deposit`]."] + force_slash_deposit { + account: ::subxt::utils::AccountId32, + block: ::core::primitive::u32, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::release_deposit`]."] + release_deposit { + account: ::subxt::utils::AccountId32, + block: ::core::primitive::u32, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::force_release_deposit`]."] + force_release_deposit { + account: ::subxt::utils::AccountId32, + block: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The safe-mode is (already or still) entered."] + Entered, + #[codec(index = 1)] + #[doc = "The safe-mode is (already or still) exited."] + Exited, + #[codec(index = 2)] + #[doc = "This functionality of the pallet is disabled by the configuration."] + NotConfigured, + #[codec(index = 3)] + #[doc = "There is no balance reserved."] + NoDeposit, + #[codec(index = 4)] + #[doc = "The account already has a deposit reserved and can therefore not enter or extend again."] + AlreadyDeposited, + #[codec(index = 5)] + #[doc = "This deposit cannot be released yet."] + CannotReleaseYet, + #[codec(index = 6)] + #[doc = "An error from the underlying `Currency`."] + CurrencyError, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "The safe-mode was entered until inclusively this block."] + Entered { until: ::core::primitive::u32 }, + #[codec(index = 1)] + #[doc = "The safe-mode was extended until inclusively this block."] + Extended { until: ::core::primitive::u32 }, + #[codec(index = 2)] + #[doc = "Exited the safe-mode for a specific reason."] + Exited { + reason: runtime_types::pallet_safe_mode::pallet::ExitReason, + }, + #[codec(index = 3)] + #[doc = "An account reserved funds for either entering or extending the safe-mode."] + DepositPlaced { + account: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "An account had a reserve released that was reserved."] + DepositReleased { + account: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 5)] + #[doc = "An account had reserve slashed that was reserved."] + DepositSlashed { + account: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 6)] + #[doc = "Could not hold funds for entering or extending the safe-mode."] + #[doc = ""] + #[doc = "This error comes from the underlying `Currency`."] + CannotDeposit, + #[codec(index = 7)] + #[doc = "Could not release funds for entering or extending the safe-mode."] + #[doc = ""] + #[doc = "This error comes from the underlying `Currency`."] + CannotRelease, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ExitReason { + #[codec(index = 0)] + Timeout, + #[codec(index = 1)] + Force, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum HoldReason { + #[codec(index = 0)] + EnterOrExtend, + } + } + } + pub mod pallet_salary { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::init`]."] + init, + #[codec(index = 1)] + #[doc = "See [`Pallet::bump`]."] + bump, + #[codec(index = 2)] + #[doc = "See [`Pallet::induct`]."] + induct, + #[codec(index = 3)] + #[doc = "See [`Pallet::register`]."] + register, + #[codec(index = 4)] + #[doc = "See [`Pallet::payout`]."] + payout, + #[codec(index = 5)] + #[doc = "See [`Pallet::payout_other`]."] + payout_other { + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::check_payment`]."] + check_payment, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The salary system has already been started."] + AlreadyStarted, + #[codec(index = 1)] + #[doc = "The account is not a ranked member."] + NotMember, + #[codec(index = 2)] + #[doc = "The account is already inducted."] + AlreadyInducted, + #[codec(index = 3)] + NotInducted, + #[codec(index = 4)] + #[doc = "The member does not have a current valid claim."] + NoClaim, + #[codec(index = 5)] + #[doc = "The member's claim is zero."] + ClaimZero, + #[codec(index = 6)] + #[doc = "Current cycle's registration period is over."] + TooLate, + #[codec(index = 7)] + #[doc = "Current cycle's payment period is not yet begun."] + TooEarly, + #[codec(index = 8)] + #[doc = "Cycle is not yet over."] + NotYet, + #[codec(index = 9)] + #[doc = "The payout cycles have not yet started."] + NotStarted, + #[codec(index = 10)] + #[doc = "There is no budget left for the payout."] + Bankrupt, + #[codec(index = 11)] + #[doc = "There was some issue with the mechanism of payment."] + PayError, + #[codec(index = 12)] + #[doc = "The payment has neither failed nor succeeded yet."] + Inconclusive, + #[codec(index = 13)] + #[doc = "The cycle is after that in which the payment was made."] + NotCurrent, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A member is inducted into the payroll."] + Inducted { who: ::subxt::utils::AccountId32 }, + #[codec(index = 1)] + #[doc = "A member registered for a payout."] + Registered { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "A payment happened."] + Paid { + who: ::subxt::utils::AccountId32, + beneficiary: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + id: (), + }, + #[codec(index = 3)] + #[doc = "The next cycle begins."] + CycleStarted { index: ::core::primitive::u32 }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ClaimState<_0, _1> { + #[codec(index = 0)] + Nothing, + #[codec(index = 1)] + Registered(_0), + #[codec(index = 2)] + Attempted { + registered: ::core::option::Option<_0>, + id: _1, + amount: _0, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimantStatus<_0, _1, _2> { + pub last_active: _0, + pub status: runtime_types::pallet_salary::ClaimState<_1, _2>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct StatusType<_0, _1, _2> { + pub cycle_index: _0, + pub cycle_start: _1, + pub budget: _2, + pub total_registrations: _2, + pub total_unregistered_paid: _2, + } + } pub mod pallet_scheduler { use super::runtime_types; pub mod pallet { @@ -45878,7 +80187,7 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "See [`Pallet::cancel`]."] @@ -45896,7 +80205,7 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 3)] #[doc = "See [`Pallet::cancel_named`]."] @@ -45912,7 +80221,7 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 5)] #[doc = "See [`Pallet::schedule_named_after`]."] @@ -45924,7 +80233,7 @@ pub mod api { ::core::primitive::u32, )>, priority: ::core::primitive::u8, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, } #[derive( @@ -46046,7 +80355,7 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::set_keys`]."] set_keys { - keys: runtime_types::rococo_runtime::SessionKeys, + keys: runtime_types::kitchensink_runtime::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] @@ -46102,6 +80411,28 @@ pub mod api { } } } + pub mod pallet_skip_feeless_payment { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A transaction fee was skipped."] + FeeSkipped { who: ::subxt::utils::AccountId32 }, + } + } + } pub mod pallet_society { use super::runtime_types; pub mod pallet { @@ -46127,7 +80458,10 @@ pub mod api { #[codec(index = 2)] #[doc = "See [`Pallet::vouch`]."] vouch { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, value: ::core::primitive::u128, tip: ::core::primitive::u128, }, @@ -46137,7 +80471,10 @@ pub mod api { #[codec(index = 4)] #[doc = "See [`Pallet::vote`]."] vote { - candidate: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + candidate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, approve: ::core::primitive::bool, }, #[codec(index = 5)] @@ -46152,7 +80489,10 @@ pub mod api { #[codec(index = 8)] #[doc = "See [`Pallet::found_society`]."] found_society { - founder: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + founder: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, max_members: ::core::primitive::u32, max_intake: ::core::primitive::u32, max_strikes: ::core::primitive::u32, @@ -46165,7 +80505,10 @@ pub mod api { #[codec(index = 10)] #[doc = "See [`Pallet::judge_suspended_member`]."] judge_suspended_member { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, forgive: ::core::primitive::bool, }, #[codec(index = 11)] @@ -46581,6 +80924,631 @@ pub mod api { Banned, } } + pub mod pallet_staking { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::bond`]."] + bond { + #[codec(compact)] + value: ::core::primitive::u128, + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::bond_extra`]."] + bond_extra { + #[codec(compact)] + max_additional: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::unbond`]."] + unbond { + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::withdraw_unbonded`]."] + withdraw_unbonded { + num_slashing_spans: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::validate`]."] + validate { + prefs: runtime_types::pallet_staking::ValidatorPrefs, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::nominate`]."] + nominate { + targets: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::chill`]."] + chill, + #[codec(index = 7)] + #[doc = "See [`Pallet::set_payee`]."] + set_payee { + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::set_controller`]."] + set_controller, + #[codec(index = 9)] + #[doc = "See [`Pallet::set_validator_count`]."] + set_validator_count { + #[codec(compact)] + new: ::core::primitive::u32, + }, + #[codec(index = 10)] + #[doc = "See [`Pallet::increase_validator_count`]."] + increase_validator_count { + #[codec(compact)] + additional: ::core::primitive::u32, + }, + #[codec(index = 11)] + #[doc = "See [`Pallet::scale_validator_count`]."] + scale_validator_count { + factor: runtime_types::sp_arithmetic::per_things::Percent, + }, + #[codec(index = 12)] + #[doc = "See [`Pallet::force_no_eras`]."] + force_no_eras, + #[codec(index = 13)] + #[doc = "See [`Pallet::force_new_era`]."] + force_new_era, + #[codec(index = 14)] + #[doc = "See [`Pallet::set_invulnerables`]."] + set_invulnerables { + invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::force_unstake`]."] + force_unstake { + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::force_new_era_always`]."] + force_new_era_always, + #[codec(index = 17)] + #[doc = "See [`Pallet::cancel_deferred_slash`]."] + cancel_deferred_slash { + era: ::core::primitive::u32, + slash_indices: ::std::vec::Vec<::core::primitive::u32>, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::payout_stakers`]."] + payout_stakers { + validator_stash: ::subxt::utils::AccountId32, + era: ::core::primitive::u32, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::rebond`]."] + rebond { + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 20)] + #[doc = "See [`Pallet::reap_stash`]."] + reap_stash { + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + }, + #[codec(index = 21)] + #[doc = "See [`Pallet::kick`]."] + kick { + who: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 22)] + #[doc = "See [`Pallet::set_staking_configs`]."] + set_staking_configs { + min_nominator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + min_validator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + max_nominator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + max_validator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + chill_threshold: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, + min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + }, + #[codec(index = 23)] + #[doc = "See [`Pallet::chill_other`]."] + chill_other { stash: ::subxt::utils::AccountId32 }, + #[codec(index = 24)] + #[doc = "See [`Pallet::force_apply_min_commission`]."] + force_apply_min_commission { + validator_stash: ::subxt::utils::AccountId32, + }, + #[codec(index = 25)] + #[doc = "See [`Pallet::set_min_commission`]."] + set_min_commission { + new: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 26)] + #[doc = "See [`Pallet::payout_stakers_by_page`]."] + payout_stakers_by_page { + validator_stash: ::subxt::utils::AccountId32, + era: ::core::primitive::u32, + page: ::core::primitive::u32, + }, + #[codec(index = 27)] + #[doc = "See [`Pallet::update_payee`]."] + update_payee { + controller: ::subxt::utils::AccountId32, + }, + #[codec(index = 28)] + #[doc = "See [`Pallet::deprecate_controller_batch`]."] + deprecate_controller_batch { + controllers: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ConfigOp<_0> { + #[codec(index = 0)] + Noop, + #[codec(index = 1)] + Set(_0), + #[codec(index = 2)] + Remove, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Not a controller account."] + NotController, + #[codec(index = 1)] + #[doc = "Not a stash account."] + NotStash, + #[codec(index = 2)] + #[doc = "Stash is already bonded."] + AlreadyBonded, + #[codec(index = 3)] + #[doc = "Controller is already paired."] + AlreadyPaired, + #[codec(index = 4)] + #[doc = "Targets cannot be empty."] + EmptyTargets, + #[codec(index = 5)] + #[doc = "Duplicate index."] + DuplicateIndex, + #[codec(index = 6)] + #[doc = "Slash record index out of bounds."] + InvalidSlashIndex, + #[codec(index = 7)] + #[doc = "Cannot have a validator or nominator role, with value less than the minimum defined by"] + #[doc = "governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the"] + #[doc = "intention, `chill` first to remove one's role as validator/nominator."] + InsufficientBond, + #[codec(index = 8)] + #[doc = "Can not schedule more unlock chunks."] + NoMoreChunks, + #[codec(index = 9)] + #[doc = "Can not rebond without unlocking chunks."] + NoUnlockChunk, + #[codec(index = 10)] + #[doc = "Attempting to target a stash that still has funds."] + FundedTarget, + #[codec(index = 11)] + #[doc = "Invalid era to reward."] + InvalidEraToReward, + #[codec(index = 12)] + #[doc = "Invalid number of nominations."] + InvalidNumberOfNominations, + #[codec(index = 13)] + #[doc = "Items are not sorted and unique."] + NotSortedAndUnique, + #[codec(index = 14)] + #[doc = "Rewards for this era have already been claimed for this validator."] + AlreadyClaimed, + #[codec(index = 15)] + #[doc = "No nominators exist on this page."] + InvalidPage, + #[codec(index = 16)] + #[doc = "Incorrect previous history depth input provided."] + IncorrectHistoryDepth, + #[codec(index = 17)] + #[doc = "Incorrect number of slashing spans provided."] + IncorrectSlashingSpans, + #[codec(index = 18)] + #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] + BadState, + #[codec(index = 19)] + #[doc = "Too many nomination targets supplied."] + TooManyTargets, + #[codec(index = 20)] + #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] + BadTarget, + #[codec(index = 21)] + #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] + CannotChillOther, + #[codec(index = 22)] + #[doc = "There are too many nominators in the system. Governance needs to adjust the staking"] + #[doc = "settings to keep things safe for the runtime."] + TooManyNominators, + #[codec(index = 23)] + #[doc = "There are too many validator candidates in the system. Governance needs to adjust the"] + #[doc = "staking settings to keep things safe for the runtime."] + TooManyValidators, + #[codec(index = 24)] + #[doc = "Commission is too low. Must be at least `MinCommission`."] + CommissionTooLow, + #[codec(index = 25)] + #[doc = "Some bound is not met."] + BoundNotMet, + #[codec(index = 26)] + #[doc = "Used when attempting to use deprecated controller account logic."] + ControllerDeprecated, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] + #[doc = "the remainder from the maximum amount of reward."] + EraPaid { + era_index: ::core::primitive::u32, + validator_payout: ::core::primitive::u128, + remainder: ::core::primitive::u128, + }, + #[codec(index = 1)] + #[doc = "The nominator has been rewarded by this amount to this destination."] + Rewarded { + stash: ::subxt::utils::AccountId32, + dest: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + #[doc = "A staker (validator or nominator) has been slashed by the given amount."] + Slashed { + staker: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "A slash for the given validator, for the given percentage of their stake, at the given"] + #[doc = "era as been reported."] + SlashReported { + validator: ::subxt::utils::AccountId32, + fraction: runtime_types::sp_arithmetic::per_things::Perbill, + slash_era: ::core::primitive::u32, + }, + #[codec(index = 4)] + #[doc = "An old slashing report from a prior era was discarded because it could"] + #[doc = "not be processed."] + OldSlashingReportDiscarded { + session_index: ::core::primitive::u32, + }, + #[codec(index = 5)] + #[doc = "A new set of stakers was elected."] + StakersElected, + #[codec(index = 6)] + #[doc = "An account has bonded this amount. \\[stash, amount\\]"] + #[doc = ""] + #[doc = "NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,"] + #[doc = "it will not be emitted for staking rewards when they are added to stake."] + Bonded { + stash: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 7)] + #[doc = "An account has unbonded this amount."] + Unbonded { + stash: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 8)] + #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] + #[doc = "from the unlocking queue."] + Withdrawn { + stash: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 9)] + #[doc = "A nominator has been kicked from a validator."] + Kicked { + nominator: ::subxt::utils::AccountId32, + stash: ::subxt::utils::AccountId32, + }, + #[codec(index = 10)] + #[doc = "The election failed. No new era is planned."] + StakingElectionFailed, + #[codec(index = 11)] + #[doc = "An account has stopped participating as either a validator or nominator."] + Chilled { stash: ::subxt::utils::AccountId32 }, + #[codec(index = 12)] + #[doc = "The stakers' rewards are getting paid."] + PayoutStarted { + era_index: ::core::primitive::u32, + validator_stash: ::subxt::utils::AccountId32, + }, + #[codec(index = 13)] + #[doc = "A validator has set their preferences."] + ValidatorPrefsSet { + stash: ::subxt::utils::AccountId32, + prefs: runtime_types::pallet_staking::ValidatorPrefs, + }, + #[codec(index = 14)] + #[doc = "Voters size limit reached."] + SnapshotVotersSizeExceeded { size: ::core::primitive::u32 }, + #[codec(index = 15)] + #[doc = "Targets size limit reached."] + SnapshotTargetsSizeExceeded { size: ::core::primitive::u32 }, + #[codec(index = 16)] + #[doc = "A new force era mode was set."] + ForceEra { + mode: runtime_types::pallet_staking::Forcing, + }, + } + } + } + pub mod slashing { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SlashingSpans { + pub span_index: ::core::primitive::u32, + pub last_start: ::core::primitive::u32, + pub last_nonzero_slash: ::core::primitive::u32, + pub prior: ::std::vec::Vec<::core::primitive::u32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SpanRecord<_0> { + pub slashed: _0, + pub paid_out: _0, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ActiveEraInfo { + pub index: ::core::primitive::u32, + pub start: ::core::option::Option<::core::primitive::u64>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EraRewardPoints<_0> { + pub total: ::core::primitive::u32, + pub individual: ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Forcing { + #[codec(index = 0)] + NotForcing, + #[codec(index = 1)] + ForceNew, + #[codec(index = 2)] + ForceNone, + #[codec(index = 3)] + ForceAlways, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Nominations { + pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + pub submitted_in: ::core::primitive::u32, + pub suppressed: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RewardDestination<_0> { + #[codec(index = 0)] + Staked, + #[codec(index = 1)] + Stash, + #[codec(index = 2)] + Controller, + #[codec(index = 3)] + Account(_0), + #[codec(index = 4)] + None, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct StakingLedger { + pub stash: ::subxt::utils::AccountId32, + #[codec(compact)] + pub total: ::core::primitive::u128, + #[codec(compact)] + pub active: ::core::primitive::u128, + pub unlocking: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_staking::UnlockChunk<::core::primitive::u128>, + >, + pub legacy_claimed_rewards: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnappliedSlash<_0, _1> { + pub validator: _0, + pub own: _1, + pub others: ::std::vec::Vec<(_0, _1)>, + pub reporters: ::std::vec::Vec<_0>, + pub payout: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnlockChunk<_0> { + #[codec(compact)] + pub value: _0, + #[codec(compact)] + pub era: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidatorPrefs { + #[codec(compact)] + pub commission: runtime_types::sp_arithmetic::per_things::Perbill, + pub blocked: ::core::primitive::bool, + } + } pub mod pallet_state_trie_migration { use super::runtime_types; pub mod pallet { @@ -46721,6 +81689,20 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum HoldReason { + #[codec(index = 0)] + SlashForMigrate, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MigrationCompute { #[codec(index = 0)] Signed, @@ -46783,6 +81765,31 @@ pub mod api { } } } + pub mod pallet_statement { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A new statement is submitted"] + NewStatement { + account: ::subxt::utils::AccountId32, + statement: runtime_types::sp_statement_store::Statement, + }, + } + } + } pub mod pallet_sudo { use super::runtime_types; pub mod pallet { @@ -46802,25 +81809,34 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::sudo`]."] sudo { - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 1)] #[doc = "See [`Pallet::sudo_unchecked_weight`]."] sudo_unchecked_weight { - call: ::std::boxed::Box, + call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] #[doc = "See [`Pallet::set_key`]."] set_key { - new: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 3)] #[doc = "See [`Pallet::sudo_as`]."] sudo_as { - who: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - call: ::std::boxed::Box, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call: ::std::boxed::Box, }, + #[codec(index = 4)] + #[doc = "See [`Pallet::remove_key`]."] + remove_key, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -46832,10 +81848,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Error for the Sudo pallet"] + #[doc = "Error for the Sudo pallet."] pub enum Error { #[codec(index = 0)] - #[doc = "Sender must be the Sudo account"] + #[doc = "Sender must be the Sudo account."] RequireSudo, } #[derive( @@ -46859,9 +81875,13 @@ pub mod api { #[codec(index = 1)] #[doc = "The sudo key has been updated."] KeyChanged { - old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, + old: ::core::option::Option<::subxt::utils::AccountId32>, + new: ::subxt::utils::AccountId32, }, #[codec(index = 2)] + #[doc = "The key was permanently removed."] + KeyRemoved, + #[codec(index = 3)] #[doc = "A [sudo_as](Pallet::sudo_as) call just took place."] SudoAsDone { sudo_result: @@ -46895,6 +81915,150 @@ pub mod api { } } } + pub mod pallet_tips { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::report_awesome`]."] + report_awesome { + reason: ::std::vec::Vec<::core::primitive::u8>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::retract_tip`]."] + retract_tip { hash: ::subxt::utils::H256 }, + #[codec(index = 2)] + #[doc = "See [`Pallet::tip_new`]."] + tip_new { + reason: ::std::vec::Vec<::core::primitive::u8>, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + tip_value: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::tip`]."] + tip { + hash: ::subxt::utils::H256, + #[codec(compact)] + tip_value: ::core::primitive::u128, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::close_tip`]."] + close_tip { hash: ::subxt::utils::H256 }, + #[codec(index = 5)] + #[doc = "See [`Pallet::slash_tip`]."] + slash_tip { hash: ::subxt::utils::H256 }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The reason given is just too big."] + ReasonTooBig, + #[codec(index = 1)] + #[doc = "The tip was already found/started."] + AlreadyKnown, + #[codec(index = 2)] + #[doc = "The tip hash is unknown."] + UnknownTip, + #[codec(index = 3)] + #[doc = "The tip given was too generous."] + MaxTipAmountExceeded, + #[codec(index = 4)] + #[doc = "The account attempting to retract the tip is not the finder of the tip."] + NotFinder, + #[codec(index = 5)] + #[doc = "The tip cannot be claimed/closed because there are not enough tippers yet."] + StillOpen, + #[codec(index = 6)] + #[doc = "The tip cannot be claimed/closed because it's still in the countdown period."] + Premature, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A new tip suggestion has been opened."] + NewTip { tip_hash: ::subxt::utils::H256 }, + #[codec(index = 1)] + #[doc = "A tip suggestion has reached threshold and is closing."] + TipClosing { tip_hash: ::subxt::utils::H256 }, + #[codec(index = 2)] + #[doc = "A tip suggestion has been closed."] + TipClosed { + tip_hash: ::subxt::utils::H256, + who: ::subxt::utils::AccountId32, + payout: ::core::primitive::u128, + }, + #[codec(index = 3)] + #[doc = "A tip suggestion has been retracted."] + TipRetracted { tip_hash: ::subxt::utils::H256 }, + #[codec(index = 4)] + #[doc = "A tip suggestion has been slashed."] + TipSlashed { + tip_hash: ::subxt::utils::H256, + finder: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpenTip<_0, _1, _2, _3> { + pub reason: _3, + pub who: _0, + pub finder: _0, + pub deposit: _1, + pub closes: ::core::option::Option<_2>, + pub tips: ::std::vec::Vec<(_0, _1)>, + pub finders_fee: ::core::primitive::bool, + } + } pub mod pallet_transaction_payment { use super::runtime_types; pub mod pallet { @@ -46980,7 +82144,132 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128); + pub enum Releases { + #[codec(index = 0)] + V1Ancient, + #[codec(index = 1)] + V2, + } + } + pub mod pallet_transaction_storage { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::store`]."] + store { + data: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::renew`]."] + renew { + block: ::core::primitive::u32, + index: ::core::primitive::u32, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::check_proof`]."] + check_proof { + proof: runtime_types::sp_transaction_storage_proof::TransactionStorageProof, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "Invalid configuration."] + NotConfigured, + #[codec(index = 1)] + #[doc = "Renewed extrinsic is not found."] + RenewedNotFound, + #[codec(index = 2)] + #[doc = "Attempting to store empty transaction"] + EmptyTransaction, + #[codec(index = 3)] + #[doc = "Proof was not expected in this block."] + UnexpectedProof, + #[codec(index = 4)] + #[doc = "Proof failed verification."] + InvalidProof, + #[codec(index = 5)] + #[doc = "Missing storage proof."] + MissingProof, + #[codec(index = 6)] + #[doc = "Unable to verify proof becasue state data is missing."] + MissingStateData, + #[codec(index = 7)] + #[doc = "Double proof check in the block."] + DoubleCheck, + #[codec(index = 8)] + #[doc = "Storage proof was not checked in the block."] + ProofNotChecked, + #[codec(index = 9)] + #[doc = "Transaction is too large."] + TransactionTooLarge, + #[codec(index = 10)] + #[doc = "Too many transactions in the block."] + TooManyTransactions, + #[codec(index = 11)] + #[doc = "Attempted to call `store` outside of block execution."] + BadContext, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "Stored data under specified index."] + Stored { index: ::core::primitive::u32 }, + #[codec(index = 1)] + #[doc = "Renewed data under specified index."] + Renewed { index: ::core::primitive::u32 }, + #[codec(index = 2)] + #[doc = "Storage proof was successfully checked."] + ProofChecked, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum HoldReason { + #[codec(index = 0)] + StorageFeeHold, + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -46991,11 +82280,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Releases { - #[codec(index = 0)] - V1Ancient, - #[codec(index = 1)] - V2, + pub struct TransactionInfo { + pub chunk_root: ::subxt::utils::H256, + pub content_hash: ::subxt::utils::H256, + pub size: ::core::primitive::u32, + pub block_chunks: ::core::primitive::u32, } } pub mod pallet_treasury { @@ -47019,7 +82308,10 @@ pub mod api { propose_spend { #[codec(compact)] value: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 1)] #[doc = "See [`Pallet::reject_proposal`]."] @@ -47038,7 +82330,10 @@ pub mod api { spend_local { #[codec(compact)] amount: ::core::primitive::u128, - beneficiary: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 4)] #[doc = "See [`Pallet::remove_approval`]."] @@ -47049,12 +82344,15 @@ pub mod api { #[codec(index = 5)] #[doc = "See [`Pallet::spend`]."] spend { - asset_kind: ::std::boxed::Box< - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, - >, + asset_kind: ::std::boxed::Box<::core::primitive::u32>, #[codec(compact)] amount: ::core::primitive::u128, - beneficiary: ::std::boxed::Box, + beneficiary: ::std::boxed::Box< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, valid_from: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 6)] @@ -47182,10 +82480,9 @@ pub mod api { #[doc = "A new asset spend proposal has been approved."] AssetSpendApproved { index: ::core::primitive::u32, - asset_kind: - runtime_types::polkadot_runtime_common::impls::VersionedLocatableAsset, + asset_kind: ::core::primitive::u32, amount: ::core::primitive::u128, - beneficiary: runtime_types::xcm::VersionedMultiLocation, + beneficiary: ::subxt::utils::AccountId32, valid_from: ::core::primitive::u32, expire_at: ::core::primitive::u32, }, @@ -47196,13 +82493,13 @@ pub mod api { #[doc = "A payment happened."] Paid { index: ::core::primitive::u32, - payment_id: ::core::primitive::u64, + payment_id: (), }, #[codec(index = 12)] #[doc = "A payment failed and can be retried."] PaymentFailed { index: ::core::primitive::u32, - payment_id: ::core::primitive::u64, + payment_id: (), }, #[codec(index = 13)] #[doc = "A spend was processed and removed from the storage. It might have been successfully"] @@ -47263,6 +82560,715 @@ pub mod api { pub status: runtime_types::pallet_treasury::PaymentState<_4>, } } + pub mod pallet_tx_pause { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::pause`]."] + pause { + full_name: ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::unpause`]."] + unpause { + ident: ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The call is paused."] + IsPaused, + #[codec(index = 1)] + #[doc = "The call is unpaused."] + IsUnpaused, + #[codec(index = 2)] + #[doc = "The call is whitelisted and cannot be paused."] + Unpausable, + #[codec(index = 3)] + NotFound, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "This pallet, or a specific call is now paused."] + CallPaused { + full_name: ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + }, + #[codec(index = 1)] + #[doc = "This pallet, or a specific call is now unpaused."] + CallUnpaused { + full_name: ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + }, + } + } + } + pub mod pallet_uniques { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + pub enum Call { + #[codec(index = 0)] + #[doc = "See [`Pallet::create`]."] + create { + collection: ::core::primitive::u32, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + #[doc = "See [`Pallet::force_create`]."] + force_create { + collection: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + free_holding: ::core::primitive::bool, + }, + #[codec(index = 2)] + #[doc = "See [`Pallet::destroy`]."] + destroy { + collection: ::core::primitive::u32, + witness: runtime_types::pallet_uniques::types::DestroyWitness, + }, + #[codec(index = 3)] + #[doc = "See [`Pallet::mint`]."] + mint { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 4)] + #[doc = "See [`Pallet::burn`]."] + burn { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + check_owner: ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 5)] + #[doc = "See [`Pallet::transfer`]."] + transfer { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 6)] + #[doc = "See [`Pallet::redeposit`]."] + redeposit { + collection: ::core::primitive::u32, + items: ::std::vec::Vec<::core::primitive::u32>, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::freeze`]."] + freeze { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::thaw`]."] + thaw { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 9)] + #[doc = "See [`Pallet::freeze_collection`]."] + freeze_collection { collection: ::core::primitive::u32 }, + #[codec(index = 10)] + #[doc = "See [`Pallet::thaw_collection`]."] + thaw_collection { collection: ::core::primitive::u32 }, + #[codec(index = 11)] + #[doc = "See [`Pallet::transfer_ownership`]."] + transfer_ownership { + collection: ::core::primitive::u32, + new_owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 12)] + #[doc = "See [`Pallet::set_team`]."] + set_team { + collection: ::core::primitive::u32, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 13)] + #[doc = "See [`Pallet::approve_transfer`]."] + approve_transfer { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + delegate: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 14)] + #[doc = "See [`Pallet::cancel_approval`]."] + cancel_approval { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + maybe_check_delegate: ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::force_item_status`]."] + force_item_status { + collection: ::core::primitive::u32, + owner: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + issuer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + admin: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + freezer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + free_holding: ::core::primitive::bool, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::set_attribute`]."] + set_attribute { + collection: ::core::primitive::u32, + maybe_item: ::core::option::Option<::core::primitive::u32>, + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + value: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 17)] + #[doc = "See [`Pallet::clear_attribute`]."] + clear_attribute { + collection: ::core::primitive::u32, + maybe_item: ::core::option::Option<::core::primitive::u32>, + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::clear_metadata`]."] + clear_metadata { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 20)] + #[doc = "See [`Pallet::set_collection_metadata`]."] + set_collection_metadata { + collection: ::core::primitive::u32, + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 21)] + #[doc = "See [`Pallet::clear_collection_metadata`]."] + clear_collection_metadata { collection: ::core::primitive::u32 }, + #[codec(index = 22)] + #[doc = "See [`Pallet::set_accept_ownership`]."] + set_accept_ownership { + maybe_collection: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 23)] + #[doc = "See [`Pallet::set_collection_max_supply`]."] + set_collection_max_supply { + collection: ::core::primitive::u32, + max_supply: ::core::primitive::u32, + }, + #[codec(index = 24)] + #[doc = "See [`Pallet::set_price`]."] + set_price { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + price: ::core::option::Option<::core::primitive::u128>, + whitelisted_buyer: ::core::option::Option< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 25)] + #[doc = "See [`Pallet::buy_item`]."] + buy_item { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + bid_price: ::core::primitive::u128, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Error` enum of this pallet."] + pub enum Error { + #[codec(index = 0)] + #[doc = "The signing account has no permission to do the operation."] + NoPermission, + #[codec(index = 1)] + #[doc = "The given item ID is unknown."] + UnknownCollection, + #[codec(index = 2)] + #[doc = "The item ID has already been used for an item."] + AlreadyExists, + #[codec(index = 3)] + #[doc = "The owner turned out to be different to what was expected."] + WrongOwner, + #[codec(index = 4)] + #[doc = "Invalid witness data given."] + BadWitness, + #[codec(index = 5)] + #[doc = "The item ID is already taken."] + InUse, + #[codec(index = 6)] + #[doc = "The item or collection is frozen."] + Frozen, + #[codec(index = 7)] + #[doc = "The delegate turned out to be different to what was expected."] + WrongDelegate, + #[codec(index = 8)] + #[doc = "There is no delegate approved."] + NoDelegate, + #[codec(index = 9)] + #[doc = "No approval exists that would allow the transfer."] + Unapproved, + #[codec(index = 10)] + #[doc = "The named owner has not signed ownership of the collection is acceptable."] + Unaccepted, + #[codec(index = 11)] + #[doc = "The item is locked."] + Locked, + #[codec(index = 12)] + #[doc = "All items have been minted."] + MaxSupplyReached, + #[codec(index = 13)] + #[doc = "The max supply has already been set."] + MaxSupplyAlreadySet, + #[codec(index = 14)] + #[doc = "The provided max supply is less to the amount of items a collection already has."] + MaxSupplyTooSmall, + #[codec(index = 15)] + #[doc = "The given item ID is unknown."] + UnknownItem, + #[codec(index = 16)] + #[doc = "Item is not for sale."] + NotForSale, + #[codec(index = 17)] + #[doc = "The provided bid is too low."] + BidTooLow, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "The `Event` enum of this pallet"] + pub enum Event { + #[codec(index = 0)] + #[doc = "A `collection` was created."] + Created { + collection: ::core::primitive::u32, + creator: ::subxt::utils::AccountId32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 1)] + #[doc = "A `collection` was force-created."] + ForceCreated { + collection: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 2)] + #[doc = "A `collection` was destroyed."] + Destroyed { collection: ::core::primitive::u32 }, + #[codec(index = 3)] + #[doc = "An `item` was issued."] + Issued { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 4)] + #[doc = "An `item` was transferred."] + Transferred { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + #[doc = "An `item` was destroyed."] + Burned { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 6)] + #[doc = "Some `item` was frozen."] + Frozen { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 7)] + #[doc = "Some `item` was thawed."] + Thawed { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 8)] + #[doc = "Some `collection` was frozen."] + CollectionFrozen { collection: ::core::primitive::u32 }, + #[codec(index = 9)] + #[doc = "Some `collection` was thawed."] + CollectionThawed { collection: ::core::primitive::u32 }, + #[codec(index = 10)] + #[doc = "The owner changed."] + OwnerChanged { + collection: ::core::primitive::u32, + new_owner: ::subxt::utils::AccountId32, + }, + #[codec(index = 11)] + #[doc = "The management team changed."] + TeamChanged { + collection: ::core::primitive::u32, + issuer: ::subxt::utils::AccountId32, + admin: ::subxt::utils::AccountId32, + freezer: ::subxt::utils::AccountId32, + }, + #[codec(index = 12)] + #[doc = "An `item` of a `collection` has been approved by the `owner` for transfer by"] + #[doc = "a `delegate`."] + ApprovedTransfer { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + }, + #[codec(index = 13)] + #[doc = "An approval for a `delegate` account to transfer the `item` of an item"] + #[doc = "`collection` was cancelled by its `owner`."] + ApprovalCancelled { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + owner: ::subxt::utils::AccountId32, + delegate: ::subxt::utils::AccountId32, + }, + #[codec(index = 14)] + #[doc = "A `collection` has had its attributes changed by the `Force` origin."] + ItemStatusChanged { collection: ::core::primitive::u32 }, + #[codec(index = 15)] + #[doc = "New metadata has been set for a `collection`."] + CollectionMetadataSet { + collection: ::core::primitive::u32, + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 16)] + #[doc = "Metadata has been cleared for a `collection`."] + CollectionMetadataCleared { collection: ::core::primitive::u32 }, + #[codec(index = 17)] + #[doc = "New metadata has been set for an item."] + MetadataSet { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + is_frozen: ::core::primitive::bool, + }, + #[codec(index = 18)] + #[doc = "Metadata has been cleared for an item."] + MetadataCleared { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 19)] + #[doc = "Metadata has been cleared for an item."] + Redeposited { + collection: ::core::primitive::u32, + successful_items: ::std::vec::Vec<::core::primitive::u32>, + }, + #[codec(index = 20)] + #[doc = "New attribute metadata has been set for a `collection` or `item`."] + AttributeSet { + collection: ::core::primitive::u32, + maybe_item: ::core::option::Option<::core::primitive::u32>, + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + value: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 21)] + #[doc = "Attribute metadata has been cleared for a `collection` or `item`."] + AttributeCleared { + collection: ::core::primitive::u32, + maybe_item: ::core::option::Option<::core::primitive::u32>, + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + }, + #[codec(index = 22)] + #[doc = "Ownership acceptance has changed for an account."] + OwnershipAcceptanceChanged { + who: ::subxt::utils::AccountId32, + maybe_collection: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 23)] + #[doc = "Max supply has been set for a collection."] + CollectionMaxSupplySet { + collection: ::core::primitive::u32, + max_supply: ::core::primitive::u32, + }, + #[codec(index = 24)] + #[doc = "The price was set for the instance."] + ItemPriceSet { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + price: ::core::primitive::u128, + whitelisted_buyer: ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 25)] + #[doc = "The price for the instance was removed."] + ItemPriceRemoved { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + }, + #[codec(index = 26)] + #[doc = "An item was bought."] + ItemBought { + collection: ::core::primitive::u32, + item: ::core::primitive::u32, + price: ::core::primitive::u128, + seller: ::subxt::utils::AccountId32, + buyer: ::subxt::utils::AccountId32, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CollectionDetails<_0, _1> { + pub owner: _0, + pub issuer: _0, + pub admin: _0, + pub freezer: _0, + pub total_deposit: _1, + pub free_holding: ::core::primitive::bool, + pub items: ::core::primitive::u32, + pub item_metadatas: ::core::primitive::u32, + pub attributes: ::core::primitive::u32, + pub is_frozen: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CollectionMetadata<_0> { + pub deposit: _0, + pub data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub is_frozen: ::core::primitive::bool, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DestroyWitness { + #[codec(compact)] + pub items: ::core::primitive::u32, + #[codec(compact)] + pub item_metadatas: ::core::primitive::u32, + #[codec(compact)] + pub attributes: ::core::primitive::u32, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ItemDetails<_0, _1> { + pub owner: _0, + pub approved: ::core::option::Option<_0>, + pub is_frozen: ::core::primitive::bool, + pub deposit: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ItemMetadata<_0> { + pub deposit: _0, + pub data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub is_frozen: ::core::primitive::bool, + } + } + } pub mod pallet_utility { use super::runtime_types; pub mod pallet { @@ -47282,34 +83288,35 @@ pub mod api { #[codec(index = 0)] #[doc = "See [`Pallet::batch`]."] batch { - calls: ::std::vec::Vec, + calls: ::std::vec::Vec, }, #[codec(index = 1)] #[doc = "See [`Pallet::as_derivative`]."] as_derivative { index: ::core::primitive::u16, - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 2)] #[doc = "See [`Pallet::batch_all`]."] batch_all { - calls: ::std::vec::Vec, + calls: ::std::vec::Vec, }, #[codec(index = 3)] #[doc = "See [`Pallet::dispatch_as`]."] dispatch_as { - as_origin: ::std::boxed::Box, - call: ::std::boxed::Box, + as_origin: + ::std::boxed::Box, + call: ::std::boxed::Box, }, #[codec(index = 4)] #[doc = "See [`Pallet::force_batch`]."] force_batch { - calls: ::std::vec::Vec, + calls: ::std::vec::Vec, }, #[codec(index = 5)] #[doc = "See [`Pallet::with_weight`]."] with_weight { - call: ::std::boxed::Box, + call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, }, } @@ -47393,12 +83400,18 @@ pub mod api { #[codec(index = 1)] #[doc = "See [`Pallet::vest_other`]."] vest_other { - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, }, #[codec(index = 2)] #[doc = "See [`Pallet::vested_transfer`]."] vested_transfer { - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, @@ -47407,8 +83420,14 @@ pub mod api { #[codec(index = 3)] #[doc = "See [`Pallet::force_vested_transfer`]."] force_vested_transfer { - source: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< ::core::primitive::u128, ::core::primitive::u32, @@ -47423,7 +83442,10 @@ pub mod api { #[codec(index = 5)] #[doc = "See [`Pallet::force_remove_vesting_schedule`]."] force_remove_vesting_schedule { - target: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, schedule_index: ::core::primitive::u32, }, } @@ -47549,7 +83571,7 @@ pub mod api { #[codec(index = 3)] #[doc = "See [`Pallet::dispatch_whitelisted_call_with_preimage`]."] dispatch_whitelisted_call_with_preimage { - call: ::std::boxed::Box, + call: ::std::boxed::Box, }, } #[derive( @@ -47609,4233 +83631,6 @@ pub mod api { } } } - pub mod pallet_xcm { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::send`]."] - send { - dest: ::std::boxed::Box, - message: ::std::boxed::Box, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::teleport_assets`]."] - teleport_assets { - dest: ::std::boxed::Box, - beneficiary: ::std::boxed::Box, - assets: ::std::boxed::Box, - fee_asset_item: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::reserve_transfer_assets`]."] - reserve_transfer_assets { - dest: ::std::boxed::Box, - beneficiary: ::std::boxed::Box, - assets: ::std::boxed::Box, - fee_asset_item: ::core::primitive::u32, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::execute`]."] - execute { - message: ::std::boxed::Box, - max_weight: runtime_types::sp_weights::weight_v2::Weight, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::force_xcm_version`]."] - force_xcm_version { - location: ::std::boxed::Box< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - version: ::core::primitive::u32, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::force_default_xcm_version`]."] - force_default_xcm_version { - maybe_xcm_version: ::core::option::Option<::core::primitive::u32>, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::force_subscribe_version_notify`]."] - force_subscribe_version_notify { - location: ::std::boxed::Box, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::force_unsubscribe_version_notify`]."] - force_unsubscribe_version_notify { - location: ::std::boxed::Box, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::limited_reserve_transfer_assets`]."] - limited_reserve_transfer_assets { - dest: ::std::boxed::Box, - beneficiary: ::std::boxed::Box, - assets: ::std::boxed::Box, - fee_asset_item: ::core::primitive::u32, - weight_limit: runtime_types::xcm::v3::WeightLimit, - }, - #[codec(index = 9)] - #[doc = "See [`Pallet::limited_teleport_assets`]."] - limited_teleport_assets { - dest: ::std::boxed::Box, - beneficiary: ::std::boxed::Box, - assets: ::std::boxed::Box, - fee_asset_item: ::core::primitive::u32, - weight_limit: runtime_types::xcm::v3::WeightLimit, - }, - #[codec(index = 10)] - #[doc = "See [`Pallet::force_suspension`]."] - force_suspension { suspended: ::core::primitive::bool }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The desired destination was unreachable, generally because there is a no way of routing"] - #[doc = "to it."] - Unreachable, - #[codec(index = 1)] - #[doc = "There was some other issue (i.e. not to do with routing) in sending the message."] - #[doc = "Perhaps a lack of space for buffering the message."] - SendFailure, - #[codec(index = 2)] - #[doc = "The message execution fails the filter."] - Filtered, - #[codec(index = 3)] - #[doc = "The message's weight could not be determined."] - UnweighableMessage, - #[codec(index = 4)] - #[doc = "The destination `MultiLocation` provided cannot be inverted."] - DestinationNotInvertible, - #[codec(index = 5)] - #[doc = "The assets to be sent are empty."] - Empty, - #[codec(index = 6)] - #[doc = "Could not re-anchor the assets to declare the fees for the destination chain."] - CannotReanchor, - #[codec(index = 7)] - #[doc = "Too many assets have been attempted for transfer."] - TooManyAssets, - #[codec(index = 8)] - #[doc = "Origin is invalid for sending."] - InvalidOrigin, - #[codec(index = 9)] - #[doc = "The version of the `Versioned` value used is not able to be interpreted."] - BadVersion, - #[codec(index = 10)] - #[doc = "The given location could not be used (e.g. because it cannot be expressed in the"] - #[doc = "desired version of XCM)."] - BadLocation, - #[codec(index = 11)] - #[doc = "The referenced subscription could not be found."] - NoSubscription, - #[codec(index = 12)] - #[doc = "The location is invalid since it already has a subscription from us."] - AlreadySubscribed, - #[codec(index = 13)] - #[doc = "Invalid asset for the operation."] - InvalidAsset, - #[codec(index = 14)] - #[doc = "The owner does not own (all) of the asset that they wish to do the operation on."] - LowBalance, - #[codec(index = 15)] - #[doc = "The asset owner has too many locks on the asset."] - TooManyLocks, - #[codec(index = 16)] - #[doc = "The given account is not an identifiable sovereign account for any location."] - AccountNotSovereign, - #[codec(index = 17)] - #[doc = "The operation required fees to be paid which the initiator could not meet."] - FeesNotMet, - #[codec(index = 18)] - #[doc = "A remote lock with the corresponding data could not be found."] - LockNotFound, - #[codec(index = 19)] - #[doc = "The unlock operation cannot succeed because there are still consumers of the lock."] - InUse, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Execution of an XCM message was attempted."] - Attempted { - outcome: runtime_types::xcm::v3::traits::Outcome, - }, - #[codec(index = 1)] - #[doc = "A XCM message was sent."] - Sent { - origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - message: runtime_types::xcm::v3::Xcm, - message_id: [::core::primitive::u8; 32usize], - }, - #[codec(index = 2)] - #[doc = "Query response received which does not match a registered query. This may be because a"] - #[doc = "matching query was never registered, it may be because it is a duplicate response, or"] - #[doc = "because the query timed out."] - UnexpectedResponse { - origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - query_id: ::core::primitive::u64, - }, - #[codec(index = 3)] - #[doc = "Query response has been received and is ready for taking with `take_response`. There is"] - #[doc = "no registered notification call."] - ResponseReady { - query_id: ::core::primitive::u64, - response: runtime_types::xcm::v3::Response, - }, - #[codec(index = 4)] - #[doc = "Query response has been received and query is removed. The registered notification has"] - #[doc = "been dispatched and executed successfully."] - Notified { - query_id: ::core::primitive::u64, - pallet_index: ::core::primitive::u8, - call_index: ::core::primitive::u8, - }, - #[codec(index = 5)] - #[doc = "Query response has been received and query is removed. The registered notification"] - #[doc = "could not be dispatched because the dispatch weight is greater than the maximum weight"] - #[doc = "originally budgeted by this runtime for the query result."] - NotifyOverweight { - query_id: ::core::primitive::u64, - pallet_index: ::core::primitive::u8, - call_index: ::core::primitive::u8, - actual_weight: runtime_types::sp_weights::weight_v2::Weight, - max_budgeted_weight: runtime_types::sp_weights::weight_v2::Weight, - }, - #[codec(index = 6)] - #[doc = "Query response has been received and query is removed. There was a general error with"] - #[doc = "dispatching the notification call."] - NotifyDispatchError { - query_id: ::core::primitive::u64, - pallet_index: ::core::primitive::u8, - call_index: ::core::primitive::u8, - }, - #[codec(index = 7)] - #[doc = "Query response has been received and query is removed. The dispatch was unable to be"] - #[doc = "decoded into a `Call`; this might be due to dispatch function having a signature which"] - #[doc = "is not `(origin, QueryId, Response)`."] - NotifyDecodeFailed { - query_id: ::core::primitive::u64, - pallet_index: ::core::primitive::u8, - call_index: ::core::primitive::u8, - }, - #[codec(index = 8)] - #[doc = "Expected query response has been received but the origin location of the response does"] - #[doc = "not match that expected. The query remains registered for a later, valid, response to"] - #[doc = "be received and acted upon."] - InvalidResponder { - origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - query_id: ::core::primitive::u64, - expected_location: ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - }, - #[codec(index = 9)] - #[doc = "Expected query response has been received but the expected origin location placed in"] - #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] - #[doc = ""] - #[doc = "This is unexpected (since a location placed in storage in a previously executing"] - #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] - #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] - #[doc = "needed."] - InvalidResponderVersion { - origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - query_id: ::core::primitive::u64, - }, - #[codec(index = 10)] - #[doc = "Received query response has been read and removed."] - ResponseTaken { query_id: ::core::primitive::u64 }, - #[codec(index = 11)] - #[doc = "Some assets have been placed in an asset trap."] - AssetsTrapped { - hash: ::subxt::utils::H256, - origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - assets: runtime_types::xcm::VersionedMultiAssets, - }, - #[codec(index = 12)] - #[doc = "An XCM version change notification message has been attempted to be sent."] - #[doc = ""] - #[doc = "The cost of sending it (borne by the chain) is included."] - VersionChangeNotified { - destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - result: ::core::primitive::u32, - cost: runtime_types::xcm::v3::multiasset::MultiAssets, - message_id: [::core::primitive::u8; 32usize], - }, - #[codec(index = 13)] - #[doc = "The supported version of a location has been changed. This might be through an"] - #[doc = "automatic notification or a manual intervention."] - SupportedVersionChanged { - location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - version: ::core::primitive::u32, - }, - #[codec(index = 14)] - #[doc = "A given location which had a version change subscription was dropped owing to an error"] - #[doc = "sending the notification to it."] - NotifyTargetSendFail { - location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - query_id: ::core::primitive::u64, - error: runtime_types::xcm::v3::traits::Error, - }, - #[codec(index = 15)] - #[doc = "A given location which had a version change subscription was dropped owing to an error"] - #[doc = "migrating the location to our new XCM format."] - NotifyTargetMigrationFail { - location: runtime_types::xcm::VersionedMultiLocation, - query_id: ::core::primitive::u64, - }, - #[codec(index = 16)] - #[doc = "Expected query response has been received but the expected querier location placed in"] - #[doc = "storage by this runtime previously cannot be decoded. The query remains registered."] - #[doc = ""] - #[doc = "This is unexpected (since a location placed in storage in a previously executing"] - #[doc = "runtime should be readable prior to query timeout) and dangerous since the possibly"] - #[doc = "valid response will be dropped. Manual governance intervention is probably going to be"] - #[doc = "needed."] - InvalidQuerierVersion { - origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - query_id: ::core::primitive::u64, - }, - #[codec(index = 17)] - #[doc = "Expected query response has been received but the querier location of the response does"] - #[doc = "not match the expected. The query remains registered for a later, valid, response to"] - #[doc = "be received and acted upon."] - InvalidQuerier { - origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - query_id: ::core::primitive::u64, - expected_querier: - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - maybe_actual_querier: ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - }, - #[codec(index = 18)] - #[doc = "A remote has requested XCM version change notification from us and we have honored it."] - #[doc = "A version information message is sent to them and its cost is included."] - VersionNotifyStarted { - destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - cost: runtime_types::xcm::v3::multiasset::MultiAssets, - message_id: [::core::primitive::u8; 32usize], - }, - #[codec(index = 19)] - #[doc = "We have requested that a remote chain send us XCM version change notifications."] - VersionNotifyRequested { - destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - cost: runtime_types::xcm::v3::multiasset::MultiAssets, - message_id: [::core::primitive::u8; 32usize], - }, - #[codec(index = 20)] - #[doc = "We have requested that a remote chain stops sending us XCM version change"] - #[doc = "notifications."] - VersionNotifyUnrequested { - destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - cost: runtime_types::xcm::v3::multiasset::MultiAssets, - message_id: [::core::primitive::u8; 32usize], - }, - #[codec(index = 21)] - #[doc = "Fees were paid from a location for an operation (often for using `SendXcm`)."] - FeesPaid { - paying: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - fees: runtime_types::xcm::v3::multiasset::MultiAssets, - }, - #[codec(index = 22)] - #[doc = "Some assets have been claimed from an asset trap"] - AssetsClaimed { - hash: ::subxt::utils::H256, - origin: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - assets: runtime_types::xcm::VersionedMultiAssets, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Origin { - #[codec(index = 0)] - Xcm(runtime_types::staging_xcm::v3::multilocation::MultiLocation), - #[codec(index = 1)] - Response(runtime_types::staging_xcm::v3::multilocation::MultiLocation), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum QueryStatus<_0> { - #[codec(index = 0)] - Pending { - responder: runtime_types::xcm::VersionedMultiLocation, - maybe_match_querier: - ::core::option::Option, - maybe_notify: - ::core::option::Option<(::core::primitive::u8, ::core::primitive::u8)>, - timeout: _0, - }, - #[codec(index = 1)] - VersionNotifier { - origin: runtime_types::xcm::VersionedMultiLocation, - is_active: ::core::primitive::bool, - }, - #[codec(index = 2)] - Ready { - response: runtime_types::xcm::VersionedResponse, - at: _0, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RemoteLockedFungibleRecord<_0> { - pub amount: ::core::primitive::u128, - pub owner: runtime_types::xcm::VersionedMultiLocation, - pub locker: runtime_types::xcm::VersionedMultiLocation, - pub consumers: runtime_types::bounded_collections::bounded_vec::BoundedVec<( - _0, - ::core::primitive::u128, - )>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum VersionMigrationStage { - #[codec(index = 0)] - MigrateSupportedVersion, - #[codec(index = 1)] - MigrateVersionNotifiers, - #[codec(index = 2)] - NotifyCurrentTargets( - ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, - ), - #[codec(index = 3)] - MigrateAndNotifyOldTargets, - } - } - } - pub mod polkadot_core_primitives { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CandidateHash(pub ::subxt::utils::H256); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct InboundDownwardMessage<_0> { - pub sent_at: _0, - pub msg: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct InboundHrmpMessage<_0> { - pub sent_at: _0, - pub data: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OutboundHrmpMessage<_0> { - pub recipient: _0, - pub data: ::std::vec::Vec<::core::primitive::u8>, - } - } - pub mod polkadot_parachain_primitives { - use super::runtime_types; - pub mod primitives { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct HeadData(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct HrmpChannelId { - pub sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Id(pub ::core::primitive::u32); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidationCode(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidationCodeHash(pub ::subxt::utils::H256); - } - } - pub mod polkadot_primitives { - use super::runtime_types; - pub mod v6 { - use super::runtime_types; - pub mod assignment_app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - } - pub mod async_backing { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AsyncBackingParams { - pub max_candidate_depth: ::core::primitive::u32, - pub allowed_ancestry_len: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BackingState < _0 , _1 > { pub constraints : runtime_types :: polkadot_primitives :: v6 :: async_backing :: Constraints < _1 > , pub pending_availability : :: std :: vec :: Vec < runtime_types :: polkadot_primitives :: v6 :: async_backing :: CandidatePendingAvailability < _0 , _1 > > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CandidatePendingAvailability<_0, _1> { - pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, - pub descriptor: - runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, - pub commitments: - runtime_types::polkadot_primitives::v6::CandidateCommitments<_1>, - pub relay_parent_number: _1, - pub max_pov_size: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Constraints < _0 > { pub min_relay_parent_number : _0 , pub max_pov_size : :: core :: primitive :: u32 , pub max_code_size : :: core :: primitive :: u32 , pub ump_remaining : :: core :: primitive :: u32 , pub ump_remaining_bytes : :: core :: primitive :: u32 , pub max_ump_num_per_candidate : :: core :: primitive :: u32 , pub dmp_remaining_messages : :: std :: vec :: Vec < _0 > , pub hrmp_inbound : runtime_types :: polkadot_primitives :: v6 :: async_backing :: InboundHrmpLimitations < _0 > , pub hrmp_channels_out : :: std :: vec :: Vec < (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , runtime_types :: polkadot_primitives :: v6 :: async_backing :: OutboundHrmpChannelLimitations ,) > , pub max_hrmp_num_per_candidate : :: core :: primitive :: u32 , pub required_parent : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , pub validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , pub upgrade_restriction : :: core :: option :: Option < runtime_types :: polkadot_primitives :: v6 :: UpgradeRestriction > , pub future_validation_code : :: core :: option :: Option < (_0 , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct InboundHrmpLimitations<_0> { - pub valid_watermarks: ::std::vec::Vec<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OutboundHrmpChannelLimitations { - pub bytes_remaining: ::core::primitive::u32, - pub messages_remaining: ::core::primitive::u32, - } - } - pub mod collator_app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); - } - pub mod executor_params { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ExecutorParam { - #[codec(index = 1)] - MaxMemoryPages(::core::primitive::u32), - #[codec(index = 2)] - StackLogicalMax(::core::primitive::u32), - #[codec(index = 3)] - StackNativeMax(::core::primitive::u32), - #[codec(index = 4)] - PrecheckingMaxMemory(::core::primitive::u64), - #[codec(index = 5)] - PvfPrepTimeout( - runtime_types::polkadot_primitives::v6::PvfPrepTimeoutKind, - ::core::primitive::u64, - ), - #[codec(index = 6)] - PvfExecTimeout( - runtime_types::polkadot_primitives::v6::PvfExecTimeoutKind, - ::core::primitive::u64, - ), - #[codec(index = 7)] - WasmExtBulkMemory, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExecutorParams( - pub ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::executor_params::ExecutorParam, - >, - ); - } - pub mod signed { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct UncheckedSigned<_0, _1> { - pub payload: _0, - pub validator_index: runtime_types::polkadot_primitives::v6::ValidatorIndex, - pub signature: - runtime_types::polkadot_primitives::v6::validator_app::Signature, - #[codec(skip)] - pub __ignore: ::core::marker::PhantomData<_1>, - } - } - pub mod slashing { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DisputeProof { - pub time_slot: - runtime_types::polkadot_primitives::v6::slashing::DisputesTimeSlot, - pub kind: - runtime_types::polkadot_primitives::v6::slashing::SlashingOffenceKind, - pub validator_index: runtime_types::polkadot_primitives::v6::ValidatorIndex, - pub validator_id: - runtime_types::polkadot_primitives::v6::validator_app::Public, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DisputesTimeSlot { - pub session_index: ::core::primitive::u32, - pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PendingSlashes { - pub keys: ::subxt::utils::KeyedVec< - runtime_types::polkadot_primitives::v6::ValidatorIndex, - runtime_types::polkadot_primitives::v6::validator_app::Public, - >, - pub kind: - runtime_types::polkadot_primitives::v6::slashing::SlashingOffenceKind, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum SlashingOffenceKind { - #[codec(index = 0)] - ForInvalid, - #[codec(index = 1)] - AgainstValid, - } - } - pub mod validator_app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::sr25519::Public); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AvailabilityBitfield( - pub ::subxt::utils::bits::DecodedBits< - ::core::primitive::u8, - ::subxt::utils::bits::Lsb0, - >, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BackedCandidate<_0> { - pub candidate: - runtime_types::polkadot_primitives::v6::CommittedCandidateReceipt<_0>, - pub validity_votes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::ValidityAttestation, - >, - pub validator_indices: ::subxt::utils::bits::DecodedBits< - ::core::primitive::u8, - ::subxt::utils::bits::Lsb0, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CandidateCommitments<_0> { - pub upward_messages: - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::std::vec::Vec<::core::primitive::u8>, - >, - pub horizontal_messages: - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::polkadot_core_primitives::OutboundHrmpMessage< - runtime_types::polkadot_parachain_primitives::primitives::Id, - >, - >, - pub new_validation_code: ::core::option::Option< - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, - >, - pub head_data: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - pub processed_downward_messages: ::core::primitive::u32, - pub hrmp_watermark: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CandidateDescriptor < _0 > { pub para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , pub relay_parent : _0 , pub collator : runtime_types :: polkadot_primitives :: v6 :: collator_app :: Public , pub persisted_validation_data_hash : :: subxt :: utils :: H256 , pub pov_hash : :: subxt :: utils :: H256 , pub erasure_root : :: subxt :: utils :: H256 , pub signature : runtime_types :: polkadot_primitives :: v6 :: collator_app :: Signature , pub para_head : :: subxt :: utils :: H256 , pub validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum CandidateEvent<_0> { - #[codec(index = 0)] - CandidateBacked( - runtime_types::polkadot_primitives::v6::CandidateReceipt<_0>, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v6::CoreIndex, - runtime_types::polkadot_primitives::v6::GroupIndex, - ), - #[codec(index = 1)] - CandidateIncluded( - runtime_types::polkadot_primitives::v6::CandidateReceipt<_0>, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v6::CoreIndex, - runtime_types::polkadot_primitives::v6::GroupIndex, - ), - #[codec(index = 2)] - CandidateTimedOut( - runtime_types::polkadot_primitives::v6::CandidateReceipt<_0>, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v6::CoreIndex, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CandidateReceipt<_0> { - pub descriptor: runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, - pub commitments_hash: ::subxt::utils::H256, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CommittedCandidateReceipt<_0> { - pub descriptor: runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, - pub commitments: runtime_types::polkadot_primitives::v6::CandidateCommitments< - ::core::primitive::u32, - >, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CoreIndex(pub ::core::primitive::u32); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum CoreState<_0, _1> { - #[codec(index = 0)] - Occupied(runtime_types::polkadot_primitives::v6::OccupiedCore<_0, _1>), - #[codec(index = 1)] - Scheduled(runtime_types::polkadot_primitives::v6::ScheduledCore), - #[codec(index = 2)] - Free, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DisputeState<_0> { - pub validators_for: ::subxt::utils::bits::DecodedBits< - ::core::primitive::u8, - ::subxt::utils::bits::Lsb0, - >, - pub validators_against: ::subxt::utils::bits::DecodedBits< - ::core::primitive::u8, - ::subxt::utils::bits::Lsb0, - >, - pub start: _0, - pub concluded_at: ::core::option::Option<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum DisputeStatement { - #[codec(index = 0)] - Valid(runtime_types::polkadot_primitives::v6::ValidDisputeStatementKind), - #[codec(index = 1)] - Invalid(runtime_types::polkadot_primitives::v6::InvalidDisputeStatementKind), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DisputeStatementSet { - pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, - pub session: ::core::primitive::u32, - pub statements: ::std::vec::Vec<( - runtime_types::polkadot_primitives::v6::DisputeStatement, - runtime_types::polkadot_primitives::v6::ValidatorIndex, - runtime_types::polkadot_primitives::v6::validator_app::Signature, - )>, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct GroupIndex(pub ::core::primitive::u32); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct GroupRotationInfo<_0> { - pub session_start_block: _0, - pub group_rotation_frequency: _0, - pub now: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct IndexedVec<_0, _1>( - pub ::std::vec::Vec<_1>, - #[codec(skip)] pub ::core::marker::PhantomData<_0>, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct InherentData<_0> { - pub bitfields: ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::signed::UncheckedSigned< - runtime_types::polkadot_primitives::v6::AvailabilityBitfield, - runtime_types::polkadot_primitives::v6::AvailabilityBitfield, - >, - >, - pub backed_candidates: ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::BackedCandidate< - ::subxt::utils::H256, - >, - >, - pub disputes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::DisputeStatementSet, - >, - pub parent_header: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum InvalidDisputeStatementKind { - #[codec(index = 0)] - Explicit, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OccupiedCore<_0, _1> { - pub next_up_on_available: ::core::option::Option< - runtime_types::polkadot_primitives::v6::ScheduledCore, - >, - pub occupied_since: _1, - pub time_out_at: _1, - pub next_up_on_time_out: ::core::option::Option< - runtime_types::polkadot_primitives::v6::ScheduledCore, - >, - pub availability: ::subxt::utils::bits::DecodedBits< - ::core::primitive::u8, - ::subxt::utils::bits::Lsb0, - >, - pub group_responsible: runtime_types::polkadot_primitives::v6::GroupIndex, - pub candidate_hash: runtime_types::polkadot_core_primitives::CandidateHash, - pub candidate_descriptor: - runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum OccupiedCoreAssumption { - #[codec(index = 0)] - Included, - #[codec(index = 1)] - TimedOut, - #[codec(index = 2)] - Free, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PersistedValidationData<_0, _1> { - pub parent_head: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - pub relay_parent_number: _1, - pub relay_parent_storage_root: _0, - pub max_pov_size: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PvfCheckStatement { pub accept : :: core :: primitive :: bool , pub subject : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , pub session_index : :: core :: primitive :: u32 , pub validator_index : runtime_types :: polkadot_primitives :: v6 :: ValidatorIndex , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum PvfExecTimeoutKind { - #[codec(index = 0)] - Backing, - #[codec(index = 1)] - Approval, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum PvfPrepTimeoutKind { - #[codec(index = 0)] - Precheck, - #[codec(index = 1)] - Lenient, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ScheduledCore { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - pub collator: ::core::option::Option< - runtime_types::polkadot_primitives::v6::collator_app::Public, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ScrapedOnChainVotes<_0> { - pub session: ::core::primitive::u32, - pub backing_validators_per_candidate: ::std::vec::Vec<( - runtime_types::polkadot_primitives::v6::CandidateReceipt<_0>, - ::std::vec::Vec<( - runtime_types::polkadot_primitives::v6::ValidatorIndex, - runtime_types::polkadot_primitives::v6::ValidityAttestation, - )>, - )>, - pub disputes: ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::DisputeStatementSet, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SessionInfo { - pub active_validator_indices: - ::std::vec::Vec, - pub random_seed: [::core::primitive::u8; 32usize], - pub dispute_period: ::core::primitive::u32, - pub validators: runtime_types::polkadot_primitives::v6::IndexedVec< - runtime_types::polkadot_primitives::v6::ValidatorIndex, - runtime_types::polkadot_primitives::v6::validator_app::Public, - >, - pub discovery_keys: - ::std::vec::Vec, - pub assignment_keys: ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::assignment_app::Public, - >, - pub validator_groups: runtime_types::polkadot_primitives::v6::IndexedVec< - runtime_types::polkadot_primitives::v6::GroupIndex, - ::std::vec::Vec, - >, - pub n_cores: ::core::primitive::u32, - pub zeroth_delay_tranche_width: ::core::primitive::u32, - pub relay_vrf_modulo_samples: ::core::primitive::u32, - pub n_delay_tranches: ::core::primitive::u32, - pub no_show_slots: ::core::primitive::u32, - pub needed_approvals: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum UpgradeGoAhead { - #[codec(index = 0)] - Abort, - #[codec(index = 1)] - GoAhead, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum UpgradeRestriction { - #[codec(index = 0)] - Present, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ValidDisputeStatementKind { - #[codec(index = 0)] - Explicit, - #[codec(index = 1)] - BackingSeconded(::subxt::utils::H256), - #[codec(index = 2)] - BackingValid(::subxt::utils::H256), - #[codec(index = 3)] - ApprovalChecking, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidatorIndex(pub ::core::primitive::u32); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ValidityAttestation { - #[codec(index = 1)] - Implicit(runtime_types::polkadot_primitives::v6::validator_app::Signature), - #[codec(index = 2)] - Explicit(runtime_types::polkadot_primitives::v6::validator_app::Signature), - } - } - } - pub mod polkadot_runtime_common { - use super::runtime_types; - pub mod assigned_slots { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::assign_perm_parachain_slot`]."] assign_perm_parachain_slot { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 1)] # [doc = "See [`Pallet::assign_temp_parachain_slot`]."] assign_temp_parachain_slot { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , lease_period_start : runtime_types :: polkadot_runtime_common :: assigned_slots :: SlotLeasePeriodStart , } , # [codec (index = 2)] # [doc = "See [`Pallet::unassign_parachain_slot`]."] unassign_parachain_slot { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "See [`Pallet::set_max_permanent_slots`]."] set_max_permanent_slots { slots : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::set_max_temporary_slots`]."] set_max_temporary_slots { slots : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The specified parachain is not registered."] - ParaDoesntExist, - #[codec(index = 1)] - #[doc = "Not a parathread (on-demand parachain)."] - NotParathread, - #[codec(index = 2)] - #[doc = "Cannot upgrade on-demand parachain to lease holding"] - #[doc = "parachain."] - CannotUpgrade, - #[codec(index = 3)] - #[doc = "Cannot downgrade lease holding parachain to"] - #[doc = "on-demand."] - CannotDowngrade, - #[codec(index = 4)] - #[doc = "Permanent or Temporary slot already assigned."] - SlotAlreadyAssigned, - #[codec(index = 5)] - #[doc = "Permanent or Temporary slot has not been assigned."] - SlotNotAssigned, - #[codec(index = 6)] - #[doc = "An ongoing lease already exists."] - OngoingLeaseExists, - #[codec(index = 7)] - MaxPermanentSlotsExceeded, - #[codec(index = 8)] - MaxTemporarySlotsExceeded, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A parachain was assigned a permanent parachain slot"] - PermanentSlotAssigned( - runtime_types::polkadot_parachain_primitives::primitives::Id, - ), - #[codec(index = 1)] - #[doc = "A parachain was assigned a temporary parachain slot"] - TemporarySlotAssigned( - runtime_types::polkadot_parachain_primitives::primitives::Id, - ), - #[codec(index = 2)] - #[doc = "The maximum number of permanent slots has been changed"] - MaxPermanentSlotsChanged { slots: ::core::primitive::u32 }, - #[codec(index = 3)] - #[doc = "The maximum number of temporary slots has been changed"] - MaxTemporarySlotsChanged { slots: ::core::primitive::u32 }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ParachainTemporarySlot<_0, _1> { - pub manager: _0, - pub period_begin: _1, - pub period_count: _1, - pub last_lease: ::core::option::Option<_1>, - pub lease_count: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum SlotLeasePeriodStart { - #[codec(index = 0)] - Current, - #[codec(index = 1)] - Next, - } - } - pub mod auctions { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::new_auction`]."] - new_auction { - #[codec(compact)] - duration: ::core::primitive::u32, - #[codec(compact)] - lease_period_index: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::bid`]."] - bid { - #[codec(compact)] - para: runtime_types::polkadot_parachain_primitives::primitives::Id, - #[codec(compact)] - auction_index: ::core::primitive::u32, - #[codec(compact)] - first_slot: ::core::primitive::u32, - #[codec(compact)] - last_slot: ::core::primitive::u32, - #[codec(compact)] - amount: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::cancel_auction`]."] - cancel_auction, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "This auction is already in progress."] - AuctionInProgress, - #[codec(index = 1)] - #[doc = "The lease period is in the past."] - LeasePeriodInPast, - #[codec(index = 2)] - #[doc = "Para is not registered"] - ParaNotRegistered, - #[codec(index = 3)] - #[doc = "Not a current auction."] - NotCurrentAuction, - #[codec(index = 4)] - #[doc = "Not an auction."] - NotAuction, - #[codec(index = 5)] - #[doc = "Auction has already ended."] - AuctionEnded, - #[codec(index = 6)] - #[doc = "The para is already leased out for part of this range."] - AlreadyLeasedOut, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "An auction started. Provides its index and the block number where it will begin to"] - #[doc = "close and the first lease period of the quadruplet that is auctioned."] - AuctionStarted { - auction_index: ::core::primitive::u32, - lease_period: ::core::primitive::u32, - ending: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "An auction ended. All funds become unreserved."] - AuctionClosed { - auction_index: ::core::primitive::u32, - }, - #[codec(index = 2)] - #[doc = "Funds were reserved for a winning bid. First balance is the extra amount reserved."] - #[doc = "Second is the total."] - Reserved { - bidder: ::subxt::utils::AccountId32, - extra_reserved: ::core::primitive::u128, - total_amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "Funds were unreserved since bidder is no longer active. `[bidder, amount]`"] - Unreserved { - bidder: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 4)] - #[doc = "Someone attempted to lease the same slot twice for a parachain. The amount is held in"] - #[doc = "reserve but no parachain slot has been leased."] - ReserveConfiscated { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - leaser: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 5)] - #[doc = "A new bid has been accepted as the current winner."] - BidAccepted { - bidder: ::subxt::utils::AccountId32, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - amount: ::core::primitive::u128, - first_slot: ::core::primitive::u32, - last_slot: ::core::primitive::u32, - }, - #[codec(index = 6)] - #[doc = "The winning offset was chosen for an auction. This will map into the `Winning` storage"] - #[doc = "map."] - WinningOffset { - auction_index: ::core::primitive::u32, - block_number: ::core::primitive::u32, - }, - } - } - } - pub mod claims { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::claim`]."] - claim { - dest: ::subxt::utils::AccountId32, - ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::mint_claim`]."] - mint_claim { - who: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - value: ::core::primitive::u128, - vesting_schedule: ::core::option::Option<( - ::core::primitive::u128, - ::core::primitive::u128, - ::core::primitive::u32, - )>, - statement: ::core::option::Option< - runtime_types::polkadot_runtime_common::claims::StatementKind, - >, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::claim_attest`]."] - claim_attest { - dest: ::subxt::utils::AccountId32, - ethereum_signature: - runtime_types::polkadot_runtime_common::claims::EcdsaSignature, - statement: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::attest`]."] - attest { - statement: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::move_claim`]."] - move_claim { - old: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - new: runtime_types::polkadot_runtime_common::claims::EthereumAddress, - maybe_preclaim: ::core::option::Option<::subxt::utils::AccountId32>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Invalid Ethereum signature."] - InvalidEthereumSignature, - #[codec(index = 1)] - #[doc = "Ethereum address has no claim."] - SignerHasNoClaim, - #[codec(index = 2)] - #[doc = "Account ID sending transaction has no claim."] - SenderHasNoClaim, - #[codec(index = 3)] - #[doc = "There's not enough in the pot to pay out some unvested amount. Generally implies a"] - #[doc = "logic error."] - PotUnderflow, - #[codec(index = 4)] - #[doc = "A needed statement was not included."] - InvalidStatement, - #[codec(index = 5)] - #[doc = "The account already has a vested balance."] - VestedBalanceExists, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Someone claimed some DOTs."] - Claimed { - who: ::subxt::utils::AccountId32, - ethereum_address: - runtime_types::polkadot_runtime_common::claims::EthereumAddress, - amount: ::core::primitive::u128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum StatementKind { - #[codec(index = 0)] - Regular, - #[codec(index = 1)] - Saft, - } - } - pub mod crowdloan { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::create`]."] - create { - #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, - #[codec(compact)] - cap: ::core::primitive::u128, - #[codec(compact)] - first_period: ::core::primitive::u32, - #[codec(compact)] - last_period: ::core::primitive::u32, - #[codec(compact)] - end: ::core::primitive::u32, - verifier: - ::core::option::Option, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::contribute`]."] - contribute { - #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, - #[codec(compact)] - value: ::core::primitive::u128, - signature: - ::core::option::Option, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::withdraw`]."] - withdraw { - who: ::subxt::utils::AccountId32, - #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::refund`]."] - refund { - #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::dissolve`]."] - dissolve { - #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::edit`]."] - edit { - #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, - #[codec(compact)] - cap: ::core::primitive::u128, - #[codec(compact)] - first_period: ::core::primitive::u32, - #[codec(compact)] - last_period: ::core::primitive::u32, - #[codec(compact)] - end: ::core::primitive::u32, - verifier: - ::core::option::Option, - }, - #[codec(index = 6)] - #[doc = "See [`Pallet::add_memo`]."] - add_memo { - index: runtime_types::polkadot_parachain_primitives::primitives::Id, - memo: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::poke`]."] - poke { - index: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::contribute_all`]."] - contribute_all { - #[codec(compact)] - index: runtime_types::polkadot_parachain_primitives::primitives::Id, - signature: - ::core::option::Option, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The current lease period is more than the first lease period."] - FirstPeriodInPast, - #[codec(index = 1)] - #[doc = "The first lease period needs to at least be less than 3 `max_value`."] - FirstPeriodTooFarInFuture, - #[codec(index = 2)] - #[doc = "Last lease period must be greater than first lease period."] - LastPeriodBeforeFirstPeriod, - #[codec(index = 3)] - #[doc = "The last lease period cannot be more than 3 periods after the first period."] - LastPeriodTooFarInFuture, - #[codec(index = 4)] - #[doc = "The campaign ends before the current block number. The end must be in the future."] - CannotEndInPast, - #[codec(index = 5)] - #[doc = "The end date for this crowdloan is not sensible."] - EndTooFarInFuture, - #[codec(index = 6)] - #[doc = "There was an overflow."] - Overflow, - #[codec(index = 7)] - #[doc = "The contribution was below the minimum, `MinContribution`."] - ContributionTooSmall, - #[codec(index = 8)] - #[doc = "Invalid fund index."] - InvalidParaId, - #[codec(index = 9)] - #[doc = "Contributions exceed maximum amount."] - CapExceeded, - #[codec(index = 10)] - #[doc = "The contribution period has already ended."] - ContributionPeriodOver, - #[codec(index = 11)] - #[doc = "The origin of this call is invalid."] - InvalidOrigin, - #[codec(index = 12)] - #[doc = "This crowdloan does not correspond to a parachain."] - NotParachain, - #[codec(index = 13)] - #[doc = "This parachain lease is still active and retirement cannot yet begin."] - LeaseActive, - #[codec(index = 14)] - #[doc = "This parachain's bid or lease is still active and withdraw cannot yet begin."] - BidOrLeaseActive, - #[codec(index = 15)] - #[doc = "The crowdloan has not yet ended."] - FundNotEnded, - #[codec(index = 16)] - #[doc = "There are no contributions stored in this crowdloan."] - NoContributions, - #[codec(index = 17)] - #[doc = "The crowdloan is not ready to dissolve. Potentially still has a slot or in retirement"] - #[doc = "period."] - NotReadyToDissolve, - #[codec(index = 18)] - #[doc = "Invalid signature."] - InvalidSignature, - #[codec(index = 19)] - #[doc = "The provided memo is too large."] - MemoTooLarge, - #[codec(index = 20)] - #[doc = "The fund is already in `NewRaise`"] - AlreadyInNewRaise, - #[codec(index = 21)] - #[doc = "No contributions allowed during the VRF delay"] - VrfDelayInProgress, - #[codec(index = 22)] - #[doc = "A lease period has not started yet, due to an offset in the starting block."] - NoLeasePeriod, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "Create a new crowdloaning campaign."] - Created { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 1)] - #[doc = "Contributed to a crowd sale."] - Contributed { - who: ::subxt::utils::AccountId32, - fund_index: - runtime_types::polkadot_parachain_primitives::primitives::Id, - amount: ::core::primitive::u128, - }, - #[codec(index = 2)] - #[doc = "Withdrew full balance of a contributor."] - Withdrew { - who: ::subxt::utils::AccountId32, - fund_index: - runtime_types::polkadot_parachain_primitives::primitives::Id, - amount: ::core::primitive::u128, - }, - #[codec(index = 3)] - #[doc = "The loans in a fund have been partially dissolved, i.e. there are some left"] - #[doc = "over child keys that still need to be killed."] - PartiallyRefunded { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 4)] - #[doc = "All loans in a fund have been refunded."] - AllRefunded { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 5)] - #[doc = "Fund is dissolved."] - Dissolved { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 6)] - #[doc = "The result of trying to submit a new bid to the Slots pallet."] - HandleBidResult { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - result: ::core::result::Result< - (), - runtime_types::sp_runtime::DispatchError, - >, - }, - #[codec(index = 7)] - #[doc = "The configuration to a crowdloan has been edited."] - Edited { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 8)] - #[doc = "A memo has been updated."] - MemoUpdated { - who: ::subxt::utils::AccountId32, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - memo: ::std::vec::Vec<::core::primitive::u8>, - }, - #[codec(index = 9)] - #[doc = "A parachain has been moved to `NewRaise`"] - AddedToNewRaise { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct FundInfo<_0, _1, _2, _3> { - pub depositor: _0, - pub verifier: ::core::option::Option, - pub deposit: _1, - pub raised: _1, - pub end: _2, - pub cap: _1, - pub last_contribution: - runtime_types::polkadot_runtime_common::crowdloan::LastContribution<_2>, - pub first_period: _3, - pub last_period: _3, - pub fund_index: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum LastContribution<_0> { - #[codec(index = 0)] - Never, - #[codec(index = 1)] - PreEnding(::core::primitive::u32), - #[codec(index = 2)] - Ending(_0), - } - } - pub mod impls { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum VersionedLocatableAsset { - #[codec(index = 3)] - V3 { - location: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - asset_id: runtime_types::xcm::v3::multiasset::AssetId, - }, - } - } - pub mod paras_registrar { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::register`]."] register { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "See [`Pallet::force_register`]."] force_register { who : :: subxt :: utils :: AccountId32 , deposit : :: core :: primitive :: u128 , id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , genesis_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 2)] # [doc = "See [`Pallet::deregister`]."] deregister { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "See [`Pallet::swap`]."] swap { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , other : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 4)] # [doc = "See [`Pallet::remove_lock`]."] remove_lock { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "See [`Pallet::reserve`]."] reserve , # [codec (index = 6)] # [doc = "See [`Pallet::add_lock`]."] add_lock { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 7)] # [doc = "See [`Pallet::schedule_code_upgrade`]."] schedule_code_upgrade { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 8)] # [doc = "See [`Pallet::set_current_head`]."] set_current_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The ID is not registered."] - NotRegistered, - #[codec(index = 1)] - #[doc = "The ID is already registered."] - AlreadyRegistered, - #[codec(index = 2)] - #[doc = "The caller is not the owner of this Id."] - NotOwner, - #[codec(index = 3)] - #[doc = "Invalid para code size."] - CodeTooLarge, - #[codec(index = 4)] - #[doc = "Invalid para head data size."] - HeadDataTooLarge, - #[codec(index = 5)] - #[doc = "Para is not a Parachain."] - NotParachain, - #[codec(index = 6)] - #[doc = "Para is not a Parathread (on-demand parachain)."] - NotParathread, - #[codec(index = 7)] - #[doc = "Cannot deregister para"] - CannotDeregister, - #[codec(index = 8)] - #[doc = "Cannot schedule downgrade of lease holding parachain to on-demand parachain"] - CannotDowngrade, - #[codec(index = 9)] - #[doc = "Cannot schedule upgrade of on-demand parachain to lease holding parachain"] - CannotUpgrade, - #[codec(index = 10)] - #[doc = "Para is locked from manipulation by the manager. Must use parachain or relay chain"] - #[doc = "governance."] - ParaLocked, - #[codec(index = 11)] - #[doc = "The ID given for registration has not been reserved."] - NotReserved, - #[codec(index = 12)] - #[doc = "Registering parachain with empty code is not allowed."] - EmptyCode, - #[codec(index = 13)] - #[doc = "Cannot perform a parachain slot / lifecycle swap. Check that the state of both paras"] - #[doc = "are correct for the swap to work."] - CannotSwap, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - Registered { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - manager: ::subxt::utils::AccountId32, - }, - #[codec(index = 1)] - Deregistered { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 2)] - Reserved { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - who: ::subxt::utils::AccountId32, - }, - #[codec(index = 3)] - Swapped { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - other_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ParaInfo<_0, _1> { - pub manager: _0, - pub deposit: _1, - pub locked: ::core::option::Option<::core::primitive::bool>, - } - } - pub mod paras_sudo_wrapper { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::sudo_schedule_para_initialize`]."] - sudo_schedule_para_initialize { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, - genesis: - runtime_types::polkadot_runtime_parachains::paras::ParaGenesisArgs, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::sudo_schedule_para_cleanup`]."] - sudo_schedule_para_cleanup { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::sudo_schedule_parathread_upgrade`]."] - sudo_schedule_parathread_upgrade { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 3)] - #[doc = "See [`Pallet::sudo_schedule_parachain_downgrade`]."] - sudo_schedule_parachain_downgrade { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 4)] - #[doc = "See [`Pallet::sudo_queue_downward_xcm`]."] - sudo_queue_downward_xcm { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, - xcm: ::std::boxed::Box, - }, - #[codec(index = 5)] - #[doc = "See [`Pallet::sudo_establish_hrmp_channel`]."] - sudo_establish_hrmp_channel { - sender: runtime_types::polkadot_parachain_primitives::primitives::Id, - recipient: runtime_types::polkadot_parachain_primitives::primitives::Id, - max_capacity: ::core::primitive::u32, - max_message_size: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The specified parachain is not registered."] - ParaDoesntExist, - #[codec(index = 1)] - #[doc = "The specified parachain is already registered."] - ParaAlreadyExists, - #[codec(index = 2)] - #[doc = "A DMP message couldn't be sent because it exceeds the maximum size allowed for a"] - #[doc = "downward message."] - ExceedsMaxMessageSize, - #[codec(index = 3)] - #[doc = "Could not schedule para cleanup."] - CouldntCleanup, - #[codec(index = 4)] - #[doc = "Not a parathread (on-demand parachain)."] - NotParathread, - #[codec(index = 5)] - #[doc = "Not a lease holding parachain."] - NotParachain, - #[codec(index = 6)] - #[doc = "Cannot upgrade on-demand parachain to lease holding parachain."] - CannotUpgrade, - #[codec(index = 7)] - #[doc = "Cannot downgrade lease holding parachain to on-demand."] - CannotDowngrade, - } - } - } - pub mod slots { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::force_lease`]."] - force_lease { - para: runtime_types::polkadot_parachain_primitives::primitives::Id, - leaser: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - period_begin: ::core::primitive::u32, - period_count: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::clear_all_leases`]."] - clear_all_leases { - para: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 2)] - #[doc = "See [`Pallet::trigger_onboard`]."] - trigger_onboard { - para: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The parachain ID is not onboarding."] - ParaNotOnboarding, - #[codec(index = 1)] - #[doc = "There was an error with the lease."] - LeaseError, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A new `[lease_period]` is beginning."] - NewLeasePeriod { - lease_period: ::core::primitive::u32, - }, - #[codec(index = 1)] - #[doc = "A para has won the right to a continuous set of lease periods as a parachain."] - #[doc = "First balance is any extra amount reserved on top of the para's existing deposit."] - #[doc = "Second balance is the total amount reserved."] - Leased { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - leaser: ::subxt::utils::AccountId32, - period_begin: ::core::primitive::u32, - period_count: ::core::primitive::u32, - extra_reserved: ::core::primitive::u128, - total_amount: ::core::primitive::u128, - }, - } - } - } - } - pub mod polkadot_runtime_parachains { - use super::runtime_types; - pub mod assigner_on_demand { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::place_order_allow_death`]."] - place_order_allow_death { - max_amount: ::core::primitive::u128, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::place_order_keep_alive`]."] - place_order_keep_alive { - max_amount: ::core::primitive::u128, - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The `ParaId` supplied to the `place_order` call is not a valid `ParaThread`, making the"] - #[doc = "call is invalid."] - InvalidParaId, - #[codec(index = 1)] - #[doc = "The order queue is full, `place_order` will not continue."] - QueueFull, - #[codec(index = 2)] - #[doc = "The current spot price is higher than the max amount specified in the `place_order`"] - #[doc = "call, making it invalid."] - SpotPriceHigherThanMaxAmount, - #[codec(index = 3)] - #[doc = "There are no on demand cores available. `place_order` will not add anything to the"] - #[doc = "queue."] - NoOnDemandCores, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "An order was placed at some spot price amount."] - OnDemandOrderPlaced { - para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - spot_price: ::core::primitive::u128, - }, - #[codec(index = 1)] - #[doc = "The value of the spot traffic multiplier changed."] - SpotTrafficSet { - traffic: runtime_types::sp_arithmetic::fixed_point::FixedU128, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CoreAffinityCount { - pub core_idx: runtime_types::polkadot_primitives::v6::CoreIndex, - pub count: ::core::primitive::u32, - } - } - pub mod configuration { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::set_validation_upgrade_cooldown`]."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_validation_upgrade_delay`]."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_code_retention_period`]."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "See [`Pallet::set_max_code_size`]."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::set_max_pov_size`]."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "See [`Pallet::set_max_head_data_size`]."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "See [`Pallet::set_on_demand_cores`]."] set_on_demand_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "See [`Pallet::set_on_demand_retries`]."] set_on_demand_retries { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "See [`Pallet::set_group_rotation_frequency`]."] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "See [`Pallet::set_paras_availability_period`]."] set_paras_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "See [`Pallet::set_scheduling_lookahead`]."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "See [`Pallet::set_max_validators_per_core`]."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "See [`Pallet::set_max_validators`]."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "See [`Pallet::set_dispute_period`]."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "See [`Pallet::set_dispute_post_conclusion_acceptance_period`]."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "See [`Pallet::set_no_show_slots`]."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "See [`Pallet::set_n_delay_tranches`]."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "See [`Pallet::set_zeroth_delay_tranche_width`]."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "See [`Pallet::set_needed_approvals`]."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "See [`Pallet::set_relay_vrf_modulo_samples`]."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "See [`Pallet::set_max_upward_queue_count`]."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "See [`Pallet::set_max_upward_queue_size`]."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "See [`Pallet::set_max_downward_message_size`]."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "See [`Pallet::set_max_upward_message_size`]."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "See [`Pallet::set_max_upward_message_num_per_candidate`]."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "See [`Pallet::set_hrmp_open_request_ttl`]."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "See [`Pallet::set_hrmp_sender_deposit`]."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "See [`Pallet::set_hrmp_recipient_deposit`]."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "See [`Pallet::set_hrmp_channel_max_capacity`]."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "See [`Pallet::set_hrmp_channel_max_total_size`]."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "See [`Pallet::set_hrmp_max_parachain_inbound_channels`]."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "See [`Pallet::set_hrmp_channel_max_message_size`]."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "See [`Pallet::set_hrmp_max_parachain_outbound_channels`]."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "See [`Pallet::set_hrmp_max_message_num_per_candidate`]."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 42)] # [doc = "See [`Pallet::set_pvf_voting_ttl`]."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "See [`Pallet::set_minimum_validation_upgrade_delay`]."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "See [`Pallet::set_bypass_consistency_check`]."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "See [`Pallet::set_async_backing_params`]."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: v6 :: async_backing :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "See [`Pallet::set_executor_params`]."] set_executor_params { new : runtime_types :: polkadot_primitives :: v6 :: executor_params :: ExecutorParams , } , # [codec (index = 47)] # [doc = "See [`Pallet::set_on_demand_base_fee`]."] set_on_demand_base_fee { new : :: core :: primitive :: u128 , } , # [codec (index = 48)] # [doc = "See [`Pallet::set_on_demand_fee_variability`]."] set_on_demand_fee_variability { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 49)] # [doc = "See [`Pallet::set_on_demand_queue_max_size`]."] set_on_demand_queue_max_size { new : :: core :: primitive :: u32 , } , # [codec (index = 50)] # [doc = "See [`Pallet::set_on_demand_target_queue_utilization`]."] set_on_demand_target_queue_utilization { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 51)] # [doc = "See [`Pallet::set_on_demand_ttl`]."] set_on_demand_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 52)] # [doc = "See [`Pallet::set_minimum_backing_votes`]."] set_minimum_backing_votes { new : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The new value for a configuration parameter is invalid."] - InvalidNewValue, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct HostConfiguration<_0> { - pub max_code_size: ::core::primitive::u32, - pub max_head_data_size: ::core::primitive::u32, - pub max_upward_queue_count: ::core::primitive::u32, - pub max_upward_queue_size: ::core::primitive::u32, - pub max_upward_message_size: ::core::primitive::u32, - pub max_upward_message_num_per_candidate: ::core::primitive::u32, - pub hrmp_max_message_num_per_candidate: ::core::primitive::u32, - pub validation_upgrade_cooldown: _0, - pub validation_upgrade_delay: _0, - pub async_backing_params: - runtime_types::polkadot_primitives::v6::async_backing::AsyncBackingParams, - pub max_pov_size: ::core::primitive::u32, - pub max_downward_message_size: ::core::primitive::u32, - pub hrmp_max_parachain_outbound_channels: ::core::primitive::u32, - pub hrmp_sender_deposit: ::core::primitive::u128, - pub hrmp_recipient_deposit: ::core::primitive::u128, - pub hrmp_channel_max_capacity: ::core::primitive::u32, - pub hrmp_channel_max_total_size: ::core::primitive::u32, - pub hrmp_max_parachain_inbound_channels: ::core::primitive::u32, - pub hrmp_channel_max_message_size: ::core::primitive::u32, - pub executor_params: - runtime_types::polkadot_primitives::v6::executor_params::ExecutorParams, - pub code_retention_period: _0, - pub on_demand_cores: ::core::primitive::u32, - pub on_demand_retries: ::core::primitive::u32, - pub on_demand_queue_max_size: ::core::primitive::u32, - pub on_demand_target_queue_utilization: - runtime_types::sp_arithmetic::per_things::Perbill, - pub on_demand_fee_variability: - runtime_types::sp_arithmetic::per_things::Perbill, - pub on_demand_base_fee: ::core::primitive::u128, - pub on_demand_ttl: _0, - pub group_rotation_frequency: _0, - pub paras_availability_period: _0, - pub scheduling_lookahead: ::core::primitive::u32, - pub max_validators_per_core: ::core::option::Option<_0>, - pub max_validators: ::core::option::Option<_0>, - pub dispute_period: ::core::primitive::u32, - pub dispute_post_conclusion_acceptance_period: _0, - pub no_show_slots: ::core::primitive::u32, - pub n_delay_tranches: ::core::primitive::u32, - pub zeroth_delay_tranche_width: ::core::primitive::u32, - pub needed_approvals: ::core::primitive::u32, - pub relay_vrf_modulo_samples: ::core::primitive::u32, - pub pvf_voting_ttl: ::core::primitive::u32, - pub minimum_validation_upgrade_delay: _0, - pub minimum_backing_votes: ::core::primitive::u32, - } - } - pub mod disputes { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::force_unfreeze`]."] - force_unfreeze, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Duplicate dispute statement sets provided."] - DuplicateDisputeStatementSets, - #[codec(index = 1)] - #[doc = "Ancient dispute statement provided."] - AncientDisputeStatement, - #[codec(index = 2)] - #[doc = "Validator index on statement is out of bounds for session."] - ValidatorIndexOutOfBounds, - #[codec(index = 3)] - #[doc = "Invalid signature on statement."] - InvalidSignature, - #[codec(index = 4)] - #[doc = "Validator vote submitted more than once to dispute."] - DuplicateStatement, - #[codec(index = 5)] - #[doc = "A dispute where there are only votes on one side."] - SingleSidedDispute, - #[codec(index = 6)] - #[doc = "A dispute vote from a malicious backer."] - MaliciousBacker, - #[codec(index = 7)] - #[doc = "No backing votes were provides along dispute statements."] - MissingBackingVotes, - #[codec(index = 8)] - #[doc = "Unconfirmed dispute statement sets provided."] - UnconfirmedDispute, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A dispute has been initiated. \\[candidate hash, dispute location\\]"] - DisputeInitiated( - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_runtime_parachains::disputes::DisputeLocation, - ), - #[codec(index = 1)] - #[doc = "A dispute has concluded for or against a candidate."] - #[doc = "`\\[para id, candidate hash, dispute result\\]`"] - DisputeConcluded( - runtime_types::polkadot_core_primitives::CandidateHash, - runtime_types::polkadot_runtime_parachains::disputes::DisputeResult, - ), - #[codec(index = 2)] - #[doc = "A dispute has concluded with supermajority against a candidate."] - #[doc = "Block authors should no longer build on top of this head and should"] - #[doc = "instead revert the block at the given height. This should be the"] - #[doc = "number of the child of the last known valid block in the chain."] - Revert(::core::primitive::u32), - } - } - pub mod slashing { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::report_dispute_lost_unsigned`]."] - report_dispute_lost_unsigned { - dispute_proof: ::std::boxed::Box< - runtime_types::polkadot_primitives::v6::slashing::DisputeProof, - >, - key_owner_proof: runtime_types::sp_session::MembershipProof, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The key ownership proof is invalid."] - InvalidKeyOwnershipProof, - #[codec(index = 1)] - #[doc = "The session index is too old or invalid."] - InvalidSessionIndex, - #[codec(index = 2)] - #[doc = "The candidate hash is invalid."] - InvalidCandidateHash, - #[codec(index = 3)] - #[doc = "There is no pending slash for the given validator index and time"] - #[doc = "slot."] - InvalidValidatorIndex, - #[codec(index = 4)] - #[doc = "The validator index does not match the validator id."] - ValidatorIndexIdMismatch, - #[codec(index = 5)] - #[doc = "The given slashing report is valid but already previously reported."] - DuplicateSlashingReport, - } - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum DisputeLocation { - #[codec(index = 0)] - Local, - #[codec(index = 1)] - Remote, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum DisputeResult { - #[codec(index = 0)] - Valid, - #[codec(index = 1)] - Invalid, - } - } - pub mod hrmp { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::hrmp_init_open_channel`]."] hrmp_init_open_channel { recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "See [`Pallet::hrmp_accept_open_channel`]."] hrmp_accept_open_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 2)] # [doc = "See [`Pallet::hrmp_close_channel`]."] hrmp_close_channel { channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 3)] # [doc = "See [`Pallet::force_clean_hrmp`]."] force_clean_hrmp { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , num_inbound : :: core :: primitive :: u32 , num_outbound : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "See [`Pallet::force_process_hrmp_open`]."] force_process_hrmp_open { channels : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "See [`Pallet::force_process_hrmp_close`]."] force_process_hrmp_close { channels : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "See [`Pallet::hrmp_cancel_open_request`]."] hrmp_cancel_open_request { channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , open_requests : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "See [`Pallet::force_open_hrmp_channel`]."] force_open_hrmp_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , max_capacity : :: core :: primitive :: u32 , max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "See [`Pallet::establish_system_channel`]."] establish_system_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 9)] # [doc = "See [`Pallet::poke_channel_deposits`]."] poke_channel_deposits { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "The sender tried to open a channel to themselves."] - OpenHrmpChannelToSelf, - #[codec(index = 1)] - #[doc = "The recipient is not a valid para."] - OpenHrmpChannelInvalidRecipient, - #[codec(index = 2)] - #[doc = "The requested capacity is zero."] - OpenHrmpChannelZeroCapacity, - #[codec(index = 3)] - #[doc = "The requested capacity exceeds the global limit."] - OpenHrmpChannelCapacityExceedsLimit, - #[codec(index = 4)] - #[doc = "The requested maximum message size is 0."] - OpenHrmpChannelZeroMessageSize, - #[codec(index = 5)] - #[doc = "The open request requested the message size that exceeds the global limit."] - OpenHrmpChannelMessageSizeExceedsLimit, - #[codec(index = 6)] - #[doc = "The channel already exists"] - OpenHrmpChannelAlreadyExists, - #[codec(index = 7)] - #[doc = "There is already a request to open the same channel."] - OpenHrmpChannelAlreadyRequested, - #[codec(index = 8)] - #[doc = "The sender already has the maximum number of allowed outbound channels."] - OpenHrmpChannelLimitExceeded, - #[codec(index = 9)] - #[doc = "The channel from the sender to the origin doesn't exist."] - AcceptHrmpChannelDoesntExist, - #[codec(index = 10)] - #[doc = "The channel is already confirmed."] - AcceptHrmpChannelAlreadyConfirmed, - #[codec(index = 11)] - #[doc = "The recipient already has the maximum number of allowed inbound channels."] - AcceptHrmpChannelLimitExceeded, - #[codec(index = 12)] - #[doc = "The origin tries to close a channel where it is neither the sender nor the recipient."] - CloseHrmpChannelUnauthorized, - #[codec(index = 13)] - #[doc = "The channel to be closed doesn't exist."] - CloseHrmpChannelDoesntExist, - #[codec(index = 14)] - #[doc = "The channel close request is already requested."] - CloseHrmpChannelAlreadyUnderway, - #[codec(index = 15)] - #[doc = "Canceling is requested by neither the sender nor recipient of the open channel request."] - CancelHrmpOpenChannelUnauthorized, - #[codec(index = 16)] - #[doc = "The open request doesn't exist."] - OpenHrmpChannelDoesntExist, - #[codec(index = 17)] - #[doc = "Cannot cancel an HRMP open channel request because it is already confirmed."] - OpenHrmpChannelAlreadyConfirmed, - #[codec(index = 18)] - #[doc = "The provided witness data is wrong."] - WrongWitness, - #[codec(index = 19)] - #[doc = "The channel between these two chains cannot be authorized."] - ChannelCreationNotAuthorized, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - # [codec (index = 0)] # [doc = "Open HRMP channel requested."] OpenChannelRequested { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "An HRMP channel request sent by the receiver was canceled by either party."] OpenChannelCanceled { by_parachain : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 2)] # [doc = "Open HRMP channel accepted."] OpenChannelAccepted { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "HRMP channel closed."] ChannelClosed { by_parachain : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 4)] # [doc = "An HRMP channel was opened via Root origin."] HrmpChannelForceOpened { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "An HRMP channel was opened between two system chains."] HrmpSystemChannelOpened { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , proposed_max_capacity : :: core :: primitive :: u32 , proposed_max_message_size : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "An HRMP channel's deposits were updated."] OpenChannelDepositsUpdated { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct HrmpChannel { - pub max_capacity: ::core::primitive::u32, - pub max_total_size: ::core::primitive::u32, - pub max_message_size: ::core::primitive::u32, - pub msg_count: ::core::primitive::u32, - pub total_size: ::core::primitive::u32, - pub mqc_head: ::core::option::Option<::subxt::utils::H256>, - pub sender_deposit: ::core::primitive::u128, - pub recipient_deposit: ::core::primitive::u128, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct HrmpOpenChannelRequest { - pub confirmed: ::core::primitive::bool, - pub _age: ::core::primitive::u32, - pub sender_deposit: ::core::primitive::u128, - pub max_message_size: ::core::primitive::u32, - pub max_capacity: ::core::primitive::u32, - pub max_total_size: ::core::primitive::u32, - } - } - pub mod inclusion { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call {} - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Validator indices are out of order or contains duplicates."] - UnsortedOrDuplicateValidatorIndices, - #[codec(index = 1)] - #[doc = "Dispute statement sets are out of order or contain duplicates."] - UnsortedOrDuplicateDisputeStatementSet, - #[codec(index = 2)] - #[doc = "Backed candidates are out of order (core index) or contain duplicates."] - UnsortedOrDuplicateBackedCandidates, - #[codec(index = 3)] - #[doc = "A different relay parent was provided compared to the on-chain stored one."] - UnexpectedRelayParent, - #[codec(index = 4)] - #[doc = "Availability bitfield has unexpected size."] - WrongBitfieldSize, - #[codec(index = 5)] - #[doc = "Bitfield consists of zeros only."] - BitfieldAllZeros, - #[codec(index = 6)] - #[doc = "Multiple bitfields submitted by same validator or validators out of order by index."] - BitfieldDuplicateOrUnordered, - #[codec(index = 7)] - #[doc = "Validator index out of bounds."] - ValidatorIndexOutOfBounds, - #[codec(index = 8)] - #[doc = "Invalid signature"] - InvalidBitfieldSignature, - #[codec(index = 9)] - #[doc = "Candidate submitted but para not scheduled."] - UnscheduledCandidate, - #[codec(index = 10)] - #[doc = "Candidate scheduled despite pending candidate already existing for the para."] - CandidateScheduledBeforeParaFree, - #[codec(index = 11)] - #[doc = "Scheduled cores out of order."] - ScheduledOutOfOrder, - #[codec(index = 12)] - #[doc = "Head data exceeds the configured maximum."] - HeadDataTooLarge, - #[codec(index = 13)] - #[doc = "Code upgrade prematurely."] - PrematureCodeUpgrade, - #[codec(index = 14)] - #[doc = "Output code is too large"] - NewCodeTooLarge, - #[codec(index = 15)] - #[doc = "The candidate's relay-parent was not allowed. Either it was"] - #[doc = "not recent enough or it didn't advance based on the last parachain block."] - DisallowedRelayParent, - #[codec(index = 16)] - #[doc = "Failed to compute group index for the core: either it's out of bounds"] - #[doc = "or the relay parent doesn't belong to the current session."] - InvalidAssignment, - #[codec(index = 17)] - #[doc = "Invalid group index in core assignment."] - InvalidGroupIndex, - #[codec(index = 18)] - #[doc = "Insufficient (non-majority) backing."] - InsufficientBacking, - #[codec(index = 19)] - #[doc = "Invalid (bad signature, unknown validator, etc.) backing."] - InvalidBacking, - #[codec(index = 20)] - #[doc = "Collator did not sign PoV."] - NotCollatorSigned, - #[codec(index = 21)] - #[doc = "The validation data hash does not match expected."] - ValidationDataHashMismatch, - #[codec(index = 22)] - #[doc = "The downward message queue is not processed correctly."] - IncorrectDownwardMessageHandling, - #[codec(index = 23)] - #[doc = "At least one upward message sent does not pass the acceptance criteria."] - InvalidUpwardMessages, - #[codec(index = 24)] - #[doc = "The candidate didn't follow the rules of HRMP watermark advancement."] - HrmpWatermarkMishandling, - #[codec(index = 25)] - #[doc = "The HRMP messages sent by the candidate is not valid."] - InvalidOutboundHrmp, - #[codec(index = 26)] - #[doc = "The validation code hash of the candidate is not valid."] - InvalidValidationCodeHash, - #[codec(index = 27)] - #[doc = "The `para_head` hash in the candidate descriptor doesn't match the hash of the actual"] - #[doc = "para head in the commitments."] - ParaHeadMismatch, - #[codec(index = 28)] - #[doc = "A bitfield that references a freed core,"] - #[doc = "either intentionally or as part of a concluded"] - #[doc = "invalid dispute."] - BitfieldReferencesFreedCore, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "A candidate was backed. `[candidate, head_data]`"] - CandidateBacked( - runtime_types::polkadot_primitives::v6::CandidateReceipt< - ::subxt::utils::H256, - >, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v6::CoreIndex, - runtime_types::polkadot_primitives::v6::GroupIndex, - ), - #[codec(index = 1)] - #[doc = "A candidate was included. `[candidate, head_data]`"] - CandidateIncluded( - runtime_types::polkadot_primitives::v6::CandidateReceipt< - ::subxt::utils::H256, - >, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v6::CoreIndex, - runtime_types::polkadot_primitives::v6::GroupIndex, - ), - #[codec(index = 2)] - #[doc = "A candidate timed out. `[candidate, head_data]`"] - CandidateTimedOut( - runtime_types::polkadot_primitives::v6::CandidateReceipt< - ::subxt::utils::H256, - >, - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - runtime_types::polkadot_primitives::v6::CoreIndex, - ), - #[codec(index = 3)] - #[doc = "Some upward messages have been received and will be processed."] - UpwardMessagesReceived { - from: runtime_types::polkadot_parachain_primitives::primitives::Id, - count: ::core::primitive::u32, - }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AggregateMessageOrigin { - #[codec(index = 0)] - Ump(runtime_types::polkadot_runtime_parachains::inclusion::UmpQueueId), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AvailabilityBitfieldRecord<_0> { - pub bitfield: runtime_types::polkadot_primitives::v6::AvailabilityBitfield, - pub submitted_at: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CandidatePendingAvailability<_0, _1> { - pub core: runtime_types::polkadot_primitives::v6::CoreIndex, - pub hash: runtime_types::polkadot_core_primitives::CandidateHash, - pub descriptor: runtime_types::polkadot_primitives::v6::CandidateDescriptor<_0>, - pub availability_votes: ::subxt::utils::bits::DecodedBits< - ::core::primitive::u8, - ::subxt::utils::bits::Lsb0, - >, - pub backers: ::subxt::utils::bits::DecodedBits< - ::core::primitive::u8, - ::subxt::utils::bits::Lsb0, - >, - pub relay_parent_number: _1, - pub backed_in_number: _1, - pub backing_group: runtime_types::polkadot_primitives::v6::GroupIndex, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum UmpQueueId { - #[codec(index = 0)] - Para(runtime_types::polkadot_parachain_primitives::primitives::Id), - } - } - pub mod initializer { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::force_approve`]."] - force_approve { up_to: ::core::primitive::u32 }, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BufferedSessionChange { - pub validators: ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::validator_app::Public, - >, - pub queued: ::std::vec::Vec< - runtime_types::polkadot_primitives::v6::validator_app::Public, - >, - pub session_index: ::core::primitive::u32, - } - } - pub mod origin { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Origin { - #[codec(index = 0)] - Parachain(runtime_types::polkadot_parachain_primitives::primitives::Id), - } - } - } - pub mod paras { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::force_set_current_code`]."] force_set_current_code { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 1)] # [doc = "See [`Pallet::force_set_current_head`]."] force_set_current_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , # [codec (index = 2)] # [doc = "See [`Pallet::force_schedule_code_upgrade`]."] force_schedule_code_upgrade { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , relay_parent_number : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "See [`Pallet::force_note_new_head`]."] force_note_new_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , # [codec (index = 4)] # [doc = "See [`Pallet::force_queue_action`]."] force_queue_action { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "See [`Pallet::add_trusted_validation_code`]."] add_trusted_validation_code { validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 6)] # [doc = "See [`Pallet::poke_unused_validation_code`]."] poke_unused_validation_code { validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } , # [codec (index = 7)] # [doc = "See [`Pallet::include_pvf_check_statement`]."] include_pvf_check_statement { stmt : runtime_types :: polkadot_primitives :: v6 :: PvfCheckStatement , signature : runtime_types :: polkadot_primitives :: v6 :: validator_app :: Signature , } , # [codec (index = 8)] # [doc = "See [`Pallet::force_set_most_recent_context`]."] force_set_most_recent_context { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , context : :: core :: primitive :: u32 , } , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Para is not registered in our system."] - NotRegistered, - #[codec(index = 1)] - #[doc = "Para cannot be onboarded because it is already tracked by our system."] - CannotOnboard, - #[codec(index = 2)] - #[doc = "Para cannot be offboarded at this time."] - CannotOffboard, - #[codec(index = 3)] - #[doc = "Para cannot be upgraded to a lease holding parachain."] - CannotUpgrade, - #[codec(index = 4)] - #[doc = "Para cannot be downgraded to an on-demand parachain."] - CannotDowngrade, - #[codec(index = 5)] - #[doc = "The statement for PVF pre-checking is stale."] - PvfCheckStatementStale, - #[codec(index = 6)] - #[doc = "The statement for PVF pre-checking is for a future session."] - PvfCheckStatementFuture, - #[codec(index = 7)] - #[doc = "Claimed validator index is out of bounds."] - PvfCheckValidatorIndexOutOfBounds, - #[codec(index = 8)] - #[doc = "The signature for the PVF pre-checking is invalid."] - PvfCheckInvalidSignature, - #[codec(index = 9)] - #[doc = "The given validator already has cast a vote."] - PvfCheckDoubleVote, - #[codec(index = 10)] - #[doc = "The given PVF does not exist at the moment of process a vote."] - PvfCheckSubjectInvalid, - #[codec(index = 11)] - #[doc = "Parachain cannot currently schedule a code upgrade."] - CannotUpgradeCode, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - # [codec (index = 0)] # [doc = "Current code has been updated for a Para. `para_id`"] CurrentCodeUpdated (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 1)] # [doc = "Current head has been updated for a Para. `para_id`"] CurrentHeadUpdated (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 2)] # [doc = "A code upgrade has been scheduled for a Para. `para_id`"] CodeUpgradeScheduled (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 3)] # [doc = "A new head has been noted for a Para. `para_id`"] NewHeadNoted (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 4)] # [doc = "A para has been queued to execute pending actions. `para_id`"] ActionQueued (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , :: core :: primitive :: u32 ,) , # [codec (index = 5)] # [doc = "The given para either initiated or subscribed to a PVF check for the given validation"] # [doc = "code. `code_hash` `para_id`"] PvfCheckStarted (runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 6)] # [doc = "The given validation code was accepted by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckAccepted (runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , # [codec (index = 7)] # [doc = "The given validation code was rejected by the PVF pre-checking vote."] # [doc = "`code_hash` `para_id`"] PvfCheckRejected (runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ParaGenesisArgs { - pub genesis_head: - runtime_types::polkadot_parachain_primitives::primitives::HeadData, - pub validation_code: - runtime_types::polkadot_parachain_primitives::primitives::ValidationCode, - pub para_kind: ::core::primitive::bool, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ParaLifecycle { - #[codec(index = 0)] - Onboarding, - #[codec(index = 1)] - Parathread, - #[codec(index = 2)] - Parachain, - #[codec(index = 3)] - UpgradingParathread, - #[codec(index = 4)] - DowngradingParachain, - #[codec(index = 5)] - OffboardingParathread, - #[codec(index = 6)] - OffboardingParachain, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ParaPastCodeMeta<_0> { - pub upgrade_times: ::std::vec::Vec< - runtime_types::polkadot_runtime_parachains::paras::ReplacementTimes<_0>, - >, - pub last_pruned: ::core::option::Option<_0>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PvfCheckActiveVoteState<_0> { - pub votes_accept: ::subxt::utils::bits::DecodedBits< - ::core::primitive::u8, - ::subxt::utils::bits::Lsb0, - >, - pub votes_reject: ::subxt::utils::bits::DecodedBits< - ::core::primitive::u8, - ::subxt::utils::bits::Lsb0, - >, - pub age: ::core::primitive::u32, - pub created_at: _0, - pub causes: ::std::vec::Vec< - runtime_types::polkadot_runtime_parachains::paras::PvfCheckCause<_0>, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum PvfCheckCause<_0> { - #[codec(index = 0)] - Onboarding(runtime_types::polkadot_parachain_primitives::primitives::Id), - #[codec(index = 1)] - Upgrade { - id: runtime_types::polkadot_parachain_primitives::primitives::Id, - included_at: _0, - set_go_ahead: runtime_types::polkadot_runtime_parachains::paras::SetGoAhead, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReplacementTimes<_0> { - pub expected_at: _0, - pub activated_at: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum SetGoAhead { - #[codec(index = 0)] - Yes, - #[codec(index = 1)] - No, - } - } - pub mod paras_inherent { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::enter`]."] - enter { - data: runtime_types::polkadot_primitives::v6::InherentData< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u32, - >, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] - pub enum Error { - #[codec(index = 0)] - #[doc = "Inclusion inherent called more than once per block."] - TooManyInclusionInherents, - #[codec(index = 1)] - #[doc = "The hash of the submitted parent header doesn't correspond to the saved block hash of"] - #[doc = "the parent."] - InvalidParentHeader, - #[codec(index = 2)] - #[doc = "Disputed candidate that was concluded invalid."] - CandidateConcludedInvalid, - #[codec(index = 3)] - #[doc = "The data given to the inherent will result in an overweight block."] - InherentOverweight, - #[codec(index = 4)] - #[doc = "The ordering of dispute statements was invalid."] - DisputeStatementsUnsortedOrDuplicates, - #[codec(index = 5)] - #[doc = "A dispute statement was invalid."] - DisputeInvalid, - } - } - } - pub mod scheduler { - use super::runtime_types; - pub mod common { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Assignment { - pub para_id: runtime_types::polkadot_parachain_primitives::primitives::Id, - } - } - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum CoreOccupied<_0> { - # [codec (index = 0)] Free , # [codec (index = 1)] Paras (runtime_types :: polkadot_runtime_parachains :: scheduler :: pallet :: ParasEntry < _0 > ,) , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ParasEntry < _0 > { pub assignment : runtime_types :: polkadot_runtime_parachains :: scheduler :: common :: Assignment , pub availability_timeouts : :: core :: primitive :: u32 , pub ttl : _0 , } - } - } - pub mod shared { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call {} - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AllowedRelayParentsTracker<_0, _1> { - pub buffer: ::std::vec::Vec<(_0, _0)>, - pub latest_number: _1, - } - } - } - pub mod rococo_runtime { - use super::runtime_types; - pub mod governance { - use super::runtime_types; - pub mod origins { - use super::runtime_types; - pub mod pallet_custom_origins { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Origin { - #[codec(index = 0)] - StakingAdmin, - #[codec(index = 1)] - Treasurer, - #[codec(index = 2)] - FellowshipAdmin, - #[codec(index = 3)] - GeneralAdmin, - #[codec(index = 4)] - AuctionAdmin, - #[codec(index = 5)] - LeaseAdmin, - #[codec(index = 6)] - ReferendumCanceller, - #[codec(index = 7)] - ReferendumKiller, - #[codec(index = 8)] - SmallTipper, - #[codec(index = 9)] - BigTipper, - #[codec(index = 10)] - SmallSpender, - #[codec(index = 11)] - MediumSpender, - #[codec(index = 12)] - BigSpender, - #[codec(index = 13)] - WhitelistedCaller, - #[codec(index = 14)] - FellowshipInitiates, - #[codec(index = 15)] - Fellows, - #[codec(index = 16)] - FellowshipExperts, - #[codec(index = 17)] - FellowshipMasters, - #[codec(index = 18)] - Fellowship1Dan, - #[codec(index = 19)] - Fellowship2Dan, - #[codec(index = 20)] - Fellowship3Dan, - #[codec(index = 21)] - Fellowship4Dan, - #[codec(index = 22)] - Fellowship5Dan, - #[codec(index = 23)] - Fellowship6Dan, - #[codec(index = 24)] - Fellowship7Dan, - #[codec(index = 25)] - Fellowship8Dan, - #[codec(index = 26)] - Fellowship9Dan, - } - } - } - } - pub mod validator_manager { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] - pub enum Call { - #[codec(index = 0)] - #[doc = "See [`Pallet::register_validators`]."] - register_validators { - validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - #[codec(index = 1)] - #[doc = "See [`Pallet::deregister_validators`]."] - deregister_validators { - validators: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] - pub enum Event { - #[codec(index = 0)] - #[doc = "New validators were added to the set."] - ValidatorsRegistered(::std::vec::Vec<::subxt::utils::AccountId32>), - #[codec(index = 1)] - #[doc = "Validators were removed from the set."] - ValidatorsDeregistered(::std::vec::Vec<::subxt::utils::AccountId32>), - } - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum OriginCaller { - # [codec (index = 0)] system (runtime_types :: frame_support :: dispatch :: RawOrigin < :: subxt :: utils :: AccountId32 > ,) , # [codec (index = 43)] Origins (runtime_types :: rococo_runtime :: governance :: origins :: pallet_custom_origins :: Origin ,) , # [codec (index = 50)] ParachainsOrigin (runtime_types :: polkadot_runtime_parachains :: origin :: pallet :: Origin ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Origin ,) , # [codec (index = 4)] Void (runtime_types :: sp_core :: Void ,) , } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ProxyType { - #[codec(index = 0)] - Any, - #[codec(index = 1)] - NonTransfer, - #[codec(index = 2)] - Governance, - #[codec(index = 3)] - IdentityJudgement, - #[codec(index = 4)] - CancelProxy, - #[codec(index = 5)] - Auction, - #[codec(index = 6)] - Society, - #[codec(index = 7)] - OnDemandOrdering, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Runtime; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeCall { - #[codec(index = 0)] - System(runtime_types::frame_system::pallet::Call), - #[codec(index = 1)] - Babe(runtime_types::pallet_babe::pallet::Call), - #[codec(index = 2)] - Timestamp(runtime_types::pallet_timestamp::pallet::Call), - #[codec(index = 3)] - Indices(runtime_types::pallet_indices::pallet::Call), - #[codec(index = 4)] - Balances(runtime_types::pallet_balances::pallet::Call), - #[codec(index = 240)] - Beefy(runtime_types::pallet_beefy::pallet::Call), - #[codec(index = 8)] - Session(runtime_types::pallet_session::pallet::Call), - #[codec(index = 10)] - Grandpa(runtime_types::pallet_grandpa::pallet::Call), - #[codec(index = 11)] - ImOnline(runtime_types::pallet_im_online::pallet::Call), - #[codec(index = 18)] - Treasury(runtime_types::pallet_treasury::pallet::Call), - #[codec(index = 20)] - ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Call), - #[codec(index = 21)] - Referenda(runtime_types::pallet_referenda::pallet::Call), - #[codec(index = 22)] - FellowshipCollective(runtime_types::pallet_ranked_collective::pallet::Call), - #[codec(index = 23)] - FellowshipReferenda(runtime_types::pallet_referenda::pallet::Call2), - #[codec(index = 44)] - Whitelist(runtime_types::pallet_whitelist::pallet::Call), - #[codec(index = 19)] - Claims(runtime_types::polkadot_runtime_common::claims::pallet::Call), - #[codec(index = 24)] - Utility(runtime_types::pallet_utility::pallet::Call), - #[codec(index = 25)] - Identity(runtime_types::pallet_identity::pallet::Call), - #[codec(index = 26)] - Society(runtime_types::pallet_society::pallet::Call), - #[codec(index = 27)] - Recovery(runtime_types::pallet_recovery::pallet::Call), - #[codec(index = 28)] - Vesting(runtime_types::pallet_vesting::pallet::Call), - #[codec(index = 29)] - Scheduler(runtime_types::pallet_scheduler::pallet::Call), - #[codec(index = 30)] - Proxy(runtime_types::pallet_proxy::pallet::Call), - #[codec(index = 31)] - Multisig(runtime_types::pallet_multisig::pallet::Call), - #[codec(index = 32)] - Preimage(runtime_types::pallet_preimage::pallet::Call), - #[codec(index = 39)] - AssetRate(runtime_types::pallet_asset_rate::pallet::Call), - #[codec(index = 35)] - Bounties(runtime_types::pallet_bounties::pallet::Call), - #[codec(index = 40)] - ChildBounties(runtime_types::pallet_child_bounties::pallet::Call), - #[codec(index = 38)] - Nis(runtime_types::pallet_nis::pallet::Call), - #[codec(index = 45)] - NisCounterpartBalances(runtime_types::pallet_balances::pallet::Call2), - #[codec(index = 51)] - Configuration( - runtime_types::polkadot_runtime_parachains::configuration::pallet::Call, - ), - #[codec(index = 52)] - ParasShared(runtime_types::polkadot_runtime_parachains::shared::pallet::Call), - #[codec(index = 53)] - ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Call), - #[codec(index = 54)] - ParaInherent( - runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Call, - ), - #[codec(index = 56)] - Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Call), - #[codec(index = 57)] - Initializer(runtime_types::polkadot_runtime_parachains::initializer::pallet::Call), - #[codec(index = 60)] - Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Call), - #[codec(index = 62)] - ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Call), - #[codec(index = 63)] - ParasSlashing( - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Call, - ), - #[codec(index = 64)] - MessageQueue(runtime_types::pallet_message_queue::pallet::Call), - #[codec(index = 66)] - OnDemandAssignmentProvider( - runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Call, - ), - #[codec(index = 70)] - Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Call), - #[codec(index = 71)] - Slots(runtime_types::polkadot_runtime_common::slots::pallet::Call), - #[codec(index = 72)] - Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Call), - #[codec(index = 73)] - Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Call), - #[codec(index = 99)] - XcmPallet(runtime_types::pallet_xcm::pallet::Call), - #[codec(index = 250)] - ParasSudoWrapper( - runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Call, - ), - #[codec(index = 251)] - AssignedSlots(runtime_types::polkadot_runtime_common::assigned_slots::pallet::Call), - #[codec(index = 252)] - ValidatorManager(runtime_types::rococo_runtime::validator_manager::pallet::Call), - #[codec(index = 254)] - StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Call), - #[codec(index = 249)] - RootTesting(runtime_types::pallet_root_testing::pallet::Call), - #[codec(index = 255)] - Sudo(runtime_types::pallet_sudo::pallet::Call), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeError { - #[codec(index = 0)] - System(runtime_types::frame_system::pallet::Error), - #[codec(index = 1)] - Babe(runtime_types::pallet_babe::pallet::Error), - #[codec(index = 3)] - Indices(runtime_types::pallet_indices::pallet::Error), - #[codec(index = 4)] - Balances(runtime_types::pallet_balances::pallet::Error), - #[codec(index = 240)] - Beefy(runtime_types::pallet_beefy::pallet::Error), - #[codec(index = 8)] - Session(runtime_types::pallet_session::pallet::Error), - #[codec(index = 10)] - Grandpa(runtime_types::pallet_grandpa::pallet::Error), - #[codec(index = 11)] - ImOnline(runtime_types::pallet_im_online::pallet::Error), - #[codec(index = 18)] - Treasury(runtime_types::pallet_treasury::pallet::Error), - #[codec(index = 20)] - ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Error), - #[codec(index = 21)] - Referenda(runtime_types::pallet_referenda::pallet::Error), - #[codec(index = 22)] - FellowshipCollective(runtime_types::pallet_ranked_collective::pallet::Error), - #[codec(index = 23)] - FellowshipReferenda(runtime_types::pallet_referenda::pallet::Error2), - #[codec(index = 44)] - Whitelist(runtime_types::pallet_whitelist::pallet::Error), - #[codec(index = 19)] - Claims(runtime_types::polkadot_runtime_common::claims::pallet::Error), - #[codec(index = 24)] - Utility(runtime_types::pallet_utility::pallet::Error), - #[codec(index = 25)] - Identity(runtime_types::pallet_identity::pallet::Error), - #[codec(index = 26)] - Society(runtime_types::pallet_society::pallet::Error), - #[codec(index = 27)] - Recovery(runtime_types::pallet_recovery::pallet::Error), - #[codec(index = 28)] - Vesting(runtime_types::pallet_vesting::pallet::Error), - #[codec(index = 29)] - Scheduler(runtime_types::pallet_scheduler::pallet::Error), - #[codec(index = 30)] - Proxy(runtime_types::pallet_proxy::pallet::Error), - #[codec(index = 31)] - Multisig(runtime_types::pallet_multisig::pallet::Error), - #[codec(index = 32)] - Preimage(runtime_types::pallet_preimage::pallet::Error), - #[codec(index = 39)] - AssetRate(runtime_types::pallet_asset_rate::pallet::Error), - #[codec(index = 35)] - Bounties(runtime_types::pallet_bounties::pallet::Error), - #[codec(index = 40)] - ChildBounties(runtime_types::pallet_child_bounties::pallet::Error), - #[codec(index = 38)] - Nis(runtime_types::pallet_nis::pallet::Error), - #[codec(index = 45)] - NisCounterpartBalances(runtime_types::pallet_balances::pallet::Error2), - #[codec(index = 51)] - Configuration( - runtime_types::polkadot_runtime_parachains::configuration::pallet::Error, - ), - #[codec(index = 53)] - ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Error), - #[codec(index = 54)] - ParaInherent( - runtime_types::polkadot_runtime_parachains::paras_inherent::pallet::Error, - ), - #[codec(index = 56)] - Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Error), - #[codec(index = 60)] - Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Error), - #[codec(index = 62)] - ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Error), - #[codec(index = 63)] - ParasSlashing( - runtime_types::polkadot_runtime_parachains::disputes::slashing::pallet::Error, - ), - #[codec(index = 64)] - MessageQueue(runtime_types::pallet_message_queue::pallet::Error), - #[codec(index = 66)] - OnDemandAssignmentProvider( - runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Error, - ), - #[codec(index = 70)] - Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Error), - #[codec(index = 71)] - Slots(runtime_types::polkadot_runtime_common::slots::pallet::Error), - #[codec(index = 72)] - Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Error), - #[codec(index = 73)] - Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Error), - #[codec(index = 99)] - XcmPallet(runtime_types::pallet_xcm::pallet::Error), - #[codec(index = 250)] - ParasSudoWrapper( - runtime_types::polkadot_runtime_common::paras_sudo_wrapper::pallet::Error, - ), - #[codec(index = 251)] - AssignedSlots( - runtime_types::polkadot_runtime_common::assigned_slots::pallet::Error, - ), - #[codec(index = 254)] - StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Error), - #[codec(index = 255)] - Sudo(runtime_types::pallet_sudo::pallet::Error), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeEvent { - #[codec(index = 0)] - System(runtime_types::frame_system::pallet::Event), - #[codec(index = 3)] - Indices(runtime_types::pallet_indices::pallet::Event), - #[codec(index = 4)] - Balances(runtime_types::pallet_balances::pallet::Event), - #[codec(index = 33)] - TransactionPayment(runtime_types::pallet_transaction_payment::pallet::Event), - #[codec(index = 7)] - Offences(runtime_types::pallet_offences::pallet::Event), - #[codec(index = 8)] - Session(runtime_types::pallet_session::pallet::Event), - #[codec(index = 10)] - Grandpa(runtime_types::pallet_grandpa::pallet::Event), - #[codec(index = 11)] - ImOnline(runtime_types::pallet_im_online::pallet::Event), - #[codec(index = 18)] - Treasury(runtime_types::pallet_treasury::pallet::Event), - #[codec(index = 20)] - ConvictionVoting(runtime_types::pallet_conviction_voting::pallet::Event), - #[codec(index = 21)] - Referenda(runtime_types::pallet_referenda::pallet::Event), - #[codec(index = 22)] - FellowshipCollective(runtime_types::pallet_ranked_collective::pallet::Event), - #[codec(index = 23)] - FellowshipReferenda(runtime_types::pallet_referenda::pallet::Event2), - #[codec(index = 44)] - Whitelist(runtime_types::pallet_whitelist::pallet::Event), - #[codec(index = 19)] - Claims(runtime_types::polkadot_runtime_common::claims::pallet::Event), - #[codec(index = 24)] - Utility(runtime_types::pallet_utility::pallet::Event), - #[codec(index = 25)] - Identity(runtime_types::pallet_identity::pallet::Event), - #[codec(index = 26)] - Society(runtime_types::pallet_society::pallet::Event), - #[codec(index = 27)] - Recovery(runtime_types::pallet_recovery::pallet::Event), - #[codec(index = 28)] - Vesting(runtime_types::pallet_vesting::pallet::Event), - #[codec(index = 29)] - Scheduler(runtime_types::pallet_scheduler::pallet::Event), - #[codec(index = 30)] - Proxy(runtime_types::pallet_proxy::pallet::Event), - #[codec(index = 31)] - Multisig(runtime_types::pallet_multisig::pallet::Event), - #[codec(index = 32)] - Preimage(runtime_types::pallet_preimage::pallet::Event), - #[codec(index = 39)] - AssetRate(runtime_types::pallet_asset_rate::pallet::Event), - #[codec(index = 35)] - Bounties(runtime_types::pallet_bounties::pallet::Event), - #[codec(index = 40)] - ChildBounties(runtime_types::pallet_child_bounties::pallet::Event), - #[codec(index = 38)] - Nis(runtime_types::pallet_nis::pallet::Event), - #[codec(index = 45)] - NisCounterpartBalances(runtime_types::pallet_balances::pallet::Event2), - #[codec(index = 53)] - ParaInclusion(runtime_types::polkadot_runtime_parachains::inclusion::pallet::Event), - #[codec(index = 56)] - Paras(runtime_types::polkadot_runtime_parachains::paras::pallet::Event), - #[codec(index = 60)] - Hrmp(runtime_types::polkadot_runtime_parachains::hrmp::pallet::Event), - #[codec(index = 62)] - ParasDisputes(runtime_types::polkadot_runtime_parachains::disputes::pallet::Event), - #[codec(index = 64)] - MessageQueue(runtime_types::pallet_message_queue::pallet::Event), - #[codec(index = 66)] - OnDemandAssignmentProvider( - runtime_types::polkadot_runtime_parachains::assigner_on_demand::pallet::Event, - ), - #[codec(index = 70)] - Registrar(runtime_types::polkadot_runtime_common::paras_registrar::pallet::Event), - #[codec(index = 71)] - Slots(runtime_types::polkadot_runtime_common::slots::pallet::Event), - #[codec(index = 72)] - Auctions(runtime_types::polkadot_runtime_common::auctions::pallet::Event), - #[codec(index = 73)] - Crowdloan(runtime_types::polkadot_runtime_common::crowdloan::pallet::Event), - #[codec(index = 99)] - XcmPallet(runtime_types::pallet_xcm::pallet::Event), - #[codec(index = 251)] - AssignedSlots( - runtime_types::polkadot_runtime_common::assigned_slots::pallet::Event, - ), - #[codec(index = 252)] - ValidatorManager(runtime_types::rococo_runtime::validator_manager::pallet::Event), - #[codec(index = 254)] - StateTrieMigration(runtime_types::pallet_state_trie_migration::pallet::Event), - #[codec(index = 249)] - RootTesting(runtime_types::pallet_root_testing::pallet::Event), - #[codec(index = 255)] - Sudo(runtime_types::pallet_sudo::pallet::Event), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeHoldReason { - #[codec(index = 32)] - Preimage(runtime_types::pallet_preimage::pallet::HoldReason), - #[codec(index = 38)] - Nis(runtime_types::pallet_nis::pallet::HoldReason), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SessionKeys { - pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, - pub babe: runtime_types::sp_consensus_babe::app::Public, - pub im_online: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, - pub para_validator: runtime_types::polkadot_primitives::v6::validator_app::Public, - pub para_assignment: runtime_types::polkadot_primitives::v6::assignment_app::Public, - pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, - pub beefy: runtime_types::sp_consensus_beefy::ecdsa_crypto::Public, - } - } pub mod sp_arithmetic { use super::runtime_types; pub mod fixed_point { @@ -51863,6 +83658,18 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FixedU128(pub ::core::primitive::u128); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FixedU64(pub ::core::primitive::u64); } pub mod per_things { use super::runtime_types; @@ -51877,6 +83684,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PerU16(pub ::core::primitive::u16); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Perbill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -51889,6 +83708,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Percent(pub ::core::primitive::u8); + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Permill(pub ::core::primitive::u32); #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -52455,7 +84286,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VrfSignature { - pub output: [::core::primitive::u8; 32usize], + pub pre_output: [::core::primitive::u8; 32usize], pub proof: [::core::primitive::u8; 64usize], } } @@ -52539,6 +84370,103 @@ pub mod api { >, } } + pub mod sp_mixnet { + use super::runtime_types; + pub mod types { + use super::runtime_types; + pub mod app { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Public(pub runtime_types::sp_core::sr25519::Public); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Mixnode { + pub kx_public: [::core::primitive::u8; 32usize], + pub peer_id: [::core::primitive::u8; 32usize], + pub external_addresses: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MixnodesErr { + #[codec(index = 0)] + InsufficientRegistrations { + num: ::core::primitive::u32, + min: ::core::primitive::u32, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum SessionPhase { + #[codec(index = 0)] + CoverToCurrent, + #[codec(index = 1)] + RequestsToCurrent, + #[codec(index = 2)] + CoverToPrev, + #[codec(index = 3)] + DisconnectFromPrev, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SessionStatus { + pub current_index: ::core::primitive::u32, + pub phase: runtime_types::sp_mixnet::types::SessionPhase, + } + } + } pub mod sp_mmr_primitives { use super::runtime_types; #[derive( @@ -52600,6 +84528,38 @@ pub mod api { pub items: ::std::vec::Vec<_0>, } } + pub mod sp_npos_elections { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ElectionScore { + pub minimal_stake: ::core::primitive::u128, + pub sum_stake: ::core::primitive::u128, + pub sum_stake_squared: ::core::primitive::u128, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Support<_0> { + pub total: ::core::primitive::u128, + pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, + } + } pub mod sp_runtime { use super::runtime_types; pub mod generic { @@ -53434,24 +85394,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum MultiSigner { - #[codec(index = 0)] - Ed25519(runtime_types::sp_core::ed25519::Public), - #[codec(index = 1)] - Sr25519(runtime_types::sp_core::sr25519::Public), - #[codec(index = 2)] - Ecdsa(runtime_types::sp_core::ecdsa::Public), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TokenError { #[codec(index = 0)] FundsUnavailable, @@ -53528,6 +85470,196 @@ pub mod api { pub reporters: ::std::vec::Vec<_0>, } } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Exposure<_0, _1> { + #[codec(compact)] + pub total: _1, + #[codec(compact)] + pub own: _1, + pub others: ::std::vec::Vec>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExposurePage<_0, _1> { + #[codec(compact)] + pub page_total: _1, + pub others: ::std::vec::Vec>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IndividualExposure<_0, _1> { + pub who: _0, + #[codec(compact)] + pub value: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PagedExposureMetadata<_0> { + #[codec(compact)] + pub total: _0, + #[codec(compact)] + pub own: _0, + pub nominator_count: ::core::primitive::u32, + pub page_count: ::core::primitive::u32, + } + } + pub mod sp_statement_store { + use super::runtime_types; + pub mod runtime_api { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum InvalidStatement { + #[codec(index = 0)] + BadProof, + #[codec(index = 1)] + NoProof, + #[codec(index = 2)] + InternalError, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum StatementSource { + #[codec(index = 0)] + Chain, + #[codec(index = 1)] + Network, + #[codec(index = 2)] + Local, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidStatement { + pub max_count: ::core::primitive::u32, + pub max_size: ::core::primitive::u32, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Proof { + #[codec(index = 0)] + Sr25519 { + signature: [::core::primitive::u8; 64usize], + signer: [::core::primitive::u8; 32usize], + }, + #[codec(index = 1)] + Ed25519 { + signature: [::core::primitive::u8; 64usize], + signer: [::core::primitive::u8; 32usize], + }, + #[codec(index = 2)] + Secp256k1Ecdsa { + signature: [::core::primitive::u8; 65usize], + signer: [::core::primitive::u8; 33usize], + }, + #[codec(index = 3)] + OnChain { + who: [::core::primitive::u8; 32usize], + block_hash: [::core::primitive::u8; 32usize], + event_index: ::core::primitive::u64, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Statement { + pub proof: ::core::option::Option, + pub decryption_key: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub channel: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub priority: ::core::option::Option<::core::primitive::u32>, + pub num_topics: ::core::primitive::u8, + pub topics: [[::core::primitive::u8; 32usize]; 4usize], + pub data: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, + } + } + pub mod sp_transaction_storage_proof { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TransactionStorageProof { + pub chunk: ::std::vec::Vec<::core::primitive::u8>, + pub proof: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + } } pub mod sp_version { use super::runtime_types; @@ -53589,2066 +85721,5 @@ pub mod api { pub write: ::core::primitive::u64, } } - pub mod staging_xcm { - use super::runtime_types; - pub mod v3 { - use super::runtime_types; - pub mod multilocation { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MultiLocation { - pub parents: ::core::primitive::u8, - pub interior: runtime_types::xcm::v3::junctions::Junctions, - } - } - } - } - pub mod xcm { - use super::runtime_types; - pub mod double_encoded { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DoubleEncoded { - pub encoded: ::std::vec::Vec<::core::primitive::u8>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DoubleEncoded2 { - pub encoded: ::std::vec::Vec<::core::primitive::u8>, - } - } - pub mod v2 { - use super::runtime_types; - pub mod junction { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Junction { - #[codec(index = 0)] - Parachain(#[codec(compact)] ::core::primitive::u32), - #[codec(index = 1)] - AccountId32 { - network: runtime_types::xcm::v2::NetworkId, - id: [::core::primitive::u8; 32usize], - }, - #[codec(index = 2)] - AccountIndex64 { - network: runtime_types::xcm::v2::NetworkId, - #[codec(compact)] - index: ::core::primitive::u64, - }, - #[codec(index = 3)] - AccountKey20 { - network: runtime_types::xcm::v2::NetworkId, - key: [::core::primitive::u8; 20usize], - }, - #[codec(index = 4)] - PalletInstance(::core::primitive::u8), - #[codec(index = 5)] - GeneralIndex(#[codec(compact)] ::core::primitive::u128), - #[codec(index = 6)] - GeneralKey( - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - ::core::primitive::u8, - >, - ), - #[codec(index = 7)] - OnlyChild, - #[codec(index = 8)] - Plurality { - id: runtime_types::xcm::v2::BodyId, - part: runtime_types::xcm::v2::BodyPart, - }, - } - } - pub mod multiasset { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AssetId { - #[codec(index = 0)] - Concrete(runtime_types::xcm::v2::multilocation::MultiLocation), - #[codec(index = 1)] - Abstract(::std::vec::Vec<::core::primitive::u8>), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AssetInstance { - #[codec(index = 0)] - Undefined, - #[codec(index = 1)] - Index(#[codec(compact)] ::core::primitive::u128), - #[codec(index = 2)] - Array4([::core::primitive::u8; 4usize]), - #[codec(index = 3)] - Array8([::core::primitive::u8; 8usize]), - #[codec(index = 4)] - Array16([::core::primitive::u8; 16usize]), - #[codec(index = 5)] - Array32([::core::primitive::u8; 32usize]), - #[codec(index = 6)] - Blob(::std::vec::Vec<::core::primitive::u8>), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Fungibility { - #[codec(index = 0)] - Fungible(#[codec(compact)] ::core::primitive::u128), - #[codec(index = 1)] - NonFungible(runtime_types::xcm::v2::multiasset::AssetInstance), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MultiAsset { - pub id: runtime_types::xcm::v2::multiasset::AssetId, - pub fun: runtime_types::xcm::v2::multiasset::Fungibility, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum MultiAssetFilter { - #[codec(index = 0)] - Definite(runtime_types::xcm::v2::multiasset::MultiAssets), - #[codec(index = 1)] - Wild(runtime_types::xcm::v2::multiasset::WildMultiAsset), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MultiAssets( - pub ::std::vec::Vec, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum WildFungibility { - #[codec(index = 0)] - Fungible, - #[codec(index = 1)] - NonFungible, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum WildMultiAsset { - #[codec(index = 0)] - All, - #[codec(index = 1)] - AllOf { - id: runtime_types::xcm::v2::multiasset::AssetId, - fun: runtime_types::xcm::v2::multiasset::WildFungibility, - }, - } - } - pub mod multilocation { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Junctions { - #[codec(index = 0)] - Here, - #[codec(index = 1)] - X1(runtime_types::xcm::v2::junction::Junction), - #[codec(index = 2)] - X2( - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - ), - #[codec(index = 3)] - X3( - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - ), - #[codec(index = 4)] - X4( - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - ), - #[codec(index = 5)] - X5( - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - ), - #[codec(index = 6)] - X6( - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - ), - #[codec(index = 7)] - X7( - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - ), - #[codec(index = 8)] - X8( - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - runtime_types::xcm::v2::junction::Junction, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MultiLocation { - pub parents: ::core::primitive::u8, - pub interior: runtime_types::xcm::v2::multilocation::Junctions, - } - } - pub mod traits { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Error { - #[codec(index = 0)] - Overflow, - #[codec(index = 1)] - Unimplemented, - #[codec(index = 2)] - UntrustedReserveLocation, - #[codec(index = 3)] - UntrustedTeleportLocation, - #[codec(index = 4)] - MultiLocationFull, - #[codec(index = 5)] - MultiLocationNotInvertible, - #[codec(index = 6)] - BadOrigin, - #[codec(index = 7)] - InvalidLocation, - #[codec(index = 8)] - AssetNotFound, - #[codec(index = 9)] - FailedToTransactAsset, - #[codec(index = 10)] - NotWithdrawable, - #[codec(index = 11)] - LocationCannotHold, - #[codec(index = 12)] - ExceedsMaxMessageSize, - #[codec(index = 13)] - DestinationUnsupported, - #[codec(index = 14)] - Transport, - #[codec(index = 15)] - Unroutable, - #[codec(index = 16)] - UnknownClaim, - #[codec(index = 17)] - FailedToDecode, - #[codec(index = 18)] - MaxWeightInvalid, - #[codec(index = 19)] - NotHoldingFees, - #[codec(index = 20)] - TooExpensive, - #[codec(index = 21)] - Trap(::core::primitive::u64), - #[codec(index = 22)] - UnhandledXcmVersion, - #[codec(index = 23)] - WeightLimitReached(::core::primitive::u64), - #[codec(index = 24)] - Barrier, - #[codec(index = 25)] - WeightNotComputable, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BodyId { - #[codec(index = 0)] - Unit, - #[codec(index = 1)] - Named( - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - ::core::primitive::u8, - >, - ), - #[codec(index = 2)] - Index(#[codec(compact)] ::core::primitive::u32), - #[codec(index = 3)] - Executive, - #[codec(index = 4)] - Technical, - #[codec(index = 5)] - Legislative, - #[codec(index = 6)] - Judicial, - #[codec(index = 7)] - Defense, - #[codec(index = 8)] - Administration, - #[codec(index = 9)] - Treasury, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BodyPart { - #[codec(index = 0)] - Voice, - #[codec(index = 1)] - Members { - #[codec(compact)] - count: ::core::primitive::u32, - }, - #[codec(index = 2)] - Fraction { - #[codec(compact)] - nom: ::core::primitive::u32, - #[codec(compact)] - denom: ::core::primitive::u32, - }, - #[codec(index = 3)] - AtLeastProportion { - #[codec(compact)] - nom: ::core::primitive::u32, - #[codec(compact)] - denom: ::core::primitive::u32, - }, - #[codec(index = 4)] - MoreThanProportion { - #[codec(compact)] - nom: ::core::primitive::u32, - #[codec(compact)] - denom: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Instruction { - #[codec(index = 0)] - WithdrawAsset(runtime_types::xcm::v2::multiasset::MultiAssets), - #[codec(index = 1)] - ReserveAssetDeposited(runtime_types::xcm::v2::multiasset::MultiAssets), - #[codec(index = 2)] - ReceiveTeleportedAsset(runtime_types::xcm::v2::multiasset::MultiAssets), - #[codec(index = 3)] - QueryResponse { - #[codec(compact)] - query_id: ::core::primitive::u64, - response: runtime_types::xcm::v2::Response, - #[codec(compact)] - max_weight: ::core::primitive::u64, - }, - #[codec(index = 4)] - TransferAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssets, - beneficiary: runtime_types::xcm::v2::multilocation::MultiLocation, - }, - #[codec(index = 5)] - TransferReserveAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssets, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - xcm: runtime_types::xcm::v2::Xcm, - }, - #[codec(index = 6)] - Transact { - origin_type: runtime_types::xcm::v2::OriginKind, - #[codec(compact)] - require_weight_at_most: ::core::primitive::u64, - call: runtime_types::xcm::double_encoded::DoubleEncoded, - }, - #[codec(index = 7)] - HrmpNewChannelOpenRequest { - #[codec(compact)] - sender: ::core::primitive::u32, - #[codec(compact)] - max_message_size: ::core::primitive::u32, - #[codec(compact)] - max_capacity: ::core::primitive::u32, - }, - #[codec(index = 8)] - HrmpChannelAccepted { - #[codec(compact)] - recipient: ::core::primitive::u32, - }, - #[codec(index = 9)] - HrmpChannelClosing { - #[codec(compact)] - initiator: ::core::primitive::u32, - #[codec(compact)] - sender: ::core::primitive::u32, - #[codec(compact)] - recipient: ::core::primitive::u32, - }, - #[codec(index = 10)] - ClearOrigin, - #[codec(index = 11)] - DescendOrigin(runtime_types::xcm::v2::multilocation::Junctions), - #[codec(index = 12)] - ReportError { - #[codec(compact)] - query_id: ::core::primitive::u64, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - #[codec(compact)] - max_response_weight: ::core::primitive::u64, - }, - #[codec(index = 13)] - DepositAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - #[codec(compact)] - max_assets: ::core::primitive::u32, - beneficiary: runtime_types::xcm::v2::multilocation::MultiLocation, - }, - #[codec(index = 14)] - DepositReserveAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - #[codec(compact)] - max_assets: ::core::primitive::u32, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - xcm: runtime_types::xcm::v2::Xcm, - }, - #[codec(index = 15)] - ExchangeAsset { - give: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - receive: runtime_types::xcm::v2::multiasset::MultiAssets, - }, - #[codec(index = 16)] - InitiateReserveWithdraw { - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - reserve: runtime_types::xcm::v2::multilocation::MultiLocation, - xcm: runtime_types::xcm::v2::Xcm, - }, - #[codec(index = 17)] - InitiateTeleport { - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - xcm: runtime_types::xcm::v2::Xcm, - }, - #[codec(index = 18)] - QueryHolding { - #[codec(compact)] - query_id: ::core::primitive::u64, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - #[codec(compact)] - max_response_weight: ::core::primitive::u64, - }, - #[codec(index = 19)] - BuyExecution { - fees: runtime_types::xcm::v2::multiasset::MultiAsset, - weight_limit: runtime_types::xcm::v2::WeightLimit, - }, - #[codec(index = 20)] - RefundSurplus, - #[codec(index = 21)] - SetErrorHandler(runtime_types::xcm::v2::Xcm), - #[codec(index = 22)] - SetAppendix(runtime_types::xcm::v2::Xcm), - #[codec(index = 23)] - ClearError, - #[codec(index = 24)] - ClaimAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssets, - ticket: runtime_types::xcm::v2::multilocation::MultiLocation, - }, - #[codec(index = 25)] - Trap(#[codec(compact)] ::core::primitive::u64), - #[codec(index = 26)] - SubscribeVersion { - #[codec(compact)] - query_id: ::core::primitive::u64, - #[codec(compact)] - max_response_weight: ::core::primitive::u64, - }, - #[codec(index = 27)] - UnsubscribeVersion, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Instruction2 { - #[codec(index = 0)] - WithdrawAsset(runtime_types::xcm::v2::multiasset::MultiAssets), - #[codec(index = 1)] - ReserveAssetDeposited(runtime_types::xcm::v2::multiasset::MultiAssets), - #[codec(index = 2)] - ReceiveTeleportedAsset(runtime_types::xcm::v2::multiasset::MultiAssets), - #[codec(index = 3)] - QueryResponse { - #[codec(compact)] - query_id: ::core::primitive::u64, - response: runtime_types::xcm::v2::Response, - #[codec(compact)] - max_weight: ::core::primitive::u64, - }, - #[codec(index = 4)] - TransferAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssets, - beneficiary: runtime_types::xcm::v2::multilocation::MultiLocation, - }, - #[codec(index = 5)] - TransferReserveAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssets, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - xcm: runtime_types::xcm::v2::Xcm, - }, - #[codec(index = 6)] - Transact { - origin_type: runtime_types::xcm::v2::OriginKind, - #[codec(compact)] - require_weight_at_most: ::core::primitive::u64, - call: runtime_types::xcm::double_encoded::DoubleEncoded2, - }, - #[codec(index = 7)] - HrmpNewChannelOpenRequest { - #[codec(compact)] - sender: ::core::primitive::u32, - #[codec(compact)] - max_message_size: ::core::primitive::u32, - #[codec(compact)] - max_capacity: ::core::primitive::u32, - }, - #[codec(index = 8)] - HrmpChannelAccepted { - #[codec(compact)] - recipient: ::core::primitive::u32, - }, - #[codec(index = 9)] - HrmpChannelClosing { - #[codec(compact)] - initiator: ::core::primitive::u32, - #[codec(compact)] - sender: ::core::primitive::u32, - #[codec(compact)] - recipient: ::core::primitive::u32, - }, - #[codec(index = 10)] - ClearOrigin, - #[codec(index = 11)] - DescendOrigin(runtime_types::xcm::v2::multilocation::Junctions), - #[codec(index = 12)] - ReportError { - #[codec(compact)] - query_id: ::core::primitive::u64, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - #[codec(compact)] - max_response_weight: ::core::primitive::u64, - }, - #[codec(index = 13)] - DepositAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - #[codec(compact)] - max_assets: ::core::primitive::u32, - beneficiary: runtime_types::xcm::v2::multilocation::MultiLocation, - }, - #[codec(index = 14)] - DepositReserveAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - #[codec(compact)] - max_assets: ::core::primitive::u32, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - xcm: runtime_types::xcm::v2::Xcm, - }, - #[codec(index = 15)] - ExchangeAsset { - give: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - receive: runtime_types::xcm::v2::multiasset::MultiAssets, - }, - #[codec(index = 16)] - InitiateReserveWithdraw { - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - reserve: runtime_types::xcm::v2::multilocation::MultiLocation, - xcm: runtime_types::xcm::v2::Xcm, - }, - #[codec(index = 17)] - InitiateTeleport { - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - xcm: runtime_types::xcm::v2::Xcm, - }, - #[codec(index = 18)] - QueryHolding { - #[codec(compact)] - query_id: ::core::primitive::u64, - dest: runtime_types::xcm::v2::multilocation::MultiLocation, - assets: runtime_types::xcm::v2::multiasset::MultiAssetFilter, - #[codec(compact)] - max_response_weight: ::core::primitive::u64, - }, - #[codec(index = 19)] - BuyExecution { - fees: runtime_types::xcm::v2::multiasset::MultiAsset, - weight_limit: runtime_types::xcm::v2::WeightLimit, - }, - #[codec(index = 20)] - RefundSurplus, - #[codec(index = 21)] - SetErrorHandler(runtime_types::xcm::v2::Xcm2), - #[codec(index = 22)] - SetAppendix(runtime_types::xcm::v2::Xcm2), - #[codec(index = 23)] - ClearError, - #[codec(index = 24)] - ClaimAsset { - assets: runtime_types::xcm::v2::multiasset::MultiAssets, - ticket: runtime_types::xcm::v2::multilocation::MultiLocation, - }, - #[codec(index = 25)] - Trap(#[codec(compact)] ::core::primitive::u64), - #[codec(index = 26)] - SubscribeVersion { - #[codec(compact)] - query_id: ::core::primitive::u64, - #[codec(compact)] - max_response_weight: ::core::primitive::u64, - }, - #[codec(index = 27)] - UnsubscribeVersion, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum NetworkId { - #[codec(index = 0)] - Any, - #[codec(index = 1)] - Named( - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< - ::core::primitive::u8, - >, - ), - #[codec(index = 2)] - Polkadot, - #[codec(index = 3)] - Kusama, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum OriginKind { - #[codec(index = 0)] - Native, - #[codec(index = 1)] - SovereignAccount, - #[codec(index = 2)] - Superuser, - #[codec(index = 3)] - Xcm, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Response { - #[codec(index = 0)] - Null, - #[codec(index = 1)] - Assets(runtime_types::xcm::v2::multiasset::MultiAssets), - #[codec(index = 2)] - ExecutionResult( - ::core::option::Option<( - ::core::primitive::u32, - runtime_types::xcm::v2::traits::Error, - )>, - ), - #[codec(index = 3)] - Version(::core::primitive::u32), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum WeightLimit { - #[codec(index = 0)] - Unlimited, - #[codec(index = 1)] - Limited(#[codec(compact)] ::core::primitive::u64), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Xcm(pub ::std::vec::Vec); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Xcm2(pub ::std::vec::Vec); - } - pub mod v3 { - use super::runtime_types; - pub mod junction { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BodyId { - #[codec(index = 0)] - Unit, - #[codec(index = 1)] - Moniker([::core::primitive::u8; 4usize]), - #[codec(index = 2)] - Index(#[codec(compact)] ::core::primitive::u32), - #[codec(index = 3)] - Executive, - #[codec(index = 4)] - Technical, - #[codec(index = 5)] - Legislative, - #[codec(index = 6)] - Judicial, - #[codec(index = 7)] - Defense, - #[codec(index = 8)] - Administration, - #[codec(index = 9)] - Treasury, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BodyPart { - #[codec(index = 0)] - Voice, - #[codec(index = 1)] - Members { - #[codec(compact)] - count: ::core::primitive::u32, - }, - #[codec(index = 2)] - Fraction { - #[codec(compact)] - nom: ::core::primitive::u32, - #[codec(compact)] - denom: ::core::primitive::u32, - }, - #[codec(index = 3)] - AtLeastProportion { - #[codec(compact)] - nom: ::core::primitive::u32, - #[codec(compact)] - denom: ::core::primitive::u32, - }, - #[codec(index = 4)] - MoreThanProportion { - #[codec(compact)] - nom: ::core::primitive::u32, - #[codec(compact)] - denom: ::core::primitive::u32, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Junction { - #[codec(index = 0)] - Parachain(#[codec(compact)] ::core::primitive::u32), - #[codec(index = 1)] - AccountId32 { - network: - ::core::option::Option, - id: [::core::primitive::u8; 32usize], - }, - #[codec(index = 2)] - AccountIndex64 { - network: - ::core::option::Option, - #[codec(compact)] - index: ::core::primitive::u64, - }, - #[codec(index = 3)] - AccountKey20 { - network: - ::core::option::Option, - key: [::core::primitive::u8; 20usize], - }, - #[codec(index = 4)] - PalletInstance(::core::primitive::u8), - #[codec(index = 5)] - GeneralIndex(#[codec(compact)] ::core::primitive::u128), - #[codec(index = 6)] - GeneralKey { - length: ::core::primitive::u8, - data: [::core::primitive::u8; 32usize], - }, - #[codec(index = 7)] - OnlyChild, - #[codec(index = 8)] - Plurality { - id: runtime_types::xcm::v3::junction::BodyId, - part: runtime_types::xcm::v3::junction::BodyPart, - }, - #[codec(index = 9)] - GlobalConsensus(runtime_types::xcm::v3::junction::NetworkId), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum NetworkId { - #[codec(index = 0)] - ByGenesis([::core::primitive::u8; 32usize]), - #[codec(index = 1)] - ByFork { - block_number: ::core::primitive::u64, - block_hash: [::core::primitive::u8; 32usize], - }, - #[codec(index = 2)] - Polkadot, - #[codec(index = 3)] - Kusama, - #[codec(index = 4)] - Westend, - #[codec(index = 5)] - Rococo, - #[codec(index = 6)] - Wococo, - #[codec(index = 7)] - Ethereum { - #[codec(compact)] - chain_id: ::core::primitive::u64, - }, - #[codec(index = 8)] - BitcoinCore, - #[codec(index = 9)] - BitcoinCash, - } - } - pub mod junctions { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Junctions { - #[codec(index = 0)] - Here, - #[codec(index = 1)] - X1(runtime_types::xcm::v3::junction::Junction), - #[codec(index = 2)] - X2( - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - ), - #[codec(index = 3)] - X3( - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - ), - #[codec(index = 4)] - X4( - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - ), - #[codec(index = 5)] - X5( - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - ), - #[codec(index = 6)] - X6( - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - ), - #[codec(index = 7)] - X7( - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - ), - #[codec(index = 8)] - X8( - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - runtime_types::xcm::v3::junction::Junction, - ), - } - } - pub mod multiasset { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AssetId { - #[codec(index = 0)] - Concrete(runtime_types::staging_xcm::v3::multilocation::MultiLocation), - #[codec(index = 1)] - Abstract([::core::primitive::u8; 32usize]), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AssetInstance { - #[codec(index = 0)] - Undefined, - #[codec(index = 1)] - Index(#[codec(compact)] ::core::primitive::u128), - #[codec(index = 2)] - Array4([::core::primitive::u8; 4usize]), - #[codec(index = 3)] - Array8([::core::primitive::u8; 8usize]), - #[codec(index = 4)] - Array16([::core::primitive::u8; 16usize]), - #[codec(index = 5)] - Array32([::core::primitive::u8; 32usize]), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Fungibility { - #[codec(index = 0)] - Fungible(#[codec(compact)] ::core::primitive::u128), - #[codec(index = 1)] - NonFungible(runtime_types::xcm::v3::multiasset::AssetInstance), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MultiAsset { - pub id: runtime_types::xcm::v3::multiasset::AssetId, - pub fun: runtime_types::xcm::v3::multiasset::Fungibility, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum MultiAssetFilter { - #[codec(index = 0)] - Definite(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 1)] - Wild(runtime_types::xcm::v3::multiasset::WildMultiAsset), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct MultiAssets( - pub ::std::vec::Vec, - ); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum WildFungibility { - #[codec(index = 0)] - Fungible, - #[codec(index = 1)] - NonFungible, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum WildMultiAsset { - #[codec(index = 0)] - All, - #[codec(index = 1)] - AllOf { - id: runtime_types::xcm::v3::multiasset::AssetId, - fun: runtime_types::xcm::v3::multiasset::WildFungibility, - }, - #[codec(index = 2)] - AllCounted(#[codec(compact)] ::core::primitive::u32), - #[codec(index = 3)] - AllOfCounted { - id: runtime_types::xcm::v3::multiasset::AssetId, - fun: runtime_types::xcm::v3::multiasset::WildFungibility, - #[codec(compact)] - count: ::core::primitive::u32, - }, - } - } - pub mod traits { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Error { - #[codec(index = 0)] - Overflow, - #[codec(index = 1)] - Unimplemented, - #[codec(index = 2)] - UntrustedReserveLocation, - #[codec(index = 3)] - UntrustedTeleportLocation, - #[codec(index = 4)] - LocationFull, - #[codec(index = 5)] - LocationNotInvertible, - #[codec(index = 6)] - BadOrigin, - #[codec(index = 7)] - InvalidLocation, - #[codec(index = 8)] - AssetNotFound, - #[codec(index = 9)] - FailedToTransactAsset, - #[codec(index = 10)] - NotWithdrawable, - #[codec(index = 11)] - LocationCannotHold, - #[codec(index = 12)] - ExceedsMaxMessageSize, - #[codec(index = 13)] - DestinationUnsupported, - #[codec(index = 14)] - Transport, - #[codec(index = 15)] - Unroutable, - #[codec(index = 16)] - UnknownClaim, - #[codec(index = 17)] - FailedToDecode, - #[codec(index = 18)] - MaxWeightInvalid, - #[codec(index = 19)] - NotHoldingFees, - #[codec(index = 20)] - TooExpensive, - #[codec(index = 21)] - Trap(::core::primitive::u64), - #[codec(index = 22)] - ExpectationFalse, - #[codec(index = 23)] - PalletNotFound, - #[codec(index = 24)] - NameMismatch, - #[codec(index = 25)] - VersionIncompatible, - #[codec(index = 26)] - HoldingWouldOverflow, - #[codec(index = 27)] - ExportError, - #[codec(index = 28)] - ReanchorFailed, - #[codec(index = 29)] - NoDeal, - #[codec(index = 30)] - FeesNotMet, - #[codec(index = 31)] - LockError, - #[codec(index = 32)] - NoPermission, - #[codec(index = 33)] - Unanchored, - #[codec(index = 34)] - NotDepositable, - #[codec(index = 35)] - UnhandledXcmVersion, - #[codec(index = 36)] - WeightLimitReached(runtime_types::sp_weights::weight_v2::Weight), - #[codec(index = 37)] - Barrier, - #[codec(index = 38)] - WeightNotComputable, - #[codec(index = 39)] - ExceedsStackLimit, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Outcome { - #[codec(index = 0)] - Complete(runtime_types::sp_weights::weight_v2::Weight), - #[codec(index = 1)] - Incomplete( - runtime_types::sp_weights::weight_v2::Weight, - runtime_types::xcm::v3::traits::Error, - ), - #[codec(index = 2)] - Error(runtime_types::xcm::v3::traits::Error), - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Instruction { - #[codec(index = 0)] - WithdrawAsset(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 1)] - ReserveAssetDeposited(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 2)] - ReceiveTeleportedAsset(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 3)] - QueryResponse { - #[codec(compact)] - query_id: ::core::primitive::u64, - response: runtime_types::xcm::v3::Response, - max_weight: runtime_types::sp_weights::weight_v2::Weight, - querier: ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - }, - #[codec(index = 4)] - TransferAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssets, - beneficiary: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 5)] - TransferReserveAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssets, - dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 6)] - Transact { - origin_kind: runtime_types::xcm::v2::OriginKind, - require_weight_at_most: runtime_types::sp_weights::weight_v2::Weight, - call: runtime_types::xcm::double_encoded::DoubleEncoded, - }, - #[codec(index = 7)] - HrmpNewChannelOpenRequest { - #[codec(compact)] - sender: ::core::primitive::u32, - #[codec(compact)] - max_message_size: ::core::primitive::u32, - #[codec(compact)] - max_capacity: ::core::primitive::u32, - }, - #[codec(index = 8)] - HrmpChannelAccepted { - #[codec(compact)] - recipient: ::core::primitive::u32, - }, - #[codec(index = 9)] - HrmpChannelClosing { - #[codec(compact)] - initiator: ::core::primitive::u32, - #[codec(compact)] - sender: ::core::primitive::u32, - #[codec(compact)] - recipient: ::core::primitive::u32, - }, - #[codec(index = 10)] - ClearOrigin, - #[codec(index = 11)] - DescendOrigin(runtime_types::xcm::v3::junctions::Junctions), - #[codec(index = 12)] - ReportError(runtime_types::xcm::v3::QueryResponseInfo), - #[codec(index = 13)] - DepositAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - beneficiary: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 14)] - DepositReserveAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 15)] - ExchangeAsset { - give: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - want: runtime_types::xcm::v3::multiasset::MultiAssets, - maximal: ::core::primitive::bool, - }, - #[codec(index = 16)] - InitiateReserveWithdraw { - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - reserve: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 17)] - InitiateTeleport { - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 18)] - ReportHolding { - response_info: runtime_types::xcm::v3::QueryResponseInfo, - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - }, - #[codec(index = 19)] - BuyExecution { - fees: runtime_types::xcm::v3::multiasset::MultiAsset, - weight_limit: runtime_types::xcm::v3::WeightLimit, - }, - #[codec(index = 20)] - RefundSurplus, - #[codec(index = 21)] - SetErrorHandler(runtime_types::xcm::v3::Xcm), - #[codec(index = 22)] - SetAppendix(runtime_types::xcm::v3::Xcm), - #[codec(index = 23)] - ClearError, - #[codec(index = 24)] - ClaimAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssets, - ticket: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 25)] - Trap(#[codec(compact)] ::core::primitive::u64), - #[codec(index = 26)] - SubscribeVersion { - #[codec(compact)] - query_id: ::core::primitive::u64, - max_response_weight: runtime_types::sp_weights::weight_v2::Weight, - }, - #[codec(index = 27)] - UnsubscribeVersion, - #[codec(index = 28)] - BurnAsset(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 29)] - ExpectAsset(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 30)] - ExpectOrigin( - ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - ), - #[codec(index = 31)] - ExpectError( - ::core::option::Option<( - ::core::primitive::u32, - runtime_types::xcm::v3::traits::Error, - )>, - ), - #[codec(index = 32)] - ExpectTransactStatus(runtime_types::xcm::v3::MaybeErrorCode), - #[codec(index = 33)] - QueryPallet { - module_name: ::std::vec::Vec<::core::primitive::u8>, - response_info: runtime_types::xcm::v3::QueryResponseInfo, - }, - #[codec(index = 34)] - ExpectPallet { - #[codec(compact)] - index: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - module_name: ::std::vec::Vec<::core::primitive::u8>, - #[codec(compact)] - crate_major: ::core::primitive::u32, - #[codec(compact)] - min_crate_minor: ::core::primitive::u32, - }, - #[codec(index = 35)] - ReportTransactStatus(runtime_types::xcm::v3::QueryResponseInfo), - #[codec(index = 36)] - ClearTransactStatus, - #[codec(index = 37)] - UniversalOrigin(runtime_types::xcm::v3::junction::Junction), - #[codec(index = 38)] - ExportMessage { - network: runtime_types::xcm::v3::junction::NetworkId, - destination: runtime_types::xcm::v3::junctions::Junctions, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 39)] - LockAsset { - asset: runtime_types::xcm::v3::multiasset::MultiAsset, - unlocker: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 40)] - UnlockAsset { - asset: runtime_types::xcm::v3::multiasset::MultiAsset, - target: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 41)] - NoteUnlockable { - asset: runtime_types::xcm::v3::multiasset::MultiAsset, - owner: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 42)] - RequestUnlock { - asset: runtime_types::xcm::v3::multiasset::MultiAsset, - locker: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 43)] - SetFeesMode { - jit_withdraw: ::core::primitive::bool, - }, - #[codec(index = 44)] - SetTopic([::core::primitive::u8; 32usize]), - #[codec(index = 45)] - ClearTopic, - #[codec(index = 46)] - AliasOrigin(runtime_types::staging_xcm::v3::multilocation::MultiLocation), - #[codec(index = 47)] - UnpaidExecution { - weight_limit: runtime_types::xcm::v3::WeightLimit, - check_origin: ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Instruction2 { - #[codec(index = 0)] - WithdrawAsset(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 1)] - ReserveAssetDeposited(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 2)] - ReceiveTeleportedAsset(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 3)] - QueryResponse { - #[codec(compact)] - query_id: ::core::primitive::u64, - response: runtime_types::xcm::v3::Response, - max_weight: runtime_types::sp_weights::weight_v2::Weight, - querier: ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - }, - #[codec(index = 4)] - TransferAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssets, - beneficiary: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 5)] - TransferReserveAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssets, - dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 6)] - Transact { - origin_kind: runtime_types::xcm::v2::OriginKind, - require_weight_at_most: runtime_types::sp_weights::weight_v2::Weight, - call: runtime_types::xcm::double_encoded::DoubleEncoded2, - }, - #[codec(index = 7)] - HrmpNewChannelOpenRequest { - #[codec(compact)] - sender: ::core::primitive::u32, - #[codec(compact)] - max_message_size: ::core::primitive::u32, - #[codec(compact)] - max_capacity: ::core::primitive::u32, - }, - #[codec(index = 8)] - HrmpChannelAccepted { - #[codec(compact)] - recipient: ::core::primitive::u32, - }, - #[codec(index = 9)] - HrmpChannelClosing { - #[codec(compact)] - initiator: ::core::primitive::u32, - #[codec(compact)] - sender: ::core::primitive::u32, - #[codec(compact)] - recipient: ::core::primitive::u32, - }, - #[codec(index = 10)] - ClearOrigin, - #[codec(index = 11)] - DescendOrigin(runtime_types::xcm::v3::junctions::Junctions), - #[codec(index = 12)] - ReportError(runtime_types::xcm::v3::QueryResponseInfo), - #[codec(index = 13)] - DepositAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - beneficiary: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 14)] - DepositReserveAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 15)] - ExchangeAsset { - give: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - want: runtime_types::xcm::v3::multiasset::MultiAssets, - maximal: ::core::primitive::bool, - }, - #[codec(index = 16)] - InitiateReserveWithdraw { - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - reserve: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 17)] - InitiateTeleport { - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - dest: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 18)] - ReportHolding { - response_info: runtime_types::xcm::v3::QueryResponseInfo, - assets: runtime_types::xcm::v3::multiasset::MultiAssetFilter, - }, - #[codec(index = 19)] - BuyExecution { - fees: runtime_types::xcm::v3::multiasset::MultiAsset, - weight_limit: runtime_types::xcm::v3::WeightLimit, - }, - #[codec(index = 20)] - RefundSurplus, - #[codec(index = 21)] - SetErrorHandler(runtime_types::xcm::v3::Xcm2), - #[codec(index = 22)] - SetAppendix(runtime_types::xcm::v3::Xcm2), - #[codec(index = 23)] - ClearError, - #[codec(index = 24)] - ClaimAsset { - assets: runtime_types::xcm::v3::multiasset::MultiAssets, - ticket: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 25)] - Trap(#[codec(compact)] ::core::primitive::u64), - #[codec(index = 26)] - SubscribeVersion { - #[codec(compact)] - query_id: ::core::primitive::u64, - max_response_weight: runtime_types::sp_weights::weight_v2::Weight, - }, - #[codec(index = 27)] - UnsubscribeVersion, - #[codec(index = 28)] - BurnAsset(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 29)] - ExpectAsset(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 30)] - ExpectOrigin( - ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - ), - #[codec(index = 31)] - ExpectError( - ::core::option::Option<( - ::core::primitive::u32, - runtime_types::xcm::v3::traits::Error, - )>, - ), - #[codec(index = 32)] - ExpectTransactStatus(runtime_types::xcm::v3::MaybeErrorCode), - #[codec(index = 33)] - QueryPallet { - module_name: ::std::vec::Vec<::core::primitive::u8>, - response_info: runtime_types::xcm::v3::QueryResponseInfo, - }, - #[codec(index = 34)] - ExpectPallet { - #[codec(compact)] - index: ::core::primitive::u32, - name: ::std::vec::Vec<::core::primitive::u8>, - module_name: ::std::vec::Vec<::core::primitive::u8>, - #[codec(compact)] - crate_major: ::core::primitive::u32, - #[codec(compact)] - min_crate_minor: ::core::primitive::u32, - }, - #[codec(index = 35)] - ReportTransactStatus(runtime_types::xcm::v3::QueryResponseInfo), - #[codec(index = 36)] - ClearTransactStatus, - #[codec(index = 37)] - UniversalOrigin(runtime_types::xcm::v3::junction::Junction), - #[codec(index = 38)] - ExportMessage { - network: runtime_types::xcm::v3::junction::NetworkId, - destination: runtime_types::xcm::v3::junctions::Junctions, - xcm: runtime_types::xcm::v3::Xcm, - }, - #[codec(index = 39)] - LockAsset { - asset: runtime_types::xcm::v3::multiasset::MultiAsset, - unlocker: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 40)] - UnlockAsset { - asset: runtime_types::xcm::v3::multiasset::MultiAsset, - target: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 41)] - NoteUnlockable { - asset: runtime_types::xcm::v3::multiasset::MultiAsset, - owner: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 42)] - RequestUnlock { - asset: runtime_types::xcm::v3::multiasset::MultiAsset, - locker: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - }, - #[codec(index = 43)] - SetFeesMode { - jit_withdraw: ::core::primitive::bool, - }, - #[codec(index = 44)] - SetTopic([::core::primitive::u8; 32usize]), - #[codec(index = 45)] - ClearTopic, - #[codec(index = 46)] - AliasOrigin(runtime_types::staging_xcm::v3::multilocation::MultiLocation), - #[codec(index = 47)] - UnpaidExecution { - weight_limit: runtime_types::xcm::v3::WeightLimit, - check_origin: ::core::option::Option< - runtime_types::staging_xcm::v3::multilocation::MultiLocation, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum MaybeErrorCode { - #[codec(index = 0)] - Success, - #[codec(index = 1)] - Error( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ), - #[codec(index = 2)] - TruncatedError( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PalletInfo { - #[codec(compact)] - pub index: ::core::primitive::u32, - pub name: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub module_name: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - #[codec(compact)] - pub major: ::core::primitive::u32, - #[codec(compact)] - pub minor: ::core::primitive::u32, - #[codec(compact)] - pub patch: ::core::primitive::u32, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryResponseInfo { - pub destination: runtime_types::staging_xcm::v3::multilocation::MultiLocation, - #[codec(compact)] - pub query_id: ::core::primitive::u64, - pub max_weight: runtime_types::sp_weights::weight_v2::Weight, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Response { - #[codec(index = 0)] - Null, - #[codec(index = 1)] - Assets(runtime_types::xcm::v3::multiasset::MultiAssets), - #[codec(index = 2)] - ExecutionResult( - ::core::option::Option<( - ::core::primitive::u32, - runtime_types::xcm::v3::traits::Error, - )>, - ), - #[codec(index = 3)] - Version(::core::primitive::u32), - #[codec(index = 4)] - PalletsInfo( - runtime_types::bounded_collections::bounded_vec::BoundedVec< - runtime_types::xcm::v3::PalletInfo, - >, - ), - #[codec(index = 5)] - DispatchResult(runtime_types::xcm::v3::MaybeErrorCode), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum WeightLimit { - #[codec(index = 0)] - Unlimited, - #[codec(index = 1)] - Limited(runtime_types::sp_weights::weight_v2::Weight), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Xcm(pub ::std::vec::Vec); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Xcm2(pub ::std::vec::Vec); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum VersionedAssetId { - #[codec(index = 3)] - V3(runtime_types::xcm::v3::multiasset::AssetId), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum VersionedMultiAssets { - #[codec(index = 1)] - V2(runtime_types::xcm::v2::multiasset::MultiAssets), - #[codec(index = 3)] - V3(runtime_types::xcm::v3::multiasset::MultiAssets), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum VersionedMultiLocation { - #[codec(index = 1)] - V2(runtime_types::xcm::v2::multilocation::MultiLocation), - #[codec(index = 3)] - V3(runtime_types::staging_xcm::v3::multilocation::MultiLocation), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum VersionedResponse { - #[codec(index = 2)] - V2(runtime_types::xcm::v2::Response), - #[codec(index = 3)] - V3(runtime_types::xcm::v3::Response), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum VersionedXcm { - #[codec(index = 2)] - V2(runtime_types::xcm::v2::Xcm), - #[codec(index = 3)] - V3(runtime_types::xcm::v3::Xcm), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Debug, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum VersionedXcm2 { - #[codec(index = 2)] - V2(runtime_types::xcm::v2::Xcm2), - #[codec(index = 3)] - V3(runtime_types::xcm::v3::Xcm2), - } - } } }