From 02a73350a047b2c70b335550ec2390a51fb1bd6e Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Thu, 3 Oct 2024 12:13:13 +0200 Subject: [PATCH] cleanup and update readme --- control/README.md | 61 +-- control/data/sepolia/initial-checkpoint.json | 542 ------------------- control/preimage/src/relay_runtime.rs | 4 +- control/runtimes/paseo/src/lib.rs | 6 +- control/runtimes/paseo/src/runtime.rs | 1 - 5 files changed, 14 insertions(+), 600 deletions(-) delete mode 100755 control/data/sepolia/initial-checkpoint.json delete mode 100644 control/runtimes/paseo/src/runtime.rs diff --git a/control/README.md b/control/README.md index a8b2bce050..2f4ff29ffc 100644 --- a/control/README.md +++ b/control/README.md @@ -19,60 +19,15 @@ cargo run --features polkadot --bin snowbridge-preimage -- \ --gateway-operating-mode normal ``` -```shell -cargo run --features westend --bin snowbridge-preimage -- \ - initialize \ - --exchange-rate-numerator 1 \ - --exchange-rate-denominator 400 \ - --multiplier-numerator 4 \ - --multiplier-denominator 3 \ - --fee-per-gas 80 \ - --local-reward 0.01 \ - --remote-reward 0.0001 \ - --checkpoint data/sepolia/initial-checkpoint.json \ - --gateway-address 0x9ed8b47bc3417e3bd0507adc06e56e2fa360a4e9 \ - --gateway-operating-mode normal -``` - -The preimage can be tested using the generated `chopsticks-execute-upgrade.js` script - -NOTE: Since the 1.2.0 upgrade has not executed yet on mainnet Polkadot, I tested the tool using a local zombienet or chopsticks environment. Pass the `--bridge-hub-api` the `--asset-hub-api` params to override the default API endpoints. - -## Update runtime bindings - -To generate runtime bindings that include the 1.2.0 runtime release, we need to start a local `polkadot-local` network using zombienet. +To target a different chain, replace `--features polkadot` with the applicable chain, e.g. `--features westend`. -Build polkadot executables: +The preimage can be tested using the generated `chopsticks-execute-upgrade.js` script. -```shell -cd $WORKSPACE/polkadot-sdk -cargo build --release -cp target/release/{polkadot,polkadot-prepare-worker,polkadot-execute-worker,polkadot-parachain} $WORKDIR/ -``` +NOTE: To test an upgrade that has not executed yet on the relevant environment, it can be tested using a local zombienet or chopsticks environment. Pass the `--bridge-hub-api` the `--asset-hub-api` params to override the default API endpoints. -Build the `chain-spec-generator` for production runtimes: - -```shell -cd $WORKSPACE/runtimes -cargo build -p chain-spec-generator --profile production -cp target/production/chain-spec-generator $WORKDIR/ -``` +# Update bindings -Create initial chainspecs: - -```shell -chain-spec-generator polkadot-local > polkadot-local.json -chain-spec-generator asset-hub-polkadot-local > asset-hub-polkadot-local.json -chain-spec-generator bridge-hub-polkadot-local > bridge-hub-polkadot-local.json -``` - -Launch zombienet: - -```shell -zombienet spawn launch-config.toml -``` - -Update bindings: +To update the runtime code binding, run the following commands: ```shell subxt metadata --url ws://127.0.0.1:8000 -f bytes -o runtimes/polkadot/polkadot-metadata.bin @@ -80,7 +35,5 @@ subxt metadata --url ws://127.0.0.1:8001 -f bytes -o runtimes/bridge-hub-polkado subxt metadata --url ws://127.0.0.1:8002 -f bytes -o runtimes/asset-hub-polkadot/asset-hub-metadata.bin ``` -Update runtime.rs: -```shell -subxt codegen --url wss://paseo-rpc.dwellir.com > runtimes/paseo/src/runtime.rs -``` +To update Westend/Paseo bindings, replace the chain name in the command, e.g. replace `runtimes/polkadot/polkadot-metadata.bin` +with `runtimes/westend/polkadot-metadata.bin`. diff --git a/control/data/sepolia/initial-checkpoint.json b/control/data/sepolia/initial-checkpoint.json deleted file mode 100755 index 20e9822de0..0000000000 --- a/control/data/sepolia/initial-checkpoint.json +++ /dev/null @@ -1,542 +0,0 @@ -{ - "header": { - "slot": 5871744, - "proposer_index": 1209, - "parent_root": "0x7ae1809f20473ff5a19471fe07f262254eae3c73c555be847624d424fcc105e8", - "state_root": "0x4aef57ce071de83d3834a406f8aaaec29fc7492cfb73ef2db7e309a0a3acf24c", - "body_root": "0xcd4212211c07486339aca6858b396cd9bdbb42e738fb1fc255ce8c0d64b59686" - }, - "current_sync_committee": { - "pubkeys": [ - "0xa8151dc5a9995a660759e36a9f82ed3be6956395866edcd1413ba15ce96e3210da40d364516a50f87ff78e9de9d59657", - "0xa70874a0fbca7cb43cbac450e1a749b4a7f455618daed827eb8d03acfc8326717293aca5220e165f41d0ef2156bdeece", - "0xa0ebae60a998907a19baa396ae5a82bfe6aa22cf71bfca4e1b4df7d297bd9367bbeb2463bda37aa852ad8fd51803e482", - "0x95c98e3b6b62f84edf7f297cae93ee5f82593478877f92fb5bf43fd4422c3c78e37d48c1ee7ca474f807ab3e848d4496", - "0xb800be1788175a01a9228b0d3e7eb4302484a2654eb2a86c0f0900b593da0a436ef031ac230e2b05e968b33e90a342ce", - "0x9348cf0fbd4414944935b61d9c99a9ad4c1b1825a7059e698a2709b0f07adaa26b32db557f32388b44461285959d25d3", - "0xb46a818f3e492e231d8fa8de8848c16f0d648a2e0d1c816adf9306a8596fdf45922e59cbf745430570a19e54f45e28f7", - "0xa8f2572a2cc2ecba151a3d5f4040a70172067ddadd8c12ba9d60f993eb0eab6698cb35932949c9a42e45b36a822af40e", - "0x8c06d7798d0892d47e400e4621178dda34a4b302f0ac236cd8704a1ec888b6601999508e159d717014fdbf6b8a660e0b", - "0x8085c60b6b12ac8a5be8a7e24977663125c34827842aa3b2730854ab199dd0d2eaa93084c9599f0939be8db6758b198b", - "0x840a53b12c5bb26dfcbfbc6f6ec4b1520547382b704ba545c65adcbf80eddfa0ac3cfa25eb44707608435f8cbbd07aa4", - "0x876561bba29e656b7122f1cb51a02dff1ac7d470217d8a4799c01e61816c4660eea91843a5a42502ddf842d2daeb0586", - "0x8b6bc5b51ba51ba6cd8925766b9266c59f5c1af2e029fe5c51d9332cbde1d0399afa967aca5119fafca623ed0f465354", - "0x89e19b665ce7f6617884afaf854e88bb7b501ecdd195a5662c79802d721f5340eca8c48341ad1d6c78f519f82e5a9836", - "0xa3fd9e1b5b61d2e0b9d66c46eecfc18f3745f35cda59994bf97144bdab6832c1f79b1068d2e8799bb7baf9f282c9380b", - "0xb7e18647b9d147a620b4905caf4a535a5b98e6ff0de5cc95a7dbe9c32bf1ac195a788baf9f51a6d7d0d2233d75af6e85", - "0x91b0ac6cd2c9dcd2ffe3022b477c3490be344e9fadd15716157237b95625b77c67e59021687c54a0ec87625be0d1631e", - "0x982691766a549df56436acd0fe76da78132e027515f27174c10d117bfcc20ed73fc31f5465bd7a22a101094fe913e221", - "0x8c65aa29a9ee9066b81cf24cf9e0beca3e8e8926e3df22d5ff1236297e158cc8bc7970a2c7016009cc4efa8f14b14347", - "0xa9ee291de5997232c68c9f6c3b568b05f46bfedfa18eb3776699d98cc7c6320003b7d862564d07fd28fc3691d1d28b21", - "0xb5d6f664ec92e5343792d5d6b629919c5fd8cfb874677df2264daf02bcd9d12facf9b859d5402839c9022396e20d260b", - "0x806efb61d1c948efc10dbf9bef30197d1c269e5e7fcf20a84367b26223d33fade413a0bbf4e33f0d1f1a00967289015e", - "0xb08857244c85129a3445af862afff77473664a1d808dd1510bf04dae0098903b2bcd0aa5c9e1d5be4bdae29d4964a912", - "0x96af0573e16dcf0b6d787ff45749b65737afc23b95ff2bb367a48440f9ed53a44e23edd13e9708acc6fd37db8ec8953e", - "0x8bc66e370296649989a27117c17fbc705d5ac2bda37c5dad0e4990d44fcc40d3e1872945f8b11195538af97961b5c496", - "0xb3285148b91dab139b053442bdd14d627ba1e1250fe469f0f2df854b6e6ff4a18671ae3879ec9f7d8091f99f092162e9", - "0xb8d68610fdee190ec5a1f4be4c4f750b00ad78d3e9c96b576c6913eab9e7a81e1d6d6a675ee3c6efac5d02ed4b3c093a", - "0xac1af27a7c67b1c6c082f0fe733046f8b155a7d66caa8ccc40a53ac5a55a4903d598b5f80543ea52c25205b02959f4f5", - "0xb5726aee939d8aee0d50bf15565f99e6d0c4df7388073b4534f581f572ad55893c5566eab1a7e22db8feeb8a90175b7d", - "0x952cbd8e9d5e9d23139e8f3e979a89b54206188e627f8e06cdfb3e38aa5159e610629bf79713954110bfa6f450c6e55a", - "0xac8436e33619e2907659741d66082acbda32612d245fcc8ae31e55f99703fac1a15657342fa66751d3be44fc35d71c36", - "0xb397ed7134f447d9bf1c511bf92f2d27d7b6d425b8b411365fbef696cff95c2175461cf5dd83d93bb700e50ebb99b949", - "0xb9eed89e003894ad2cc9d9b93a45247e1367ac69a00b0ed5e3280c1188b4cb90eb870d449b83a852a798bd02f9d0c813", - "0xad9e1b4579bc335d176f2d1cb700b3e9cf74acc31a5ea9fbb9a9c3071963648017aa2e9331dac0c42e6482f9141657a5", - "0xb1289ab2fd3070ba49b0cebc9cdfff1e8241414af022ea58b7a59aa7fdb066fd060b299796bbc811dec1bee81507d788", - "0xaf17532b35bcb373ce1deebce1c84abe34f88a412082b97795b0c73570cb6b88ea4ba52e7f5eb5ca181277cdba7a2d6d", - "0x95c0a30943ef34ef0a644439d857446e1c1736e18360f3f41803b0ca118e79af3fb9c608ec440a8de0f79d2c245b583c", - "0xa102c2ade15ea2f2b0cbc7dbd8c1171de0c8092fc4ecef84b5fd2bae7424aea8be1629f851c75e4d1d0e96104e54bfbc", - "0xa6f0d5053bfb37588a8b06ebee8c84a7f55b943c04075abbed5000ac6c16d9404d40976f6197ee1b313590750df93721", - "0x980a54f9e9d88a7ec08d04edbdd7c9222e99f270b1e978ce7140cc67e38a2e60cc1034dc5b0deb5b60e10697d3bc7295", - "0x9022541f84e48b655e74bf3da484179e0e0040827fc71e777b68f19bcfd0e103d385ef957692e7091fe713561f38035c", - "0xa5bf4aae622b58a37e722c3d1322b402907f10eec372a42c38c027b95f8ceba0b7b6f9b08956b9c3fdfedaa83d57a217", - "0x8e8f63ec8f4f1f7fcc61f893b671710c3c17f9d2d26c5c6ca40e671bd4b252bc0cc1655e6780d2ddcf2915d8f623b9a4", - "0xa5b213f1d8ddcd9e42570f61f57c0e59cd6379740e50239257395f2fe7fac982c9861685e0fbee6c75bced5aa6b64849", - "0xb897fa90529458bdf3cede5ced3f3823dfb9b6d93b96b81429bf05e8f1a80f7c857d458045cfee58296b3ccbc4119abb", - "0x97b43a6d1a47a1c415278344dba0cdfa952663a71fdcaf58d313c161e479ab5d1b980d8870055cc8f0d283bec8f97425", - "0xb973f9c3d3faf641badf533ec36165a665759e0ae9ba45f9190fc44b1cdad78ca90ef6298dbe1dc0ee95ff58531cd0b3", - "0xa24d05b51c7c128bb49979cbd9019e6618545d95275a44b5c3d1d03e71bf2ebffdf43fff50c30846ec27d279043cef4e", - "0xb01ee30d120b97e7b60ea89b9b6c537cdf20b6e36337e70d289ed5949355dd32679dc0a747525d6f2076f5be051d3a89", - "0x8e2e9a1a8bae9fffa594324a2c643ba0609f291146a104ceb9fc1f26d4a25604b97e9fb392c01689c88cac90c310333c", - "0xa02883d525e251708bcecf6cfaf7d07fc5e1be92fba24ca8f805e96b7dfe385af449f5687de1dc6707a62ccb08c1d590", - "0xac9f0b44105cf77ad721b97b0f04a37fddb2bb62c345b0d22a29e2870b8964d7484aad30e454c74608ce9901043501a5", - "0xb746447b0c0d7165f965672d71c318f2c1052a5ac6ebe320b14165c9276c839ed822a9183ea6e6dae63a4f826d421d65", - "0x8ae9585caa3c73e679fe9b00f2c691732f7b7ca096e22d88c475a89d4d55cb9fba3cd0fe0cedd64ce75c591211664955", - "0xa639bdcc6f167b3d488cf2d28ebe4782c4f37a5de4ee3d8f4845eef50c81ab7ee421db99c02c6404fa9d45a948b6d37f", - "0xb15460725c0d6bc3a6a7006dcf3c3e3561d9acd674c52d4199daa8598ee29eef053ae521f1271aebc66943938c9f4b7e", - "0xb2c191d34c9d09efb42164be35cd04f26d795d2558b0894286e455f8e8b0977d0714e5c8d3596282a434a5efa5248fc5", - "0x93f03495d53c781be8b76e37e68b64aa260523004eff6455ddc8a8552af39854e5181f8c5365812b1f65926534fba5dd", - "0xaa318e541c171104c94abd4110f9269efc88ce98ed472aa52ed877634291f6355314b915230723da00069eebefda97aa", - "0xb7e5497eda543c02a7b3245eece98d21dd4c587b5a05f21b5c785756a0b875715782f706fbbfeaa0edaa6faa6b03d8eb", - "0x946e508e1d399f22ae69a42102574c3d2827adfa47796c4c1b947f6ab84812f1474fd667c9491f13d4511cca3e8fffc7", - "0xb72c93827b8cbcbde357a04ceae87554db9d283ef535fdb7bca45460ea567edf7c1b82d96c7df679e64e01e501e0b450", - "0x94467242dbd62a3a64175663b6e51a330e8d5aeea5d85cb4ef33f412c41f24b9f49b06f5ea1c076dd4ccbf10a2fa4ab7", - "0x88b49b1130f9df26407ff3f6ac10539a6a67b6ddcc73eaf27fe2a18fb69aa2aff0581a5b0eef96b9ddd3cb761bdbbf51", - "0xaad9577501d7f3a5dbac329f2c1fe711710869cc825740f365488fc55a278d687bb72423560f7cb2cbd60546a82ea1e6", - "0x8df8b35861e00e82826b3a39069e9f3f0fcba18da2370e2fd792b4fbeec8a27111c7dd7e0acef5f4bd9b7a5cc2d6ece9", - "0x80414adc7e0a9cb961b1f31682c33d8e01e3b8cf2aa2c2a911ab9b1f54d5c4bf92e18466cacf9b80333112ab015136d2", - "0x89d356593ec09d838cd89306ce83c060ee797bf9eec8523f581cf263925699ef0f7161a790bd00bb09681534ed05ac82", - "0xad2456725ac3aeb0e4ca5c0502a8abb4dbd8a8897d9d91e673fea6a0cffd64d907b714b662d73c0877b98d4ab3ce6a89", - "0x841d9c04009af59c646e65cb79be10bff240fec75d756c8b8b9c4f54a2463561510f5b2f3d09eacce57cfa4a856d72f7", - "0xa35d9d6d5dd5428cce7616842203b5fa3721cb4b20f50c0113f138604954fe0cf214ca3d065b578f921054b9efe823df", - "0xafe779a9ca4edc032fed08ee0dd069be277d7663e898dceaba6001399b0b77bbce653c9dc90f27137b4278d754c1551a", - "0xa798a0371e8cc4dc42ccd79934b0db5a3a59f18a0ae09f2eb172596428fcb3f00312e783d6fd21cbc1610317f44e08cb", - "0x88158d759eafd2205c770f166829fd61e8f17b2c13f440777eaf45f4d88a6e2028bc507680ff435882d5fb462f813735", - "0x927c030d5a69f0908c08f95715f7a8d1e33bed5e95fc4cfb17f7743cb0262755b1e6b56d409adcfb7351b2706c964d3b", - "0x8499a8c3d67d1f6eccf1c69274393dc498cff862ea8e6c11ffb8107ae190d258ddc1d294f2a8f050488df0212063ece2", - "0xa031d95cdf2853d2d72f3efe2feeeb9f409f51f3b708f726be0096acccef3b247fbe4370c58b4b891cf156234221e0ee", - "0x85f2ed3ffb03e50c8f22553b8e6349be6244d893aa37a7c6dbd221e9e121579e5a04466e60d6b4d3567bc747b1fc1e9f", - "0x87e39895ee4bcf83f007c7e8c560304d55674cdfef16e3fb5a309061dd97f37b12da2acf5b2f05c0d07fd594277d49ff", - "0x89cd9f6ae7d9a9ff2b4db916ba3af9fe700fcfbd16577bf73a965af938e8cf633020466b0298d3c31300360aa6851af2", - "0xa57bacada151d6521c6f40371e80cc8e44bb76389dfa7da5deba7675bb9a253c59a901df26c6f1069205b37f18048b1c", - "0xa9760afaa51002be0948acf7aebd90ec4e60e0dba8456e445aea93408a0468b62bb6da4984b92f8f6061561c9d56f4c4", - "0xa649208372f44f32eb1cd895de458ca1b8be782746356f08ac8ef629429d0780a0799fcff85736e19aead0b79bfff261", - "0xad2b1ab32161e37ee553e3787f05f9281073d7ef7d0ae035daa353bc83da8ef8c76c99ad2928463c7c708f7404020476", - "0x91c3e8d2a65af7a31e24445afe9393e53f47b91167818210f2d8b9847ff76687ebc1107f52183ebadbafdaaaf72bd951", - "0xa16c910646638c4a57e94129a333ea61b8586d7fcedcd522904c9d019befd6e58344fd5e8f71819cfa841c34b3c812f5", - "0xacdaa6263cb7ffa0fa159983888348fef7f0514abd4d897884bb6eaeb57c68e61044047215ccb0f32face09b0a72ea3b", - "0xb45b285863f7303a234173b06e8eb63c8e2b70efe0dfb9872e3efddd31d52accf0f1292cfd1239b5a57492f3617a19e8", - "0xa019370ca799c2c98a605850910cf43531bfb616393039fdfc370848feedd3339b2427b750ccc91952b03a09f690e9ed", - "0xa2f61cdc267bc1c7c328571b09a058fd9d2ecb70236d735fc50289a10ff35bc8721f32cd0e9f4ebcf09f176bd51e1899", - "0xa6b434ac201b511dceeed63b731111d2b985934884f07d65c9d7642075b581604e8a66afc7164fbc0eb556282e8d83d2", - "0x87fdca39618051c4b3f03c816b13df2d4cd4c7c564e3d8693dcb58145b7b3b3db7884b0125b1e84d9bb82e91bed8bba3", - "0x93121aa60f904a48e624e00f5410cf8c8925d2b0719f90c20e00cba584626f833de7c8a18dbfa6a07df24b916156bfc0", - "0x9529ea4a51324ed4ecd855faea43846a223da8cbb494e5854cef700ebbcf4d76119cef16192e6b7c51f82ab79371756e", - "0x838733220d1559c800cf1714db8a43a67a0c0d1d3a9fc1e2cdcf615d20406501e5146fe8b59bf64f4c5daa1a6d74f15c", - "0xacfbac397ae2ff23b31bb27b90788fd0fd51a50f8e8c9f4b31be8499194252014f0b1972b204aeb9c2836a20beb3c868", - "0xa356e5b70bc478c625e32a38d29f0a619fdeb665503eedc304d1bf34562d4b6814dfc30aee5aee94ca4bc6394e412765", - "0x946d585d7aa452d37a8c89d404757c3cce2adf2410e18613483c19199abd88f7a12e206f87a43f6009e42f4e31ed20c0", - "0x91b49de13c51177527656ec1ab0ad74ce8666550f7e14bb3e19199b5bc7ee81c72f1fdd7593a1148d1d07407085c585a", - "0xb15e1b4ac64bafbc4fdfead9aeff126bf102fdd125c1c914f7979680ec1715fbeccf3dc35c77d284421ec1371ed8bc32", - "0x8ae80eeaed3fc456f8a25c2176bd09f52a2546d45d77a70f48a9e30aa29e35ff561c510ae1f64e476e4a0f330b9fdbdd", - "0x974a5180e55eab23d4c973fbee6ad1010335161ecdb849fe6520b34c1f96530a4faff80bd738fe281019b79d968c472c", - "0xa95bec86a7c8417a8df3a0158199327ba0924d3b7dd94cd7c1ef8489b10270ae64b8537ed39cd3699a48942bfc80c35d", - "0xa42bcc5012a8b87caac4ec279f8cf7e43f88e36b65c321a835fd8a5ba427a635de79b93d2460f5e15258f09d8d51c7ce", - "0xabeb50e9b72dda934df8f032ecd0221826cb988bda6713ca0429b7c40fd2829804fdba8da13700cabba05e945380b753", - "0x963a298fc8876b702424a697929c7a1938d298075e38b616c8711f1c7116f74868113a7617e0b4783fc00f88c614e72d", - "0x85554235ceabfc4e432bb1804daf45ae47b90b8dfaf33d0a85565394dd1e122dc5efdf3427a7e1b288c78c24e8ad9809", - "0xa8e03a26e88e4ed03751ccf6eeed6215becbf4c2d58be27361f61d1cc4ac9b692fc6ecdb839f9b3c17f54fc2f2f4756e", - "0xa09f11d2bc6000d12a42b545ddc29c1973944a39787c5f27c96d4f6aa0d9c8fa9c479f2ed327fbd30376df3fa5b7d2a8", - "0xb0922acd6da2a95b36de6d0755316594a7e2e32ea774792dc314e8c3cd76d9f1d69df38231e166e24bd42c664f4fbac7", - "0x8465bd8be9bd9c2c6116d4ae44ec6618c109cb9aaee2d241e7a6ed906d398ef15a6fc18bc8b1d3398184241405954bba", - "0xaa19a75f21a14ad5f170e336a0bd07e0c98b9f5d71f91e784d1dc28a5f5eb6870a4eb35bb41edcf9e6efe982ae5c2c5b", - "0xad9725114b01152fff134c1a8ccb8d171b8cd11685ef6815b76f442d757d130bab9ef4c9845e66f4aa0237ee2b525c20", - "0x871656153e1f359ea1cf77914a76de34b77cb62e670c99f3584e7cb2c500c04f65f36bcb5321f4630df5c3de9245a7c0", - "0x90fc170529bcc0b80c46a53fffd8323fd2cc5cfa9b75ea4d36db21bd1f198335ad2bfa87f8990cf9cd9fd7989ecca718", - "0x85822227f6a96d3b6d6f5cf943e9fb819c8eaf42a9aa0bdd1527055442b1caf672522762831b2dac397af37a1c5ed702", - "0x93e4d7740847caeeaca68e0b8f9a81b9475435108861506e3d3ccd3d716e05ced294ac30743eb9f45496acd6438b255d", - "0xa5c0e42851b769d2d822e39222e708068455aae3bdf782975b59d3201e67a58fd66e16d380558bf2086bcab890a92dd5", - "0xb544c692b046aad8b6f5c2e3493bc8f638659795f06327fff1e9f4ffc8e9f7abdbf4b7f6fcdfb8fe19654d8fa7d68170", - "0xaeeedb3c73a9eadef14396a474ca83ca9e3885fd5f2c1018652360481d0be49524de22fc1ea18bb7abca66df5dc7d309", - "0x80e58680edb62d6ef04727a36e41e5ba63fe787aa173171486caee061dcb6323f8b2de07fc0f1f229c0a838ed00e3e31", - "0xb6d6482ad7b9b412ffbefbbdcc28eb3d091b1291f54f77bdd53c4ac85f705c454940f466dc272dde7b03c26f0cd6ecb3", - "0xb6c7360054cf250ac48c41fce8da7a15b4c6f226688a60da737ea2e19b00c94ba728aa588ee72a7ac65f2d63f216285a", - "0xb1809f9fa306d63c6cef586a74de6373fb2fac0cd10c5cffa6559cf1a16a99502c16c204f803139d4f2fba5161f90a6d", - "0xb924bdde49acbc8d9213301f5dd3e218950c1677008db7a8c830ecec0203a79fbc61d536d5a0079f2072b03f86eb3356", - "0xac4b39bb8f0f62666a50574632764f8b6a1dc98afba5a5dad4409c920a0c0d5d2b5c2506c3a0d2f8727b7b7dce2ba1a8", - "0x8368a0f17c8427beb71dbf11a09a2fe8495a33f08c29c74a9a996a88aa01c0a09f9555abeb1ef1592cab99a9e05875cf", - "0x9779987412977476a6b4c6cea3f2e08b5960d0a12bc27033b2ffe23792ba6f0ae3167ea6c6962077990cd1c7c4c220c7", - "0x91a812d377edddac3c848f65bc8fbb8a1692507dc699e353621df83440b8e463862057a2596c6c6a5c36b2a4888fdae5", - "0xa5a07bf219432e9c80c38596c93560b49c7de287f31e30b7a06fcb4d15982add4a24085adbc5b753c462be989c64c96d", - "0xb919391ac60e21fbf25cb2d6a3ce6edf9ddc493073e5e19c43d319cc488ea7fa2b4c6c9fcae5477d83065edb7f92b7f1", - "0xa69f0a66173645ebda4f0be19235c620c1a1024c66f90e76715068804b0d86a23dc68b60bca5a3e685cce2501d76de97", - "0xa9f6b6b04e36850d2dbbc390a9614013da239375f105b0f3738138431f0a3a8c685445f6c518e0b0e72fb3244ddc0d9e", - "0x8a501497cdebd72f9b192c8601caa425072e8e6ef438c2e9493675482808522e488779dcb670367cf6d68edea02a12af", - "0xb63fd45023f850985813a3f54eceaccb523d98d4c2ba77310a21f396e19a47c4f655f906783b4891de32b61a05dc7933", - "0xaa458aaca6ecb43b6e45ea72d02682e5a7dc8dc22782669a0628e1638e73999319f011803f4ec8cf072467bf2c49c629", - "0x8e9bccb749e66fbe47296f5dec33bd86e52987516263240f35ce9a212dbcf71348b60a016f830f2acd05482962403542", - "0xabf19b2cb84bcc87d15e12844d053237a139d76a35ca14250cee2415ee646d98bf97c42bd2645f0790ebb388dd561d59", - "0xa1beb9f673409ec678020ea4dcbe65177aa18e2932ceb9cfb33fccb94b9a8ccb664f71647d58b3c8b2bdbbffbc02d5f7", - "0xa076ea1084b7a1a33115ef62d6524f36e7820579868763a6ed1f8bce468f150cbfbf0ed04be2487aaa34100d828b0db6", - "0xab1334a1dc4a34fac334e1d637de204da18783d8573f216d9d24c853555d79877682b43af02345f6695d87f6549aa72e", - "0x8f71f8edae59d6936846d8b50da29520f69b339f574ba9156d3d5f0cd4a279d36bad7ca7eb724dd48aefc4ca9ce26bdc", - "0x919b5187af7dae210f151dc64a9cbd396d1ae04acadebf542a7123004efc7ce00d6e14c170d876fbc64dc1b5d141a5f4", - "0x825359cfe68ad6a75578a94be6419179e0aa088170b6c20fc5c249dc3be7a260d687c93d8d8a343c7c72c2ed6a716de3", - "0xb504cb87a024fd71b7ee7bed2833115567461d1ae8902cccd26809005c4a56078617ec5d3fa5b29a1c5954adc3867a26", - "0x80b61f545f9756a2b4431f1a2690adc7b351dd82edc1eb1bb0f3ec2e730b1484da690ba636701059e51e59f34e124983", - "0xa17b0040b4e8549acbcfcb5cc3100230e50a0289f54f5b6df39dbae22cde97eab0b13ad4aedcd21bc685bdd0afdc1ca7", - "0xabf28b692bed19ee9152d5f8ade776f0a42a9762ea5f37d80f47ff219fc0a8ebe5e6eb920453e1ced3ea5bba19ae5be7", - "0xb7ea5e0d3cfcf0570204b0371d69df1ab8f1fdc4e58688ecd2b884399644f7d318d660c23bd4d6d60d44a43aa9cf656d", - "0xa958987c2b3c84df8176b600f5b75a8badef9653c71eff967e76648937def38826eaab4027a639f4f300b20019166250", - "0x89cdbd610e7f57e86438e50874c3c7ba85afa63f5adcab9e454b5c203e4da65d74bb7cac5995a8652d10a6e438a1c2b8", - "0xb7f146a357e02a63cd79ca47bf93998b193ce1174446953f12fa751f85dc2a54c9ed00c01a9308509152b3bad21d7230", - "0x87ac804ccfe7f1fa156b8666664a397236832569f8945e11d4688a9e43ada4d4104efb3fda750f48ef655a29357c5e7d", - "0xb526f40d519e7a8f2c81b69f71b3e2ef079028004c0448ba0608296c2787972491ec6d05ed6a8fbd5ef2da76325a93cb", - "0xb201b0546f19c5db88df9c684cf55ed623bdb43927d06051bd595497df741feb1485961f64e8d3d1811d9e2e9e1e54ad", - "0xb58396bce7d32ba6c70adbd37156d859e153c1932d2b0c7c874a1182ba831439e80d6fc6d7d88a870e193f515aef2264", - "0xa6e1951cbbb19c0aad6e9251c2c4dcae1d2e50550a32813a47dde9f41e42e2dd0433cddf7e63ab3d320edca48a6d34fb", - "0xb0a32f5ee1e22853d6557c59517234abf7af5bd5984274fc084f25dbd8a07d026715b23b776fe47f8a3686c69a77cb8c", - "0x998a653dba837c4484ad5090ea32919dfb2ed647d4bfb7578c1901e3b77ba7fe275c00c8ea560d6505dc2f1cd689733b", - "0xa4eb903990bee2374b14fa66fc262d6821669537e9ba241c87b4b5c9e2b89b32fff4bfc28ab8471ef52e8eebc3e743d1", - "0x8097b13908662d245820f3b045d8c2c665fe9a054e9c661323924ec86dfa713b36b0c787ad4dfdeb979318810e687a48", - "0x87ca4fa85a257adf7e21af302437e0fa094e09efced2d7ebab6cf848e6a77ae7bfc7cf76079117f6ed6eded9d79ce9cb", - "0x907a3a9522479f6101b3ddb28517e220f842b32d14bd2ab80fc1005bc7e6a101b7bb08e72e6c1a8d050dfcf4792a3620", - "0xa6dd7816a96af369540013a456722434a5a918673564519a253ae5669ea3afeef509e29f35c6cd3ca7fd29f97987cfe3", - "0x97f1a7370b4f5acf83b466f519da361c366915f560385dd7eff9d53700ad81b25c9862bc71d35428e82372a5ae555ea0", - "0x84f43aa4e2a9d10e6590314981b5eb2a5e486c1593a4f82bc3a82b67f6ccc29652ab82a689a9454bcb6c1f9bf7a10e2b", - "0xa57d5de556853484b1d88808d2529450238bc467376ded84cfd7b4a1ba258f6d43b5958220f962c57b033abcef1d5158", - "0xb5e1edbcd8f2c557bcd0d425fd3b3d2ba26c010f456a27abd208608db9a981e3b90b482691fcb3fb2ba8997b6543dc94", - "0xb9ee3b7b95db0122edd90b641de3c07fbf63a4f70fee5f72051cbe25c92d88444314d0489a5ecdb1805f4f149f462ee6", - "0x8253e3b0b85538d01b0ca90b0a1656ad80ee576d0c3fa6349df58df92683b510e56c524fa6144f79a5525f41e4a2ed34", - "0x94fab50e1f826709bca45da6574aeeaae0b2b6e172c30798bbd886720e18dcfa0be4c46b43cb14219b172b6afe70c062", - "0xa02f7fec0661394399a82b2e3151009160b3f5392017ba579b301ed42c85100c295acbfed46b6c58a9d71796ed0930e6", - "0xb65e8b290bdec2fda05cd1c09f8508f662aa46d7d19556d0a4e3244b4ec20093aa37088105ea4c2b1e5b245410241445", - "0x936f7e20c96b97548fef667aa9fa9e6cfdc578f392774586abe124e7afc36be3a484735e88cc0d6de6d69cf4548b1227", - "0x8b476b3b065a3b95a3d11ec60a749c2258ddcc5885bfb50b8a086d3fd1e49ff73e1dde733b8981c3d2d206aa0c87b09b", - "0x8117fbcf61d946bee1ce3dff9e568b83716907acfde9b352c3521cfed44158874af8dd5b3906b4a6b49da2fb212ef802", - "0xb5f69b7614fe07889b58142d7b438186d70214ff4cb209b6f271a3bf2bcdef5e6f1c7e95dbf5f2785aa471f0294cd029", - "0x9888c250b4b60306f4ecb1babbf95d0b6dbf6186503b2024b134478d721fb782d801bafd126cc3247bcdb1ee9d66de85", - "0x94d4a1e3a3d28a948f14d1507372701ac6fc884a4905405a63663e170831578a2719714ef56f920baa0ca27954823e39", - "0x9405a2882279c691a42eb71c928ecc1c1a054927471e5ec7ea1f95283235349ad0c9888803e2fac748c73d241931eaa3", - "0xb04061bd8e98080d0e1338fba5c30cfc726c268d5927852a14674d7c289941fed5835a24313c82b19dc2368b8d445926", - "0x8cf06b34e7021e9401eb705dde411ecf7e7e7185f8c0b0aeed949097df31812a9fdd4db7d18f9383a8a5a8d2d58fa176", - "0xb7eba9659ad46354f710b94476e8fcad4ecf74c584c1b6252960e7e7759c8a064127929bbec71f2b868d098140b3de40", - "0x934fa8d9bc9cd0ff2492c5c97e63a98bdef63a6e8889c9ba7009d6c6472441750ab37ce5d1ac3bc0d73d074af223e446", - "0x84a6edac5ac68a7ca837c46d5ada8fab136748b6c3a3b9165dbbc231ec386b15328e4ef7d69a15d4cf354135348a4ee4", - "0xb33de3de106be61481ccb7f07a7a63cf4d1674010e462388fb8ab5ea08f444ed7a277905207e0b3aa2f00bb9efca984f", - "0xb471c72bd2971353f4b44248b8e6cf5316812861a88ccfc20fd0d89a5e010428c387228b2f6f14c12f79e31afc9d0753", - "0x983fc1ddf17f9756c9cecc00b39bb2ad432587a5c6d1c3296a383b9f539c9afe84c6c818447a709c0b686ba26ce5ea3e", - "0xab4119eef94133198adb684b81f5e90070d3ca8f578c4c6c3d07de592a9af4e9fa18314db825f4c31cea1e2c7c62ed87", - "0x8e8e48992d0394fcb9a0c56bbd3797400128e28fe395ad9acf582919d66d11a4811a7187897e60ee2ab4842800c8c36c", - "0x88e1e459ee5aeb8b36ed004f6d03da296101106fbe1b18f9bbf63e92321db51670c34050fd3b7dc56a4bad76403823ee", - "0x85e2013728a13c41601d4f984f0420a124db40154a98bbe8fddc99e87188b4a1272d20360406a9dbae9e49bfe3f1c11c", - "0x95718b06017ba9d45894867fd67148645d25d9db2229aa89971f444641ba9db4c5c6f0785f3b25cf2cd7fadaa6adc5eb", - "0xa19e7db50604f6b82cc28bc97135025459c8eac107a1c482919df10b8be2e4f24fceb93b963c0b8ac9f402e2f6ebf387", - "0x9920c52effcbd2a54502957fabc7c560250c08941bc30fba42d1a5101cd987359ab5725152e3638f6fb3b675e12d1060", - "0x9366d86243f9d53bdd15d4cd6bf5dd348c2b89012c633b73a35d42fa08950073158ca0a1cfc32d64f56692c2374a020f", - "0xb3bd2fedbca3e0185bd4920bc0b9279da7d7031e39df2886a4c969b28df97181ad37ca4bab2b79f44d7bc4acb32b14ab", - "0xaafe14dd3b680f096010788226d8413ca628feedad79a2bc78cb04d47c6ad910f7f46ca87b8f8281744625d8f42d5eea", - "0xa03c1e287ccc4d457f5e71e9dc769294835945561e6f236ac7de210d2e614eee8a85e21dfb46e2143c68de22ccee8660", - "0xa94ccbf61b3a857744aa1540fc6d633afb8ab3c92d07fceef90a0dc54ecd2133490cbaac8832b26cf2f4b956471f36fe", - "0xabd7248ae069d3a3a45b0ef4dd5d7d54b62994e578ea20bdd3b7876596673953b94c5b109a6e4b953b517544b915368f", - "0xa3cf8e318958bdb19eff3f4840d453f13b0edba8b5a8754ddf803d82a8f97c3c6c60733288d7ebe5c5b6934379c7feb9", - "0xb1c56f028f31f0ff86bdf55788703b4d809becaf3e4d9d349f1b660a07d2f15e127eb72a0e2a5a2742313785a3de43a5", - "0x860d581af35d522b5eb5fddd92a98a6b4cc483fda00820d1ce4530e07892890c096e99b33976ca3550bb900e830ad3b6", - "0x87a8480c87603031ffe58a4e3aa7b3305748424219b6b1f1ad480ed2a473fedde4c79b8cc5b6be244f6848eb66e9d9d8", - "0xb102107527690d9324e9f121aad6b01f15d70140ff3b54e88a6743af913e95df9756f46c88c2525b6468f79497e1903e", - "0x880f51ddfd824ce64b336ce26993249c9d05263def782a8246e87ec335042b0a81d2b91782a6cbbc9911f8208e1de704", - "0x8ef9b456c6abbc1b912e4b5c9420e8af1a5860eb670894d3ac250ee57f2421f2e4eaa1a7f85df0f3f9b34a24169195fe", - "0x855474478de6f0f17168294a676f5a92db8d7f87b3e7e66f5ceee66dadeb5c94d740f0e0997e532409c2934175b6131c", - "0xb2a4000ce0ddd3f0543ebfe4906570853a85350d75418a1ff2608099c069f03510df576ea0cbb406b7ae8e4f21576811", - "0xae47b31c5b62b38ee886ee04945649054369018dd6543c91f0138464af489a32c1fea339e0e0cbe82e3e8b9f2ef3918c", - "0x8cf3c29531a17489a5f8232d56c5251ffddc95be3ff7ff61472e19fb38c5eaec841ef3b1ee36756b3dd8ff71ae199982", - "0x96e7d1bbd42195360267c2a324b4d9bccad3231ed8a7f070278472a90371867e2ef2c29c9979a1ec6e194893afd992df", - "0xa76adeddf2454d131c91d5e2e3a464ef5d3c40ee6a2ab95e70ef2e49e0920d24f9b09276250ed7b29851affbdbc7885a", - "0xb1afaefc9fb0e436c8fb93ba69feb5282e9f672c62cbb3a9fc56e5377985e9d8d1b8a068936a1007efa52ef8be55ce9c", - "0xa4b507a4bc2bc424297bf8968bf385fae3acc686cff4b7933b4f5b6ef3149995393d5331dbac4b629e8adce01a91a4cc", - "0x99dc48a054f448792523dcdeec819e1b928b1bd66f60f457261f0554f8532eedd7152792df70ae5316ab2f9c02a57cdc", - "0x87144976cb0d55de66f612725c6d89ab35a5222e8b003329b898e732629f5b7022a7223c9cc9ec820d3d1553e7b2267e", - "0xa60642ede2da19e9e4a2fe5a31360fba2c871c25ceb8a867c8189fc62c191a5494cbe59a4a53f643d3025ab264e9cee8", - "0x8dd55efbf4f9cf6aba47c16730bbc5dc3d332bf2e9f1be8695f755362ad2f8e6f6e2426e52cdf0ba9feb9e17533c4b06", - "0xb42f22b81ae0f8bdcbfde4cc9a882eb46c80b0959895ea3c1fe3979550bbcf3f179ea3925fec5b1ad0503c07e7a1148c", - "0x84926cf2265981e5531d90d8f2da1041cb73bdb1a7e11eb8ab21dbe94fefad5bbd674f6cafbcaa597480567edf0b2029", - "0xa8b593de2c6c90392325b2d7a6cb3f54ec441b33ed584076cc9da4ec6012e3aaf02cec64cc1fd222df32bf1c452cc024", - "0xa16938f556b8c11d110d95b8584cecef8b95ef349ea64b59df806cc62c52ee48074d0b3f18d84533e41583aefd6a9d43", - "0xa62c2e7c692403e874a16e08e46a067e19dd561993ca07ff79cecb53c753763b3e49d372638c96c0a8c921bfa0798a0c", - "0xa2248409026f35c3da8bc4d5c02315066df8fca44ff5a358cc42b5c88bdf6866dc133617c697bff004b1ef20ec4b5748", - "0x91215fc3f7243638733fe293dab7029e0c4275550102acf5f1638773cf8f8ef2c53ffa5bdfc1b602c269a2b5ab164b7a", - "0xb900a55013d0427e5da6b21611d6ae3e648f54f794cb099b2d2beebae0a957477a94dc415e8ec5e68e9029ce50d43843", - "0x99289672bfc48d2fbfd51a32d0d7f9d03fff37b8269ce45cbae1e9a091ee3983774d053efe8eae2f2d3f22a9eb532457", - "0xb8137fd57ce7d3cfaf8bdbaa28704734d567d0e7a2d87fb84716722c524bb93acb2c1284249027f3c87bccc264c01f4e", - "0xac56dbae1e290ad35dc14eee30c6cea441cb7d2cc64b8407b83df5e07ce4a8677983b45458c0127ec0d01f31bdd61a15", - "0xaf18cf1e3d094b4d8423da072f98b3023d296f6a1f2a35d500f02bde522bb81dc65e9741c5bc74f7d5613bd78ce6bc03", - "0xb40a3bae2b08c13db00f993db49e2042be99cde3d6f4f03d9991e42297933d6049394c659e31f316fcb081b60461dabf", - "0xaf6e6cad67e54efe92976851bb789d79debfa2c78757103b69e43d1aac3d768d496017b8402ebc6e0b176be5aa6eecdb", - "0xad19e38fbc31a1f99e8ead1437016333ba9b15dffa43fe617d410fe82775f06fe5abd2d5f2118802914903d2c2301748", - "0x81cfea085de08a39ecb888831381c4e60d2ece13caa69a1da2ade95841311f0e6e958863fe834f8ac70e358f730a9dcd", - "0xa7b86e4f1366da44fd59a3ee68018a99c23ba3588789463bd88b0177a9b94030b58cb879a506e64421af966f261eaa86", - "0xb182d697922451befc875237db4a3b656dc36aabba71d4e6bf21d59608541352b077a92da04a91ec2345ef41d54dc201", - "0x8a98cc2fd044f6749775001dc8209349547d19dc56e1da2e4de1c953e7e36f15740cdbb5e8c6e4238bf216c1f7f9f02b", - "0x912bcfe28f56098d7f75f90fa419232787905e1a26170f274d2cfeac25636a21081b07065a7f515188233575cd85cb4a", - "0x86be44888e8208c167097d7d535c04090eaaa61472b4c6b2d5899d7eda8d3f804ae1708c0653d47e965897038d4e13d7", - "0x8f7e58a9ae0cd9d52bbfdecc11347a78e12af25fdbc7487e9be206c11257f19befdeef47be0a7d7d1486b9bb5ad8499e", - "0x875133b542cd93b7ca5c236a14dec59d2e2fadcdf7673f09fcbb2282ec50b81410de244229701501d2a33802f751b458", - "0x978299430079ea9a0868eb1289ea175e133e9f604129d56b1b1d0f768930bc4c64db921e08f352bfe6ad2296123e6ba7", - "0x9337558dde89640d62984bb0fc12ea5f934c2258d4ce06b187364b9a646bb90966851dacf3be0156b2956cf46d4d8d27", - "0x99daf03fa434a482d9aa4d090884c99b7208c1f5380b9acbf304e1bc33d3d6902afa5d248d20ccf03795e26901356ede", - "0xa59a20a570769bd011a64917c77a134b7a741a202e3f08123354d1c2dfa8577d00b29dcb75ba65b983a9b628e887ea24", - "0x91066bac5341cead3d2cb168fde7da62b3dcf933ff5c1d379a4dd424b218c4e2ebcce038cc342e758795ecd4dbb8b790", - "0xab2053c376c6bd113b89fdb2ae3b8401aa891135345885730c61cac7813f69ea7d906c531be752e28657f73af92d1f4e", - "0xa5fe3dfb5031517bb8db0d5ade1e9f438e84bcf23221de003b03d2a2f4ea97629e81c79abc3769bdb8c69a512c189b91", - "0xb9691fb57be7aeb9d43995b8022051f199978d6ad635e1623a1bc1754b250fb8a94985cdc1e623e98767690a417e92a0", - "0xae78b7743d919518bc674f3deac5ea3d0ab05ff0a5494417f5fa91b19413bad5d669fda2f5e630e360d42e2c49597796", - "0x971882d02ad64729cc87251b49effc0b8db9880c25083bfa0ff34e7394e691288c7cefbb5cfdc76d6677ffb9da765dba", - "0xae96dc808c316a677977831bad1e529ef965dadb5d6aea25ab008fe7bb1543e596e33052cfbe4279fa060201199d2c34", - "0xafdc091a224486e7bfac169e6a7b4e008d2d04144508a337fd93b6f4d385ee3f0d927b1f5c1cd79a15e0fd6078e45dd4", - "0xab6366a7c6da8ca8ea43a3479e50ecf9a1f3b20ec01b8eae1d2a21ba2223a4ce62615836377c6395580a079c284947d3", - "0xa222ec6b756b0533dce7e903c24a69b3d48db0d1e93c4c41a882461b8939b9cc90645745d89fa0873739f812dd3b2cb3", - "0xb0d4231814e40e53ab4eed8333d418a6e2e4bd3910148b610dec5f91961df1ad63f4661d533137a503d809ea1ad576fa", - "0xa3e91428c65209d182cc6b95b6d6ab6ed9d6ee915a992760e29a0c99c19b2caeefdfb87803d0f675c5c5362ca367a4ab", - "0xa4bf094dcd71e1a8dccca76dc7887476154e673551f25b0ca90d6dac8b3b3a2241bc601afeeb1564bde0432db1972999", - "0x8a7b3516e5e10cfb6f5d3882464ca4d5e3437ed70a65f60b3bc586e49ec9ffab1c61dd23ab03ad7806353066a816be61", - "0x94ffda31c9e7cca085dd988092d72e5ae78befbb14a85179fac7bcd6e89628a8f70f586c1fedd81be34d8577a0f66fd7", - "0xab01a7b13c967620d98de736b8ff23d856daa26d5cd8576993ee02a5d694332c0464ed018ebffcd5c71bab5cada850ce", - "0x8eafbb7002f5bc4cea23e7b1ba1ec10558de447c7b3e209b77f4df7b042804a07bb27c85d76aea591fa5693542c070de", - "0x80e44d3577f12cabaed7074feeb57162ff80b61f86cce8f41d1d1250bc455070b09f6ea9d0c263b7b4824701480f4c14", - "0x91babaea18cf8f1e56feb0b89f0a3956c6469bb963d63312431057093b0ea0240a36abc3b7ac160e644e826cceb62530", - "0xa9b0a06469c7746a0a23c459a2fe75dd474e2cb1e9806afe872febf054e6f13c2c183761ccb890c6bb4d87abe597de1e", - "0xafbb939073c28492a46f8028a010297e395c7449fd8a1e24322e605c1db6cda1581f2810cdb45c273189084b82e74b22", - "0x860c0eaee51b7de26e99033f352aa09c093943b59237f1313ecc35b0d711509bbe9f939c4bd646deb7de8103eea9ea13", - "0xa333abf3cfa6b46599e210f7ae33cb6bd378ffa4e11fb5bf9d2cdc2787cc34e6e088e010321c193ce46495009e88b780", - "0x820f164a16c02e136911dadbc61b9f6859a7c53d0ea17b8f64b783f7f2f4f549775d3f16e21634dc6d54aef8d56517b2", - "0x897d7a19b70dcef1af006df3365981d73068c81f18017f32fb9966599481496efd5f6caceef943b31c52750c46d9590d", - "0x95cf2e038c790ce7a2960add7ab44804375f04ec6829f8cc63793dfe9fc48c7471079f81b932726509394fd3d46a52e9", - "0xa8b742cb7f497adfb99bdc6bcaf7f4bdadded2a6d5958680406b3b00545e1812d78e03e20be42b471b1daba84587d574", - "0xa3969926aa2e52f1a48ac53074b764648b4c71bd43430944679628463cd68398f700d874c14503b53756be451c8ba284", - "0x85c9217b6f7b8baffda06ffead7174ab9d1d9ec4b10b78d99e742835796a522d6e2b5ddc5c7282757dd896c76698eafb", - "0x952ae6ce5beb7900cc492b255c44faa7810d70d9490af794f52d0f03f3dbd54fb9a7b940f07f5e6d4dc61dba708c7fc9", - "0xa92dfa798798ba9e92f9886bfeb6d659b11ddc1228c3e4b8dd804bffa089d648173dc286846679df30acb4b5b5f4fd11", - "0x871e70f0446749e5d48d0c113a27e2e2a13e88e703764dfbdc2bd31e921e6a549c54afab53968ec3d856c5e4e6d029fb", - "0xaf861bb21f84c3e7cab55370839d18ac24c475a9e833607fcd7e65c773ee9d64bea203ee9e8fd9d337f1cd28d5ca0d90", - "0xb5d7e0f09806db08f6b1eb31ec543670475f46bb08df0781e7fe39e7cd4d5b0c442783a9a2d56da767c9685e27112a54", - "0x93fda62b785757b465e6f396f74674d5b95a08c938cf694e66beed7d2f317a4c9d736cb54d7c221d61e8cb3d64dca3ab", - "0x8cc453954fb40a01929d529edca1cecdd162f1c7bf0bba99ff85e2b309cf46a04fcc817eb9c4837927f95b54d2aa816c", - "0xa698b04227e8593a6fed6a1f6f6d1eafe186b9e73f87e42e7997f264d97225165c3f76e929a3c562ec93ee2babe953ed", - "0x8eebee05702bf1574b12597b72a86d5badef064879fa9d1b9aff5ab75e5c71d81d8bc404f2614085855d6ed87f581238", - "0x97578474be98726192cb0eac3cb9195a54c7315e9c619d5c44c56b3f98671636c383416f73605d4ea7ca9fbeff8dd699", - "0x8302ad0f2234535b55b975c5dd752c8a555d278b85b9e04e83b1db3bb2ae06f082f134d55216b5cacbf80444e1d0af84", - "0xac66f3a7041586ac1576e33598f01921e16d99afbf4249c3350f0ee1654de98bd37a61c243eb6a18a942db529e36af0d", - "0xb0ed68167a67490bd7d7d49e83341606d6e6fdd99b82e46747c2190d270719f81c5f5f8733646c246260f438a695aa3a", - "0xb28df3e04bde4ec373171401dbd0546f4cb6fa8e9a4a8019aadc653d4e05e0b5b9a64417715dd87f6df9e7b3145f6659", - "0x917c4fd52538d34c26ccdd816e54ebea09517712aa74cec68a2e3d759c6a69b5ccb4089ad1e0b988e916b2ce9f5c8918", - "0xa60c4db2f208cda284b2a2def60024f3d88873191a88f6b71cea186a79c8c2af4e84692f619b17d9dc2f5f3dd20c7e35", - "0xb5f32034d0f66bcbccefe2a177a60f31132d98c0899aa1ffff5ebf807546ff3104103077b1435fa6587bfe3e67ac0266", - "0x8804338968d999be8bc1466b29a928a7a52dad4e8332599d38879c0d7d202c248ebde96fab8b00efaf196c67263bb481", - "0x88ad79a0320a896415e15b827a89969b4590d4dfa269b662bdc8f4633618f67b249f7e35a35884b131772d08025bfc32", - "0xab26861b907d0ea03ab1888555d5d6786d7231b8e4b60f8d6545b48220e65248576f11878efb2e87d7e04fc482f72e3d", - "0xb8a6c999068c13fb71a99d75eabadf7edd2d32e28607baf001a0aeec412fdd3575602c68d3feb4d743b90396705e37f3", - "0x8f44c43b80a3c5f488118859fab054745cfe5b0824821944b82fcf870fda6d93489ea9ca4220c24db2f4ad09c6080cb7", - "0xb455f751232de0a48440d09983f4f4718b6169907979c9f282acf7177ab5b1f338fe1f2acd8d0bee4b4aad61d0340839", - "0xa80ac2a197002879ef4db6e2b1e1b9c239e4f6c0f0abf1cc9b9b7bf3da7e078a21893c01eaaab236a7e8618ac146b4a6", - "0x8cd9d7e953c7ae07ee785d68a999e702565960d376692d9ea468556ad141229b1f3bc97926818c078901f73ecc578e93", - "0xabed4c86ffc31393f53cc0880ded0c2865df897a56a98a5ab04736623957bf489fb174d9dd8cfcae17c2abc2a77d6914", - "0xac7983d50ec447b65e62ed38054d8e8242c31b40030f630098ce0a4e93536da9179c3f3ae0b34a0b02aad427a97ee60d", - "0x8bdb7d92915d1019732a095d962b0ca56bdd15ba22611170ed44c880ea0170cd2bff0dff388a1fed467a92fd756aa5ee", - "0x815922ad356f490910e8cc3b0f7d3934b5e28c09711b5151ae8329876670f3de6d7a3a298fd97b580ac8f693305afb21", - "0xa3615114600b4e805a45a04b16aa53c2ca5d8a39fe6efb3d359d8436583cb94719be750ee2fb4bb29823b4f2184258c2", - "0x95614544f65808f096c8297d7cf45b274fc9b2b1bd63f8c3a95d84393f1d0784d18cacb59a7ddd2caf2764b675fba272", - "0x90f4476224b64c2a5333198a4300ece8b3a59ae315469b23fd98dadcdceaaf38642d2076e9cd0bfacc515306f807819f", - "0xb4790910e2cbef848448f24f63e9dd4a1b122cf65feecf152d5fde282ad6fcc6ea3f9cc23178baf85612020795e4b13a", - "0x831d72bcd210b8ba3cf93029473ac297f0bac9eded0d873e4b9990973434f9132584a66edaf651512235fb1875370ca5", - "0xa32a5bd9b7bec31dd138c44d8365186b9323afbba359550414a01e1cdb529426bfa0b6f7daaf3536e9402821faa80003", - "0xb77416ea9a6b819e63ae427057d5741788bd6301b02d180083c7aa662200f5ebed14a486efae63c3de81572fe0d92a9c", - "0xb2574396e4360c971ebd71aa7e50d1683bd899fb1f404497c2a97129ea9d7e0a2642dfa8e0bd232ffb6ca443dd7a9683", - "0xa48b1031ca2f5a5acb4dbdd0e9a2b4e9add5ccfc0b17d94818273c8df11e825193fade364e0aec10f1ff91d57d03a52f", - "0x8658a15df961c25648fd444bdf48a8f7bb382d9212c0c65d56bf9cdb61aab3bd86604c687fb682260dbc0ad2dc84bf01", - "0x8c016e86b7aa752edd697c022116713d6a6b61538c7e46f4d76c99c29313615ec18cd21f48d99d495db3d9ed09fe946d", - "0x9604da21e23c994a0a875ad5e0d279c79210f7a7de5c9699fac4aebbd76d39b703eeec5dd5efc9ad6b9dc58936089ddc", - "0xa54e104339286d3ce8271828fbac20f6cf7afd3b72d9b194b7cbaf65f6612416117be492bf4aa88faf6ada56cf4b6462", - "0xa020404547407be6d42856780a1b9cf46b5bc48122902880909bdcf45b204c083f3b03447c6e90d97fd241975566e9bf", - "0x86b1cdd26ea9a3ae04d31a0b34aa3edc9e8d038437152214d195381173e79e4ccf7f8f0ce9801086724a1c927c20e4c8", - "0xb576c49c2a7b7c3445bbf9ba8eac10e685cc3760d6819de43b7d1e20769772bcab9f557df96f28fd24409ac8c84d05c4", - "0x98eccc5eeacef24188409d380b772cd5c72f376c461032cf2852fb8ce2afb37567c059e5b004395ebb5d97fd31028407", - "0x8a978ee4be90254fd7003ee1e76e5257462cbb14a64dbca0b32cea078908d7da47588a40ffeb42af11a83a304608c0f7", - "0xb6652440bd01316523feefceb460158cd9ba268dd8dbe860a0271f0176230f057767597e4197885ba907318ca202ba06", - "0x8027bc62b59f9f15613e38da74ccc71fc3eaee26f096d187c613068195ce6eb64176013f2d86b00c4b0b6a7c11b9a9e5", - "0x930f71b09a368b8643583bba5181e0074b1ad465f9bc4cf37e222b940412b4e09e1f2172226fc5a6fcd6d50cbc9625e8", - "0xb67146b202afec0132ac0070c005cf664081e860339f8f4d45ac3e630dda05560936e646673e652d08cecd8d18fc64da", - "0xb0a4c136fb93594913ffcebba98ee1cdf7bc60ad175af0bc2fb1afe7314524bbb85f620dd101e9af765588b7b4bf51d0", - "0xadbc658d54f46fc805767257f5e87d013112f0c6335605e9e763cd4745a1271b0e0b83902d5aaea6f8b46485d2e82042", - "0xaa5312e04adcb3b3d2264ecc9571ce861da7668fe7cd43dabd7ba9e7194a4d5fa7c8d4db3d25c4dac4a1d4f419959186", - "0x836075979eaf386ff6cb459cfd48fed171ae812b0ac3b38dc24dd8ca905cac1c600be717d4a0defa0a854f40cfaf8c33", - "0x87ae7d29e5e2f0ad0fb347c2977b256d70861f505edae4adff37e07552d55fe87e9c240d82b96e114517ee4d9f178737", - "0x95fa868db7592c5fb651d5d9971fc4e354dff969d6b05085f5d01fb4da1abb420ecad5ecb0e886e0ced1c9de8f3d5cfe", - "0xb3b7af9258af054362d461a74fcfeb6dcf3a37b6e33b6df32f8317d50d8be8e1970818a6e41c8232b89e1c8f964c6c1d", - "0xa4c665a3e4e25a7af51e433c978573841bfa2c75c075e17dd1f43b2f0369249f3d3a46ff51051e8ce7da528b0fa98d16", - "0xadc806dfa5fbf8ce659aab56fe6cfe0b9162ddd5874b6dcf6d658bd2a626379baeb7df80d765846fa16ad6aad0320540", - "0xaace45334070c51cc8b3579598d4cd8cda2153bba51f56e3b1fe5e135c83ef70503c322756b9cad9d3cd28f1ecfc8227", - "0x9427579975e81128057097972bedda9f0240c97233631a23c50ce1a007c0d0d5898deb0daccf4e1518dfb9abba81bf71", - "0x980d3c8ee365a5393fba1a90bf4e1b9c8558cfb51fccbe25837b06e44f5fc80ec90b9b14266098c7ddeed3d4e20a7581", - "0x98d6d46f603afebcbc561c130e416d5a588a7e6c1f17f89ed6e30538b7f8dbf4b3c75b8a3331425c4ca21e03fe8b57f3", - "0xb4aa92a60de61ad089cb027ef19a211c720ec0e51743b1166e3d71bac08a9ffff2f0687e250c6a7e1db866f7c4ae8f29", - "0xb87a03970caa520f0026a0320c6c687dd50c22a7a59cca13275852c3c78e77f3c381ba23fc92d36b262c6e8544f7c8dd", - "0xad287ead156048967ee1f166f023defcd756681f7fcb24d4eb643a2e2f17a102392fc5f60fb4027805ab1631084cdcc2", - "0x8ed7790f87f6975e0f3e501901b0bec1778c88bf39588989014c5dda76c2163732e7e5703c9cb2c1a6144ffdac5dcbab", - "0x80bdb82b7d583bf1e41653966b0ba3b4fec0e7df2ff08e3fa06fd9064bca0364263e075e1582741a5243bde786c9c32e", - "0x9467b7d5d90b8653b8a2f248f30475856e28407dd3fbc4e1a84445a8f2da5e181796e1cc5c293aab60a6f8a8aba1f4e3", - "0xaa24c5f9572e24e9b209ff761382e263047eba12532b9fdf7372d33e2f232c1a5916dc8217929dbf0118a9045596f79a", - "0x8d47a7c2c62b459b91e8f67e9841b34a282ceb11e2c4b0549883b627c8526d9e0ebd7333ba70630bc0ec2478114b6ae8", - "0x93042dd42e56671155bb40d85d9d56f42caf27bd965c6a7a7948b39089dba8487d4d5fd30522dba6ba392964e3ffd590", - "0x8862887763e3d310e6cab9bfedc8004098287bc96a116db16373002eb34484c166d8fe87e1a76783eb68e1e27508870b", - "0xa38c974b57da968f0c4611f5d85d8014fd48594c8cd763ef2f721cfd2c738e828d41ff029e3591d7447e3125641db8ef", - "0x8bfd6a173a56b73480cc950ef266a18933ecafc86915a7453ded09efd8a0cf4466101f1373f05d48eae3e7fc5c0f7f54", - "0xa927cd0d253d91d7d3de7b0a70a3d307596c6e019dee8e5dde03c3e182460b5677f6f17c82f5e3eff38cb6d0006242ab", - "0x8effe3fb27c9f76bbd78687b743b52e6f3330eddc81bc9006ca81fd640f149d73630af578694f4530833c2151522dcc1", - "0x86c53fc078846c3d9bc47682506f8285ba4551475921fd388b96291741970c34b8de4210202e40d2de4acb6e2892072b", - "0x8962afddcb1a26cc8ccd3c993109e79a4dd747ca473b8b5ef93d9c2e71d29623b834ac945074acf118248e3ae7878a6c", - "0x907054244ae66504bdf29bd5bd0389d20687264d19d4b36272ef7762c00c1ef7a32e2c5ed04a2cc5f2403ecaca764f20", - "0xb3acfe8f25eb5153b880a03e07760f7fa30beca475843581b4878ac0412cd2038117f25a48c152e6d60ec16e4b1e9a45", - "0xad8e8e3b82f5b8c1a39efe704b0d1eddb6e2275a990aaccad0c509f3109e42ac49aeea6c2f6da02d2d0af6cfbe5598bc", - "0x845982c2672fdd44b33d2e56ad676e704c02f756b09e8765bea42b924c14724484567b55f0db42ac20cb70a7f5201c14", - "0x845a4a09941f48677e6c03699770f9a56ba72695089e432a6f232294dd8da6d34e394116a9a87f3b0902c78332af9439", - "0x8be8d356bbf35ccd5980848662b5d6361eef583b535da90cef6c07904ccfb5963aaa230ac30ad63441f60e807434497f", - "0x991a7c93f06d50ec6a4340c6751b73eb5825bad02a954e44e1e2d424af928819ebbb590c6129ce35b3f1e908e2152f33", - "0xa910ab63aef54d8da04a839995ef38893d2cf884539ec81f97b8a4dde1061a27f6d3fe41186d1b7af872c12d44f36397", - "0x82d2b1053f6610064f838b3aeec585878f86323cac357c4aed054d87595c7734729a737b29b57940884ee839e984d612", - "0xb659c05488f778fca3c918505d2d849c667471af03369ad9fa29e37bac4cc9caa18e749c62fcff22856945a74ef51356", - "0xa41cf5d678a007044005d62f5368b55958b733e3fdde302ba699842b1c4ecc000036eda22174a8e0c6d3e7ef93663659", - "0xb96e3ff8bdae47aa13067c29318b1e96a7fe3941869c17ce6662183b7b064bf261e1cea03e2a4643c993728a2606b5b5", - "0xae89e41d8cfbf26057a4078f8a5146978e658801b08814190cbce017d79beaeb71558231a72bde726fa592fb0828c01c", - "0xb30faf88fe203495aa268503bc82576f76a27f8bc8c4125b4c6f6e5e7b6880d495481cc9454713e0833317fa07da9b5f", - "0x8910f41db6952c25dfbf6b6b5ba252a2d999c51537d35a0d86b7688bb54dcb6f11eb755a5dce366113dfb2f6b56802b7", - "0xa6d9f67ca319ea9de50c3fed513269b83fa067977adfd1e9d9ee07ad61b2ac1de64a39d7b6897ab55870cf982fe481dd", - "0xa6d6ef51a361df2e8f1d993980e4df93dbbb32248a8608e3e2b724093936f013edabb2e3374842b7cce9630e57c7e4dd", - "0x8f4eba540bae99599ec8d23102894362bfb72533d8ce415901576346345d16ce4fbc5abc68f9d16251d5121431774d25", - "0x824fde65f1ff4f1f83207d0045137070e0facc8e70070422369a3b72bbf486a9387375c5ef33f4cb6c658a04c3f2bd7e", - "0xb1a3e6baed1cc37b9a67f38648f4fe365d23fb982027ab4202c3392d5459d7995264c2e9bb8e821a3e75e71390b6dc7c", - "0x8d797819318cdf7b26405d1a327d80d4c289e56f830b28d4e303bcb019aeb0b3d69bfed58adcde8a2445dd5281b86af1", - "0xb4bf70468eff528bf8815a8d07080a7e98d1b03da1b499573e0dbbd9846408654535657062e7a87a54773d5493fc5079", - "0x8acf2c566ab7a822dbfc1e535443cd1b634d0048829cf1a77421a26997ae062cd34de318ffa543528646d7732d4d5b7b", - "0xaf49306611cc619a146b04fb3b8f2a9aeab1194cc9631c04e45e37fda35cc2676ff5f29f07b492574ad7d53627132908", - "0xad83b3c5e9a08161950b1df9261d332dda2602cc68e0f5ee75bfa7e03bbef9edfb4945ca1f139df1bcb8affe8ae025da", - "0x9267c0e9c176eefab67362ddfcd423a3986b5301c9a7c1c8c0dab93fdb15e562d343a7a9884a0a3378818b1aa1e4091a", - "0x8175b420d8d4f052ae7f627490d2255c1481085ac9eecadbb49e00d828d6f93a98afa9695a30e60f35933c75920b3748", - "0x8dca376df4847cb8fc2e54a31894c820860c30b5e123b76670a37435e950f53312f089a8e9bd713f68f59fd1bf09202f", - "0xb49c45d9da4aaa64967c28f1fd77b7f709f5a331b58823eb1613856fd8f92635135981830a287e8dbda3a0e0fc481c5b", - "0xab1abf9cf630d6cbcac0c503df44603142ac81acd647784ae0e8fc97800ef04378bc9d7f2087f959ad4bbbeec65b8dfe", - "0xab88f81dc77f09a2b62078e7baf4b6c7503925a7a077bb30d72f4baeff8225039c5333242e325e824f7192d4d132b596", - "0xab9e752b54153015d503be81810be498089612b6b2f45dc197ce0b46681496001336eaeb4a12d8b878dff9eb7bc48fab", - "0x83460a65269134c7626506d8c446d8929ed704469875a3ac2342290f63639fec7a62d6fb75bf55e60a1a953e6f621e2d", - "0xa90cc5b9c4d84f36962d0d55d5bc123dbe5ec5f4fe7b6bf0d009028b3cf14e36c11bc5365391cb4ae548d5eb04fe371b", - "0x972cfaefda96f5edfe0614c01533b76153118712c1c02c505008204a5be2aa438675d97f43384199517b1c08c7c9fdb2", - "0x910fd030feb5538f538e5ba74b9bd017d889ed6d2a797be9c26d2be8caeba7a473006102de27e87755742ba34e445bca", - "0x8675d210e67eddb3cefeed200b9e205679d36d8dcad70f09e678d8d1b3eb1059d12542f3aca300f384504458a881dd60", - "0xb0a47515752c15e4dbeaf9ee27fab3b5c0db82f5c685e8f716fd7d8764164944340430fe3db1a5679e6ffea5a16dd919", - "0x8461c5b96d19b63b5872275f4ffc15e1749d2dbc9a7650cdd5a0f7c8ec64b0049c681ebaec1141e49f4dbe82a18f70b3", - "0x941c8962debd2756f92a6a0451a2bf7fbc01f32ed03d0823dffd4a61186628a4c3c7c482b18589ff65e4c449fa35c2a4", - "0xb1ca8fee56192611094ae865f5f7fcfed3f89303386e8fd93eace625217b51a2023d5b7adf7cdf070e85438cd73fd75f", - "0xa5b3da08aad945effdb645c797a0a8bfa828c9d658df2783a214597acebda3ffc07ee48d0ce1147d77540b557d9ada91", - "0xad8d94e46cc02a1c0ad27105e8f672ec15b8296051801f1918d0bd470625686e8e8a0abde8f6852b846ee8d9132b26bc", - "0x94f4720c194e7ea4232048b0af18b8a920fde7b82869e2abcc7e14a9906530be1ef61132884bb159df019e66d83a0315", - "0xac715c7b3d794860a61d9c7bd224a2b14a6023f696afa30345aad2ce0a6ea6dbc142f34af1ffe7f783542851a28e8ece", - "0xa10788831a0cb2c3d14d8bc214d92bee6e2a9e92c423d2974760d84a6872a9465d12b628f9bd8a6e777a7db6f509b3a0", - "0x8bb045e7482b7abe670d72eb2f7afe4207b5a3d488364ff7bb4266f8784ea41893553a4bf7d01e78c99ed9008e2c13bb", - "0xa42c46a7e617d78b12053d7783f0d175fd9103db06d0c6982b38893a20b72fd8ad8501eacb3d47be06fd7c3ad89a8159", - "0x92d00e64ed711951aeb852908aeb6fd379ea516872dd512384b1e773ef078e52e6d618beb202d437d2a46bcb78087f7a", - "0x880b99e77a6efb26c0a69583abb8e1e09a5307ac037962ddf752407cacaf8f46b5a67faf9126bdbcb9b75abf854f1c89", - "0xa2b27f2a3f133d4f8669ddf4fccb3bca9f1851c4ba9bb44fbda1d259c4d249801ce7bd26ba0ee2ad671e447c54651f39", - "0xab7eff4ef8696db334bce564bc273af0412bb4de547056326dff2037e1eca7abde039a51953948dd61d3d15925cd92f6", - "0xb07d7c3f1d486f5657d5935e3d67403024ffdcf25da5c460fdadc980d8d6b931de623c4f8a3da5eb6af346193eb36573", - "0xa3d8610c2522d330df02511710e52b1d9bdc9f2b156deca12b1bf754266caeac4f449ed965d9863558df43ce9ae65a44", - "0xb19ca6e55f349bbb2dc3e429520ff5b2e817972470794f35c1aac8c118b37a694cfcc875b6d72225343799825d2f5c39", - "0x8b3256d82701d887c382cd237ac4f5673518fce465936744348ed39b73ab9e070ee8a442341e84020e2ed623b113c9ae", - "0xae36ab11be96f8c8fcfd75382bb7f4727511596bc08c25814d22f2b894952489d08396b458f7884d6b3c0adb69856a6d", - "0xb0eecd04c8d09fd364f9ca724036995c16ba6830d6c13a480b30eb2118c66c019cfdc9dacce6bfd8215abe025733e43d", - "0xa802b9ffbd4f01b877791aba27da972be4bacacc64a1f45687be4af01b84bd4b83fe2ba1ea78e29d7683f6c777ab2543", - "0xa73b3c9d16f6c63659179b74b1aa5a0f4447c683ba38f9fc112efaccde4835e5b92c2f7041fa82cd90b2c4932704b9ac", - "0xa734a3c947be4c7e6704639d4400aec2ccf5f1af0901b41a29e336afb37c53bf168774939ce51f32d4496bce1a32e612", - "0xab671eb947490c43fd05e42a787344b21af89babb705393c82748eaa0cfcf80bee498d275a1eaf1d647ca3b2923d76ea", - "0x9276e8051bed8f5dbfc6b35765aac577dd9351d9d6ac1bb14496bd98091005b9a4737b213e347336413743f681f5043b", - "0xb930ecc2a26183240f8da107e80979b59da4e05f090316d982815ed6151d7750490b85273187ec4e07eb221813a4f279", - "0xa922d48a2a7da3540dd65bda3a8b5fb1f1741604e2335de285ac814c69c40b5373d92bc1babd3e4b2d32993f251c70b5", - "0xa9300a33927335f482dd0e44d0d57704ebeb278f732ae8301073cb7d5e457f02a0cb03268de71d284b8c23fb96947469", - "0x813bafdf6a64a9c40ef774e6c8cad52b19008f1207fc41bd10ad59c870fda8089299dd057fc6da34818e7a35b5a363e9", - "0x8528cf6ed82d9f729f9aee83c3ef763d85649d46019c4ca7dfb58d7824c2003f88ddb2bc5a40c4d78d86e68b675f4e56", - "0x9408bfab1e7ac8b8b888c623bc0438b3a3460aff12436d13888315f496fdb808e9dc00894f272f348ed6aa475f848c49", - "0x850f932ef35fd8693816d950e6209bc04ce26762cf6747d0aee03770e386fa0189790a8295414c0b27695b70988a3c5a", - "0xb6cacc458ca5a0f04836c5640d34c70cab34cb5c87df28579a0d5e2c72edbc092814bdbe902747ebe3ce36808d8f4dac", - "0x96b1c82b85cdb8a7026fd3431bea9cd008f0261ee7f4179f4e69a399872837ab836a14e2dd45f5448d54800a4ae7c7f2", - "0x9722c1079db7e2e1c49756288a02302b43b8fd92d5671585ac1ea7491123742a2744a526c12c9a0b4c4a80f26342a3a6", - "0x858b6f1bd3e68fc536bdf1f4bd96db032994eb76e71571e2d85af73b898478b82f9ab432732b0beebc0864ad8025ae33", - "0x824d0dc002e158adef06fc38d79b01553be5a3903566029cf0beddb2248b11da40e66feb168e8e3e2a63ea033a75f382", - "0x8a00780f008ac29b4942ded67224be5549cdce47d047c2ca6458af643332ef5e276a69cd38b8c50f8767c6e27d5f905d", - "0xb611e52def8da2a83989f5b8391fef61774b980ce82ee2fe0acdf24e4efb81f40b9c9abb0a2010e843101efc170f9832", - "0x86b3ec14a8ffb811a0ecc3771f600d8b08c098537d100fba66def19e7ee4d1c397a311977bf37e6cd2d47a8a2ee8c223", - "0x879bcbbeab235bdb1e3b1cd59b70cedba4772a616934d48195a01c38f745d61f3ab31e60538937e65450150e9314e481", - "0xb1f43b498cba1797f9793dc794a437500c3c44a8a4b59f9125a4d358afa304fc05b88ac31ed40b6eb68f0396b60cb7cd", - "0x91013e0d537fb085a49bf1aa3b727239b3e2c1d74c0f52050ff066982d23d5ee6104e70b533047b685e8b1529a0f14dc", - "0xa0e68d24f784fcb2b71acc2d5871285623c829d0e939146b145e04908b904468a67c07a2f156e6b17bf531adc5777c4b", - "0x91659e4ff45b9f2941cb41cd33553f29c4b65be9dc68d747467f2b5e39b9bec12dada05ec514255b4e9da31ac819d8d7", - "0x87c6cb9ca628d4081000bc6c71425b95570291eb32ef2cf62416bd1ce3666eb2ce54accd69f79d506cefbfe6feb5a1da", - "0xa778da56ddfe4a383816b43b027464d7a28689fc4a6b35b36883d3f36d9c41f0177bdbfc8f258afe8da90f02d3b64fea", - "0xb43fdb2ba9128fd24721209e958be7b9c84dca08387c982723f93ed4a272f933823ae084f1b1399ff6271e0da6f5aa3f", - "0x94bcfcf974e77d5683704888621ca6f29bda9c5913472f9aec2cae03cb4a3b4237f8648c2ff1c7ecd73627d7babf0062", - "0xa684a09add047c0fe648d9c5618500d1816047168e055e8ac8c952c3544a462cc095b32fab07d939947a58fcb4ec7ba7", - "0xb9b9b6113301bd2b409b71afa1ab9e31d22f84f8cb03badaa408e1d37032350094124e533de766622d7975a047fade6c", - "0xb075db32979df905cef986cfcd6db823ac21dd4013cecfe088885390ff8acd18d76dec793b80db5f7779426127daed7b", - "0x9330a8d49b52cc673adc284c5297f961c45ec7997ced2a397b2755290981104c8d50b2fea9a3036ac2b1c329feaf4c7f", - "0x92f0bf3257e775c5c469cd9a43249421c9fd223996aeda09654045b885a512e86bd834b2947aef216b4d9dd5f8f2e9aa", - "0x93947508e60df6a0bd8b3fa24a72ef783c9fde1c3d94de0101c75e0e73d8003d9beedfdf9f40375613180d77815950dd", - "0x885c3475185e7a857c789f148944fafddb5a118163d221e87d7126dd03ad8fd56f9be90c536ebd52c0a7a31b6ee40a4f", - "0x86bba46d0031989d0f1baccea4174fc3fa0d595e60d35a464e86c33c233e2d6def84fced7a00f59afe397cf4fb5b67c5", - "0xabe68d5cac6809960b97b09c8b834f6672a66211dbdfc6fba08342453eca026455f904ad215d07d438652e18d1d19cb6", - "0xb18c41c0f827f6d8656d3fb93c90b663eb2eac034923972f8842cb30e96c32842b3fbc1127930e1ba4322d5b6641f04d", - "0x870286c76b360f9dd862e7900e9af235d4ade37c0970b88a23b56e27307b8bb2a4ffa4c19176581d39faa7d87711ff6b", - "0x80e09f3bf3ea87d48e04b53d8f3b43b7e53d61f445f8c8a5a35472b84f6bb4f58f17d9832f5881bb44fc06156151e5c5", - "0x93be3d4363659fb6fbf3e4c91ac25524f486450a3937bc210c2043773131f81018dbc042f40be623192fbdd174369be2", - "0xa6565a060dc98e2bfab26b59aff2e494777654015c3292653ecdcefbeeebd2ce9091a4f3d1da10f0a4061f81d721f6ec", - "0xa70a5be6546e4f745aeca090061792584915c6a075bbca14c3eb34d0fc2a7b7169b20199be10b242fd0d7923aa70e71f", - "0xac754a42f279472760bd36dd0cf36f5ec685e7fc2970c275811a70cd05843f94fe21745dddbd54135144edf1793aa0cc", - "0xaa0b0ef6abddbb4931fea8c194e50b47ff27ea8a290b5ef11227a6b15ae5eda11c4ab8c4f816d8929b8e7b13b0b96030", - "0x942a12ba2f7b8708afb97e8ecba8f4ce66df1f862ceb86b3452f9b80eff581ee729f0f3122c6234075c6970270e2c367", - "0xa79ef16ee66514c2a4f34605a624dbb40d446f2637f943a4acdf0154c162fa12b30e151f03fb1a1cf100052186f94ce8", - "0x895acb28f67f5b579ce0ebd9a7ef27aacef364f8e3ddd3f50f7bd7524fde35baccac627d5f43e51bbebbc72e26a07e41", - "0xb0526c028e1c9a945e340d05087ff0e4b0e465a99369d3fdb8b929e79d02fa34f316741a1610076d33212ba7d357d4b1", - "0x8f2895cb8c77c498fd4fc0b572115c859168fede213379aa8fa6914f3b1ae2d369a14743e277249611995296de206751", - "0xb77cdf45f39bf85ab3e8c8afa602f159de8352188aba5378957d468315a2d2326daef83d8ac6b227f1e7a514488afbc6", - "0xa9fdc2209bbf48970a404de3d803c65b11be96ab5a165183d05ed6477b3a0c633c3d6f0cb8eefb430fddb5b5be8cf887", - "0xa26dd9b28564c3d95679aca03e3432ac26e287f80e870714c5946b05538b3cb43bba7b85c16bceb5430e81b7a04c1b1d", - "0x95370f2c7c8c14976e5380b300451eee0dbce987b68ed96f2d13f2340f4e4e4cfac52987377b20e4e6cddf58c7975606", - "0xb5222582ed6604b9856a48039bd643340f4bf1bf0fc805e8453a9eb7630d6cea1452d28536706d6fa3ec16617617991c", - "0x86ca8ed7c475d33455fae4242b05b1b3576e6ec05ac512ca7d3f9c8d44376e909c734c25cd0e33f0f6b4857d40452024", - "0x8d5776148c65e35d717da1902d74727b3bee21ceba8d337d77738932865f1b851e810b91346f705880da6cac63183717", - "0xa267ed144cdd3099c7c418ae92e8f4696704c2c9dcde5ffccc3118c21abe09e3a05e78b067430d4fcfca0f8b1ad0714e", - "0x998c9ee20d33f96a2388b1df642aa602bc8900ba335e8810baab17060c1eace4bc5203672c257b9ae750008b707b0aa1", - "0xa4f964d672fa5579479e939d2d5dad6a5dac6fca4bcbf7d5ebbe7489f3809131667b41c3472addfe766d83202ea29c1a", - "0x949cf015ce50e27cf5c2ff1b8e2e066679905ac91164e3423d3fb7e05c64429e77e432db0f549acb99f91fb134b6edad", - "0xad2aee9a61242235f0ef6adadd5d314b18e514083d6a589ca65cc89f505e44b480724d7659a87c95b03c62caba53f487", - "0xb586e67ae1826a1cdd651ac785e4b38f8a0e042f103a9b7dbb0035626d5dec3ded04a4e2cc09e63b4b01aebe304e40d7", - "0xb5eb31e5cba0193e74968099ace5808dfc457c6f404f270fdc4949b60daa7607ba1811abab1bb19fccdad61d489b6657", - "0x9793a74fa578ace75b083578277a1ae8766d41a5c508b0f1135fb97dff1d0826002393a7276b18cbc4b3c5671360ce0b", - "0x89681684a4f5a2e56a4acd37836c06cfe8613b0694d2258f8ccee67796e76f49dd9da349b1c23a36f9438097c1e6415e", - "0xa3ee8fd53158dad3b6d9757033abf2f3d1d78a4da4022643920c233711ff5378ac4a94eadcaf0416fdcca525391d0c64", - "0x980508c4d1e655cc6200f89a884b3a25c0c05708a3e4a101205c4fd901c3e20a943071a6300bb2614be41a139d4ef1df", - "0xb37a2ec9dec3d7d9cbc911fa1e5310a47d23a841d02c8b99a923991c73fc0185d130a494748c64f2b5a4c07bcd06920e", - "0xb40504588a8ee3e0da1b60a304b865ce77196dd506e32d532e22eac9acfd2d03d3106be7d65b5c935191815a301b0f27", - "0xabbe4d05e3781e11bec29f37876e0081147ae092f4061191444bbf744f327c9dc05b2ff66487942b64d6b3c099334644", - "0xa9a591fdd18aec8746435eeead0a54bb88e055f55e91ffdd9bc663ce0bc2937fb296034ebb959d6adcf9af94bbd2f49b", - "0x842ba3c847c99532bf3a9339380e84839326d39d404f9c2994821eaf265185c1ac87d3dc04a7f851df4961e540330323", - "0x987dd977d6b8d27c4065b61b3c078ec9ce3871fec02844ed00f5ad28c42f9cedecbe830ddd19e11a5c879b01eb0f8f80", - "0xb60df25a7ac1ad14aef7e8809c4bfc190b715f94f14b0534cc2e4015ff6c322883cbdc5309e05d67dca4bc641c69725a", - "0xa154892ff23b284040e623bba940a6a1ef1207b8b089fc699cb152b00bcce220464502cfa1dfb5a2f62e6f3960cdf349", - "0xa13bf1fc1826b61cceefcc941c5a4865cefdfa6c91e5223308fa6a0aa6e7b13a0499a63edf5d9fff48fdeae83e38dcbf", - "0x8295f613c162159f368340ca0fc2fd7776f7ad64eeafbd132bd3be1f1c30b5fbdc5f107f12fb0cff15b12c08621f457f", - "0x938dc1e182f19f40ba9a4eb5530407e58dac27a237b259fad4ff070c8abf98a0fb107db6017e1da25a855c8867e80bae", - "0x8d50e904d851a5d8e01d7902d8a67b978571705caa5e58db3037350906f96db7bb141354e29ed9a47ef5e59914dcbdc4", - "0x8fb74891a8642f25a55b5eda5818367aac2fdf9663ad1e3dbc0166b484c0cda581b243cc75131167f1afa9caaf6705a0", - "0x868c13bb6bec7d56afd4e518f2f02b857a58d224fbe698be0e00bc178c1858e6bf5f0f7824fa013d5c8dd6f6e4147974", - "0x902a533bdb93794d150e433084c4c8200555d96fe88f145c2cfaf16ba69cc534e86cc5a88f671851da7f6c11a02df6bc", - "0xa6e387cfc0e2f11eb72c7d94693a28d23250c45e4dfdbb2fa588519bc7afe60d454c6b545b1e97f2b1100f564fe0f220", - "0xb8038a6569c69c5aa70db534088fa304a44a76eac1cbebecf7bca07d7b6667063b0ca36d225687581dfba677122a3c5f", - "0x884c769ff3dabc132330e4a72ecf5331490ff08a59b7dd51cf2a9cf803a1a3dbff838f40451b243786661eb1630a60d0", - "0x820cc2ac3eed5bce7dc72df2aa3214e71690b91445d8bb1634c0488a671e3669028efbe1eae52f7132bde29b16a020b7", - "0x9195c1fce36bed493e27cd8ef8af8f22bb61658f99887fa871c95c21caa2579479eae5fa9c9262d235a237da26bc63aa", - "0x86edef59ab60ce98ae8d7a02e693970ca1cc6fa4372a59becc7ccca2a95e8f20a419899c8ccbb9c3e848f24178c15123", - "0xb3e313e79d905a3cc9cc8a86bd4dba7286fb641c2f93706adb3b932443e32eff2cbed695beeb26d93101c53d5f49d7db", - "0x8cc8d279ec08d0a5a2a09ad07fabb0122eb65f48da2571d83f86efa2c1c5bc51b04ae94b145f0a8ef19a3988638b9380", - "0x80e30cabe1b6b4c3454bc8632b9ba068a0bcfd20ce5b6d44c8b1e2e39cbe84792fd96c51cf45cf9855c847dc92ce9437", - "0xace596da3d8c878c8209ab965a1f6a5dd521ad468d0574c4ed74a5a15b9c6ba25fb622daab349daec0a1c4cdc731f502", - "0xa2db08cf00d7c15736c4ea83b0747eae36789910c58519ad10374d82a502ea289a844791a26ddfab30d0b5f16c63fadb", - "0xae2dbb2750d97e94ec0fc9da1c4096259d89429120e4da43e5a74fb3494778f457426428e73ab54f9e9ea939f8fdd3c5", - "0x8f7dbe5a57f7b0a45b7c9d87338b8ff67ce9977e2ec669f5502e77d1be30889a7976819c45c787b279b4dd96423b3715", - "0x99bd3fca280b3ad67f5b2d193de013287cade76d7414f4828ca6fa2506e6e8e9dab300207af0897b9db14608ae15fb02" - ], - "aggregate_pubkey": "0xafb6562affab421bc5fb76688d21020cfc8c76b8e0b0b091ae71bfad482e455c13c532ac5414de6f408c56ff1118e89c" - }, - "current_sync_committee_branch": [ - "0xb3903a9fb6c43cbdd5b42e93e8f26795ea452c4afcae1f7129747619080aca70", - "0x637e1423ab16cddf6e5f327241c6ca0722cf79f6cb81f118c3d8df4262d46483", - "0xba0467670d61ce2ccc4b0e86ed9096c18cc242cf70e1a662844f156316294827", - "0x6d5e978c26491177b95f0705037779716f39bf4c05c607e369918d335787abb3", - "0xbf315aa2bef815607065ba3456aa1d376f225fa7051e0fe7d9594d12f6ba56f7" - ], - "validators_root": "0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078", - "block_roots_root": "0xd285c201b20f41aa2491b8b6b91c0b621fbc224284a9e7a541cc631ef067b71c", - "block_roots_branch": [ - "0x1f6725e5060fe5a9ee5c8b98558fc3370ddac4c2337bd1290ab0acff7121da10", - "0xfec3517500fba1449fc98bd4e9622aa45e8b81776895e0a8d0fcec22862a2c57", - "0xce98f6d3b7f4ad1ecabf9442d34f1a09b1b2786a50e886cb6b5525272de6e9ca", - "0x8f415cac784fe5bfccfc90a4c459a96c9f5d2777f71b4c37dc90226279831616", - "0x9d443de8f0b598e5dc294d18896bf545636ec0f7d7d9362e015ef8ab54a5b019" - ] -} \ No newline at end of file diff --git a/control/preimage/src/relay_runtime.rs b/control/preimage/src/relay_runtime.rs index 05565b2c47..d33b4ff8d5 100644 --- a/control/preimage/src/relay_runtime.rs +++ b/control/preimage/src/relay_runtime.rs @@ -14,6 +14,6 @@ pub use westend_runtime::runtime_types::westend_runtime::RuntimeCall; pub use westend_runtime::*; #[cfg(feature = "paseo")] -pub use paseo_runtime::runtime::api::runtime_types::paseo_runtime::RuntimeCall; +pub use paseo_runtime::runtime_types::paseo_runtime::RuntimeCall; #[cfg(feature = "paseo")] -pub use paseo_runtime::runtime::api::*; +pub use paseo_runtime::*; diff --git a/control/runtimes/paseo/src/lib.rs b/control/runtimes/paseo/src/lib.rs index 027fdec613..122d66008a 100644 --- a/control/runtimes/paseo/src/lib.rs +++ b/control/runtimes/paseo/src/lib.rs @@ -1,3 +1,7 @@ -pub mod runtime; +#[subxt::subxt( + runtime_metadata_path = "polkadot-metadata.bin", + derive_for_all_types = "Clone" +)] +mod runtime {} pub use runtime::*; diff --git a/control/runtimes/paseo/src/runtime.rs b/control/runtimes/paseo/src/runtime.rs deleted file mode 100644 index aa2525cf53..0000000000 --- a/control/runtimes/paseo/src/runtime.rs +++ /dev/null @@ -1 +0,0 @@ -# [allow (dead_code , unused_imports , non_camel_case_types)] # [allow (clippy :: all)] # [allow (rustdoc :: broken_intra_doc_links)] pub mod api { # [allow (unused_imports)] mod root_mod { pub use super :: * ; } pub static PALLETS : [& str ; 60usize] = ["System" , "Scheduler" , "Preimage" , "Babe" , "Timestamp" , "Indices" , "Balances" , "TransactionPayment" , "Authorship" , "Staking" , "Offences" , "Historical" , "Session" , "Grandpa" , "AuthorityDiscovery" , "Treasury" , "ConvictionVoting" , "Referenda" , "Origins" , "Whitelist" , "Claims" , "Vesting" , "Utility" , "Proxy" , "Multisig" , "Bounties" , "ChildBounties" , "ElectionProviderMultiPhase" , "VoterList" , "NominationPools" , "FastUnstake" , "ParachainsOrigin" , "Configuration" , "ParasShared" , "ParaInclusion" , "ParaInherent" , "ParaScheduler" , "Paras" , "Initializer" , "Dmp" , "Hrmp" , "ParaSessionInfo" , "ParasDisputes" , "ParasSlashing" , "OnDemand" , "CoretimeAssignmentProvider" , "Registrar" , "Slots" , "Auctions" , "Crowdloan" , "Coretime" , "StateTrieMigration" , "XcmPallet" , "MessageQueue" , "AssetRate" , "Beefy" , "Mmr" , "BeefyMmrLeaf" , "ParaSudoWrapper" , "Sudo" ,] ; pub static RUNTIME_APIS : [& str ; 22usize] = ["Core" , "Metadata" , "BlockBuilder" , "NominationPoolsApi" , "StakingApi" , "TaggedTransactionQueue" , "OffchainWorkerApi" , "ParachainHost" , "BeefyApi" , "MmrApi" , "BeefyMmrApi" , "GrandpaApi" , "BabeApi" , "AuthorityDiscoveryApi" , "SessionKeys" , "AccountNonceApi" , "TransactionPaymentApi" , "TransactionPaymentCallApi" , "XcmPaymentApi" , "DryRunApi" , "LocationToAccountApi" , "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 :: paseo_runtime :: RuntimeEvent ; # [doc = r" The outer extrinsic enum."] pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; # [doc = r" The outer error enum representing the DispatchError's Module variant."] pub type Error = runtime_types :: paseo_runtime :: RuntimeError ; pub fn constants () -> ConstantsApi { ConstantsApi } pub fn storage () -> StorageApi { StorageApi } pub fn tx () -> TransactionApi { TransactionApi } pub fn apis () -> runtime_apis :: RuntimeApi { runtime_apis :: RuntimeApi } pub mod runtime_apis { use super :: root_mod ; use super :: runtime_types ; use :: subxt :: ext :: subxt_core :: ext :: codec :: Encode ; pub struct RuntimeApi ; impl RuntimeApi { pub fn core (& self) -> core :: Core { core :: Core } pub fn metadata (& self) -> metadata :: Metadata { metadata :: Metadata } pub fn block_builder (& self) -> block_builder :: BlockBuilder { block_builder :: BlockBuilder } 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 tagged_transaction_queue (& self) -> tagged_transaction_queue :: TaggedTransactionQueue { tagged_transaction_queue :: TaggedTransactionQueue } 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 beefy_mmr_api (& self) -> beefy_mmr_api :: BeefyMmrApi { beefy_mmr_api :: BeefyMmrApi } pub fn grandpa_api (& self) -> grandpa_api :: GrandpaApi { grandpa_api :: GrandpaApi } pub fn babe_api (& self) -> babe_api :: BabeApi { babe_api :: BabeApi } pub fn authority_discovery_api (& self) -> 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 transaction_payment_api (& self) -> transaction_payment_api :: TransactionPaymentApi { transaction_payment_api :: TransactionPaymentApi } pub fn transaction_payment_call_api (& self) -> transaction_payment_call_api :: TransactionPaymentCallApi { transaction_payment_call_api :: TransactionPaymentCallApi } pub fn xcm_payment_api (& self) -> xcm_payment_api :: XcmPaymentApi { xcm_payment_api :: XcmPaymentApi } pub fn dry_run_api (& self) -> dry_run_api :: DryRunApi { dry_run_api :: DryRunApi } pub fn location_to_account_api (& self) -> location_to_account_api :: LocationToAccountApi { location_to_account_api :: LocationToAccountApi } pub fn genesis_builder (& self) -> genesis_builder :: GenesisBuilder { genesis_builder :: GenesisBuilder } } pub mod core { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `Core` runtime api that every Substrate runtime needs to implement."] pub struct Core ; impl Core { # [doc = " Returns the version of the runtime."] pub fn version (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Version , types :: version :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Core" , "version" , types :: Version { } , [76u8 , 202u8 , 17u8 , 117u8 , 189u8 , 237u8 , 239u8 , 237u8 , 151u8 , 17u8 , 125u8 , 159u8 , 218u8 , 92u8 , 57u8 , 238u8 , 64u8 , 147u8 , 40u8 , 72u8 , 157u8 , 116u8 , 37u8 , 195u8 , 156u8 , 27u8 , 123u8 , 173u8 , 178u8 , 102u8 , 136u8 , 6u8 ,] ,) } # [doc = " Execute the given block."] pub fn execute_block (& self , block : types :: execute_block :: Block ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ExecuteBlock , types :: execute_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Core" , "execute_block" , types :: ExecuteBlock { block , } , [133u8 , 135u8 , 228u8 , 65u8 , 106u8 , 27u8 , 85u8 , 158u8 , 112u8 , 254u8 , 93u8 , 26u8 , 102u8 , 201u8 , 118u8 , 216u8 , 249u8 , 247u8 , 91u8 , 74u8 , 56u8 , 208u8 , 231u8 , 115u8 , 131u8 , 29u8 , 209u8 , 6u8 , 65u8 , 57u8 , 214u8 , 125u8 ,] ,) } # [doc = " Initialize a block with the given header and return the runtime executive mode."] pub fn initialize_block (& self , header : types :: initialize_block :: Header ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: InitializeBlock , types :: initialize_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Core" , "initialize_block" , types :: InitializeBlock { header , } , [132u8 , 169u8 , 113u8 , 112u8 , 80u8 , 139u8 , 113u8 , 35u8 , 41u8 , 81u8 , 36u8 , 35u8 , 37u8 , 202u8 , 29u8 , 207u8 , 205u8 , 229u8 , 145u8 , 7u8 , 133u8 , 94u8 , 25u8 , 108u8 , 233u8 , 86u8 , 234u8 , 29u8 , 236u8 , 57u8 , 56u8 , 186u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod version { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_version :: RuntimeVersion ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] 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 :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: paseo_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 , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExecuteBlock { pub block : execute_block :: Block , } pub mod initialize_block { use super :: runtime_types ; pub type Header = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_runtime :: ExtrinsicInclusionMode ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InitializeBlock { pub header : initialize_block :: Header , } } } pub mod metadata { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `Metadata` api trait that returns metadata for the runtime."] pub struct Metadata ; impl Metadata { # [doc = " Returns the metadata of a runtime."] pub fn metadata (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Metadata , types :: metadata :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Metadata" , "metadata" , types :: Metadata { } , [231u8 , 24u8 , 67u8 , 152u8 , 23u8 , 26u8 , 188u8 , 82u8 , 229u8 , 6u8 , 185u8 , 27u8 , 175u8 , 68u8 , 83u8 , 122u8 , 69u8 , 89u8 , 185u8 , 74u8 , 248u8 , 87u8 , 217u8 , 124u8 , 193u8 , 252u8 , 199u8 , 186u8 , 196u8 , 179u8 , 179u8 , 96u8 ,] ,) } # [doc = " Returns the metadata at a given version."] # [doc = ""] # [doc = " If the given `version` isn't supported, this will return `None`."] # [doc = " Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime."] pub fn metadata_at_version (& self , version : types :: metadata_at_version :: Version ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MetadataAtVersion , types :: metadata_at_version :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Metadata" , "metadata_at_version" , types :: MetadataAtVersion { version , } , [131u8 , 53u8 , 212u8 , 234u8 , 16u8 , 25u8 , 120u8 , 252u8 , 153u8 , 153u8 , 216u8 , 28u8 , 54u8 , 113u8 , 52u8 , 236u8 , 146u8 , 68u8 , 142u8 , 8u8 , 10u8 , 169u8 , 131u8 , 142u8 , 204u8 , 38u8 , 48u8 , 108u8 , 134u8 , 86u8 , 226u8 , 61u8 ,] ,) } # [doc = " Returns the supported metadata versions."] # [doc = ""] # [doc = " This can be used to call `metadata_at_version`."] pub fn metadata_versions (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MetadataVersions , types :: metadata_versions :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Metadata" , "metadata_versions" , types :: MetadataVersions { } , [23u8 , 144u8 , 137u8 , 91u8 , 188u8 , 39u8 , 231u8 , 208u8 , 252u8 , 218u8 , 224u8 , 176u8 , 77u8 , 32u8 , 130u8 , 212u8 , 223u8 , 76u8 , 100u8 , 190u8 , 82u8 , 94u8 , 190u8 , 8u8 , 82u8 , 244u8 , 225u8 , 179u8 , 85u8 , 176u8 , 56u8 , 16u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod metadata { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_core :: OpaqueMetadata ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Metadata { } pub mod metadata_at_version { use super :: runtime_types ; pub type Version = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_core :: OpaqueMetadata > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MetadataAtVersion { pub version : metadata_at_version :: Version , } pub mod metadata_versions { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MetadataVersions { } } } pub mod block_builder { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `BlockBuilder` api trait that provides the required functionality for building a block."] pub struct BlockBuilder ; impl BlockBuilder { # [doc = " Apply the given extrinsic."] # [doc = ""] # [doc = " Returns an inclusion outcome which specifies if this extrinsic is included in"] # [doc = " this block or not."] pub fn apply_extrinsic (& self , extrinsic : types :: apply_extrinsic :: Extrinsic ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ApplyExtrinsic , types :: apply_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "apply_extrinsic" , types :: ApplyExtrinsic { extrinsic , } , [72u8 , 54u8 , 139u8 , 3u8 , 118u8 , 136u8 , 65u8 , 47u8 , 6u8 , 105u8 , 125u8 , 223u8 , 160u8 , 29u8 , 103u8 , 74u8 , 79u8 , 149u8 , 48u8 , 90u8 , 237u8 , 2u8 , 97u8 , 201u8 , 123u8 , 34u8 , 167u8 , 37u8 , 187u8 , 35u8 , 176u8 , 97u8 ,] ,) } # [doc = " Finish the current block."] pub fn finalize_block (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: FinalizeBlock , types :: finalize_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "finalize_block" , types :: FinalizeBlock { } , [244u8 , 207u8 , 24u8 , 33u8 , 13u8 , 69u8 , 9u8 , 249u8 , 145u8 , 143u8 , 122u8 , 96u8 , 197u8 , 55u8 , 64u8 , 111u8 , 238u8 , 224u8 , 34u8 , 201u8 , 27u8 , 146u8 , 232u8 , 99u8 , 191u8 , 30u8 , 114u8 , 16u8 , 32u8 , 220u8 , 58u8 , 62u8 ,] ,) } # [doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : types :: inherent_extrinsics :: Inherent ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: InherentExtrinsics , types :: inherent_extrinsics :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "inherent_extrinsics" , types :: InherentExtrinsics { inherent , } , [254u8 , 110u8 , 245u8 , 201u8 , 250u8 , 192u8 , 27u8 , 228u8 , 151u8 , 213u8 , 166u8 , 89u8 , 94u8 , 81u8 , 189u8 , 234u8 , 64u8 , 18u8 , 245u8 , 80u8 , 29u8 , 18u8 , 140u8 , 129u8 , 113u8 , 236u8 , 135u8 , 55u8 , 79u8 , 159u8 , 175u8 , 183u8 ,] ,) } # [doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."] pub fn check_inherents (& self , block : types :: check_inherents :: Block , data : types :: check_inherents :: Data ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CheckInherents , types :: check_inherents :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "check_inherents" , types :: CheckInherents { block , data , } , [153u8 , 134u8 , 1u8 , 215u8 , 139u8 , 11u8 , 53u8 , 51u8 , 210u8 , 175u8 , 197u8 , 28u8 , 38u8 , 209u8 , 175u8 , 247u8 , 142u8 , 157u8 , 50u8 , 151u8 , 164u8 , 191u8 , 181u8 , 118u8 , 80u8 , 97u8 , 160u8 , 248u8 , 110u8 , 217u8 , 181u8 , 234u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod apply_extrinsic { use super :: runtime_types ; pub type Extrinsic = :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: paseo_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 , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; 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 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ApplyExtrinsic { pub extrinsic : apply_extrinsic :: Extrinsic , } pub mod finalize_block { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FinalizeBlock { } pub mod inherent_extrinsics { use super :: runtime_types ; pub type Inherent = runtime_types :: sp_inherents :: InherentData ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: paseo_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 , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InherentExtrinsics { pub inherent : inherent_extrinsics :: Inherent , } 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 :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: paseo_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 , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub type Data = runtime_types :: sp_inherents :: InherentData ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_inherents :: CheckInherentsResult ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckInherents { pub block : check_inherents :: Block , pub data : check_inherents :: Data , } } } 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PendingRewards , types :: pending_rewards :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PointsToBalance , types :: points_to_balance :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: BalanceToPoints , types :: balance_to_points :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns the pending slash for a given pool."] pub fn pool_pending_slash (& self , pool_id : types :: pool_pending_slash :: PoolId ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PoolPendingSlash , types :: pool_pending_slash :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NominationPoolsApi" , "pool_pending_slash" , types :: PoolPendingSlash { pool_id , } , [37u8 , 77u8 , 56u8 , 152u8 , 217u8 , 177u8 , 227u8 , 178u8 , 126u8 , 172u8 , 134u8 , 188u8 , 207u8 , 19u8 , 214u8 , 83u8 , 100u8 , 94u8 , 43u8 , 69u8 , 160u8 , 119u8 , 151u8 , 35u8 , 172u8 , 196u8 , 14u8 , 168u8 , 211u8 , 28u8 , 109u8 , 157u8 ,] ,) } # [doc = " Returns the pending slash for a given pool member."] pub fn member_pending_slash (& self , member : types :: member_pending_slash :: Member ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MemberPendingSlash , types :: member_pending_slash :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NominationPoolsApi" , "member_pending_slash" , types :: MemberPendingSlash { member , } , [212u8 , 255u8 , 251u8 , 213u8 , 63u8 , 227u8 , 178u8 , 33u8 , 214u8 , 164u8 , 36u8 , 218u8 , 249u8 , 2u8 , 152u8 , 138u8 , 145u8 , 245u8 , 25u8 , 127u8 , 5u8 , 218u8 , 60u8 , 180u8 , 254u8 , 157u8 , 101u8 , 99u8 , 107u8 , 158u8 , 7u8 , 221u8 ,] ,) } # [doc = " Returns true if the pool with `pool_id` needs migration."] # [doc = ""] # [doc = " This can happen when the `pallet-nomination-pools` has switched to using strategy"] # [doc = " [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool"] # [doc = " still has funds that were staked using the older strategy"] # [doc = " [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use"] # [doc = " [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake)"] # [doc = " to migrate the pool."] pub fn pool_needs_delegate_migration (& self , pool_id : types :: pool_needs_delegate_migration :: PoolId ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PoolNeedsDelegateMigration , types :: pool_needs_delegate_migration :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NominationPoolsApi" , "pool_needs_delegate_migration" , types :: PoolNeedsDelegateMigration { pool_id , } , [255u8 , 159u8 , 242u8 , 169u8 , 2u8 , 68u8 , 150u8 , 102u8 , 191u8 , 18u8 , 74u8 , 158u8 , 80u8 , 131u8 , 223u8 , 204u8 , 70u8 , 85u8 , 186u8 , 34u8 , 72u8 , 215u8 , 145u8 , 75u8 , 42u8 , 143u8 , 255u8 , 27u8 , 195u8 , 186u8 , 33u8 , 24u8 ,] ,) } # [doc = " Returns true if the delegated funds of the pool `member` needs migration."] # [doc = ""] # [doc = " Once a pool has successfully migrated to the strategy"] # [doc = " [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake), the funds of the"] # [doc = " member can be migrated from pool account to the member's account. Use"] # [doc = " [`migrate_delegation`](pallet_nomination_pools::Call::migrate_delegation)"] # [doc = " to migrate the funds of the pool member."] pub fn member_needs_delegate_migration (& self , member : types :: member_needs_delegate_migration :: Member ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MemberNeedsDelegateMigration , types :: member_needs_delegate_migration :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NominationPoolsApi" , "member_needs_delegate_migration" , types :: MemberNeedsDelegateMigration { member , } , [151u8 , 121u8 , 22u8 , 37u8 , 58u8 , 96u8 , 23u8 , 165u8 , 240u8 , 59u8 , 124u8 , 8u8 , 162u8 , 158u8 , 234u8 , 141u8 , 126u8 , 207u8 , 156u8 , 144u8 , 13u8 , 18u8 , 205u8 , 159u8 , 15u8 , 53u8 , 175u8 , 224u8 , 140u8 , 149u8 , 39u8 , 251u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod pending_rewards { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u128 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BalanceToPoints { pub pool_id : balance_to_points :: PoolId , pub new_funds : balance_to_points :: NewFunds , } pub mod pool_pending_slash { use super :: runtime_types ; pub type PoolId = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u128 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PoolPendingSlash { pub pool_id : pool_pending_slash :: PoolId , } pub mod member_pending_slash { use super :: runtime_types ; pub type Member = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u128 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MemberPendingSlash { pub member : member_pending_slash :: Member , } pub mod pool_needs_delegate_migration { use super :: runtime_types ; pub type PoolId = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: bool ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PoolNeedsDelegateMigration { pub pool_id : pool_needs_delegate_migration :: PoolId , } pub mod member_needs_delegate_migration { use super :: runtime_types ; pub type Member = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: bool ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MemberNeedsDelegateMigration { pub member : member_needs_delegate_migration :: Member , } } } 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: NominationsQuota , types :: nominations_quota :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 `account` 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ErasStakersPageCount , types :: eras_stakers_page_count :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns true if validator `account` has pages to be claimed for the given era."] pub fn pending_rewards (& self , era : types :: pending_rewards :: Era , account : types :: pending_rewards :: Account ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PendingRewards , types :: pending_rewards :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("StakingApi" , "pending_rewards" , types :: PendingRewards { era , account , } , [9u8 , 202u8 , 34u8 , 64u8 , 45u8 , 198u8 , 238u8 , 176u8 , 129u8 , 192u8 , 251u8 , 228u8 , 16u8 , 247u8 , 203u8 , 76u8 , 223u8 , 187u8 , 172u8 , 25u8 , 3u8 , 160u8 , 249u8 , 74u8 , 4u8 , 251u8 , 119u8 , 170u8 , 106u8 , 42u8 , 105u8 , 143u8 ,] ,) } } 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 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NominationsQuota { pub balance : nominations_quota :: Balance , } pub mod eras_stakers_page_count { use super :: runtime_types ; pub type Era = :: core :: primitive :: u32 ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u32 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ErasStakersPageCount { pub era : eras_stakers_page_count :: Era , pub account : eras_stakers_page_count :: Account , } pub mod pending_rewards { use super :: runtime_types ; pub type Era = :: core :: primitive :: u32 ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: bool ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PendingRewards { pub era : pending_rewards :: Era , pub account : pending_rewards :: Account , } } } pub mod tagged_transaction_queue { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `TaggedTransactionQueue` api trait for interfering with the transaction queue."] pub struct TaggedTransactionQueue ; impl TaggedTransactionQueue { # [doc = " Validate the transaction."] # [doc = ""] # [doc = " This method is invoked by the transaction pool to learn details about given transaction."] # [doc = " The implementation should make sure to verify the correctness of the transaction"] # [doc = " against current state. The given `block_hash` corresponds to the hash of the block"] # [doc = " that is used as current state."] # [doc = ""] # [doc = " Note that this call may be performed by the pool multiple times and transactions"] # [doc = " might be verified in any possible order."] pub fn validate_transaction (& self , source : types :: validate_transaction :: Source , tx : types :: validate_transaction :: Tx , block_hash : types :: validate_transaction :: BlockHash ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ValidateTransaction , types :: validate_transaction :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TaggedTransactionQueue" , "validate_transaction" , types :: ValidateTransaction { source , tx , block_hash , } , [196u8 , 50u8 , 90u8 , 49u8 , 109u8 , 251u8 , 200u8 , 35u8 , 23u8 , 150u8 , 140u8 , 143u8 , 232u8 , 164u8 , 133u8 , 89u8 , 32u8 , 240u8 , 115u8 , 39u8 , 95u8 , 70u8 , 162u8 , 76u8 , 122u8 , 73u8 , 151u8 , 144u8 , 234u8 , 120u8 , 100u8 , 29u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod validate_transaction { use super :: runtime_types ; pub type Source = runtime_types :: sp_runtime :: transaction_validity :: TransactionSource ; pub type Tx = :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: paseo_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 , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub type BlockHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: sp_runtime :: transaction_validity :: ValidTransaction , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidateTransaction { pub source : validate_transaction :: Source , pub tx : validate_transaction :: Tx , pub block_hash : validate_transaction :: BlockHash , } } } pub mod offchain_worker_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " The offchain worker api."] pub struct OffchainWorkerApi ; impl OffchainWorkerApi { # [doc = " Starts the off-chain task for given block header."] pub fn offchain_worker (& self , header : types :: offchain_worker :: Header ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: OffchainWorker , types :: offchain_worker :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("OffchainWorkerApi" , "offchain_worker" , types :: OffchainWorker { header , } , [10u8 , 135u8 , 19u8 , 153u8 , 33u8 , 216u8 , 18u8 , 242u8 , 33u8 , 140u8 , 4u8 , 223u8 , 200u8 , 130u8 , 103u8 , 118u8 , 137u8 , 24u8 , 19u8 , 127u8 , 161u8 , 29u8 , 184u8 , 111u8 , 222u8 , 111u8 , 253u8 , 73u8 , 45u8 , 31u8 , 79u8 , 60u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod offchain_worker { use super :: runtime_types ; pub type Header = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OffchainWorker { pub header : offchain_worker :: Header , } } } pub mod parachain_host { 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Validators , types :: validators :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "validators" , types :: Validators { } , [203u8 , 103u8 , 117u8 , 19u8 , 54u8 , 45u8 , 218u8 , 47u8 , 46u8 , 93u8 , 221u8 , 120u8 , 188u8 , 43u8 , 183u8 , 253u8 , 108u8 , 177u8 , 242u8 , 168u8 , 97u8 , 191u8 , 129u8 , 190u8 , 80u8 , 182u8 , 43u8 , 75u8 , 126u8 , 241u8 , 248u8 , 188u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ValidatorGroups , types :: validator_groups :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AvailabilityCores , types :: availability_cores :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "availability_cores" , types :: AvailabilityCores { } , [237u8 , 214u8 , 4u8 , 255u8 , 105u8 , 58u8 , 207u8 , 5u8 , 161u8 , 200u8 , 229u8 , 237u8 , 83u8 , 29u8 , 131u8 , 64u8 , 244u8 , 255u8 , 15u8 , 4u8 , 224u8 , 242u8 , 16u8 , 182u8 , 134u8 , 20u8 , 111u8 , 114u8 , 242u8 , 218u8 , 138u8 , 144u8 ,] ,) } # [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 = ""] # [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 (& self , para_id : types :: persisted_validation_data :: ParaId , assumption : types :: persisted_validation_data :: Assumption ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PersistedValidationData , types :: persisted_validation_data :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "persisted_validation_data" , types :: PersistedValidationData { para_id , assumption , } , [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 ,] ,) } # [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 (& self , para_id : types :: assumed_validation_data :: ParaId , expected_persisted_validation_data_hash : types :: assumed_validation_data :: ExpectedPersistedValidationDataHash ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AssumedValidationData , types :: assumed_validation_data :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "assumed_validation_data" , types :: AssumedValidationData { para_id , expected_persisted_validation_data_hash , } , [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 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CheckValidationOutputs , types :: check_validation_outputs :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SessionIndexForChild , types :: session_index_for_child :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "session_index_for_child" , types :: SessionIndexForChild { } , [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ValidationCode , types :: validation_code :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CandidatePendingAvailability , types :: candidate_pending_availability :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "candidate_pending_availability" , types :: CandidatePendingAvailability { para_id , } , [244u8 , 247u8 , 40u8 , 151u8 , 56u8 , 125u8 , 160u8 , 14u8 , 133u8 , 36u8 , 95u8 , 142u8 , 195u8 , 41u8 , 58u8 , 243u8 , 51u8 , 140u8 , 131u8 , 63u8 , 3u8 , 143u8 , 104u8 , 164u8 , 193u8 , 39u8 , 220u8 , 141u8 , 141u8 , 17u8 , 182u8 , 168u8 ,] ,) } # [doc = " Get a vector of events concerning candidates that occurred within a block."] pub fn candidate_events (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CandidateEvents , types :: candidate_events :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "candidate_events" , types :: CandidateEvents { } , [75u8 , 75u8 , 47u8 , 107u8 , 25u8 , 45u8 , 177u8 , 137u8 , 39u8 , 157u8 , 170u8 , 247u8 , 55u8 , 83u8 , 48u8 , 240u8 , 120u8 , 227u8 , 107u8 , 42u8 , 84u8 , 78u8 , 79u8 , 170u8 , 249u8 , 233u8 , 249u8 , 121u8 , 105u8 , 119u8 , 7u8 , 248u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: DmqContents , types :: dmq_contents :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: InboundHrmpChannelsContents , types :: inbound_hrmp_channels_contents :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ValidationCodeByHash , types :: validation_code_by_hash :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: OnChainVotes , types :: on_chain_votes :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "on_chain_votes" , types :: OnChainVotes { } , [92u8 , 45u8 , 100u8 , 230u8 , 156u8 , 157u8 , 244u8 , 49u8 , 130u8 , 181u8 , 20u8 , 225u8 , 159u8 , 38u8 , 33u8 , 32u8 , 147u8 , 149u8 , 41u8 , 20u8 , 158u8 , 61u8 , 134u8 , 225u8 , 140u8 , 5u8 , 160u8 , 223u8 , 8u8 , 11u8 , 244u8 , 236u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SessionInfo , types :: session_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "session_info" , types :: SessionInfo { index , } , [109u8 , 63u8 , 65u8 , 75u8 , 87u8 , 156u8 , 145u8 , 106u8 , 214u8 , 111u8 , 24u8 , 111u8 , 229u8 , 171u8 , 147u8 , 148u8 , 51u8 , 80u8 , 156u8 , 94u8 , 49u8 , 229u8 , 151u8 , 155u8 , 255u8 , 0u8 , 72u8 , 104u8 , 42u8 , 124u8 , 222u8 , 90u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SubmitPvfCheckStatement , types :: submit_pvf_check_statement :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "submit_pvf_check_statement" , types :: SubmitPvfCheckStatement { stmt , signature , } , [10u8 , 97u8 , 0u8 , 72u8 , 221u8 , 159u8 , 123u8 , 113u8 , 166u8 , 212u8 , 213u8 , 173u8 , 250u8 , 217u8 , 54u8 , 27u8 , 120u8 , 76u8 , 219u8 , 71u8 , 28u8 , 213u8 , 243u8 , 103u8 , 44u8 , 198u8 , 102u8 , 43u8 , 15u8 , 81u8 , 228u8 , 110u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PvfsRequirePrecheck , types :: pvfs_require_precheck :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ValidationCodeHash , types :: validation_code_hash :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Disputes , types :: disputes :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SessionExecutorParams , types :: session_executor_params :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "session_executor_params" , types :: SessionExecutorParams { session_index , } , [94u8 , 35u8 , 29u8 , 188u8 , 247u8 , 116u8 , 165u8 , 43u8 , 248u8 , 76u8 , 21u8 , 237u8 , 26u8 , 25u8 , 105u8 , 27u8 , 24u8 , 245u8 , 97u8 , 25u8 , 47u8 , 118u8 , 98u8 , 231u8 , 27u8 , 76u8 , 172u8 , 207u8 , 90u8 , 103u8 , 52u8 , 168u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: UnappliedSlashes , types :: unapplied_slashes :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "unapplied_slashes" , types :: UnappliedSlashes { } , [37u8 , 39u8 , 110u8 , 177u8 , 177u8 , 107u8 , 186u8 , 189u8 , 36u8 , 252u8 , 88u8 , 92u8 , 92u8 , 3u8 , 118u8 , 28u8 , 72u8 , 180u8 , 56u8 , 113u8 , 168u8 , 228u8 , 180u8 , 53u8 , 56u8 , 77u8 , 129u8 , 94u8 , 68u8 , 18u8 , 199u8 , 163u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: KeyOwnershipProof , types :: key_ownership_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "key_ownership_proof" , types :: KeyOwnershipProof { validator_id , } , [75u8 , 218u8 , 234u8 , 239u8 , 79u8 , 135u8 , 77u8 , 217u8 , 172u8 , 222u8 , 123u8 , 195u8 , 0u8 , 79u8 , 68u8 , 22u8 , 143u8 , 185u8 , 45u8 , 209u8 , 235u8 , 205u8 , 61u8 , 159u8 , 205u8 , 15u8 , 169u8 , 73u8 , 84u8 , 12u8 , 240u8 , 155u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SubmitReportDisputeLost , types :: submit_report_dispute_lost :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "submit_report_dispute_lost" , types :: SubmitReportDisputeLost { dispute_proof , key_ownership_proof , } , [107u8 , 224u8 , 213u8 , 121u8 , 155u8 , 13u8 , 89u8 , 111u8 , 110u8 , 3u8 , 143u8 , 126u8 , 104u8 , 78u8 , 27u8 , 220u8 , 212u8 , 51u8 , 70u8 , 241u8 , 98u8 , 135u8 , 61u8 , 253u8 , 19u8 , 250u8 , 54u8 , 46u8 , 195u8 , 234u8 , 92u8 , 105u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MinimumBackingVotes , types :: minimum_backing_votes :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ParaBackingState , types :: para_backing_state :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "para_backing_state" , types :: ParaBackingState { _0 , } , [207u8 , 6u8 , 220u8 , 174u8 , 230u8 , 61u8 , 153u8 , 23u8 , 219u8 , 185u8 , 118u8 , 139u8 , 184u8 , 122u8 , 192u8 , 47u8 , 166u8 , 165u8 , 171u8 , 69u8 , 119u8 , 198u8 , 51u8 , 56u8 , 141u8 , 191u8 , 148u8 , 32u8 , 104u8 , 183u8 , 7u8 , 51u8 ,] ,) } # [doc = " Returns candidate's acceptance limitations for asynchronous backing for a relay parent."] pub fn async_backing_params (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AsyncBackingParams , types :: async_backing_params :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: DisabledValidators , types :: disabled_validators :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Get node features."] # [doc = " This is a staging method! Do not use on production runtimes!"] pub fn node_features (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: NodeFeatures , types :: node_features :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "node_features" , types :: NodeFeatures { } , [94u8 , 110u8 , 38u8 , 62u8 , 66u8 , 234u8 , 216u8 , 228u8 , 36u8 , 17u8 , 33u8 , 56u8 , 184u8 , 122u8 , 34u8 , 254u8 , 46u8 , 62u8 , 107u8 , 227u8 , 3u8 , 126u8 , 220u8 , 142u8 , 92u8 , 226u8 , 123u8 , 236u8 , 34u8 , 234u8 , 82u8 , 80u8 ,] ,) } # [doc = " Approval voting configuration parameters"] pub fn approval_voting_params (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ApprovalVotingParams , types :: approval_voting_params :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "approval_voting_params" , types :: ApprovalVotingParams { } , [89u8 , 130u8 , 95u8 , 58u8 , 124u8 , 176u8 , 43u8 , 109u8 , 222u8 , 178u8 , 241u8 , 177u8 , 242u8 , 32u8 , 84u8 , 22u8 , 252u8 , 178u8 , 168u8 , 17u8 , 38u8 , 249u8 , 25u8 , 229u8 , 75u8 , 119u8 , 150u8 , 112u8 , 144u8 , 118u8 , 189u8 , 253u8 ,] ,) } # [doc = " Claim queue"] pub fn claim_queue (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ClaimQueue , types :: claim_queue :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "claim_queue" , types :: ClaimQueue { } , [43u8 , 105u8 , 112u8 , 222u8 , 33u8 , 252u8 , 194u8 , 53u8 , 104u8 , 185u8 , 210u8 , 179u8 , 95u8 , 149u8 , 44u8 , 86u8 , 70u8 , 202u8 , 154u8 , 196u8 , 186u8 , 165u8 , 103u8 , 172u8 , 66u8 , 4u8 , 135u8 , 9u8 , 255u8 , 137u8 , 52u8 , 125u8 ,] ,) } # [doc = " Elastic scaling support"] pub fn candidates_pending_availability (& self , para_id : types :: candidates_pending_availability :: ParaId ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CandidatesPendingAvailability , types :: candidates_pending_availability :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ParachainHost" , "candidates_pending_availability" , types :: CandidatesPendingAvailability { para_id , } , [214u8 , 41u8 , 247u8 , 245u8 , 26u8 , 171u8 , 246u8 , 174u8 , 66u8 , 162u8 , 3u8 , 18u8 , 234u8 , 184u8 , 2u8 , 12u8 , 137u8 , 186u8 , 106u8 , 64u8 , 125u8 , 64u8 , 199u8 , 201u8 , 19u8 , 82u8 , 177u8 , 198u8 , 134u8 , 238u8 , 115u8 , 51u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod validators { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: validator_app :: Public > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Validators { } pub mod validator_groups { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex > > , runtime_types :: polkadot_primitives :: v7 :: GroupRotationInfo < :: core :: primitive :: u32 > ,) ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidatorGroups { } pub mod availability_cores { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: CoreState < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: OccupiedCoreAssumption ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: polkadot_primitives :: v7 :: PersistedValidationData < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < (runtime_types :: polkadot_primitives :: v7 :: PersistedValidationData < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: CandidateCommitments < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: bool ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: OccupiedCoreAssumption ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: CommittedCandidateReceipt < :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: CandidateEvent < :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_core_primitives :: InboundDownwardMessage < :: core :: primitive :: u32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: KeyedVec < runtime_types :: polkadot_parachain_primitives :: primitives :: Id , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_core_primitives :: InboundHrmpMessage < :: core :: primitive :: u32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: ScrapedOnChainVotes < :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: SessionInfo > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: PvfCheckStatement ; pub type Signature = runtime_types :: polkadot_primitives :: v7 :: validator_app :: Signature ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: OccupiedCoreAssumption ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidationCodeHash { pub para_id : validation_code_hash :: ParaId , pub assumption : validation_code_hash :: Assumption , } pub mod disputes { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_core_primitives :: CandidateHash , runtime_types :: polkadot_primitives :: v7 :: DisputeState < :: core :: primitive :: u32 > ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Disputes { } pub mod session_executor_params { 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 :: v7 :: executor_params :: ExecutorParams > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u32 , runtime_types :: polkadot_core_primitives :: CandidateHash , runtime_types :: polkadot_primitives :: v7 :: slashing :: PendingSlashes ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UnappliedSlashes { } pub mod key_ownership_proof { use super :: runtime_types ; pub type ValidatorId = runtime_types :: polkadot_primitives :: v7 :: validator_app :: Public ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: polkadot_primitives :: v7 :: slashing :: OpaqueKeyOwnershipProof > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: slashing :: DisputeProof ; pub type KeyOwnershipProof = runtime_types :: polkadot_primitives :: v7 :: slashing :: OpaqueKeyOwnershipProof ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < () > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubmitReportDisputeLost { pub dispute_proof : submit_report_dispute_lost :: DisputeProof , pub key_ownership_proof : submit_report_dispute_lost :: KeyOwnershipProof , } pub mod minimum_backing_votes { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u32 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MinimumBackingVotes { } pub mod para_backing_state { use super :: runtime_types ; pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: polkadot_primitives :: v7 :: async_backing :: BackingState < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ParaBackingState { pub _0 : para_backing_state :: Param0 , } pub mod async_backing_params { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: polkadot_primitives :: v7 :: async_backing :: AsyncBackingParams ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AsyncBackingParams { } pub mod disabled_validators { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DisabledValidators { } pub mod node_features { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NodeFeatures { } pub mod approval_voting_params { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: polkadot_primitives :: v7 :: ApprovalVotingParams ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ApprovalVotingParams { } pub mod claim_queue { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: utils :: KeyedVec < runtime_types :: polkadot_primitives :: v7 :: CoreIndex , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: Id > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ClaimQueue { } pub mod candidates_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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: CommittedCandidateReceipt < :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CandidatesPendingAvailability { pub para_id : candidates_pending_availability :: ParaId , } } } pub mod beefy_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API necessary for BEEFY voters."] pub struct BeefyApi ; impl BeefyApi { # [doc = " Return the block number where BEEFY consensus is enabled/started"] pub fn beefy_genesis (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: BeefyGenesis , types :: beefy_genesis :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BeefyApi" , "beefy_genesis" , types :: BeefyGenesis { } , [246u8 , 129u8 , 31u8 , 77u8 , 24u8 , 47u8 , 5u8 , 156u8 , 64u8 , 222u8 , 180u8 , 78u8 , 110u8 , 77u8 , 218u8 , 149u8 , 210u8 , 151u8 , 164u8 , 220u8 , 165u8 , 119u8 , 116u8 , 220u8 , 20u8 , 122u8 , 37u8 , 176u8 , 75u8 , 218u8 , 194u8 , 244u8 ,] ,) } # [doc = " Return the current active BEEFY validator set"] pub fn validator_set (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ValidatorSet , types :: validator_set :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BeefyApi" , "validator_set" , types :: ValidatorSet { } , [89u8 , 55u8 , 143u8 , 190u8 , 77u8 , 133u8 , 228u8 , 92u8 , 245u8 , 253u8 , 70u8 , 232u8 , 213u8 , 119u8 , 88u8 , 47u8 , 122u8 , 60u8 , 179u8 , 61u8 , 199u8 , 251u8 , 45u8 , 230u8 , 76u8 , 202u8 , 49u8 , 178u8 , 204u8 , 143u8 , 196u8 , 135u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SubmitReportEquivocationUnsignedExtrinsic , types :: submit_report_equivocation_unsigned_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BeefyApi" , "submit_report_equivocation_unsigned_extrinsic" , types :: SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof , key_owner_proof , } , [170u8 , 93u8 , 106u8 , 193u8 , 102u8 , 51u8 , 222u8 , 58u8 , 165u8 , 172u8 , 245u8 , 128u8 , 116u8 , 25u8 , 252u8 , 107u8 , 60u8 , 93u8 , 218u8 , 91u8 , 132u8 , 18u8 , 214u8 , 7u8 , 135u8 , 13u8 , 248u8 , 250u8 , 7u8 , 255u8 , 169u8 , 231u8 ,] ,) } # [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 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 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateKeyOwnershipProof , types :: generate_key_ownership_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BeefyApi" , "generate_key_ownership_proof" , types :: GenerateKeyOwnershipProof { set_id , authority_id , } , [119u8 , 183u8 , 178u8 , 109u8 , 57u8 , 250u8 , 176u8 , 255u8 , 11u8 , 190u8 , 35u8 , 142u8 , 102u8 , 112u8 , 4u8 , 219u8 , 204u8 , 81u8 , 163u8 , 87u8 , 129u8 , 134u8 , 34u8 , 227u8 , 213u8 , 163u8 , 50u8 , 90u8 , 54u8 , 61u8 , 84u8 , 215u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod beefy_genesis { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: core :: primitive :: u32 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BeefyGenesis { } pub mod validator_set { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_consensus_beefy :: ValidatorSet < runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Public > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidatorSet { } pub mod submit_report_equivocation_unsigned_extrinsic { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_beefy :: DoubleVotingProof < :: core :: primitive :: u32 , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Public , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Signature > ; pub type KeyOwnerProof = runtime_types :: sp_runtime :: OpaqueValue ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < () > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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_beefy :: ecdsa_crypto :: Public ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_runtime :: OpaqueValue > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { pub set_id : generate_key_ownership_proof :: SetId , pub authority_id : generate_key_ownership_proof :: AuthorityId , } } } pub mod mmr_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API to interact with MMR pallet."] pub struct MmrApi ; impl MmrApi { # [doc = " Return the on-chain MMR root hash."] pub fn mmr_root (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MmrRoot , types :: mmr_root :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("MmrApi" , "mmr_root" , types :: MmrRoot { } , [148u8 , 252u8 , 77u8 , 233u8 , 236u8 , 8u8 , 119u8 , 105u8 , 207u8 , 161u8 , 109u8 , 158u8 , 211u8 , 64u8 , 67u8 , 216u8 , 242u8 , 52u8 , 122u8 , 4u8 , 83u8 , 113u8 , 54u8 , 77u8 , 165u8 , 89u8 , 61u8 , 159u8 , 98u8 , 51u8 , 45u8 , 90u8 ,] ,) } # [doc = " Return the number of MMR blocks in the chain."] pub fn mmr_leaf_count (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MmrLeafCount , types :: mmr_leaf_count :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("MmrApi" , "mmr_leaf_count" , types :: MmrLeafCount { } , [165u8 , 141u8 , 127u8 , 184u8 , 27u8 , 185u8 , 251u8 , 25u8 , 44u8 , 93u8 , 239u8 , 158u8 , 104u8 , 91u8 , 22u8 , 87u8 , 101u8 , 166u8 , 90u8 , 90u8 , 45u8 , 105u8 , 254u8 , 136u8 , 233u8 , 121u8 , 9u8 , 216u8 , 179u8 , 55u8 , 126u8 , 158u8 ,] ,) } # [doc = " Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,"] # [doc = " use historical MMR state at given block height `n`. Else, use current MMR state."] pub fn generate_proof (& self , block_numbers : types :: generate_proof :: BlockNumbers , best_known_block_number : types :: generate_proof :: BestKnownBlockNumber ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateProof , types :: generate_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("MmrApi" , "generate_proof" , types :: GenerateProof { block_numbers , best_known_block_number , } , [187u8 , 175u8 , 153u8 , 82u8 , 245u8 , 180u8 , 126u8 , 156u8 , 67u8 , 89u8 , 253u8 , 29u8 , 54u8 , 168u8 , 196u8 , 144u8 , 24u8 , 123u8 , 154u8 , 69u8 , 245u8 , 90u8 , 110u8 , 239u8 , 15u8 , 125u8 , 204u8 , 148u8 , 71u8 , 209u8 , 58u8 , 32u8 ,] ,) } # [doc = " Verify MMR proof against on-chain MMR for a batch of leaves."] # [doc = ""] # [doc = " Note this function will use on-chain MMR root hash and check if the proof matches the hash."] # [doc = " Note, the leaves should be sorted such that corresponding leaves and leaf indices have the"] # [doc = " same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]"] pub fn verify_proof (& self , leaves : types :: verify_proof :: Leaves , proof : types :: verify_proof :: Proof ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: VerifyProof , types :: verify_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("MmrApi" , "verify_proof" , types :: VerifyProof { leaves , proof , } , [236u8 , 54u8 , 135u8 , 196u8 , 161u8 , 247u8 , 183u8 , 78u8 , 153u8 , 69u8 , 59u8 , 78u8 , 62u8 , 20u8 , 187u8 , 47u8 , 77u8 , 209u8 , 209u8 , 224u8 , 127u8 , 85u8 , 122u8 , 33u8 , 123u8 , 128u8 , 92u8 , 251u8 , 110u8 , 233u8 , 50u8 , 160u8 ,] ,) } # [doc = " Verify MMR proof against given root hash for a batch of leaves."] # [doc = ""] # [doc = " Note this function does not require any on-chain storage - the"] # [doc = " proof is verified against given MMR root hash."] # [doc = ""] # [doc = " Note, the leaves should be sorted such that corresponding leaves and leaf indices have the"] # [doc = " same position in both the `leaves` vector and the `leaf_indices` vector contained in the [LeafProof]"] pub fn verify_proof_stateless (& self , root : types :: verify_proof_stateless :: Root , leaves : types :: verify_proof_stateless :: Leaves , proof : types :: verify_proof_stateless :: Proof ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: VerifyProofStateless , types :: verify_proof_stateless :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("MmrApi" , "verify_proof_stateless" , types :: VerifyProofStateless { root , leaves , proof , } , [163u8 , 232u8 , 190u8 , 65u8 , 135u8 , 136u8 , 50u8 , 60u8 , 137u8 , 37u8 , 192u8 , 24u8 , 137u8 , 144u8 , 165u8 , 131u8 , 49u8 , 88u8 , 15u8 , 139u8 , 83u8 , 152u8 , 162u8 , 148u8 , 22u8 , 74u8 , 82u8 , 25u8 , 183u8 , 83u8 , 212u8 , 56u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod mmr_root { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < :: subxt :: ext :: subxt_core :: utils :: H256 , runtime_types :: sp_mmr_primitives :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MmrRoot { } pub mod mmr_leaf_count { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < :: core :: primitive :: u64 , runtime_types :: sp_mmr_primitives :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MmrLeafCount { } pub mod generate_proof { use super :: runtime_types ; pub type BlockNumbers = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > ; pub type BestKnownBlockNumber = :: core :: option :: Option < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_mmr_primitives :: EncodableOpaqueLeaf > , runtime_types :: sp_mmr_primitives :: LeafProof < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) , runtime_types :: sp_mmr_primitives :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GenerateProof { pub block_numbers : generate_proof :: BlockNumbers , pub best_known_block_number : generate_proof :: BestKnownBlockNumber , } pub mod verify_proof { use super :: runtime_types ; pub type Leaves = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_mmr_primitives :: EncodableOpaqueLeaf > ; pub type Proof = runtime_types :: sp_mmr_primitives :: LeafProof < :: subxt :: ext :: subxt_core :: utils :: H256 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < () , runtime_types :: sp_mmr_primitives :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct VerifyProof { pub leaves : verify_proof :: Leaves , pub proof : verify_proof :: Proof , } pub mod verify_proof_stateless { use super :: runtime_types ; pub type Root = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Leaves = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_mmr_primitives :: EncodableOpaqueLeaf > ; pub type Proof = runtime_types :: sp_mmr_primitives :: LeafProof < :: subxt :: ext :: subxt_core :: utils :: H256 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < () , runtime_types :: sp_mmr_primitives :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct VerifyProofStateless { pub root : verify_proof_stateless :: Root , pub leaves : verify_proof_stateless :: Leaves , pub proof : verify_proof_stateless :: Proof , } } } 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AuthoritySetProof , types :: authority_set_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: NextAuthoritySetProof , types :: next_authority_set_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: utils :: H256 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NextAuthoritySetProof { } } } pub mod grandpa_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 = ""] # [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 ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GrandpaAuthorities , types :: grandpa_authorities :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GrandpaApi" , "grandpa_authorities" , types :: GrandpaAuthorities { } , [8u8 , 1u8 , 99u8 , 227u8 , 52u8 , 95u8 , 230u8 , 139u8 , 198u8 , 90u8 , 159u8 , 146u8 , 193u8 , 81u8 , 37u8 , 27u8 , 216u8 , 227u8 , 108u8 , 126u8 , 12u8 , 94u8 , 125u8 , 183u8 , 143u8 , 231u8 , 87u8 , 101u8 , 114u8 , 190u8 , 193u8 , 180u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SubmitReportEquivocationUnsignedExtrinsic , types :: submit_report_equivocation_unsigned_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GrandpaApi" , "submit_report_equivocation_unsigned_extrinsic" , types :: SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof , key_owner_proof , } , [27u8 , 32u8 , 16u8 , 79u8 , 172u8 , 124u8 , 44u8 , 13u8 , 176u8 , 89u8 , 69u8 , 60u8 , 45u8 , 176u8 , 72u8 , 151u8 , 252u8 , 5u8 , 243u8 , 82u8 , 170u8 , 51u8 , 179u8 , 197u8 , 117u8 , 177u8 , 110u8 , 111u8 , 97u8 , 15u8 , 109u8 , 169u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateKeyOwnershipProof , types :: generate_key_ownership_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GrandpaApi" , "generate_key_ownership_proof" , types :: GenerateKeyOwnershipProof { set_id , authority_id , } , [13u8 , 144u8 , 66u8 , 235u8 , 24u8 , 190u8 , 39u8 , 75u8 , 29u8 , 157u8 , 215u8 , 181u8 , 173u8 , 145u8 , 224u8 , 244u8 , 189u8 , 79u8 , 6u8 , 116u8 , 139u8 , 196u8 , 54u8 , 16u8 , 89u8 , 190u8 , 121u8 , 43u8 , 137u8 , 150u8 , 117u8 , 68u8 ,] ,) } # [doc = " Get current GRANDPA authority set id."] pub fn current_set_id (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentSetId , types :: current_set_id :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod grandpa_authorities { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GrandpaAuthorities { } pub mod submit_report_equivocation_unsigned_extrinsic { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; pub type KeyOwnerProof = runtime_types :: sp_runtime :: OpaqueValue ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < () > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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_runtime :: OpaqueValue > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Configuration , types :: configuration :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "configuration" , types :: Configuration { } , [50u8 , 198u8 , 27u8 , 26u8 , 92u8 , 199u8 , 8u8 , 181u8 , 12u8 , 199u8 , 116u8 , 247u8 , 95u8 , 70u8 , 241u8 , 24u8 , 14u8 , 250u8 , 179u8 , 77u8 , 251u8 , 55u8 , 133u8 , 8u8 , 142u8 , 107u8 , 6u8 , 214u8 , 228u8 , 38u8 , 134u8 , 153u8 ,] ,) } # [doc = " Returns the slot that started the current epoch."] pub fn current_epoch_start (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentEpochStart , types :: current_epoch_start :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentEpoch , types :: current_epoch :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "current_epoch" , types :: CurrentEpoch { } , [70u8 , 68u8 , 222u8 , 110u8 , 96u8 , 143u8 , 126u8 , 136u8 , 182u8 , 163u8 , 104u8 , 122u8 , 21u8 , 156u8 , 6u8 , 26u8 , 86u8 , 145u8 , 153u8 , 133u8 , 251u8 , 137u8 , 238u8 , 218u8 , 132u8 , 218u8 , 222u8 , 140u8 , 190u8 , 232u8 , 197u8 , 86u8 ,] ,) } # [doc = " Returns information regarding the next epoch (which was already"] # [doc = " previously announced)."] pub fn next_epoch (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: NextEpoch , types :: next_epoch :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "next_epoch" , types :: NextEpoch { } , [141u8 , 86u8 , 122u8 , 185u8 , 215u8 , 255u8 , 142u8 , 131u8 , 8u8 , 178u8 , 143u8 , 200u8 , 148u8 , 84u8 , 174u8 , 215u8 , 91u8 , 251u8 , 243u8 , 155u8 , 92u8 , 13u8 , 44u8 , 53u8 , 128u8 , 26u8 , 165u8 , 172u8 , 49u8 , 33u8 , 130u8 , 148u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateKeyOwnershipProof , types :: generate_key_ownership_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "generate_key_ownership_proof" , types :: GenerateKeyOwnershipProof { slot , authority_id , } , [13u8 , 228u8 , 75u8 , 150u8 , 203u8 , 132u8 , 82u8 , 188u8 , 17u8 , 70u8 , 169u8 , 19u8 , 102u8 , 96u8 , 217u8 , 209u8 , 215u8 , 196u8 , 78u8 , 141u8 , 12u8 , 14u8 , 151u8 , 65u8 , 173u8 , 2u8 , 100u8 , 150u8 , 18u8 , 99u8 , 19u8 , 196u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SubmitReportEquivocationUnsignedExtrinsic , types :: submit_report_equivocation_unsigned_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "submit_report_equivocation_unsigned_extrinsic" , types :: SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof , key_owner_proof , } , [99u8 , 80u8 , 38u8 , 173u8 , 235u8 , 48u8 , 229u8 , 88u8 , 250u8 , 165u8 , 57u8 , 245u8 , 85u8 , 156u8 , 114u8 , 190u8 , 144u8 , 78u8 , 37u8 , 22u8 , 36u8 , 36u8 , 53u8 , 174u8 , 118u8 , 222u8 , 16u8 , 159u8 , 201u8 , 254u8 , 233u8 , 82u8 ,] ,) } } 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 { 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 = :: core :: option :: Option < () > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Authorities , types :: authorities :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("AuthorityDiscoveryApi" , "authorities" , types :: Authorities { } , [165u8 , 81u8 , 77u8 , 215u8 , 27u8 , 128u8 , 36u8 , 135u8 , 216u8 , 203u8 , 60u8 , 250u8 , 235u8 , 22u8 , 149u8 , 99u8 , 233u8 , 114u8 , 62u8 , 69u8 , 27u8 , 185u8 , 45u8 , 164u8 , 136u8 , 168u8 , 108u8 , 168u8 , 24u8 , 3u8 , 66u8 , 155u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod authorities { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_authority_discovery :: app :: Public > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Authorities { } } } pub mod session_keys { use super :: root_mod ; use super :: runtime_types ; # [doc = " Session keys runtime api."] pub struct SessionKeys ; impl SessionKeys { # [doc = " Generate a set of session keys with optionally using the given seed."] # [doc = " The keys should be stored within the keystore exposed via runtime"] # [doc = " externalities."] # [doc = ""] # [doc = " The seed needs to be a valid `utf8` string."] # [doc = ""] # [doc = " Returns the concatenated SCALE encoded public keys."] pub fn generate_session_keys (& self , seed : types :: generate_session_keys :: Seed ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateSessionKeys , types :: generate_session_keys :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SessionKeys" , "generate_session_keys" , types :: GenerateSessionKeys { seed , } , [96u8 , 171u8 , 164u8 , 166u8 , 175u8 , 102u8 , 101u8 , 47u8 , 133u8 , 95u8 , 102u8 , 202u8 , 83u8 , 26u8 , 238u8 , 47u8 , 126u8 , 132u8 , 22u8 , 11u8 , 33u8 , 190u8 , 175u8 , 94u8 , 58u8 , 245u8 , 46u8 , 80u8 , 195u8 , 184u8 , 107u8 , 65u8 ,] ,) } # [doc = " Decode the given public session keys."] # [doc = ""] # [doc = " Returns the list of public raw public keys + key type."] pub fn decode_session_keys (& self , encoded : types :: decode_session_keys :: Encoded ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: DecodeSessionKeys , types :: decode_session_keys :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SessionKeys" , "decode_session_keys" , types :: DecodeSessionKeys { encoded , } , [57u8 , 242u8 , 18u8 , 51u8 , 132u8 , 110u8 , 238u8 , 255u8 , 39u8 , 194u8 , 8u8 , 54u8 , 198u8 , 178u8 , 75u8 , 151u8 , 148u8 , 176u8 , 144u8 , 197u8 , 87u8 , 29u8 , 179u8 , 235u8 , 176u8 , 78u8 , 252u8 , 103u8 , 72u8 , 203u8 , 151u8 , 248u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod generate_session_keys { use super :: runtime_types ; pub type Seed = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GenerateSessionKeys { pub seed : generate_session_keys :: Seed , } pub mod decode_session_keys { use super :: runtime_types ; pub type Encoded = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , runtime_types :: sp_core :: crypto :: KeyTypeId ,) > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DecodeSessionKeys { pub encoded : decode_session_keys :: Encoded , } } } 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AccountNonce , types :: account_nonce :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u32 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryInfo , types :: query_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryFeeDetails , types :: query_fee_details :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryWeightToFee , types :: query_weight_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryLengthToFee , types :: query_length_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: paseo_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 , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: paseo_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 , runtime_types :: polkadot_runtime_common :: claims :: PrevalidateAttests , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryLengthToFee { pub length : query_length_to_fee :: Length , } } } 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryCallInfo , types :: query_call_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_call_info" , types :: QueryCallInfo { call , len , } , [169u8 , 59u8 , 112u8 , 45u8 , 183u8 , 178u8 , 118u8 , 111u8 , 45u8 , 184u8 , 57u8 , 73u8 , 39u8 , 174u8 , 141u8 , 15u8 , 138u8 , 53u8 , 61u8 , 64u8 , 214u8 , 60u8 , 114u8 , 196u8 , 55u8 , 254u8 , 28u8 , 18u8 , 88u8 , 179u8 , 32u8 , 211u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryCallFeeDetails , types :: query_call_fee_details :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_call_fee_details" , types :: QueryCallFeeDetails { call , len , } , [162u8 , 93u8 , 45u8 , 73u8 , 29u8 , 110u8 , 229u8 , 93u8 , 141u8 , 20u8 , 183u8 , 47u8 , 66u8 , 115u8 , 113u8 , 170u8 , 96u8 , 83u8 , 214u8 , 71u8 , 69u8 , 226u8 , 98u8 , 216u8 , 231u8 , 114u8 , 163u8 , 194u8 , 252u8 , 143u8 , 116u8 , 212u8 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryWeightToFee , types :: query_weight_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryLengthToFee , types :: query_length_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: paseo_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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: paseo_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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryLengthToFee { pub length : query_length_to_fee :: Length , } } } pub mod xcm_payment_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " A trait of XCM payment API."] # [doc = ""] # [doc = " API provides functionality for obtaining:"] # [doc = ""] # [doc = " * the weight required to execute an XCM message,"] # [doc = " * a list of acceptable `AssetId`s for message execution payment,"] # [doc = " * the cost of the weight in the specified acceptable `AssetId`."] # [doc = " * the fees for an XCM message delivery."] # [doc = ""] # [doc = " To determine the execution weight of the calls required for"] # [doc = " [`xcm::latest::Instruction::Transact`] instruction, `TransactionPaymentCallApi` can be used."] pub struct XcmPaymentApi ; impl XcmPaymentApi { # [doc = " Returns a list of acceptable payment assets."] # [doc = ""] # [doc = " # Arguments"] # [doc = ""] # [doc = " * `xcm_version`: Version."] pub fn query_acceptable_payment_assets (& self , xcm_version : types :: query_acceptable_payment_assets :: XcmVersion ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryAcceptablePaymentAssets , types :: query_acceptable_payment_assets :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("XcmPaymentApi" , "query_acceptable_payment_assets" , types :: QueryAcceptablePaymentAssets { xcm_version , } , [232u8 , 67u8 , 173u8 , 246u8 , 152u8 , 193u8 , 90u8 , 68u8 , 49u8 , 200u8 , 118u8 , 68u8 , 139u8 , 225u8 , 161u8 , 38u8 , 177u8 , 158u8 , 83u8 , 135u8 , 180u8 , 97u8 , 4u8 , 94u8 , 0u8 , 232u8 , 114u8 , 119u8 , 77u8 , 5u8 , 8u8 , 236u8 ,] ,) } # [doc = " Returns a weight needed to execute a XCM."] # [doc = ""] # [doc = " # Arguments"] # [doc = ""] # [doc = " * `message`: `VersionedXcm`."] pub fn query_xcm_weight (& self , message : types :: query_xcm_weight :: Message ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryXcmWeight , types :: query_xcm_weight :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("XcmPaymentApi" , "query_xcm_weight" , types :: QueryXcmWeight { message , } , [58u8 , 118u8 , 149u8 , 47u8 , 144u8 , 85u8 , 10u8 , 89u8 , 29u8 , 123u8 , 249u8 , 209u8 , 165u8 , 160u8 , 43u8 , 246u8 , 12u8 , 106u8 , 89u8 , 20u8 , 219u8 , 133u8 , 189u8 , 58u8 , 14u8 , 136u8 , 189u8 , 142u8 , 123u8 , 145u8 , 77u8 , 68u8 ,] ,) } # [doc = " Converts a weight into a fee for the specified `AssetId`."] # [doc = ""] # [doc = " # Arguments"] # [doc = ""] # [doc = " * `weight`: convertible `Weight`."] # [doc = " * `asset`: `VersionedAssetId`."] pub fn query_weight_to_asset_fee (& self , weight : types :: query_weight_to_asset_fee :: Weight , asset : types :: query_weight_to_asset_fee :: Asset ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryWeightToAssetFee , types :: query_weight_to_asset_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("XcmPaymentApi" , "query_weight_to_asset_fee" , types :: QueryWeightToAssetFee { weight , asset , } , [86u8 , 75u8 , 169u8 , 75u8 , 0u8 , 231u8 , 241u8 , 122u8 , 197u8 , 232u8 , 188u8 , 66u8 , 247u8 , 240u8 , 170u8 , 39u8 , 199u8 , 82u8 , 104u8 , 16u8 , 28u8 , 40u8 , 214u8 , 232u8 , 177u8 , 212u8 , 117u8 , 16u8 , 181u8 , 240u8 , 33u8 , 126u8 ,] ,) } # [doc = " Get delivery fees for sending a specific `message` to a `destination`."] # [doc = " These always come in a specific asset, defined by the chain."] # [doc = ""] # [doc = " # Arguments"] # [doc = " * `message`: The message that'll be sent, necessary because most delivery fees are based on the"] # [doc = " size of the message."] # [doc = " * `destination`: The destination to send the message to. Different destinations may use"] # [doc = " different senders that charge different fees."] pub fn query_delivery_fees (& self , destination : types :: query_delivery_fees :: Destination , message : types :: query_delivery_fees :: Message ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryDeliveryFees , types :: query_delivery_fees :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("XcmPaymentApi" , "query_delivery_fees" , types :: QueryDeliveryFees { destination , message , } , [248u8 , 169u8 , 153u8 , 16u8 , 58u8 , 94u8 , 83u8 , 239u8 , 80u8 , 12u8 , 183u8 , 141u8 , 169u8 , 8u8 , 137u8 , 178u8 , 241u8 , 228u8 , 241u8 , 66u8 , 89u8 , 202u8 , 78u8 , 125u8 , 240u8 , 248u8 , 109u8 , 41u8 , 189u8 , 119u8 , 20u8 , 149u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod query_acceptable_payment_assets { use super :: runtime_types ; pub type XcmVersion = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: xcm :: VersionedAssetId > , runtime_types :: xcm_runtime_apis :: fees :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryAcceptablePaymentAssets { pub xcm_version : query_acceptable_payment_assets :: XcmVersion , } pub mod query_xcm_weight { use super :: runtime_types ; pub type Message = runtime_types :: xcm :: VersionedXcm ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: sp_weights :: weight_v2 :: Weight , runtime_types :: xcm_runtime_apis :: fees :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryXcmWeight { pub message : query_xcm_weight :: Message , } pub mod query_weight_to_asset_fee { use super :: runtime_types ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub type Asset = runtime_types :: xcm :: VersionedAssetId ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < :: core :: primitive :: u128 , runtime_types :: xcm_runtime_apis :: fees :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryWeightToAssetFee { pub weight : query_weight_to_asset_fee :: Weight , pub asset : query_weight_to_asset_fee :: Asset , } pub mod query_delivery_fees { use super :: runtime_types ; pub type Destination = runtime_types :: xcm :: VersionedLocation ; pub type Message = runtime_types :: xcm :: VersionedXcm ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: xcm :: VersionedAssets , runtime_types :: xcm_runtime_apis :: fees :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryDeliveryFees { pub destination : query_delivery_fees :: Destination , pub message : query_delivery_fees :: Message , } } } pub mod dry_run_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API for dry-running extrinsics and XCM programs to get the programs that need to be passed to the fees API."] # [doc = ""] # [doc = " All calls return a vector of tuples (location, xcm) where each \"xcm\" is executed in \"location\"."] # [doc = " If there's local execution, the location will be \"Here\"."] # [doc = " This vector can be used to calculate both execution and delivery fees."] # [doc = ""] # [doc = " Calls or XCMs might fail when executed, this doesn't mean the result of these calls will be an `Err`."] # [doc = " In those cases, there might still be a valid result, with the execution error inside it."] # [doc = " The only reasons why these calls might return an error are listed in the [`Error`] enum."] pub struct DryRunApi ; impl DryRunApi { # [doc = " Dry run call."] pub fn dry_run_call (& self , origin : types :: dry_run_call :: Origin , call : types :: dry_run_call :: Call ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: DryRunCall , types :: dry_run_call :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("DryRunApi" , "dry_run_call" , types :: DryRunCall { origin , call , } , [11u8 , 236u8 , 182u8 , 165u8 , 81u8 , 49u8 , 15u8 , 20u8 , 71u8 , 31u8 , 220u8 , 159u8 , 132u8 , 23u8 , 133u8 , 169u8 , 131u8 , 98u8 , 78u8 , 18u8 , 94u8 , 108u8 , 125u8 , 46u8 , 114u8 , 5u8 , 169u8 , 195u8 , 27u8 , 158u8 , 167u8 , 226u8 ,] ,) } # [doc = " Dry run XCM program"] pub fn dry_run_xcm (& self , origin_location : types :: dry_run_xcm :: OriginLocation , xcm : types :: dry_run_xcm :: Xcm ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: DryRunXcm , types :: dry_run_xcm :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("DryRunApi" , "dry_run_xcm" , types :: DryRunXcm { origin_location , xcm , } , [140u8 , 63u8 , 222u8 , 203u8 , 79u8 , 204u8 , 247u8 , 147u8 , 244u8 , 96u8 , 71u8 , 74u8 , 175u8 , 1u8 , 223u8 , 253u8 , 157u8 , 253u8 , 231u8 , 1u8 , 167u8 , 8u8 , 208u8 , 177u8 , 201u8 , 12u8 , 58u8 , 146u8 , 48u8 , 48u8 , 73u8 , 70u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod dry_run_call { use super :: runtime_types ; pub type Origin = runtime_types :: paseo_runtime :: OriginCaller ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: xcm_runtime_apis :: dry_run :: CallDryRunEffects < runtime_types :: paseo_runtime :: RuntimeEvent > , runtime_types :: xcm_runtime_apis :: dry_run :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DryRunCall { pub origin : dry_run_call :: Origin , pub call : dry_run_call :: Call , } pub mod dry_run_xcm { use super :: runtime_types ; pub type OriginLocation = runtime_types :: xcm :: VersionedLocation ; pub type Xcm = runtime_types :: xcm :: VersionedXcm ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: xcm_runtime_apis :: dry_run :: XcmDryRunEffects < runtime_types :: paseo_runtime :: RuntimeEvent > , runtime_types :: xcm_runtime_apis :: dry_run :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DryRunXcm { pub origin_location : dry_run_xcm :: OriginLocation , pub xcm : dry_run_xcm :: Xcm , } } } pub mod location_to_account_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API for useful conversions between XCM `Location` and `AccountId`."] pub struct LocationToAccountApi ; impl LocationToAccountApi { # [doc = " Converts `Location` to `AccountId`."] pub fn convert_location (& self , location : types :: convert_location :: Location ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ConvertLocation , types :: convert_location :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("LocationToAccountApi" , "convert_location" , types :: ConvertLocation { location , } , [177u8 , 18u8 , 51u8 , 215u8 , 92u8 , 244u8 , 76u8 , 112u8 , 17u8 , 169u8 , 178u8 , 211u8 , 218u8 , 62u8 , 162u8 , 208u8 , 204u8 , 179u8 , 209u8 , 196u8 , 53u8 , 73u8 , 63u8 , 14u8 , 120u8 , 142u8 , 185u8 , 141u8 , 140u8 , 111u8 , 124u8 , 254u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod convert_location { use super :: runtime_types ; pub type Location = runtime_types :: xcm :: VersionedLocation ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: xcm_runtime_apis :: conversions :: Error > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ConvertLocation { pub location : convert_location :: Location , } } } pub mod genesis_builder { use super :: root_mod ; use super :: runtime_types ; # [doc = " API to interact with RuntimeGenesisConfig for the runtime"] pub struct GenesisBuilder ; impl GenesisBuilder { # [doc = " Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the"] # [doc = " storage."] # [doc = ""] # [doc = " In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and"] # [doc = " puts it into the storage. If the provided JSON blob is incorrect or incomplete or the"] # [doc = " deserialization fails, an error is returned."] # [doc = ""] # [doc = " Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no"] # [doc = " defaults will be used."] pub fn build_state (& self , json : types :: build_state :: Json ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: BuildState , types :: build_state :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GenesisBuilder" , "build_state" , types :: BuildState { json , } , [203u8 , 233u8 , 104u8 , 116u8 , 111u8 , 131u8 , 201u8 , 235u8 , 117u8 , 116u8 , 140u8 , 185u8 , 93u8 , 25u8 , 155u8 , 210u8 , 56u8 , 49u8 , 23u8 , 32u8 , 253u8 , 92u8 , 149u8 , 241u8 , 85u8 , 245u8 , 137u8 , 45u8 , 209u8 , 189u8 , 81u8 , 2u8 ,] ,) } # [doc = " Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by"] # [doc = " `id`."] # [doc = ""] # [doc = " If `id` is `None` the function returns JSON blob representation of the default"] # [doc = " `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default"] # [doc = " `RuntimeGenesisConfig`."] # [doc = ""] # [doc = " Otherwise function returns a JSON representation of the built-in, named"] # [doc = " `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not"] # [doc = " exists. Returned `Vec` contains bytes of JSON blob (patch) which comprises a list of"] # [doc = " (potentially nested) key-value pairs that are intended for customizing the default"] # [doc = " runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation"] # [doc = " of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can"] # [doc = " be used in `build_state` method."] pub fn get_preset (& self , id : types :: get_preset :: Id ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetPreset , types :: get_preset :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GenesisBuilder" , "get_preset" , types :: GetPreset { id , } , [43u8 , 153u8 , 23u8 , 52u8 , 113u8 , 161u8 , 227u8 , 122u8 , 169u8 , 135u8 , 119u8 , 8u8 , 128u8 , 33u8 , 143u8 , 235u8 , 13u8 , 173u8 , 58u8 , 121u8 , 178u8 , 223u8 , 66u8 , 217u8 , 22u8 , 244u8 , 168u8 , 113u8 , 202u8 , 186u8 , 241u8 , 124u8 ,] ,) } # [doc = " Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets."] # [doc = ""] # [doc = " The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If"] # [doc = " no named presets are provided by the runtime the list is empty."] pub fn preset_names (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PresetNames , types :: preset_names :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GenesisBuilder" , "preset_names" , types :: PresetNames { } , [150u8 , 117u8 , 54u8 , 129u8 , 221u8 , 130u8 , 186u8 , 71u8 , 13u8 , 140u8 , 77u8 , 180u8 , 141u8 , 37u8 , 22u8 , 219u8 , 149u8 , 218u8 , 186u8 , 206u8 , 80u8 , 42u8 , 165u8 , 41u8 , 99u8 , 184u8 , 73u8 , 37u8 , 125u8 , 188u8 , 167u8 , 122u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod build_state { use super :: runtime_types ; pub type Json = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < () , :: subxt :: ext :: subxt_core :: alloc :: string :: String > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BuildState { pub json : build_state :: Json , } pub mod get_preset { use super :: runtime_types ; pub type Id = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: string :: String > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetPreset { pub id : get_preset :: Id , } pub mod preset_names { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: string :: String > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PresetNames { } } } } pub fn custom () -> CustomValuesApi { CustomValuesApi } pub struct CustomValuesApi ; impl CustomValuesApi { } pub struct ConstantsApi ; impl ConstantsApi { pub fn system (& self) -> system :: constants :: ConstantsApi { system :: constants :: ConstantsApi } pub fn scheduler (& self) -> scheduler :: constants :: ConstantsApi { scheduler :: constants :: ConstantsApi } pub fn babe (& self) -> babe :: constants :: ConstantsApi { babe :: constants :: ConstantsApi } pub fn timestamp (& self) -> timestamp :: constants :: ConstantsApi { timestamp :: constants :: ConstantsApi } pub fn indices (& self) -> indices :: constants :: ConstantsApi { indices :: constants :: ConstantsApi } pub fn balances (& self) -> balances :: constants :: ConstantsApi { balances :: constants :: ConstantsApi } pub fn transaction_payment (& self) -> transaction_payment :: constants :: ConstantsApi { transaction_payment :: constants :: ConstantsApi } pub fn staking (& self) -> staking :: constants :: ConstantsApi { staking :: constants :: ConstantsApi } pub fn grandpa (& self) -> grandpa :: constants :: ConstantsApi { grandpa :: 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 referenda (& self) -> referenda :: constants :: ConstantsApi { referenda :: constants :: ConstantsApi } pub fn claims (& self) -> claims :: constants :: ConstantsApi { claims :: constants :: ConstantsApi } pub fn vesting (& self) -> vesting :: constants :: ConstantsApi { vesting :: constants :: ConstantsApi } pub fn utility (& self) -> utility :: constants :: ConstantsApi { utility :: constants :: ConstantsApi } pub fn proxy (& self) -> proxy :: constants :: ConstantsApi { proxy :: constants :: ConstantsApi } pub fn multisig (& self) -> multisig :: constants :: ConstantsApi { multisig :: constants :: ConstantsApi } 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 election_provider_multi_phase (& self) -> election_provider_multi_phase :: constants :: ConstantsApi { election_provider_multi_phase :: constants :: ConstantsApi } pub fn voter_list (& self) -> voter_list :: constants :: ConstantsApi { voter_list :: constants :: ConstantsApi } pub fn nomination_pools (& self) -> nomination_pools :: constants :: ConstantsApi { nomination_pools :: constants :: ConstantsApi } pub fn fast_unstake (& self) -> fast_unstake :: constants :: ConstantsApi { fast_unstake :: constants :: ConstantsApi } pub fn paras (& self) -> paras :: constants :: ConstantsApi { paras :: constants :: ConstantsApi } pub fn on_demand (& self) -> on_demand :: constants :: ConstantsApi { on_demand :: constants :: ConstantsApi } pub fn registrar (& self) -> registrar :: constants :: ConstantsApi { registrar :: constants :: ConstantsApi } pub fn slots (& self) -> slots :: constants :: ConstantsApi { slots :: constants :: ConstantsApi } pub fn auctions (& self) -> auctions :: constants :: ConstantsApi { auctions :: constants :: ConstantsApi } pub fn crowdloan (& self) -> crowdloan :: constants :: ConstantsApi { crowdloan :: constants :: ConstantsApi } pub fn coretime (& self) -> coretime :: constants :: ConstantsApi { coretime :: constants :: ConstantsApi } pub fn state_trie_migration (& self) -> state_trie_migration :: constants :: ConstantsApi { state_trie_migration :: constants :: ConstantsApi } pub fn message_queue (& self) -> message_queue :: constants :: ConstantsApi { message_queue :: constants :: ConstantsApi } pub fn beefy (& self) -> beefy :: constants :: ConstantsApi { beefy :: constants :: ConstantsApi } } pub struct StorageApi ; impl StorageApi { pub fn system (& self) -> system :: storage :: StorageApi { system :: storage :: StorageApi } pub fn scheduler (& self) -> scheduler :: storage :: StorageApi { scheduler :: storage :: StorageApi } pub fn preimage (& self) -> preimage :: storage :: StorageApi { preimage :: storage :: StorageApi } pub fn babe (& self) -> babe :: storage :: StorageApi { babe :: storage :: StorageApi } pub fn timestamp (& self) -> timestamp :: storage :: StorageApi { timestamp :: storage :: StorageApi } pub fn indices (& self) -> indices :: storage :: StorageApi { indices :: storage :: StorageApi } pub fn balances (& self) -> balances :: storage :: StorageApi { balances :: storage :: StorageApi } 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 staking (& self) -> staking :: storage :: StorageApi { staking :: storage :: StorageApi } pub fn offences (& self) -> offences :: storage :: StorageApi { offences :: storage :: StorageApi } pub fn historical (& self) -> historical :: storage :: StorageApi { historical :: storage :: StorageApi } pub fn session (& self) -> session :: storage :: StorageApi { session :: storage :: StorageApi } pub fn grandpa (& self) -> grandpa :: storage :: StorageApi { grandpa :: storage :: StorageApi } pub fn authority_discovery (& self) -> authority_discovery :: storage :: StorageApi { authority_discovery :: 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 referenda (& self) -> referenda :: storage :: StorageApi { referenda :: storage :: StorageApi } pub fn whitelist (& self) -> whitelist :: storage :: StorageApi { whitelist :: storage :: StorageApi } pub fn claims (& self) -> claims :: storage :: StorageApi { claims :: storage :: StorageApi } pub fn vesting (& self) -> vesting :: storage :: StorageApi { vesting :: storage :: StorageApi } pub fn proxy (& self) -> proxy :: storage :: StorageApi { proxy :: storage :: StorageApi } pub fn multisig (& self) -> multisig :: storage :: StorageApi { multisig :: 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 election_provider_multi_phase (& self) -> election_provider_multi_phase :: storage :: StorageApi { election_provider_multi_phase :: storage :: StorageApi } pub fn voter_list (& self) -> voter_list :: storage :: StorageApi { voter_list :: storage :: StorageApi } pub fn nomination_pools (& self) -> nomination_pools :: storage :: StorageApi { nomination_pools :: storage :: StorageApi } pub fn fast_unstake (& self) -> fast_unstake :: storage :: StorageApi { fast_unstake :: storage :: StorageApi } pub fn configuration (& self) -> configuration :: storage :: StorageApi { configuration :: storage :: StorageApi } pub fn paras_shared (& self) -> paras_shared :: storage :: StorageApi { paras_shared :: storage :: StorageApi } pub fn para_inclusion (& self) -> para_inclusion :: storage :: StorageApi { para_inclusion :: storage :: StorageApi } pub fn para_inherent (& self) -> para_inherent :: storage :: StorageApi { para_inherent :: storage :: StorageApi } pub fn para_scheduler (& self) -> para_scheduler :: storage :: StorageApi { para_scheduler :: 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 on_demand (& self) -> on_demand :: storage :: StorageApi { on_demand :: storage :: StorageApi } pub fn coretime_assignment_provider (& self) -> coretime_assignment_provider :: storage :: StorageApi { coretime_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 state_trie_migration (& self) -> state_trie_migration :: storage :: StorageApi { state_trie_migration :: storage :: StorageApi } pub fn xcm_pallet (& self) -> xcm_pallet :: storage :: StorageApi { xcm_pallet :: storage :: StorageApi } pub fn message_queue (& self) -> message_queue :: storage :: StorageApi { message_queue :: storage :: StorageApi } pub fn asset_rate (& self) -> asset_rate :: storage :: StorageApi { asset_rate :: storage :: StorageApi } pub fn beefy (& self) -> beefy :: storage :: StorageApi { beefy :: storage :: StorageApi } pub fn mmr (& self) -> mmr :: storage :: StorageApi { mmr :: storage :: StorageApi } pub fn beefy_mmr_leaf (& self) -> beefy_mmr_leaf :: storage :: StorageApi { beefy_mmr_leaf :: storage :: StorageApi } pub fn sudo (& self) -> sudo :: storage :: StorageApi { sudo :: storage :: StorageApi } } pub struct TransactionApi ; impl TransactionApi { pub fn system (& self) -> system :: calls :: TransactionApi { system :: calls :: TransactionApi } pub fn scheduler (& self) -> scheduler :: calls :: TransactionApi { scheduler :: calls :: TransactionApi } pub fn preimage (& self) -> preimage :: calls :: TransactionApi { preimage :: calls :: TransactionApi } pub fn babe (& self) -> babe :: calls :: TransactionApi { babe :: calls :: TransactionApi } pub fn timestamp (& self) -> timestamp :: calls :: TransactionApi { timestamp :: calls :: TransactionApi } pub fn indices (& self) -> indices :: calls :: TransactionApi { indices :: calls :: TransactionApi } pub fn balances (& self) -> balances :: calls :: TransactionApi { balances :: calls :: TransactionApi } pub fn staking (& self) -> staking :: calls :: TransactionApi { staking :: calls :: TransactionApi } pub fn session (& self) -> session :: calls :: TransactionApi { session :: calls :: TransactionApi } pub fn grandpa (& self) -> grandpa :: calls :: TransactionApi { grandpa :: 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 referenda (& self) -> referenda :: calls :: TransactionApi { 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 vesting (& self) -> vesting :: calls :: TransactionApi { vesting :: calls :: TransactionApi } pub fn utility (& self) -> utility :: calls :: TransactionApi { utility :: calls :: TransactionApi } pub fn proxy (& self) -> proxy :: calls :: TransactionApi { proxy :: calls :: TransactionApi } pub fn multisig (& self) -> multisig :: calls :: TransactionApi { multisig :: 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 election_provider_multi_phase (& self) -> election_provider_multi_phase :: calls :: TransactionApi { election_provider_multi_phase :: calls :: TransactionApi } pub fn voter_list (& self) -> voter_list :: calls :: TransactionApi { voter_list :: calls :: TransactionApi } pub fn nomination_pools (& self) -> nomination_pools :: calls :: TransactionApi { nomination_pools :: calls :: TransactionApi } pub fn fast_unstake (& self) -> fast_unstake :: calls :: TransactionApi { fast_unstake :: calls :: TransactionApi } pub fn configuration (& self) -> configuration :: calls :: TransactionApi { configuration :: calls :: TransactionApi } pub fn paras_shared (& self) -> paras_shared :: calls :: TransactionApi { paras_shared :: calls :: TransactionApi } pub fn para_inclusion (& self) -> para_inclusion :: calls :: TransactionApi { para_inclusion :: calls :: TransactionApi } pub fn para_inherent (& self) -> para_inherent :: calls :: TransactionApi { para_inherent :: calls :: TransactionApi } pub fn paras (& self) -> paras :: calls :: TransactionApi { paras :: 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 on_demand (& self) -> on_demand :: calls :: TransactionApi { on_demand :: 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 coretime (& self) -> coretime :: calls :: TransactionApi { coretime :: calls :: TransactionApi } pub fn state_trie_migration (& self) -> state_trie_migration :: calls :: TransactionApi { state_trie_migration :: calls :: TransactionApi } pub fn xcm_pallet (& self) -> xcm_pallet :: calls :: TransactionApi { xcm_pallet :: calls :: TransactionApi } pub fn message_queue (& self) -> message_queue :: calls :: TransactionApi { message_queue :: calls :: TransactionApi } pub fn asset_rate (& self) -> asset_rate :: calls :: TransactionApi { asset_rate :: calls :: TransactionApi } pub fn beefy (& self) -> beefy :: calls :: TransactionApi { beefy :: calls :: TransactionApi } pub fn para_sudo_wrapper (& self) -> para_sudo_wrapper :: calls :: TransactionApi { para_sudo_wrapper :: calls :: TransactionApi } pub fn sudo (& self) -> sudo :: calls :: TransactionApi { sudo :: calls :: TransactionApi } } # [doc = r" check whether the metadata provided is aligned with this statically generated code."] pub fn is_codegen_valid_for (metadata : & :: subxt :: ext :: subxt_core :: Metadata) -> bool { let runtime_metadata_hash = metadata . hasher () . only_these_pallets (& PALLETS) . only_these_runtime_apis (& RUNTIME_APIS) . hash () ; runtime_metadata_hash == [114u8 , 219u8 , 246u8 , 3u8 , 159u8 , 249u8 , 118u8 , 44u8 , 59u8 , 74u8 , 195u8 , 79u8 , 24u8 , 32u8 , 250u8 , 193u8 , 134u8 , 10u8 , 93u8 , 200u8 , 92u8 , 21u8 , 190u8 , 114u8 , 106u8 , 183u8 , 52u8 , 79u8 , 255u8 , 59u8 , 210u8 , 10u8 ,] } pub mod system { use super :: root_mod ; use super :: runtime_types ; # [doc = "Error for the System pallet"] pub type Error = runtime_types :: frame_system :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: frame_system :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Make some on-chain remark."] # [doc = ""] # [doc = "Can be executed by every `origin`."] pub struct Remark { pub remark : remark :: Remark , } pub mod remark { use super :: runtime_types ; pub type Remark = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Remark { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "remark" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the number of pages in the WebAssembly environment's heap."] pub struct SetHeapPages { pub pages : set_heap_pages :: Pages , } pub mod set_heap_pages { use super :: runtime_types ; pub type Pages = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHeapPages { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_heap_pages" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the new runtime code."] pub struct SetCode { pub code : set_code :: Code , } pub mod set_code { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCode { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the new runtime code without doing any checks of the given `code`."] # [doc = ""] # [doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"] # [doc = "version!"] pub struct SetCodeWithoutChecks { pub code : set_code_without_checks :: Code , } pub mod set_code_without_checks { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCodeWithoutChecks { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_code_without_checks" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set some items of storage."] pub struct SetStorage { pub items : set_storage :: Items , } pub mod set_storage { use super :: runtime_types ; pub type Items = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetStorage { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_storage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Kill some items from storage."] pub struct KillStorage { pub keys : kill_storage :: Keys , } pub mod kill_storage { use super :: runtime_types ; pub type Keys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for KillStorage { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "kill_storage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Kill all storage items with a key that starts with the given prefix."] # [doc = ""] # [doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] # [doc = "the prefix we are removing to accurately calculate the weight of this function."] pub struct KillPrefix { pub prefix : kill_prefix :: Prefix , pub subkeys : kill_prefix :: Subkeys , } pub mod kill_prefix { use super :: runtime_types ; pub type Prefix = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Subkeys = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for KillPrefix { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "kill_prefix" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Make some on-chain remark and emit event."] pub struct RemarkWithEvent { pub remark : remark_with_event :: Remark , } pub mod remark_with_event { use super :: runtime_types ; pub type Remark = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemarkWithEvent { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "remark_with_event" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "This call requires Root origin."] pub struct AuthorizeUpgrade { pub code_hash : authorize_upgrade :: CodeHash , } pub mod authorize_upgrade { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AuthorizeUpgrade { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "authorize_upgrade" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"] # [doc = "example that the spec name remains the same and that the version number increases. Not"] # [doc = "recommended for normal use. Use `authorize_upgrade` instead."] # [doc = ""] # [doc = "This call requires Root origin."] 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 :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AuthorizeUpgradeWithoutChecks { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "authorize_upgrade_without_checks" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."] # [doc = ""] # [doc = "If the authorization required a version check, this call will ensure the spec name"] # [doc = "remains unchanged and that the spec version has increased."] # [doc = ""] # [doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"] # [doc = "the new `code` in the same block or attempt to schedule the upgrade."] # [doc = ""] # [doc = "All origins are allowed."] pub struct ApplyAuthorizedUpgrade { pub code : apply_authorized_upgrade :: Code , } pub mod apply_authorized_upgrade { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ApplyAuthorizedUpgrade { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "apply_authorized_upgrade" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Make some on-chain remark."] # [doc = ""] # [doc = "Can be executed by every `origin`."] pub fn remark (& self , remark : types :: remark :: Remark ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Remark > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "remark" , types :: Remark { remark , } , [43u8 , 126u8 , 180u8 , 174u8 , 141u8 , 48u8 , 52u8 , 125u8 , 166u8 , 212u8 , 216u8 , 98u8 , 100u8 , 24u8 , 132u8 , 71u8 , 101u8 , 64u8 , 246u8 , 169u8 , 33u8 , 250u8 , 147u8 , 208u8 , 2u8 , 40u8 , 129u8 , 209u8 , 232u8 , 207u8 , 207u8 , 13u8 ,]) } # [doc = "Set the number of pages in the WebAssembly environment's heap."] pub fn set_heap_pages (& self , pages : types :: set_heap_pages :: Pages ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHeapPages > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "set_heap_pages" , types :: SetHeapPages { pages , } , [188u8 , 191u8 , 99u8 , 216u8 , 219u8 , 109u8 , 141u8 , 50u8 , 78u8 , 235u8 , 215u8 , 242u8 , 195u8 , 24u8 , 111u8 , 76u8 , 229u8 , 64u8 , 99u8 , 225u8 , 134u8 , 121u8 , 81u8 , 209u8 , 127u8 , 223u8 , 98u8 , 215u8 , 150u8 , 70u8 , 57u8 , 147u8 ,]) } # [doc = "Set the new runtime code."] pub fn set_code (& self , code : types :: set_code :: Code ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "set_code" , types :: SetCode { code , } , [233u8 , 248u8 , 88u8 , 245u8 , 28u8 , 65u8 , 25u8 , 169u8 , 35u8 , 237u8 , 19u8 , 203u8 , 136u8 , 160u8 , 18u8 , 3u8 , 20u8 , 197u8 , 81u8 , 169u8 , 244u8 , 188u8 , 27u8 , 147u8 , 147u8 , 236u8 , 65u8 , 25u8 , 3u8 , 143u8 , 182u8 , 22u8 ,]) } # [doc = "Set the new runtime code without doing any checks of the given `code`."] # [doc = ""] # [doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"] # [doc = "version!"] pub fn set_code_without_checks (& self , code : types :: set_code_without_checks :: Code ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCodeWithoutChecks > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "set_code_without_checks" , types :: SetCodeWithoutChecks { code , } , [82u8 , 212u8 , 157u8 , 44u8 , 70u8 , 0u8 , 143u8 , 15u8 , 109u8 , 109u8 , 107u8 , 157u8 , 141u8 , 42u8 , 169u8 , 11u8 , 15u8 , 186u8 , 252u8 , 138u8 , 10u8 , 147u8 , 15u8 , 178u8 , 247u8 , 229u8 , 213u8 , 98u8 , 207u8 , 231u8 , 119u8 , 115u8 ,]) } # [doc = "Set some items of storage."] pub fn set_storage (& self , items : types :: set_storage :: Items ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetStorage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "set_storage" , types :: SetStorage { items , } , [141u8 , 216u8 , 52u8 , 222u8 , 223u8 , 136u8 , 123u8 , 181u8 , 19u8 , 75u8 , 163u8 , 102u8 , 229u8 , 189u8 , 158u8 , 142u8 , 95u8 , 235u8 , 240u8 , 49u8 , 150u8 , 76u8 , 78u8 , 137u8 , 126u8 , 88u8 , 183u8 , 88u8 , 231u8 , 146u8 , 234u8 , 43u8 ,]) } # [doc = "Kill some items from storage."] pub fn kill_storage (& self , keys : types :: kill_storage :: Keys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: KillStorage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "kill_storage" , types :: KillStorage { keys , } , [73u8 , 63u8 , 196u8 , 36u8 , 144u8 , 114u8 , 34u8 , 213u8 , 108u8 , 93u8 , 209u8 , 234u8 , 153u8 , 185u8 , 33u8 , 91u8 , 187u8 , 195u8 , 223u8 , 130u8 , 58u8 , 156u8 , 63u8 , 47u8 , 228u8 , 249u8 , 216u8 , 139u8 , 143u8 , 177u8 , 41u8 , 35u8 ,]) } # [doc = "Kill all storage items with a key that starts with the given prefix."] # [doc = ""] # [doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] # [doc = "the prefix we are removing to accurately calculate the weight of this function."] pub fn kill_prefix (& self , prefix : types :: kill_prefix :: Prefix , subkeys : types :: kill_prefix :: Subkeys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: KillPrefix > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "kill_prefix" , types :: KillPrefix { prefix , subkeys , } , [184u8 , 57u8 , 139u8 , 24u8 , 208u8 , 87u8 , 108u8 , 215u8 , 198u8 , 189u8 , 175u8 , 242u8 , 167u8 , 215u8 , 97u8 , 63u8 , 110u8 , 166u8 , 238u8 , 98u8 , 67u8 , 236u8 , 111u8 , 110u8 , 234u8 , 81u8 , 102u8 , 5u8 , 182u8 , 5u8 , 214u8 , 85u8 ,]) } # [doc = "Make some on-chain remark and emit event."] pub fn remark_with_event (& self , remark : types :: remark_with_event :: Remark ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemarkWithEvent > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "remark_with_event" , types :: RemarkWithEvent { remark , } , [120u8 , 120u8 , 153u8 , 92u8 , 184u8 , 85u8 , 34u8 , 2u8 , 174u8 , 206u8 , 105u8 , 228u8 , 233u8 , 130u8 , 80u8 , 246u8 , 228u8 , 59u8 , 234u8 , 240u8 , 4u8 , 49u8 , 147u8 , 170u8 , 115u8 , 91u8 , 149u8 , 200u8 , 228u8 , 181u8 , 8u8 , 154u8 ,]) } # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "This call requires Root origin."] pub fn authorize_upgrade (& self , code_hash : types :: authorize_upgrade :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AuthorizeUpgrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"] # [doc = "example that the spec name remains the same and that the version number increases. Not"] # [doc = "recommended for normal use. Use `authorize_upgrade` instead."] # [doc = ""] # [doc = "This call requires Root origin."] pub fn authorize_upgrade_without_checks (& self , code_hash : types :: authorize_upgrade_without_checks :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AuthorizeUpgradeWithoutChecks > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."] # [doc = ""] # [doc = "If the authorization required a version check, this call will ensure the spec name"] # [doc = "remains unchanged and that the spec version has increased."] # [doc = ""] # [doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"] # [doc = "the new `code` in the same block or attempt to schedule the upgrade."] # [doc = ""] # [doc = "All origins are allowed."] pub fn apply_authorized_upgrade (& self , code : types :: apply_authorized_upgrade :: Code ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ApplyAuthorizedUpgrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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."] pub type Event = runtime_types :: frame_system :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info : extrinsic_success :: DispatchInfo , } pub mod extrinsic_success { use super :: runtime_types ; pub type DispatchInfo = runtime_types :: frame_support :: dispatch :: DispatchInfo ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ExtrinsicSuccess { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "ExtrinsicSuccess" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error : extrinsic_failed :: DispatchError , pub dispatch_info : extrinsic_failed :: DispatchInfo , } pub mod extrinsic_failed { use super :: runtime_types ; pub type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub type DispatchInfo = runtime_types :: frame_support :: dispatch :: DispatchInfo ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ExtrinsicFailed { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "ExtrinsicFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "`:code` was updated."] pub struct CodeUpdated ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CodeUpdated { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "CodeUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A new account was created."] pub struct NewAccount { pub account : new_account :: Account , } pub mod new_account { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewAccount { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "NewAccount" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account was reaped."] pub struct KilledAccount { pub account : killed_account :: Account , } pub mod killed_account { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KilledAccount { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "KilledAccount" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "On on-chain remark happened."] pub struct Remarked { pub sender : remarked :: Sender , pub hash : remarked :: Hash , } pub mod remarked { use super :: runtime_types ; pub type Sender = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Remarked { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "Remarked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; pub type CheckVersion = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for UpgradeAuthorized { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "UpgradeAuthorized" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod account { use super :: runtime_types ; pub type Account = runtime_types :: frame_system :: AccountInfo < :: core :: primitive :: u32 , runtime_types :: pallet_balances :: types :: AccountData < :: core :: primitive :: u128 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod extrinsic_count { use super :: runtime_types ; pub type ExtrinsicCount = :: core :: primitive :: u32 ; } pub mod inherents_applied { use super :: runtime_types ; pub type InherentsApplied = :: core :: primitive :: bool ; } pub mod block_weight { use super :: runtime_types ; pub type BlockWeight = runtime_types :: frame_support :: dispatch :: PerDispatchClass < runtime_types :: sp_weights :: weight_v2 :: Weight > ; } pub mod all_extrinsics_len { use super :: runtime_types ; pub type AllExtrinsicsLen = :: core :: primitive :: u32 ; } pub mod block_hash { use super :: runtime_types ; pub type BlockHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod extrinsic_data { use super :: runtime_types ; pub type ExtrinsicData = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod number { use super :: runtime_types ; pub type Number = :: core :: primitive :: u32 ; } pub mod parent_hash { use super :: runtime_types ; pub type ParentHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod digest { use super :: runtime_types ; pub type Digest = runtime_types :: sp_runtime :: generic :: digest :: Digest ; } pub mod events { use super :: runtime_types ; pub type Events = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: frame_system :: EventRecord < runtime_types :: paseo_runtime :: RuntimeEvent , :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } pub mod event_count { use super :: runtime_types ; pub type EventCount = :: core :: primitive :: u32 ; } pub mod event_topics { use super :: runtime_types ; pub type EventTopics = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod last_runtime_upgrade { use super :: runtime_types ; pub type LastRuntimeUpgrade = runtime_types :: frame_system :: LastRuntimeUpgradeInfo ; } pub mod upgraded_to_u32_ref_count { use super :: runtime_types ; pub type UpgradedToU32RefCount = :: core :: primitive :: bool ; } pub mod upgraded_to_triple_ref_count { use super :: runtime_types ; pub type UpgradedToTripleRefCount = :: core :: primitive :: bool ; } pub mod execution_phase { 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 { # [doc = " The full account information for a particular account ID."] pub fn account_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account :: Account , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Account" , () , [14u8 , 233u8 , 115u8 , 214u8 , 0u8 , 109u8 , 222u8 , 121u8 , 162u8 , 65u8 , 60u8 , 175u8 , 209u8 , 79u8 , 222u8 , 124u8 , 22u8 , 235u8 , 138u8 , 176u8 , 133u8 , 124u8 , 90u8 , 158u8 , 85u8 , 45u8 , 37u8 , 174u8 , 47u8 , 79u8 , 47u8 , 166u8 ,]) } # [doc = " The full account information for a particular account ID."] pub fn account (& self , _0 : impl :: core :: borrow :: Borrow < types :: account :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account :: Param0 > , types :: account :: Account , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Account" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [14u8 , 233u8 , 115u8 , 214u8 , 0u8 , 109u8 , 222u8 , 121u8 , 162u8 , 65u8 , 60u8 , 175u8 , 209u8 , 79u8 , 222u8 , 124u8 , 22u8 , 235u8 , 138u8 , 176u8 , 133u8 , 124u8 , 90u8 , 158u8 , 85u8 , 45u8 , 37u8 , 174u8 , 47u8 , 79u8 , 47u8 , 166u8 ,]) } # [doc = " Total extrinsics count for the current block."] pub fn extrinsic_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: extrinsic_count :: ExtrinsicCount , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicCount" , () , [102u8 , 76u8 , 236u8 , 42u8 , 40u8 , 231u8 , 33u8 , 222u8 , 123u8 , 147u8 , 153u8 , 148u8 , 234u8 , 203u8 , 181u8 , 119u8 , 6u8 , 187u8 , 177u8 , 199u8 , 120u8 , 47u8 , 137u8 , 254u8 , 96u8 , 100u8 , 165u8 , 182u8 , 249u8 , 230u8 , 159u8 , 79u8 ,]) } # [doc = " Whether all inherents have been applied."] pub fn inherents_applied (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: inherents_applied :: InherentsApplied , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "InherentsApplied" , () , [132u8 , 249u8 , 142u8 , 252u8 , 8u8 , 103u8 , 80u8 , 120u8 , 50u8 , 6u8 , 188u8 , 223u8 , 101u8 , 55u8 , 165u8 , 189u8 , 172u8 , 249u8 , 165u8 , 230u8 , 183u8 , 109u8 , 34u8 , 65u8 , 185u8 , 150u8 , 29u8 , 8u8 , 186u8 , 129u8 , 135u8 , 239u8 ,]) } # [doc = " The current weight for the block."] pub fn block_weight (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_weight :: BlockWeight , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "BlockWeight" , () , [158u8 , 46u8 , 228u8 , 89u8 , 210u8 , 214u8 , 84u8 , 154u8 , 50u8 , 68u8 , 63u8 , 62u8 , 43u8 , 42u8 , 99u8 , 27u8 , 54u8 , 42u8 , 146u8 , 44u8 , 241u8 , 216u8 , 229u8 , 30u8 , 216u8 , 255u8 , 165u8 , 238u8 , 181u8 , 130u8 , 36u8 , 102u8 ,]) } # [doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: all_extrinsics_len :: AllExtrinsicsLen , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "AllExtrinsicsLen" , () , [117u8 , 86u8 , 61u8 , 243u8 , 41u8 , 51u8 , 102u8 , 214u8 , 137u8 , 100u8 , 243u8 , 185u8 , 122u8 , 174u8 , 187u8 , 117u8 , 86u8 , 189u8 , 63u8 , 135u8 , 101u8 , 218u8 , 203u8 , 201u8 , 237u8 , 254u8 , 128u8 , 183u8 , 169u8 , 221u8 , 242u8 , 65u8 ,]) } # [doc = " Map of block numbers to block hashes."] pub fn block_hash_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_hash :: BlockHash , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "BlockHash" , () , [217u8 , 32u8 , 215u8 , 253u8 , 24u8 , 182u8 , 207u8 , 178u8 , 157u8 , 24u8 , 103u8 , 100u8 , 195u8 , 165u8 , 69u8 , 152u8 , 112u8 , 181u8 , 56u8 , 192u8 , 164u8 , 16u8 , 20u8 , 222u8 , 28u8 , 214u8 , 144u8 , 142u8 , 146u8 , 69u8 , 202u8 , 118u8 ,]) } # [doc = " Map of block numbers to block hashes."] pub fn block_hash (& self , _0 : impl :: core :: borrow :: Borrow < types :: block_hash :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_hash :: Param0 > , types :: block_hash :: BlockHash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "BlockHash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [217u8 , 32u8 , 215u8 , 253u8 , 24u8 , 182u8 , 207u8 , 178u8 , 157u8 , 24u8 , 103u8 , 100u8 , 195u8 , 165u8 , 69u8 , 152u8 , 112u8 , 181u8 , 56u8 , 192u8 , 164u8 , 16u8 , 20u8 , 222u8 , 28u8 , 214u8 , 144u8 , 142u8 , 146u8 , 69u8 , 202u8 , 118u8 ,]) } # [doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: extrinsic_data :: ExtrinsicData , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicData" , () , [160u8 , 180u8 , 122u8 , 18u8 , 196u8 , 26u8 , 2u8 , 37u8 , 115u8 , 232u8 , 133u8 , 220u8 , 106u8 , 245u8 , 4u8 , 129u8 , 42u8 , 84u8 , 241u8 , 45u8 , 199u8 , 179u8 , 128u8 , 61u8 , 170u8 , 137u8 , 231u8 , 156u8 , 247u8 , 57u8 , 47u8 , 38u8 ,]) } # [doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data (& self , _0 : impl :: core :: borrow :: Borrow < types :: extrinsic_data :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: extrinsic_data :: Param0 > , types :: extrinsic_data :: ExtrinsicData , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicData" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [160u8 , 180u8 , 122u8 , 18u8 , 196u8 , 26u8 , 2u8 , 37u8 , 115u8 , 232u8 , 133u8 , 220u8 , 106u8 , 245u8 , 4u8 , 129u8 , 42u8 , 84u8 , 241u8 , 45u8 , 199u8 , 179u8 , 128u8 , 61u8 , 170u8 , 137u8 , 231u8 , 156u8 , 247u8 , 57u8 , 47u8 , 38u8 ,]) } # [doc = " The current block number being processed. Set by `execute_block`."] pub fn number (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: number :: Number , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Number" , () , [30u8 , 194u8 , 177u8 , 90u8 , 194u8 , 232u8 , 46u8 , 180u8 , 85u8 , 129u8 , 14u8 , 9u8 , 8u8 , 8u8 , 23u8 , 95u8 , 230u8 , 5u8 , 13u8 , 105u8 , 125u8 , 2u8 , 22u8 , 200u8 , 78u8 , 93u8 , 115u8 , 28u8 , 150u8 , 113u8 , 48u8 , 53u8 ,]) } # [doc = " Hash of the previous block."] pub fn parent_hash (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: parent_hash :: ParentHash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ParentHash" , () , [26u8 , 130u8 , 11u8 , 216u8 , 155u8 , 71u8 , 128u8 , 170u8 , 30u8 , 153u8 , 21u8 , 192u8 , 62u8 , 93u8 , 137u8 , 80u8 , 120u8 , 81u8 , 202u8 , 94u8 , 248u8 , 125u8 , 71u8 , 82u8 , 141u8 , 229u8 , 32u8 , 56u8 , 73u8 , 50u8 , 101u8 , 78u8 ,]) } # [doc = " Digest of the current block, also part of the block header."] pub fn digest (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: digest :: Digest , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Digest" , () , [61u8 , 64u8 , 237u8 , 91u8 , 145u8 , 232u8 , 17u8 , 254u8 , 181u8 , 16u8 , 234u8 , 91u8 , 51u8 , 140u8 , 254u8 , 131u8 , 98u8 , 135u8 , 21u8 , 37u8 , 251u8 , 20u8 , 58u8 , 92u8 , 123u8 , 141u8 , 14u8 , 227u8 , 146u8 , 46u8 , 222u8 , 117u8 ,]) } # [doc = " Events deposited for the current block."] # [doc = ""] # [doc = " NOTE: The item is unbound and should therefore never be read on chain."] # [doc = " It could otherwise inflate the PoV size of a block."] # [doc = ""] # [doc = " Events have a large in-memory size. Box the events to not go out-of-memory"] # [doc = " just in case someone still reads them from within the runtime."] pub fn events (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: events :: Events , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Events" , () , [124u8 , 239u8 , 17u8 , 203u8 , 38u8 , 158u8 , 239u8 , 54u8 , 91u8 , 205u8 , 129u8 , 160u8 , 55u8 , 228u8 , 37u8 , 59u8 , 56u8 , 226u8 , 252u8 , 59u8 , 97u8 , 99u8 , 125u8 , 247u8 , 27u8 , 12u8 , 250u8 , 1u8 , 12u8 , 197u8 , 17u8 , 175u8 ,]) } # [doc = " The number of events in the `Events` list."] pub fn event_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: event_count :: EventCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "EventCount" , () , [175u8 , 24u8 , 252u8 , 184u8 , 210u8 , 167u8 , 146u8 , 143u8 , 164u8 , 80u8 , 151u8 , 205u8 , 189u8 , 189u8 , 55u8 , 220u8 , 47u8 , 101u8 , 181u8 , 33u8 , 254u8 , 131u8 , 13u8 , 143u8 , 3u8 , 244u8 , 245u8 , 45u8 , 2u8 , 210u8 , 79u8 , 133u8 ,]) } # [doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] # [doc = " of events in the `>` list."] # [doc = ""] # [doc = " All topic vectors have deterministic storage locations depending on the topic. This"] # [doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] # [doc = " in case of changes fetch the list of events of interest."] # [doc = ""] # [doc = " The value has the type `(BlockNumberFor, EventIndex)` because if we used only just"] # [doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] # [doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: event_topics :: EventTopics , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "EventTopics" , () , [40u8 , 225u8 , 14u8 , 75u8 , 44u8 , 176u8 , 76u8 , 34u8 , 143u8 , 107u8 , 69u8 , 133u8 , 114u8 , 13u8 , 172u8 , 250u8 , 141u8 , 73u8 , 12u8 , 65u8 , 217u8 , 63u8 , 120u8 , 241u8 , 48u8 , 106u8 , 143u8 , 161u8 , 128u8 , 100u8 , 166u8 , 59u8 ,]) } # [doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] # [doc = " of events in the `>` list."] # [doc = ""] # [doc = " All topic vectors have deterministic storage locations depending on the topic. This"] # [doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] # [doc = " in case of changes fetch the list of events of interest."] # [doc = ""] # [doc = " The value has the type `(BlockNumberFor, EventIndex)` because if we used only just"] # [doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] # [doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics (& self , _0 : impl :: core :: borrow :: Borrow < types :: event_topics :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: event_topics :: Param0 > , types :: event_topics :: EventTopics , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "EventTopics" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [40u8 , 225u8 , 14u8 , 75u8 , 44u8 , 176u8 , 76u8 , 34u8 , 143u8 , 107u8 , 69u8 , 133u8 , 114u8 , 13u8 , 172u8 , 250u8 , 141u8 , 73u8 , 12u8 , 65u8 , 217u8 , 63u8 , 120u8 , 241u8 , 48u8 , 106u8 , 143u8 , 161u8 , 128u8 , 100u8 , 166u8 , 59u8 ,]) } # [doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_runtime_upgrade :: LastRuntimeUpgrade , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "LastRuntimeUpgrade" , () , [137u8 , 29u8 , 175u8 , 75u8 , 197u8 , 208u8 , 91u8 , 207u8 , 156u8 , 87u8 , 148u8 , 68u8 , 91u8 , 140u8 , 22u8 , 233u8 , 1u8 , 229u8 , 56u8 , 34u8 , 40u8 , 194u8 , 253u8 , 30u8 , 163u8 , 39u8 , 54u8 , 209u8 , 13u8 , 27u8 , 139u8 , 184u8 ,]) } # [doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."] pub fn upgraded_to_u32_ref_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upgraded_to_u32_ref_count :: UpgradedToU32RefCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "UpgradedToU32RefCount" , () , [229u8 , 73u8 , 9u8 , 132u8 , 186u8 , 116u8 , 151u8 , 171u8 , 145u8 , 29u8 , 34u8 , 130u8 , 52u8 , 146u8 , 124u8 , 175u8 , 79u8 , 189u8 , 147u8 , 230u8 , 234u8 , 107u8 , 124u8 , 31u8 , 2u8 , 22u8 , 86u8 , 190u8 , 4u8 , 147u8 , 50u8 , 245u8 ,]) } # [doc = " True if we have upgraded so that AccountInfo contains three types of `RefCount`. False"] # [doc = " (default) if not."] pub fn upgraded_to_triple_ref_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upgraded_to_triple_ref_count :: UpgradedToTripleRefCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "UpgradedToTripleRefCount" , () , [97u8 , 66u8 , 124u8 , 243u8 , 27u8 , 167u8 , 147u8 , 81u8 , 254u8 , 201u8 , 101u8 , 24u8 , 40u8 , 231u8 , 14u8 , 179u8 , 154u8 , 163u8 , 71u8 , 81u8 , 185u8 , 167u8 , 82u8 , 254u8 , 189u8 , 3u8 , 101u8 , 207u8 , 206u8 , 194u8 , 155u8 , 151u8 ,]) } # [doc = " The execution phase of the block."] pub fn execution_phase (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: execution_phase :: ExecutionPhase , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExecutionPhase" , () , [191u8 , 129u8 , 100u8 , 134u8 , 126u8 , 116u8 , 154u8 , 203u8 , 220u8 , 200u8 , 0u8 , 26u8 , 161u8 , 250u8 , 133u8 , 205u8 , 146u8 , 24u8 , 5u8 , 156u8 , 158u8 , 35u8 , 36u8 , 253u8 , 52u8 , 235u8 , 86u8 , 167u8 , 35u8 , 100u8 , 119u8 , 27u8 ,]) } # [doc = " `Some` if a code upgrade has been authorized."] pub fn authorized_upgrade (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorized_upgrade :: AuthorizedUpgrade , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "AuthorizedUpgrade" , () , [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 { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Block & extrinsics weights: base values and limits."] pub fn block_weights (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_system :: limits :: BlockWeights > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "BlockWeights" , [176u8 , 124u8 , 225u8 , 136u8 , 25u8 , 73u8 , 247u8 , 33u8 , 82u8 , 206u8 , 85u8 , 190u8 , 127u8 , 102u8 , 71u8 , 11u8 , 185u8 , 8u8 , 58u8 , 0u8 , 94u8 , 55u8 , 163u8 , 177u8 , 104u8 , 59u8 , 60u8 , 136u8 , 246u8 , 116u8 , 0u8 , 239u8 ,]) } # [doc = " The maximum length of a block (in bytes)."] pub fn block_length (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_system :: limits :: BlockLength > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "BlockLength" , [23u8 , 242u8 , 225u8 , 39u8 , 225u8 , 67u8 , 152u8 , 41u8 , 155u8 , 104u8 , 68u8 , 229u8 , 185u8 , 133u8 , 10u8 , 143u8 , 184u8 , 152u8 , 234u8 , 44u8 , 140u8 , 96u8 , 166u8 , 235u8 , 162u8 , 160u8 , 72u8 , 7u8 , 35u8 , 194u8 , 3u8 , 37u8 ,]) } # [doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "BlockHashCount" , [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 weight of runtime database operations the runtime can invoke."] pub fn db_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_weights :: RuntimeDbWeight > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "DbWeight" , [42u8 , 43u8 , 178u8 , 142u8 , 243u8 , 203u8 , 60u8 , 173u8 , 118u8 , 111u8 , 200u8 , 170u8 , 102u8 , 70u8 , 237u8 , 187u8 , 198u8 , 120u8 , 153u8 , 232u8 , 183u8 , 76u8 , 74u8 , 10u8 , 70u8 , 243u8 , 14u8 , 218u8 , 213u8 , 126u8 , 29u8 , 177u8 ,]) } # [doc = " Get the chain's in-code version."] pub fn version (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_version :: RuntimeVersion > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "Version" , [219u8 , 45u8 , 162u8 , 245u8 , 177u8 , 246u8 , 48u8 , 126u8 , 191u8 , 157u8 , 228u8 , 83u8 , 111u8 , 133u8 , 183u8 , 13u8 , 148u8 , 108u8 , 92u8 , 102u8 , 72u8 , 205u8 , 74u8 , 242u8 , 233u8 , 79u8 , 20u8 , 170u8 , 72u8 , 202u8 , 158u8 , 165u8 ,]) } # [doc = " The designated SS58 prefix of this chain."] # [doc = ""] # [doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"] # [doc = " that the runtime should know about the prefix in order to make use of it as"] # [doc = " an identifier of the chain."] pub fn ss58_prefix (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "SS58Prefix" , [116u8 , 33u8 , 2u8 , 170u8 , 181u8 , 147u8 , 171u8 , 169u8 , 167u8 , 227u8 , 41u8 , 144u8 , 11u8 , 236u8 , 82u8 , 100u8 , 74u8 , 60u8 , 184u8 , 72u8 , 169u8 , 90u8 , 208u8 , 135u8 , 15u8 , 117u8 , 10u8 , 123u8 , 128u8 , 193u8 , 29u8 , 70u8 ,]) } } } } pub mod scheduler { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_scheduler :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_scheduler :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Anonymously schedule a task."] pub struct Schedule { pub when : schedule :: When , pub maybe_periodic : schedule :: MaybePeriodic , pub priority : schedule :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule :: Call > , } pub mod schedule { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Schedule { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel an anonymously scheduled task."] pub struct Cancel { pub when : cancel :: When , pub index : cancel :: Index , } pub mod cancel { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Cancel { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a named task."] pub struct ScheduleNamed { pub id : schedule_named :: Id , pub when : schedule_named :: When , pub maybe_periodic : schedule_named :: MaybePeriodic , pub priority : schedule_named :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule_named :: Call > , } pub mod schedule_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; pub type When = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule_named" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a named scheduled task."] pub struct CancelNamed { pub id : cancel_named :: Id , } pub mod cancel_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel_named" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Anonymously schedule a task after a delay."] pub struct ScheduleAfter { pub after : schedule_after :: After , pub maybe_periodic : schedule_after :: MaybePeriodic , pub priority : schedule_after :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule_after :: Call > , } pub mod schedule_after { use super :: runtime_types ; pub type After = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleAfter { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule_after" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a named task after a delay."] pub struct ScheduleNamedAfter { pub id : schedule_named_after :: Id , pub after : schedule_named_after :: After , pub maybe_periodic : schedule_named_after :: MaybePeriodic , pub priority : schedule_named_after :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule_named_after :: Call > , } pub mod schedule_named_after { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; pub type After = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleNamedAfter { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule_named_after" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] # [doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] # [doc = "succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub struct SetRetry { pub task : set_retry :: Task , pub retries : set_retry :: Retries , pub period : set_retry :: Period , } pub mod set_retry { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Retries = :: core :: primitive :: u8 ; pub type Period = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetRetry { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "set_retry" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] # [doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] # [doc = "it succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub struct SetRetryNamed { pub id : set_retry_named :: Id , pub retries : set_retry_named :: Retries , pub period : set_retry_named :: Period , } pub mod set_retry_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; pub type Retries = :: core :: primitive :: u8 ; pub type Period = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetRetryNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "set_retry_named" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Removes the retry configuration of a task."] pub struct CancelRetry { pub task : cancel_retry :: Task , } pub mod cancel_retry { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelRetry { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel_retry" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel the retry configuration of a named task."] pub struct CancelRetryNamed { pub id : cancel_retry_named :: Id , } pub mod cancel_retry_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelRetryNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel_retry_named" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Anonymously schedule a task."] pub fn schedule (& self , when : types :: schedule :: When , maybe_periodic : types :: schedule :: MaybePeriodic , priority : types :: schedule :: Priority , call : types :: schedule :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Schedule > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule" , types :: Schedule { when , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [88u8 , 13u8 , 245u8 , 156u8 , 102u8 , 53u8 , 127u8 , 92u8 , 88u8 , 73u8 , 12u8 , 156u8 , 47u8 , 193u8 , 171u8 , 230u8 , 190u8 , 25u8 , 113u8 , 236u8 , 55u8 , 181u8 , 84u8 , 183u8 , 37u8 , 227u8 , 217u8 , 129u8 , 245u8 , 160u8 , 104u8 , 145u8 ,]) } # [doc = "Cancel an anonymously scheduled task."] pub fn cancel (& self , when : types :: cancel :: When , index : types :: cancel :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Cancel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel" , types :: Cancel { when , index , } , [183u8 , 204u8 , 143u8 , 86u8 , 17u8 , 130u8 , 132u8 , 91u8 , 133u8 , 168u8 , 103u8 , 129u8 , 114u8 , 56u8 , 123u8 , 42u8 , 123u8 , 120u8 , 221u8 , 211u8 , 26u8 , 85u8 , 82u8 , 246u8 , 192u8 , 39u8 , 254u8 , 45u8 , 147u8 , 56u8 , 178u8 , 133u8 ,]) } # [doc = "Schedule a named task."] pub fn schedule_named (& self , id : types :: schedule_named :: Id , when : types :: schedule_named :: When , maybe_periodic : types :: schedule_named :: MaybePeriodic , priority : types :: schedule_named :: Priority , call : types :: schedule_named :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule_named" , types :: ScheduleNamed { id , when , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [163u8 , 231u8 , 238u8 , 211u8 , 115u8 , 205u8 , 22u8 , 232u8 , 142u8 , 215u8 , 28u8 , 183u8 , 151u8 , 233u8 , 121u8 , 14u8 , 125u8 , 247u8 , 246u8 , 153u8 , 149u8 , 0u8 , 30u8 , 92u8 , 61u8 , 122u8 , 153u8 , 20u8 , 92u8 , 131u8 , 61u8 , 4u8 ,]) } # [doc = "Cancel a named scheduled task."] pub fn cancel_named (& self , id : types :: cancel_named :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel_named" , types :: CancelNamed { id , } , [205u8 , 35u8 , 28u8 , 57u8 , 224u8 , 7u8 , 49u8 , 233u8 , 236u8 , 163u8 , 93u8 , 236u8 , 103u8 , 69u8 , 65u8 , 51u8 , 121u8 , 84u8 , 9u8 , 196u8 , 147u8 , 122u8 , 227u8 , 200u8 , 181u8 , 233u8 , 62u8 , 240u8 , 174u8 , 83u8 , 129u8 , 193u8 ,]) } # [doc = "Anonymously schedule a task after a delay."] pub fn schedule_after (& self , after : types :: schedule_after :: After , maybe_periodic : types :: schedule_after :: MaybePeriodic , priority : types :: schedule_after :: Priority , call : types :: schedule_after :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleAfter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule_after" , types :: ScheduleAfter { after , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [70u8 , 240u8 , 73u8 , 51u8 , 40u8 , 95u8 , 210u8 , 38u8 , 197u8 , 69u8 , 109u8 , 54u8 , 215u8 , 55u8 , 176u8 , 198u8 , 84u8 , 32u8 , 202u8 , 130u8 , 146u8 , 79u8 , 73u8 , 107u8 , 125u8 , 4u8 , 12u8 , 23u8 , 64u8 , 87u8 , 144u8 , 167u8 ,]) } # [doc = "Schedule a named task after a delay."] pub fn schedule_named_after (& self , id : types :: schedule_named_after :: Id , after : types :: schedule_named_after :: After , maybe_periodic : types :: schedule_named_after :: MaybePeriodic , priority : types :: schedule_named_after :: Priority , call : types :: schedule_named_after :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleNamedAfter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule_named_after" , types :: ScheduleNamedAfter { id , after , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [23u8 , 210u8 , 61u8 , 147u8 , 133u8 , 225u8 , 36u8 , 6u8 , 133u8 , 38u8 , 243u8 , 150u8 , 58u8 , 248u8 , 189u8 , 162u8 , 71u8 , 42u8 , 125u8 , 80u8 , 169u8 , 236u8 , 147u8 , 137u8 , 88u8 , 32u8 , 177u8 , 5u8 , 252u8 , 42u8 , 183u8 , 69u8 ,]) } # [doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] # [doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] # [doc = "succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub fn set_retry (& self , task : types :: set_retry :: Task , retries : types :: set_retry :: Retries , period : types :: set_retry :: Period ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetRetry > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "set_retry" , types :: SetRetry { task , retries , period , } , [2u8 , 242u8 , 180u8 , 69u8 , 237u8 , 168u8 , 243u8 , 93u8 , 47u8 , 222u8 , 189u8 , 74u8 , 233u8 , 106u8 , 54u8 , 40u8 , 160u8 , 61u8 , 78u8 , 138u8 , 232u8 , 20u8 , 243u8 , 17u8 , 151u8 , 194u8 , 67u8 , 200u8 , 186u8 , 192u8 , 210u8 , 214u8 ,]) } # [doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] # [doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] # [doc = "it succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub fn set_retry_named (& self , id : types :: set_retry_named :: Id , retries : types :: set_retry_named :: Retries , period : types :: set_retry_named :: Period ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetRetryNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "set_retry_named" , types :: SetRetryNamed { id , retries , period , } , [240u8 , 102u8 , 255u8 , 253u8 , 52u8 , 81u8 , 164u8 , 170u8 , 184u8 , 178u8 , 254u8 , 126u8 , 41u8 , 247u8 , 121u8 , 22u8 , 254u8 , 136u8 , 237u8 , 37u8 , 11u8 , 42u8 , 227u8 , 234u8 , 132u8 , 83u8 , 109u8 , 168u8 , 31u8 , 44u8 , 231u8 , 70u8 ,]) } # [doc = "Removes the retry configuration of a task."] pub fn cancel_retry (& self , task : types :: cancel_retry :: Task ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelRetry > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel_retry" , types :: CancelRetry { task , } , [142u8 , 126u8 , 127u8 , 216u8 , 64u8 , 189u8 , 42u8 , 126u8 , 63u8 , 249u8 , 211u8 , 202u8 , 224u8 , 197u8 , 199u8 , 240u8 , 58u8 , 94u8 , 219u8 , 177u8 , 20u8 , 210u8 , 153u8 , 0u8 , 127u8 , 255u8 , 235u8 , 238u8 , 170u8 , 240u8 , 44u8 , 49u8 ,]) } # [doc = "Cancel the retry configuration of a named task."] pub fn cancel_retry_named (& self , id : types :: cancel_retry_named :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelRetryNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel_retry_named" , types :: CancelRetryNamed { id , } , [76u8 , 157u8 , 253u8 , 113u8 , 162u8 , 54u8 , 98u8 , 21u8 , 62u8 , 44u8 , 155u8 , 202u8 , 2u8 , 28u8 , 153u8 , 219u8 , 67u8 , 166u8 , 206u8 , 79u8 , 139u8 , 3u8 , 119u8 , 182u8 , 254u8 , 134u8 , 143u8 , 121u8 , 155u8 , 220u8 , 192u8 , 209u8 ,]) } } } # [doc = "Events type."] pub type Event = runtime_types :: pallet_scheduler :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Scheduled some task."] pub struct Scheduled { pub when : scheduled :: When , pub index : scheduled :: Index , } pub mod scheduled { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Scheduled { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "Scheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Canceled some task."] pub struct Canceled { pub when : canceled :: When , pub index : canceled :: Index , } pub mod canceled { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Canceled { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "Canceled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatched some task."] pub struct Dispatched { pub task : dispatched :: Task , pub id : dispatched :: Id , pub result : dispatched :: Result , } pub mod dispatched { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Dispatched { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "Dispatched" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a retry configuration for some task."] pub struct RetrySet { pub task : retry_set :: Task , pub id : retry_set :: Id , pub period : retry_set :: Period , pub retries : retry_set :: Retries , } pub mod retry_set { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; pub type Period = :: core :: primitive :: u32 ; pub type Retries = :: core :: primitive :: u8 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RetrySet { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "RetrySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a retry configuration for some task."] pub struct RetryCancelled { pub task : retry_cancelled :: Task , pub id : retry_cancelled :: Id , } pub mod retry_cancelled { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RetryCancelled { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "RetryCancelled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallUnavailable { pub task : call_unavailable :: Task , pub id : call_unavailable :: Id , } pub mod call_unavailable { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CallUnavailable { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "CallUnavailable" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The given task was unable to be renewed since the agenda is full at that block."] pub struct PeriodicFailed { pub task : periodic_failed :: Task , pub id : periodic_failed :: Id , } pub mod periodic_failed { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PeriodicFailed { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "PeriodicFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The given task was unable to be retried since the agenda is full at that block or there"] # [doc = "was not enough weight to reschedule it."] pub struct RetryFailed { pub task : retry_failed :: Task , pub id : retry_failed :: Id , } pub mod retry_failed { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RetryFailed { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "RetryFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The given task can never be executed since it is overweight."] pub struct PermanentlyOverweight { pub task : permanently_overweight :: Task , pub id : permanently_overweight :: Id , } pub mod permanently_overweight { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PermanentlyOverweight { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "PermanentlyOverweight" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod incomplete_since { use super :: runtime_types ; pub type IncompleteSince = :: core :: primitive :: u32 ; } pub mod agenda { use super :: runtime_types ; pub type Agenda = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: option :: Option < runtime_types :: pallet_scheduler :: Scheduled < [:: core :: primitive :: u8 ; 32usize] , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: paseo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , :: core :: primitive :: u32 , runtime_types :: paseo_runtime :: OriginCaller , :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod retries { use super :: runtime_types ; pub type Retries = runtime_types :: pallet_scheduler :: RetryConfig < :: core :: primitive :: u32 > ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = :: core :: primitive :: u32 ; } pub mod lookup { use super :: runtime_types ; pub type Lookup = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Param0 = [:: core :: primitive :: u8 ; 32usize] ; } } pub struct StorageApi ; impl StorageApi { pub fn incomplete_since (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: incomplete_since :: IncompleteSince , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "IncompleteSince" , () , [250u8 , 83u8 , 64u8 , 167u8 , 205u8 , 59u8 , 225u8 , 97u8 , 205u8 , 12u8 , 76u8 , 130u8 , 197u8 , 4u8 , 111u8 , 208u8 , 92u8 , 217u8 , 145u8 , 119u8 , 38u8 , 135u8 , 1u8 , 242u8 , 228u8 , 143u8 , 56u8 , 25u8 , 115u8 , 233u8 , 227u8 , 66u8 ,]) } # [doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: agenda :: Agenda , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Agenda" , () , [238u8 , 194u8 , 37u8 , 57u8 , 51u8 , 117u8 , 111u8 , 104u8 , 95u8 , 122u8 , 110u8 , 121u8 , 106u8 , 40u8 , 82u8 , 193u8 , 71u8 , 180u8 , 44u8 , 152u8 , 87u8 , 147u8 , 3u8 , 85u8 , 77u8 , 93u8 , 58u8 , 91u8 , 221u8 , 250u8 , 40u8 , 127u8 ,]) } # [doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda (& self , _0 : impl :: core :: borrow :: Borrow < types :: agenda :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: agenda :: Param0 > , types :: agenda :: Agenda , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Agenda" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [238u8 , 194u8 , 37u8 , 57u8 , 51u8 , 117u8 , 111u8 , 104u8 , 95u8 , 122u8 , 110u8 , 121u8 , 106u8 , 40u8 , 82u8 , 193u8 , 71u8 , 180u8 , 44u8 , 152u8 , 87u8 , 147u8 , 3u8 , 85u8 , 77u8 , 93u8 , 58u8 , 91u8 , 221u8 , 250u8 , 40u8 , 127u8 ,]) } # [doc = " Retry configurations for items to be executed, indexed by task address."] pub fn retries_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: retries :: Retries , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Retries" , () , [164u8 , 27u8 , 208u8 , 185u8 , 19u8 , 232u8 , 190u8 , 97u8 , 137u8 , 73u8 , 146u8 , 10u8 , 241u8 , 176u8 , 251u8 , 140u8 , 133u8 , 65u8 , 190u8 , 162u8 , 59u8 , 32u8 , 77u8 , 201u8 , 27u8 , 78u8 , 183u8 , 164u8 , 74u8 , 46u8 , 139u8 , 145u8 ,]) } # [doc = " Retry configurations for items to be executed, indexed by task address."] pub fn retries_iter1 (& self , _0 : impl :: core :: borrow :: Borrow < types :: retries :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: retries :: Param0 > , types :: retries :: Retries , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Retries" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [164u8 , 27u8 , 208u8 , 185u8 , 19u8 , 232u8 , 190u8 , 97u8 , 137u8 , 73u8 , 146u8 , 10u8 , 241u8 , 176u8 , 251u8 , 140u8 , 133u8 , 65u8 , 190u8 , 162u8 , 59u8 , 32u8 , 77u8 , 201u8 , 27u8 , 78u8 , 183u8 , 164u8 , 74u8 , 46u8 , 139u8 , 145u8 ,]) } # [doc = " Retry configurations for items to be executed, indexed by task address."] pub fn retries (& self , _0 : impl :: core :: borrow :: Borrow < types :: retries :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: retries :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: retries :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: retries :: Param1 > ,) , types :: retries :: Retries , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Retries" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) ,) , [164u8 , 27u8 , 208u8 , 185u8 , 19u8 , 232u8 , 190u8 , 97u8 , 137u8 , 73u8 , 146u8 , 10u8 , 241u8 , 176u8 , 251u8 , 140u8 , 133u8 , 65u8 , 190u8 , 162u8 , 59u8 , 32u8 , 77u8 , 201u8 , 27u8 , 78u8 , 183u8 , 164u8 , 74u8 , 46u8 , 139u8 , 145u8 ,]) } # [doc = " Lookup from a name to the block number and index of the task."] # [doc = ""] # [doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] # [doc = " identities."] pub fn lookup_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: lookup :: Lookup , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Lookup" , () , [24u8 , 87u8 , 96u8 , 127u8 , 136u8 , 205u8 , 238u8 , 174u8 , 71u8 , 110u8 , 65u8 , 98u8 , 228u8 , 167u8 , 99u8 , 71u8 , 171u8 , 186u8 , 12u8 , 218u8 , 137u8 , 70u8 , 70u8 , 228u8 , 153u8 , 111u8 , 165u8 , 114u8 , 229u8 , 136u8 , 118u8 , 131u8 ,]) } # [doc = " Lookup from a name to the block number and index of the task."] # [doc = ""] # [doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] # [doc = " identities."] pub fn lookup (& self , _0 : impl :: core :: borrow :: Borrow < types :: lookup :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: lookup :: Param0 > , types :: lookup :: Lookup , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Lookup" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [24u8 , 87u8 , 96u8 , 127u8 , 136u8 , 205u8 , 238u8 , 174u8 , 71u8 , 110u8 , 65u8 , 98u8 , 228u8 , 167u8 , 99u8 , 71u8 , 171u8 , 186u8 , 12u8 , 218u8 , 137u8 , 70u8 , 70u8 , 228u8 , 153u8 , 111u8 , 165u8 , 114u8 , 229u8 , 136u8 , 118u8 , 131u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The maximum weight that may be scheduled per block for any dispatchables."] pub fn maximum_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_weights :: weight_v2 :: Weight > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Scheduler" , "MaximumWeight" , [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 number of scheduled calls in the queue for a single block."] # [doc = ""] # [doc = " NOTE:"] # [doc = " + Dependent pallets' benchmarks might require a higher limit for the setting. Set a"] # [doc = " higher limit under `runtime-benchmarks` feature."] pub fn max_scheduled_per_block (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Scheduler" , "MaxScheduledPerBlock" , [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 preimage { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_preimage :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_preimage :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register a preimage on-chain."] # [doc = ""] # [doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] # [doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] pub struct NotePreimage { pub bytes : note_preimage :: Bytes , } pub mod note_preimage { use super :: runtime_types ; pub type Bytes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for NotePreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "note_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Clear an unrequested preimage from the runtime storage."] # [doc = ""] # [doc = "If `len` is provided, then it will be a much cheaper operation."] # [doc = ""] # [doc = "- `hash`: The hash of the preimage to be removed from the store."] # [doc = "- `len`: The length of the preimage of `hash`."] pub struct UnnotePreimage { pub hash : unnote_preimage :: Hash , } pub mod unnote_preimage { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnnotePreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "unnote_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] # [doc = ""] # [doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] # [doc = "a user may have paid, and take the control of the preimage out of their hands."] pub struct RequestPreimage { pub hash : request_preimage :: Hash , } pub mod request_preimage { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RequestPreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "request_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Clear a previously made request for a preimage."] # [doc = ""] # [doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub struct UnrequestPreimage { pub hash : unrequest_preimage :: Hash , } pub mod unrequest_preimage { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnrequestPreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "unrequest_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Ensure that the a bulk of pre-images is upgraded."] # [doc = ""] # [doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."] pub struct EnsureUpdated { pub hashes : ensure_updated :: Hashes , } pub mod ensure_updated { use super :: runtime_types ; pub type Hashes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for EnsureUpdated { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "ensure_updated" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Register a preimage on-chain."] # [doc = ""] # [doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] # [doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] pub fn note_preimage (& self , bytes : types :: note_preimage :: Bytes ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: NotePreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Preimage" , "note_preimage" , types :: NotePreimage { bytes , } , [121u8 , 88u8 , 18u8 , 92u8 , 176u8 , 15u8 , 192u8 , 198u8 , 146u8 , 198u8 , 38u8 , 242u8 , 213u8 , 83u8 , 7u8 , 230u8 , 14u8 , 110u8 , 235u8 , 32u8 , 215u8 , 26u8 , 192u8 , 217u8 , 113u8 , 224u8 , 206u8 , 96u8 , 177u8 , 198u8 , 246u8 , 33u8 ,]) } # [doc = "Clear an unrequested preimage from the runtime storage."] # [doc = ""] # [doc = "If `len` is provided, then it will be a much cheaper operation."] # [doc = ""] # [doc = "- `hash`: The hash of the preimage to be removed from the store."] # [doc = "- `len`: The length of the preimage of `hash`."] pub fn unnote_preimage (& self , hash : types :: unnote_preimage :: Hash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnnotePreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Preimage" , "unnote_preimage" , types :: UnnotePreimage { hash , } , [188u8 , 116u8 , 222u8 , 22u8 , 127u8 , 215u8 , 2u8 , 133u8 , 96u8 , 202u8 , 190u8 , 123u8 , 203u8 , 43u8 , 200u8 , 161u8 , 226u8 , 24u8 , 49u8 , 36u8 , 221u8 , 160u8 , 130u8 , 119u8 , 30u8 , 138u8 , 144u8 , 85u8 , 5u8 , 164u8 , 252u8 , 222u8 ,]) } # [doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] # [doc = ""] # [doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] # [doc = "a user may have paid, and take the control of the preimage out of their hands."] pub fn request_preimage (& self , hash : types :: request_preimage :: Hash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RequestPreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Preimage" , "request_preimage" , types :: RequestPreimage { hash , } , [87u8 , 0u8 , 204u8 , 111u8 , 43u8 , 115u8 , 64u8 , 209u8 , 133u8 , 13u8 , 83u8 , 45u8 , 164u8 , 166u8 , 233u8 , 105u8 , 242u8 , 238u8 , 235u8 , 208u8 , 113u8 , 134u8 , 93u8 , 242u8 , 86u8 , 32u8 , 7u8 , 152u8 , 107u8 , 208u8 , 79u8 , 59u8 ,]) } # [doc = "Clear a previously made request for a preimage."] # [doc = ""] # [doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub fn unrequest_preimage (& self , hash : types :: unrequest_preimage :: Hash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnrequestPreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Preimage" , "unrequest_preimage" , types :: UnrequestPreimage { hash , } , [55u8 , 37u8 , 224u8 , 149u8 , 142u8 , 120u8 , 8u8 , 68u8 , 183u8 , 225u8 , 255u8 , 240u8 , 254u8 , 111u8 , 58u8 , 200u8 , 113u8 , 217u8 , 177u8 , 203u8 , 107u8 , 104u8 , 233u8 , 87u8 , 252u8 , 53u8 , 33u8 , 112u8 , 116u8 , 254u8 , 117u8 , 134u8 ,]) } # [doc = "Ensure that the a bulk of pre-images is upgraded."] # [doc = ""] # [doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."] pub fn ensure_updated (& self , hashes : types :: ensure_updated :: Hashes ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: EnsureUpdated > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Preimage" , "ensure_updated" , types :: EnsureUpdated { hashes , } , [254u8 , 228u8 , 88u8 , 44u8 , 126u8 , 235u8 , 188u8 , 153u8 , 61u8 , 27u8 , 103u8 , 253u8 , 163u8 , 161u8 , 113u8 , 243u8 , 87u8 , 136u8 , 2u8 , 231u8 , 209u8 , 188u8 , 215u8 , 106u8 , 192u8 , 225u8 , 75u8 , 125u8 , 224u8 , 96u8 , 221u8 , 90u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_preimage :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A preimage has been noted."] pub struct Noted { pub hash : noted :: Hash , } pub mod noted { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Noted { const PALLET : & 'static str = "Preimage" ; const EVENT : & 'static str = "Noted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A preimage has been requested."] pub struct Requested { pub hash : requested :: Hash , } pub mod requested { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Requested { const PALLET : & 'static str = "Preimage" ; const EVENT : & 'static str = "Requested" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A preimage has ben cleared."] pub struct Cleared { pub hash : cleared :: Hash , } pub mod cleared { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Cleared { const PALLET : & 'static str = "Preimage" ; const EVENT : & 'static str = "Cleared" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod status_for { use super :: runtime_types ; pub type StatusFor = runtime_types :: pallet_preimage :: OldRequestStatus < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod request_status_for { use super :: runtime_types ; pub type RequestStatusFor = runtime_types :: pallet_preimage :: RequestStatus < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: frame_support :: traits :: tokens :: fungible :: HoldConsideration > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod preimage_for { use super :: runtime_types ; pub type PreimageFor = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param1 = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The request status of a given hash."] pub fn status_for_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: status_for :: StatusFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "StatusFor" , () , [187u8 , 100u8 , 54u8 , 112u8 , 96u8 , 129u8 , 36u8 , 149u8 , 127u8 , 226u8 , 126u8 , 171u8 , 72u8 , 189u8 , 59u8 , 126u8 , 204u8 , 125u8 , 67u8 , 204u8 , 231u8 , 6u8 , 212u8 , 135u8 , 166u8 , 252u8 , 5u8 , 46u8 , 111u8 , 120u8 , 54u8 , 209u8 ,]) } # [doc = " The request status of a given hash."] pub fn status_for (& self , _0 : impl :: core :: borrow :: Borrow < types :: status_for :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: status_for :: Param0 > , types :: status_for :: StatusFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "StatusFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [187u8 , 100u8 , 54u8 , 112u8 , 96u8 , 129u8 , 36u8 , 149u8 , 127u8 , 226u8 , 126u8 , 171u8 , 72u8 , 189u8 , 59u8 , 126u8 , 204u8 , 125u8 , 67u8 , 204u8 , 231u8 , 6u8 , 212u8 , 135u8 , 166u8 , 252u8 , 5u8 , 46u8 , 111u8 , 120u8 , 54u8 , 209u8 ,]) } # [doc = " The request status of a given hash."] pub fn request_status_for_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: request_status_for :: RequestStatusFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "RequestStatusFor" , () , [72u8 , 59u8 , 254u8 , 211u8 , 96u8 , 223u8 , 10u8 , 64u8 , 6u8 , 139u8 , 213u8 , 85u8 , 14u8 , 29u8 , 166u8 , 37u8 , 140u8 , 124u8 , 186u8 , 156u8 , 172u8 , 157u8 , 73u8 , 5u8 , 121u8 , 117u8 , 51u8 , 6u8 , 249u8 , 203u8 , 75u8 , 190u8 ,]) } # [doc = " The request status of a given hash."] pub fn request_status_for (& self , _0 : impl :: core :: borrow :: Borrow < types :: request_status_for :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: request_status_for :: Param0 > , types :: request_status_for :: RequestStatusFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "RequestStatusFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [72u8 , 59u8 , 254u8 , 211u8 , 96u8 , 223u8 , 10u8 , 64u8 , 6u8 , 139u8 , 213u8 , 85u8 , 14u8 , 29u8 , 166u8 , 37u8 , 140u8 , 124u8 , 186u8 , 156u8 , 172u8 , 157u8 , 73u8 , 5u8 , 121u8 , 117u8 , 51u8 , 6u8 , 249u8 , 203u8 , 75u8 , 190u8 ,]) } pub fn preimage_for_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: preimage_for :: PreimageFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "PreimageFor" , () , [106u8 , 5u8 , 17u8 , 46u8 , 6u8 , 184u8 , 177u8 , 113u8 , 169u8 , 34u8 , 119u8 , 141u8 , 117u8 , 40u8 , 30u8 , 94u8 , 187u8 , 35u8 , 206u8 , 216u8 , 143u8 , 208u8 , 49u8 , 156u8 , 200u8 , 255u8 , 109u8 , 200u8 , 210u8 , 134u8 , 24u8 , 139u8 ,]) } pub fn preimage_for_iter1 (& self , _0 : impl :: core :: borrow :: Borrow < types :: preimage_for :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: preimage_for :: Param0 > , types :: preimage_for :: PreimageFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "PreimageFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [106u8 , 5u8 , 17u8 , 46u8 , 6u8 , 184u8 , 177u8 , 113u8 , 169u8 , 34u8 , 119u8 , 141u8 , 117u8 , 40u8 , 30u8 , 94u8 , 187u8 , 35u8 , 206u8 , 216u8 , 143u8 , 208u8 , 49u8 , 156u8 , 200u8 , 255u8 , 109u8 , 200u8 , 210u8 , 134u8 , 24u8 , 139u8 ,]) } pub fn preimage_for (& self , _0 : impl :: core :: borrow :: Borrow < types :: preimage_for :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: preimage_for :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: preimage_for :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: preimage_for :: Param1 > ,) , types :: preimage_for :: PreimageFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "PreimageFor" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) ,) , [106u8 , 5u8 , 17u8 , 46u8 , 6u8 , 184u8 , 177u8 , 113u8 , 169u8 , 34u8 , 119u8 , 141u8 , 117u8 , 40u8 , 30u8 , 94u8 , 187u8 , 35u8 , 206u8 , 216u8 , 143u8 , 208u8 , 49u8 , 156u8 , 200u8 , 255u8 , 109u8 , 200u8 , 210u8 , 134u8 , 24u8 , 139u8 ,]) } } } } pub mod babe { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_babe :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_babe :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report authority equivocation/misbehavior. This method will verify"] # [doc = "the equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence will"] # [doc = "be reported."] pub struct ReportEquivocation { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation :: EquivocationProof > , pub key_owner_proof : report_equivocation :: KeyOwnerProof , } pub mod report_equivocation { 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_session :: MembershipProof ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocation { const PALLET : & 'static str = "Babe" ; const CALL : & 'static str = "report_equivocation" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report authority equivocation/misbehavior. This method will verify"] # [doc = "the equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence will"] # [doc = "be reported."] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub struct ReportEquivocationUnsigned { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation_unsigned :: EquivocationProof > , pub key_owner_proof : report_equivocation_unsigned :: KeyOwnerProof , } pub mod report_equivocation_unsigned { 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_session :: MembershipProof ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocationUnsigned { const PALLET : & 'static str = "Babe" ; const CALL : & 'static str = "report_equivocation_unsigned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] # [doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] # [doc = "Multiple calls to this method will replace any existing planned config change that had"] # [doc = "not been enacted yet."] pub struct PlanConfigChange { pub config : plan_config_change :: Config , } pub mod plan_config_change { use super :: runtime_types ; pub type Config = runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PlanConfigChange { const PALLET : & 'static str = "Babe" ; const CALL : & 'static str = "plan_config_change" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Report authority equivocation/misbehavior. This method will verify"] # [doc = "the equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence will"] # [doc = "be reported."] pub fn report_equivocation (& self , equivocation_proof : types :: report_equivocation :: EquivocationProof , key_owner_proof : types :: report_equivocation :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocation > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Babe" , "report_equivocation" , types :: ReportEquivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [97u8 , 65u8 , 136u8 , 207u8 , 137u8 , 113u8 , 206u8 , 76u8 , 166u8 , 245u8 , 231u8 , 162u8 , 65u8 , 47u8 , 251u8 , 149u8 , 68u8 , 179u8 , 13u8 , 123u8 , 209u8 , 146u8 , 83u8 , 54u8 , 14u8 , 150u8 , 62u8 , 195u8 , 27u8 , 190u8 , 76u8 , 224u8 ,]) } # [doc = "Report authority equivocation/misbehavior. This method will verify"] # [doc = "the equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence will"] # [doc = "be reported."] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub fn report_equivocation_unsigned (& self , equivocation_proof : types :: report_equivocation_unsigned :: EquivocationProof , key_owner_proof : types :: report_equivocation_unsigned :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocationUnsigned > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Babe" , "report_equivocation_unsigned" , types :: ReportEquivocationUnsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [184u8 , 158u8 , 14u8 , 168u8 , 175u8 , 23u8 , 10u8 , 63u8 , 54u8 , 15u8 , 182u8 , 163u8 , 5u8 , 49u8 , 223u8 , 197u8 , 45u8 , 204u8 , 216u8 , 26u8 , 126u8 , 157u8 , 242u8 , 233u8 , 228u8 , 203u8 , 117u8 , 216u8 , 185u8 , 157u8 , 199u8 , 117u8 ,]) } # [doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] # [doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] # [doc = "Multiple calls to this method will replace any existing planned config change that had"] # [doc = "not been enacted yet."] pub fn plan_config_change (& self , config : types :: plan_config_change :: Config ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PlanConfigChange > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Babe" , "plan_config_change" , types :: PlanConfigChange { config , } , [227u8 , 155u8 , 182u8 , 231u8 , 240u8 , 107u8 , 30u8 , 22u8 , 15u8 , 52u8 , 172u8 , 203u8 , 115u8 , 47u8 , 6u8 , 66u8 , 170u8 , 231u8 , 186u8 , 77u8 , 19u8 , 235u8 , 91u8 , 136u8 , 95u8 , 149u8 , 188u8 , 163u8 , 161u8 , 109u8 , 164u8 , 179u8 ,]) } } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod epoch_index { use super :: runtime_types ; pub type EpochIndex = :: 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_babe :: app :: Public , :: core :: primitive :: u64 ,) > ; } pub mod genesis_slot { use super :: runtime_types ; pub type GenesisSlot = runtime_types :: sp_consensus_slots :: Slot ; } pub mod current_slot { use super :: runtime_types ; pub type CurrentSlot = runtime_types :: sp_consensus_slots :: Slot ; } pub mod randomness { use super :: runtime_types ; pub type Randomness = [:: core :: primitive :: u8 ; 32usize] ; } pub mod pending_epoch_config_change { use super :: runtime_types ; pub type PendingEpochConfigChange = runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor ; } pub mod next_randomness { use super :: runtime_types ; pub type NextRandomness = [:: core :: primitive :: u8 ; 32usize] ; } pub mod next_authorities { use super :: runtime_types ; pub type NextAuthorities = runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > ; } pub mod segment_index { use super :: runtime_types ; pub type SegmentIndex = :: core :: primitive :: u32 ; } pub mod under_construction { use super :: runtime_types ; pub type UnderConstruction = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < [:: core :: primitive :: u8 ; 32usize] > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod initialized { use super :: runtime_types ; pub type Initialized = :: core :: option :: Option < runtime_types :: sp_consensus_babe :: digests :: PreDigest > ; } pub mod author_vrf_randomness { use super :: runtime_types ; pub type AuthorVrfRandomness = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } pub mod epoch_start { use super :: runtime_types ; pub type EpochStart = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; } pub mod lateness { use super :: runtime_types ; pub type Lateness = :: core :: primitive :: u32 ; } pub mod epoch_config { use super :: runtime_types ; pub type EpochConfig = runtime_types :: sp_consensus_babe :: BabeEpochConfiguration ; } pub mod next_epoch_config { use super :: runtime_types ; pub type NextEpochConfig = runtime_types :: sp_consensus_babe :: BabeEpochConfiguration ; } pub mod skipped_epochs { use super :: runtime_types ; pub type SkippedEpochs = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: core :: primitive :: u64 , :: core :: primitive :: u32 ,) > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Current epoch index."] pub fn epoch_index (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: epoch_index :: EpochIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "EpochIndex" , () , [32u8 , 82u8 , 130u8 , 31u8 , 190u8 , 162u8 , 237u8 , 189u8 , 104u8 , 244u8 , 30u8 , 199u8 , 179u8 , 0u8 , 161u8 , 107u8 , 72u8 , 240u8 , 201u8 , 222u8 , 177u8 , 222u8 , 35u8 , 156u8 , 81u8 , 132u8 , 162u8 , 118u8 , 238u8 , 84u8 , 112u8 , 89u8 ,]) } # [doc = " Current epoch authorities."] pub fn authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorities :: Authorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "Authorities" , () , [192u8 , 157u8 , 98u8 , 244u8 , 104u8 , 38u8 , 195u8 , 114u8 , 183u8 , 62u8 , 247u8 , 18u8 , 31u8 , 152u8 , 246u8 , 206u8 , 97u8 , 13u8 , 118u8 , 211u8 , 104u8 , 54u8 , 150u8 , 152u8 , 126u8 , 170u8 , 228u8 , 158u8 , 108u8 , 129u8 , 134u8 , 44u8 ,]) } # [doc = " The slot at which the first epoch actually started. This is 0"] # [doc = " until the first block of the chain."] pub fn genesis_slot (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: genesis_slot :: GenesisSlot , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "GenesisSlot" , () , [218u8 , 174u8 , 152u8 , 76u8 , 188u8 , 214u8 , 7u8 , 88u8 , 253u8 , 187u8 , 139u8 , 234u8 , 51u8 , 28u8 , 220u8 , 57u8 , 73u8 , 1u8 , 18u8 , 205u8 , 80u8 , 160u8 , 120u8 , 216u8 , 139u8 , 191u8 , 100u8 , 108u8 , 162u8 , 106u8 , 175u8 , 107u8 ,]) } # [doc = " Current slot number."] pub fn current_slot (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_slot :: CurrentSlot , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "CurrentSlot" , () , [112u8 , 199u8 , 115u8 , 248u8 , 217u8 , 242u8 , 45u8 , 231u8 , 178u8 , 53u8 , 236u8 , 167u8 , 219u8 , 238u8 , 81u8 , 243u8 , 39u8 , 140u8 , 68u8 , 19u8 , 201u8 , 169u8 , 211u8 , 133u8 , 135u8 , 213u8 , 150u8 , 105u8 , 60u8 , 252u8 , 43u8 , 57u8 ,]) } # [doc = " The epoch randomness for the *current* epoch."] # [doc = ""] # [doc = " # Security"] # [doc = ""] # [doc = " This MUST NOT be used for gambling, as it can be influenced by a"] # [doc = " malicious validator in the short term. It MAY be used in many"] # [doc = " cryptographic protocols, however, so long as one remembers that this"] # [doc = " (like everything else on-chain) it is public. For example, it can be"] # [doc = " used where a number is needed that cannot have been chosen by an"] # [doc = " adversary, for purposes such as public-coin zero-knowledge proofs."] pub fn randomness (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: randomness :: Randomness , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "Randomness" , () , [36u8 , 15u8 , 52u8 , 73u8 , 195u8 , 177u8 , 186u8 , 125u8 , 134u8 , 11u8 , 103u8 , 248u8 , 170u8 , 237u8 , 105u8 , 239u8 , 168u8 , 204u8 , 147u8 , 52u8 , 15u8 , 226u8 , 126u8 , 176u8 , 133u8 , 186u8 , 169u8 , 241u8 , 156u8 , 118u8 , 67u8 , 58u8 ,]) } # [doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] pub fn pending_epoch_config_change (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_epoch_config_change :: PendingEpochConfigChange , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "PendingEpochConfigChange" , () , [79u8 , 216u8 , 84u8 , 210u8 , 83u8 , 149u8 , 122u8 , 160u8 , 159u8 , 164u8 , 16u8 , 134u8 , 154u8 , 104u8 , 77u8 , 254u8 , 139u8 , 18u8 , 163u8 , 59u8 , 92u8 , 9u8 , 135u8 , 141u8 , 147u8 , 86u8 , 44u8 , 95u8 , 183u8 , 101u8 , 11u8 , 58u8 ,]) } # [doc = " Next epoch randomness."] pub fn next_randomness (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_randomness :: NextRandomness , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "NextRandomness" , () , [96u8 , 191u8 , 139u8 , 171u8 , 144u8 , 92u8 , 33u8 , 58u8 , 23u8 , 219u8 , 164u8 , 121u8 , 59u8 , 209u8 , 112u8 , 244u8 , 50u8 , 8u8 , 14u8 , 244u8 , 103u8 , 125u8 , 120u8 , 210u8 , 16u8 , 250u8 , 54u8 , 192u8 , 72u8 , 8u8 , 219u8 , 152u8 ,]) } # [doc = " Next epoch authorities."] pub fn next_authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_authorities :: NextAuthorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "NextAuthorities" , () , [29u8 , 161u8 , 79u8 , 221u8 , 198u8 , 101u8 , 11u8 , 17u8 , 20u8 , 17u8 , 225u8 , 144u8 , 35u8 , 150u8 , 241u8 , 190u8 , 106u8 , 32u8 , 230u8 , 14u8 , 212u8 , 126u8 , 1u8 , 96u8 , 73u8 , 173u8 , 245u8 , 39u8 , 153u8 , 33u8 , 205u8 , 174u8 ,]) } # [doc = " Randomness under construction."] # [doc = ""] # [doc = " We make a trade-off between storage accesses and list length."] # [doc = " We store the under-construction randomness in segments of up to"] # [doc = " `UNDER_CONSTRUCTION_SEGMENT_LENGTH`."] # [doc = ""] # [doc = " Once a segment reaches this length, we begin the next one."] # [doc = " We reset all segments and return to `0` at the beginning of every"] # [doc = " epoch."] pub fn segment_index (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: segment_index :: SegmentIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "SegmentIndex" , () , [145u8 , 91u8 , 142u8 , 240u8 , 184u8 , 94u8 , 68u8 , 52u8 , 130u8 , 3u8 , 75u8 , 175u8 , 155u8 , 130u8 , 66u8 , 9u8 , 150u8 , 242u8 , 123u8 , 111u8 , 124u8 , 241u8 , 100u8 , 128u8 , 220u8 , 133u8 , 96u8 , 227u8 , 164u8 , 241u8 , 170u8 , 34u8 ,]) } # [doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: under_construction :: UnderConstruction , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "UnderConstruction" , () , [120u8 , 120u8 , 59u8 , 247u8 , 50u8 , 6u8 , 220u8 , 14u8 , 2u8 , 76u8 , 203u8 , 244u8 , 232u8 , 144u8 , 253u8 , 191u8 , 101u8 , 35u8 , 99u8 , 85u8 , 111u8 , 168u8 , 31u8 , 110u8 , 187u8 , 124u8 , 72u8 , 32u8 , 43u8 , 66u8 , 8u8 , 215u8 ,]) } # [doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction (& self , _0 : impl :: core :: borrow :: Borrow < types :: under_construction :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: under_construction :: Param0 > , types :: under_construction :: UnderConstruction , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "UnderConstruction" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [120u8 , 120u8 , 59u8 , 247u8 , 50u8 , 6u8 , 220u8 , 14u8 , 2u8 , 76u8 , 203u8 , 244u8 , 232u8 , 144u8 , 253u8 , 191u8 , 101u8 , 35u8 , 99u8 , 85u8 , 111u8 , 168u8 , 31u8 , 110u8 , 187u8 , 124u8 , 72u8 , 32u8 , 43u8 , 66u8 , 8u8 , 215u8 ,]) } # [doc = " Temporary value (cleared at block finalization) which is `Some`"] # [doc = " if per-block initialization has already been called for current block."] pub fn initialized (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: initialized :: Initialized , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "Initialized" , () , [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 ,]) } # [doc = " This field should always be populated during block processing unless"] # [doc = " secondary plain slots are enabled (which don't contain a VRF output)."] # [doc = ""] # [doc = " It is set in `on_finalize`, before it will contain the value from the last block."] pub fn author_vrf_randomness (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: author_vrf_randomness :: AuthorVrfRandomness , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "AuthorVrfRandomness" , () , [160u8 , 157u8 , 62u8 , 48u8 , 196u8 , 136u8 , 63u8 , 132u8 , 155u8 , 183u8 , 91u8 , 201u8 , 146u8 , 29u8 , 192u8 , 142u8 , 168u8 , 152u8 , 197u8 , 233u8 , 5u8 , 25u8 , 0u8 , 154u8 , 234u8 , 180u8 , 146u8 , 132u8 , 106u8 , 164u8 , 149u8 , 63u8 ,]) } # [doc = " The block numbers when the last and current epoch have started, respectively `N-1` and"] # [doc = " `N`."] # [doc = " NOTE: We track this is in order to annotate the block number when a given pool of"] # [doc = " entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in"] # [doc = " slots, which may be skipped, the block numbers may not line up with the slot numbers."] pub fn epoch_start (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: epoch_start :: EpochStart , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "EpochStart" , () , [144u8 , 133u8 , 140u8 , 56u8 , 241u8 , 203u8 , 199u8 , 123u8 , 244u8 , 126u8 , 196u8 , 151u8 , 214u8 , 204u8 , 243u8 , 244u8 , 210u8 , 198u8 , 174u8 , 126u8 , 200u8 , 236u8 , 248u8 , 190u8 , 181u8 , 152u8 , 113u8 , 224u8 , 95u8 , 234u8 , 169u8 , 14u8 ,]) } # [doc = " How late the current block is compared to its parent."] # [doc = ""] # [doc = " This entry is populated as part of block execution and is cleaned up"] # [doc = " on block finalization. Querying this storage entry outside of block"] # [doc = " execution context should always yield zero."] pub fn lateness (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: lateness :: Lateness , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "Lateness" , () , [229u8 , 214u8 , 133u8 , 149u8 , 32u8 , 159u8 , 26u8 , 22u8 , 252u8 , 131u8 , 200u8 , 191u8 , 231u8 , 176u8 , 178u8 , 127u8 , 33u8 , 212u8 , 139u8 , 220u8 , 157u8 , 38u8 , 4u8 , 226u8 , 204u8 , 32u8 , 55u8 , 20u8 , 205u8 , 141u8 , 29u8 , 87u8 ,]) } # [doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] # [doc = " genesis."] pub fn epoch_config (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: epoch_config :: EpochConfig , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "EpochConfig" , () , [151u8 , 58u8 , 93u8 , 2u8 , 19u8 , 98u8 , 41u8 , 144u8 , 241u8 , 70u8 , 195u8 , 37u8 , 126u8 , 241u8 , 111u8 , 65u8 , 16u8 , 228u8 , 111u8 , 220u8 , 241u8 , 215u8 , 179u8 , 235u8 , 122u8 , 88u8 , 92u8 , 95u8 , 131u8 , 252u8 , 236u8 , 46u8 ,]) } # [doc = " The configuration for the next epoch, `None` if the config will not change"] # [doc = " (you can fallback to `EpochConfig` instead in that case)."] pub fn next_epoch_config (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_epoch_config :: NextEpochConfig , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "NextEpochConfig" , () , [65u8 , 54u8 , 74u8 , 141u8 , 193u8 , 124u8 , 130u8 , 238u8 , 106u8 , 27u8 , 221u8 , 189u8 , 103u8 , 53u8 , 39u8 , 243u8 , 212u8 , 216u8 , 75u8 , 185u8 , 104u8 , 220u8 , 70u8 , 108u8 , 87u8 , 172u8 , 201u8 , 185u8 , 39u8 , 55u8 , 145u8 , 6u8 ,]) } # [doc = " A list of the last 100 skipped epochs and the corresponding session index"] # [doc = " when the epoch was skipped."] # [doc = ""] # [doc = " This is only used for validating equivocation proofs. An equivocation proof"] # [doc = " must contains a key-ownership proof for a given session, therefore we need a"] # [doc = " way to tie together sessions and epoch indices, i.e. we need to validate that"] # [doc = " a validator was the owner of a given key on a given session, and what the"] # [doc = " active epoch index was during that session."] pub fn skipped_epochs (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: skipped_epochs :: SkippedEpochs , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Babe" , "SkippedEpochs" , () , [120u8 , 167u8 , 144u8 , 97u8 , 41u8 , 216u8 , 103u8 , 90u8 , 3u8 , 86u8 , 196u8 , 35u8 , 160u8 , 150u8 , 144u8 , 233u8 , 128u8 , 35u8 , 119u8 , 66u8 , 6u8 , 63u8 , 114u8 , 140u8 , 182u8 , 228u8 , 192u8 , 30u8 , 50u8 , 145u8 , 217u8 , 108u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The amount of time, in slots, that each epoch should last."] # [doc = " NOTE: Currently it is not possible to change the epoch duration after"] # [doc = " the chain has started. Attempting to do so will brick block production."] pub fn epoch_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Babe" , "EpochDuration" , [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 = " The expected average block time at which BABE should be creating"] # [doc = " blocks. Since BABE is probabilistic it is not trivial to figure out"] # [doc = " what the expected average block time should be based on the slot"] # [doc = " duration and the security parameter `c` (where `1 - c` represents"] # [doc = " the probability of a slot being empty)."] pub fn expected_block_time (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Babe" , "ExpectedBlockTime" , [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 = " Max number of authorities allowed"] pub fn max_authorities (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Babe" , "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 number of nominators for each validator."] pub fn max_nominators (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Babe" , "MaxNominators" , [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 timestamp { 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_timestamp :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the current time."] # [doc = ""] # [doc = "This call should be invoked exactly once per block. It will panic at the finalization"] # [doc = "phase, if this call hasn't been invoked by that time."] # [doc = ""] # [doc = "The timestamp should be greater than the previous one by the amount specified by"] # [doc = "[`Config::MinimumPeriod`]."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] # [doc = "that changing the complexity of this call could result exhausting the resources in a"] # [doc = "block to execute any other calls."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] # [doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] # [doc = " `on_finalize`)"] # [doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] pub struct Set { # [codec (compact)] pub now : set :: Now , } pub mod set { use super :: runtime_types ; pub type Now = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Set { const PALLET : & 'static str = "Timestamp" ; const CALL : & 'static str = "set" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Set the current time."] # [doc = ""] # [doc = "This call should be invoked exactly once per block. It will panic at the finalization"] # [doc = "phase, if this call hasn't been invoked by that time."] # [doc = ""] # [doc = "The timestamp should be greater than the previous one by the amount specified by"] # [doc = "[`Config::MinimumPeriod`]."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] # [doc = "that changing the complexity of this call could result exhausting the resources in a"] # [doc = "block to execute any other calls."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] # [doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] # [doc = " `on_finalize`)"] # [doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] pub fn set (& self , now : types :: set :: Now ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Set > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Timestamp" , "set" , types :: Set { now , } , [37u8 , 95u8 , 49u8 , 218u8 , 24u8 , 22u8 , 0u8 , 95u8 , 72u8 , 35u8 , 155u8 , 199u8 , 213u8 , 54u8 , 207u8 , 22u8 , 185u8 , 193u8 , 221u8 , 70u8 , 18u8 , 200u8 , 4u8 , 231u8 , 195u8 , 173u8 , 6u8 , 122u8 , 11u8 , 203u8 , 231u8 , 227u8 ,]) } } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod now { use super :: runtime_types ; pub type Now = :: core :: primitive :: u64 ; } pub mod did_update { use super :: runtime_types ; pub type DidUpdate = :: core :: primitive :: bool ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The current time for the current block."] pub fn now (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: now :: Now , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Timestamp" , "Now" , () , [44u8 , 50u8 , 80u8 , 30u8 , 195u8 , 146u8 , 123u8 , 238u8 , 8u8 , 163u8 , 187u8 , 92u8 , 61u8 , 39u8 , 51u8 , 29u8 , 173u8 , 169u8 , 217u8 , 158u8 , 85u8 , 187u8 , 141u8 , 26u8 , 12u8 , 115u8 , 51u8 , 11u8 , 200u8 , 244u8 , 138u8 , 152u8 ,]) } # [doc = " Whether the timestamp has been updated in this block."] # [doc = ""] # [doc = " This value is updated to `true` upon successful submission of a timestamp by a node."] # [doc = " It is then checked at the end of each block execution in the `on_finalize` hook."] pub fn did_update (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: did_update :: DidUpdate , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Timestamp" , "DidUpdate" , () , [229u8 , 175u8 , 246u8 , 102u8 , 237u8 , 158u8 , 212u8 , 229u8 , 238u8 , 214u8 , 205u8 , 160u8 , 164u8 , 252u8 , 195u8 , 75u8 , 139u8 , 110u8 , 22u8 , 34u8 , 248u8 , 204u8 , 107u8 , 46u8 , 20u8 , 200u8 , 238u8 , 167u8 , 71u8 , 41u8 , 214u8 , 140u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The minimum period between blocks."] # [doc = ""] # [doc = " Be aware that this is different to the *expected* period that the block production"] # [doc = " apparatus provides. Your chosen consensus system will generally work with this to"] # [doc = " determine a sensible block time. For example, in the Aura pallet it will be double this"] # [doc = " period on default settings."] pub fn minimum_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Timestamp" , "MinimumPeriod" , [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 indices { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_indices :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_indices :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Assign an previously unassigned index."] # [doc = ""] # [doc = "Payment: `Deposit` is reserved from the sender account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `index`: the index to be claimed. This must not be in use."] # [doc = ""] # [doc = "Emits `IndexAssigned` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub struct Claim { pub index : claim :: Index , } pub mod claim { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Claim { const PALLET : & 'static str = "Indices" ; const CALL : & 'static str = "claim" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Assign an index already owned by the sender to another account. The balance reservation"] # [doc = "is effectively transferred to the new account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] # [doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] # [doc = ""] # [doc = "Emits `IndexAssigned` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub struct Transfer { pub new : transfer :: New , pub index : transfer :: Index , } pub mod transfer { use super :: runtime_types ; pub type New = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Transfer { const PALLET : & 'static str = "Indices" ; const CALL : & 'static str = "transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Free up an index owned by the sender."] # [doc = ""] # [doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] # [doc = ""] # [doc = "- `index`: the index to be freed. This must be owned by the sender."] # [doc = ""] # [doc = "Emits `IndexFreed` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub struct Free { pub index : free :: Index , } pub mod free { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Free { const PALLET : & 'static str = "Indices" ; const CALL : & 'static str = "free" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] # [doc = "held, then any deposit is reimbursed to its current owner."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "- `index`: the index to be (re-)assigned."] # [doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] # [doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] # [doc = ""] # [doc = "Emits `IndexAssigned` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub struct ForceTransfer { pub new : force_transfer :: New , pub index : force_transfer :: Index , pub freeze : force_transfer :: Freeze , } pub mod force_transfer { use super :: runtime_types ; pub type New = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Index = :: core :: primitive :: u32 ; pub type Freeze = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceTransfer { const PALLET : & 'static str = "Indices" ; const CALL : & 'static str = "force_transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Freeze an index so it will always point to the sender account. This consumes the"] # [doc = "deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] # [doc = "non-frozen account `index`."] # [doc = ""] # [doc = "- `index`: the index to be frozen in place."] # [doc = ""] # [doc = "Emits `IndexFrozen` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub struct Freeze { pub index : freeze :: Index , } pub mod freeze { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Freeze { const PALLET : & 'static str = "Indices" ; const CALL : & 'static str = "freeze" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Assign an previously unassigned index."] # [doc = ""] # [doc = "Payment: `Deposit` is reserved from the sender account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `index`: the index to be claimed. This must not be in use."] # [doc = ""] # [doc = "Emits `IndexAssigned` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub fn claim (& self , index : types :: claim :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Claim > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Indices" , "claim" , types :: Claim { index , } , [146u8 , 58u8 , 246u8 , 135u8 , 59u8 , 90u8 , 3u8 , 5u8 , 140u8 , 169u8 , 232u8 , 195u8 , 11u8 , 107u8 , 36u8 , 141u8 , 118u8 , 174u8 , 160u8 , 160u8 , 19u8 , 205u8 , 177u8 , 193u8 , 18u8 , 102u8 , 115u8 , 31u8 , 72u8 , 29u8 , 91u8 , 235u8 ,]) } # [doc = "Assign an index already owned by the sender to another account. The balance reservation"] # [doc = "is effectively transferred to the new account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] # [doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] # [doc = ""] # [doc = "Emits `IndexAssigned` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub fn transfer (& self , new : types :: transfer :: New , index : types :: transfer :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Transfer > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Indices" , "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 ,]) } # [doc = "Free up an index owned by the sender."] # [doc = ""] # [doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] # [doc = ""] # [doc = "- `index`: the index to be freed. This must be owned by the sender."] # [doc = ""] # [doc = "Emits `IndexFreed` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub fn free (& self , index : types :: free :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Free > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Indices" , "free" , types :: Free { index , } , [241u8 , 211u8 , 234u8 , 102u8 , 189u8 , 22u8 , 209u8 , 27u8 , 8u8 , 229u8 , 80u8 , 227u8 , 138u8 , 252u8 , 222u8 , 111u8 , 77u8 , 201u8 , 235u8 , 51u8 , 163u8 , 247u8 , 13u8 , 126u8 , 216u8 , 136u8 , 57u8 , 222u8 , 56u8 , 66u8 , 215u8 , 244u8 ,]) } # [doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] # [doc = "held, then any deposit is reimbursed to its current owner."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "- `index`: the index to be (re-)assigned."] # [doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] # [doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] # [doc = ""] # [doc = "Emits `IndexAssigned` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub fn force_transfer (& self , new : types :: force_transfer :: New , index : types :: force_transfer :: Index , freeze : types :: force_transfer :: Freeze ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceTransfer > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Indices" , "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 ,]) } # [doc = "Freeze an index so it will always point to the sender account. This consumes the"] # [doc = "deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] # [doc = "non-frozen account `index`."] # [doc = ""] # [doc = "- `index`: the index to be frozen in place."] # [doc = ""] # [doc = "Emits `IndexFrozen` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub fn freeze (& self , index : types :: freeze :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Freeze > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Indices" , "freeze" , types :: Freeze { index , } , [238u8 , 215u8 , 108u8 , 156u8 , 84u8 , 240u8 , 130u8 , 229u8 , 27u8 , 132u8 , 93u8 , 78u8 , 2u8 , 251u8 , 43u8 , 203u8 , 2u8 , 142u8 , 147u8 , 48u8 , 92u8 , 101u8 , 207u8 , 24u8 , 51u8 , 16u8 , 36u8 , 229u8 , 188u8 , 129u8 , 160u8 , 117u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_indices :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A account index was assigned."] pub struct IndexAssigned { pub who : index_assigned :: Who , pub index : index_assigned :: Index , } pub mod index_assigned { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IndexAssigned { const PALLET : & 'static str = "Indices" ; const EVENT : & 'static str = "IndexAssigned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A account index has been freed up (unassigned)."] pub struct IndexFreed { pub index : index_freed :: Index , } pub mod index_freed { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IndexFreed { const PALLET : & 'static str = "Indices" ; const EVENT : & 'static str = "IndexFreed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A account index has been frozen to its current account ID."] pub struct IndexFrozen { pub index : index_frozen :: Index , pub who : index_frozen :: Who , } pub mod index_frozen { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IndexFrozen { const PALLET : & 'static str = "Indices" ; const EVENT : & 'static str = "IndexFrozen" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod accounts { use super :: runtime_types ; pub type Accounts = (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: bool ,) ; pub type Param0 = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The lookup from index to account."] pub fn accounts_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: accounts :: Accounts , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Indices" , "Accounts" , () , [48u8 , 189u8 , 43u8 , 119u8 , 32u8 , 168u8 , 28u8 , 12u8 , 245u8 , 81u8 , 119u8 , 182u8 , 23u8 , 201u8 , 33u8 , 147u8 , 128u8 , 171u8 , 155u8 , 134u8 , 71u8 , 87u8 , 100u8 , 248u8 , 107u8 , 129u8 , 36u8 , 197u8 , 220u8 , 90u8 , 11u8 , 238u8 ,]) } # [doc = " The lookup from index to account."] pub fn accounts (& self , _0 : impl :: core :: borrow :: Borrow < types :: accounts :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: accounts :: Param0 > , types :: accounts :: Accounts , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Indices" , "Accounts" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [48u8 , 189u8 , 43u8 , 119u8 , 32u8 , 168u8 , 28u8 , 12u8 , 245u8 , 81u8 , 119u8 , 182u8 , 23u8 , 201u8 , 33u8 , 147u8 , 128u8 , 171u8 , 155u8 , 134u8 , 71u8 , 87u8 , 100u8 , 248u8 , 107u8 , 129u8 , 36u8 , 197u8 , 220u8 , 90u8 , 11u8 , 238u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The deposit needed for reserving an index."] pub fn deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Indices" , "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 balances { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_balances :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_balances :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer some liquid free balance to another account."] # [doc = ""] # [doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] # [doc = "If the sender's account is below the existential deposit as a result"] # [doc = "of the transfer, the account will be reaped."] # [doc = ""] # [doc = "The dispatch origin for this call must be `Signed` by the transactor."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferAllowDeath { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "transfer_allow_death" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] # [doc = "may be specified."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceTransfer { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] # [doc = "kill the origin account."] # [doc = ""] # [doc = "99% of the time you want [`transfer_allow_death`] instead."] # [doc = ""] # [doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferKeepAlive { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "transfer_keep_alive" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer the entire transferable balance from the caller account."] # [doc = ""] # [doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] # [doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] # [doc = "transferred by this function. To ensure that this function results in a killed account,"] # [doc = "you might need to prepare the account by removing any reference counters, storage"] # [doc = "deposits, etc..."] # [doc = ""] # [doc = "The dispatch origin of this call must be Signed."] # [doc = ""] # [doc = "- `dest`: The recipient of the transfer."] # [doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] # [doc = " of the funds the account has, causing the sender account to be killed (false), or"] # [doc = " transfer everything except at least the existential deposit, which will guarantee to"] # [doc = " keep the sender account alive (true)."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type KeepAlive = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferAll { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "transfer_all" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unreserve some balance from a user by force."] # [doc = ""] # [doc = "Can only be called by ROOT."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceUnreserve { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_unreserve" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Upgrade a specified account."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `who`: The account to be upgraded."] # [doc = ""] # [doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] # [doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] # [doc = "possibility of churn)."] pub struct UpgradeAccounts { pub who : upgrade_accounts :: Who , } pub mod upgrade_accounts { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpgradeAccounts { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "upgrade_accounts" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the regular balance of a given account."] # [doc = ""] # [doc = "The dispatch origin for this call is `root`."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type NewFree = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSetBalance { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_set_balance" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Adjust the total issuance in a saturating way."] # [doc = ""] # [doc = "Can only be called by root and always needs a positive `delta`."] # [doc = ""] # [doc = "# Example"] pub struct ForceAdjustTotalIssuance { pub direction : force_adjust_total_issuance :: Direction , # [codec (compact)] pub delta : force_adjust_total_issuance :: Delta , } pub mod force_adjust_total_issuance { use super :: runtime_types ; pub type Direction = runtime_types :: pallet_balances :: types :: AdjustmentDirection ; pub type Delta = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceAdjustTotalIssuance { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_adjust_total_issuance" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Burn the specified liquid free balance from the origin account."] # [doc = ""] # [doc = "If the origin's account ends up below the existential deposit as a result"] # [doc = "of the burn and `keep_alive` is false, the account will be reaped."] # [doc = ""] # [doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"] # [doc = "this `burn` operation will reduce total issuance by the amount _burned_."] pub struct Burn { # [codec (compact)] pub value : burn :: Value , pub keep_alive : burn :: KeepAlive , } pub mod burn { use super :: runtime_types ; pub type Value = :: core :: primitive :: u128 ; pub type KeepAlive = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Burn { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "burn" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Transfer some liquid free balance to another account."] # [doc = ""] # [doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] # [doc = "If the sender's account is below the existential deposit as a result"] # [doc = "of the transfer, the account will be reaped."] # [doc = ""] # [doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub fn transfer_allow_death (& self , dest : types :: transfer_allow_death :: Dest , value : types :: transfer_allow_death :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferAllowDeath > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "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 = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] # [doc = "may be specified."] pub fn force_transfer (& self , source : types :: force_transfer :: Source , dest : types :: force_transfer :: Dest , value : types :: force_transfer :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceTransfer > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "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 = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] # [doc = "kill the origin account."] # [doc = ""] # [doc = "99% of the time you want [`transfer_allow_death`] instead."] # [doc = ""] # [doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub fn transfer_keep_alive (& self , dest : types :: transfer_keep_alive :: Dest , value : types :: transfer_keep_alive :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferKeepAlive > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "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 = "Transfer the entire transferable balance from the caller account."] # [doc = ""] # [doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] # [doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] # [doc = "transferred by this function. To ensure that this function results in a killed account,"] # [doc = "you might need to prepare the account by removing any reference counters, storage"] # [doc = "deposits, etc..."] # [doc = ""] # [doc = "The dispatch origin of this call must be Signed."] # [doc = ""] # [doc = "- `dest`: The recipient of the transfer."] # [doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] # [doc = " of the funds the account has, causing the sender account to be killed (false), or"] # [doc = " transfer everything except at least the existential deposit, which will guarantee to"] # [doc = " keep the sender account alive (true)."] pub fn transfer_all (& self , dest : types :: transfer_all :: Dest , keep_alive : types :: transfer_all :: KeepAlive ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferAll > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "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 = "Unreserve some balance from a user by force."] # [doc = ""] # [doc = "Can only be called by ROOT."] pub fn force_unreserve (& self , who : types :: force_unreserve :: Who , amount : types :: force_unreserve :: Amount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceUnreserve > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "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 = "Upgrade a specified account."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `who`: The account to be upgraded."] # [doc = ""] # [doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] # [doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] # [doc = "possibility of churn)."] pub fn upgrade_accounts (& self , who : types :: upgrade_accounts :: Who ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpgradeAccounts > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "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 = "Set the regular balance of a given account."] # [doc = ""] # [doc = "The dispatch origin for this call is `root`."] pub fn force_set_balance (& self , who : types :: force_set_balance :: Who , new_free : types :: force_set_balance :: NewFree ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSetBalance > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "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 = "Adjust the total issuance in a saturating way."] # [doc = ""] # [doc = "Can only be called by root and always needs a positive `delta`."] # [doc = ""] # [doc = "# Example"] pub fn force_adjust_total_issuance (& self , direction : types :: force_adjust_total_issuance :: Direction , delta : types :: force_adjust_total_issuance :: Delta ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceAdjustTotalIssuance > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "force_adjust_total_issuance" , types :: ForceAdjustTotalIssuance { direction , delta , } , [208u8 , 134u8 , 56u8 , 133u8 , 232u8 , 164u8 , 10u8 , 213u8 , 53u8 , 193u8 , 190u8 , 63u8 , 236u8 , 186u8 , 96u8 , 122u8 , 104u8 , 87u8 , 173u8 , 38u8 , 58u8 , 176u8 , 21u8 , 78u8 , 42u8 , 106u8 , 46u8 , 248u8 , 251u8 , 190u8 , 150u8 , 202u8 ,]) } # [doc = "Burn the specified liquid free balance from the origin account."] # [doc = ""] # [doc = "If the origin's account ends up below the existential deposit as a result"] # [doc = "of the burn and `keep_alive` is false, the account will be reaped."] # [doc = ""] # [doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"] # [doc = "this `burn` operation will reduce total issuance by the amount _burned_."] pub fn burn (& self , value : types :: burn :: Value , keep_alive : types :: burn :: KeepAlive ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Burn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "burn" , types :: Burn { value , keep_alive , } , [176u8 , 64u8 , 7u8 , 109u8 , 16u8 , 44u8 , 145u8 , 125u8 , 147u8 , 152u8 , 130u8 , 114u8 , 221u8 , 201u8 , 150u8 , 162u8 , 118u8 , 71u8 , 52u8 , 92u8 , 240u8 , 116u8 , 203u8 , 98u8 , 5u8 , 22u8 , 43u8 , 102u8 , 94u8 , 208u8 , 101u8 , 57u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_balances :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type FreeBalance = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Endowed { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Endowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DustLost { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "DustLost" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Transfer { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Free = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BalanceSet { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "BalanceSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Reserved { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Reserved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Unreserved { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Unreserved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; pub type DestinationStatus = runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ReserveRepatriated { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "ReserveRepatriated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Deposit { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Withdraw { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Withdraw" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Slashed { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Slashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Minted { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Minted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Burned { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Burned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Suspended { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Suspended" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Restored { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Restored" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Upgraded { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Upgraded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Issued { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Issued" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Rescinded { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Rescinded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Locked { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Locked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Unlocked { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Unlocked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Frozen { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Frozen" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Thawed { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Thawed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `TotalIssuance` was forcefully changed."] pub struct TotalIssuanceForced { pub old : total_issuance_forced :: Old , pub new : total_issuance_forced :: New , } pub mod total_issuance_forced { use super :: runtime_types ; pub type Old = :: core :: primitive :: u128 ; pub type New = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TotalIssuanceForced { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "TotalIssuanceForced" ; } } 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod holds { use super :: runtime_types ; pub type Holds = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: frame_support :: traits :: tokens :: misc :: IdAmount < runtime_types :: paseo_runtime :: RuntimeHoldReason , :: core :: primitive :: u128 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod freezes { use super :: runtime_types ; pub type Freezes = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: frame_support :: traits :: tokens :: misc :: IdAmount < runtime_types :: paseo_runtime :: RuntimeFreezeReason , :: core :: primitive :: u128 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The total units issued in the system."] pub fn total_issuance (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_issuance :: TotalIssuance , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "TotalIssuance" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: inactive_issuance :: InactiveIssuance , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "InactiveIssuance" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account :: Account , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Account" , () , [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 :: core :: borrow :: Borrow < types :: account :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account :: Param0 > , types :: account :: Account , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Account" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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."] # [doc = ""] # [doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn locks_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: locks :: Locks , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Locks" , () , [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."] # [doc = ""] # [doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn locks (& self , _0 : impl :: core :: borrow :: Borrow < types :: locks :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: locks :: Param0 > , types :: locks :: Locks , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Locks" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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."] # [doc = ""] # [doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn reserves_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: reserves :: Reserves , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Reserves" , () , [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."] # [doc = ""] # [doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn reserves (& self , _0 : impl :: core :: borrow :: Borrow < types :: reserves :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reserves :: Param0 > , types :: reserves :: Reserves , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Reserves" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: holds :: Holds , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Holds" , () , [31u8 , 130u8 , 196u8 , 187u8 , 104u8 , 9u8 , 173u8 , 197u8 , 16u8 , 5u8 , 40u8 , 190u8 , 189u8 , 172u8 , 209u8 , 132u8 , 93u8 , 212u8 , 251u8 , 103u8 , 213u8 , 0u8 , 227u8 , 214u8 , 186u8 , 105u8 , 142u8 , 67u8 , 109u8 , 191u8 , 242u8 , 81u8 ,]) } # [doc = " Holds on account balances."] pub fn holds (& self , _0 : impl :: core :: borrow :: Borrow < types :: holds :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: holds :: Param0 > , types :: holds :: Holds , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Holds" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [31u8 , 130u8 , 196u8 , 187u8 , 104u8 , 9u8 , 173u8 , 197u8 , 16u8 , 5u8 , 40u8 , 190u8 , 189u8 , 172u8 , 209u8 , 132u8 , 93u8 , 212u8 , 251u8 , 103u8 , 213u8 , 0u8 , 227u8 , 214u8 , 186u8 , 105u8 , 142u8 , 67u8 , 109u8 , 191u8 , 242u8 , 81u8 ,]) } # [doc = " Freeze locks on account balances."] pub fn freezes_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: freezes :: Freezes , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Freezes" , () , [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 ,]) } # [doc = " Freeze locks on account balances."] pub fn freezes (& self , _0 : impl :: core :: borrow :: Borrow < types :: freezes :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: freezes :: Param0 > , types :: freezes :: Freezes , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Freezes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [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 ,]) } } } 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Balances" , "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."] # [doc = ""] # [doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn max_locks (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Balances" , "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."] # [doc = ""] # [doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn max_reserves (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Balances" , "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 individual freeze locks that can exist on an account at any time."] pub fn max_freezes (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Balances" , "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 transaction_payment { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_transaction_payment :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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`."] pub struct TransactionFeePaid { pub who : transaction_fee_paid :: Who , pub actual_fee : transaction_fee_paid :: ActualFee , pub tip : transaction_fee_paid :: Tip , } pub mod transaction_fee_paid { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ActualFee = :: core :: primitive :: u128 ; pub type Tip = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TransactionFeePaid { const PALLET : & 'static str = "TransactionPayment" ; const EVENT : & 'static str = "TransactionFeePaid" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod next_fee_multiplier { use super :: runtime_types ; pub type NextFeeMultiplier = runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 ; } pub mod storage_version { use super :: runtime_types ; pub type StorageVersion = runtime_types :: pallet_transaction_payment :: Releases ; } } pub struct StorageApi ; impl StorageApi { pub fn next_fee_multiplier (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_fee_multiplier :: NextFeeMultiplier , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("TransactionPayment" , "NextFeeMultiplier" , () , [247u8 , 39u8 , 81u8 , 170u8 , 225u8 , 226u8 , 82u8 , 147u8 , 34u8 , 113u8 , 147u8 , 213u8 , 59u8 , 80u8 , 139u8 , 35u8 , 36u8 , 196u8 , 152u8 , 19u8 , 9u8 , 159u8 , 176u8 , 79u8 , 249u8 , 201u8 , 170u8 , 1u8 , 129u8 , 79u8 , 146u8 , 197u8 ,]) } pub fn storage_version (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: storage_version :: StorageVersion , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("TransactionPayment" , "StorageVersion" , () , [105u8 , 243u8 , 158u8 , 241u8 , 159u8 , 231u8 , 253u8 , 6u8 , 4u8 , 32u8 , 85u8 , 178u8 , 126u8 , 31u8 , 203u8 , 134u8 , 154u8 , 38u8 , 122u8 , 155u8 , 150u8 , 251u8 , 174u8 , 15u8 , 74u8 , 134u8 , 216u8 , 244u8 , 168u8 , 175u8 , 158u8 , 144u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " A fee multiplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] # [doc = " `priority`"] # [doc = ""] # [doc = " This value is multiplied by the `final_fee` to obtain a \"virtual tip\" that is later"] # [doc = " added to a tip component in regular `priority` calculations."] # [doc = " It means that a `Normal` transaction can front-run a similarly-sized `Operational`"] # [doc = " extrinsic (with no tip), by including a tip value greater than the virtual tip."] # [doc = ""] # [doc = " ```rust,ignore"] # [doc = " // For `Normal`"] # [doc = " let priority = priority_calc(tip);"] # [doc = ""] # [doc = " // For `Operational`"] # [doc = " let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;"] # [doc = " let priority = priority_calc(tip + virtual_tip);"] # [doc = " ```"] # [doc = ""] # [doc = " Note that since we use `final_fee` the multiplier applies also to the regular `tip`"] # [doc = " sent with the transaction. So, not only does the transaction get a priority bump based"] # [doc = " on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`"] # [doc = " transactions."] pub fn operational_fee_multiplier (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u8 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("TransactionPayment" , "OperationalFeeMultiplier" , [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 ,]) } } } } 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 :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Author of current block."] pub fn author (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: author :: Author , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Authorship" , "Author" , () , [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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] # [doc = "be the account that controls it."] # [doc = ""] # [doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the stash account."] # [doc = ""] # [doc = "Emits `Bonded`."] # [doc = "## Complexity"] # [doc = "- Independent of the arguments. Moderate complexity."] # [doc = "- O(1)."] # [doc = "- Three extra DB entries."] # [doc = ""] # [doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] # [doc = "unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed"] # [doc = "as dust."] 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 :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Bond { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "bond" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] # [doc = "for staking."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] # [doc = ""] # [doc = "Use this if there are additional funds in your stash account that you wish to bond."] # [doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] # [doc = "any limitation on the amount that can be added."] # [doc = ""] # [doc = "Emits `Bonded`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- O(1)."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for BondExtra { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "bond_extra" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] # [doc = "period ends. If this leaves an amount actively bonded less than"] # [doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] # [doc = "the funds out of management ready for transfer."] # [doc = ""] # [doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] # [doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] # [doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] # [doc = ""] # [doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] # [doc = "they should call `chill` first in order to free up their bonded funds."] # [doc = ""] # [doc = "Emits `Unbonded`."] # [doc = ""] # [doc = "See also [`Call::withdraw_unbonded`]."] pub struct Unbond { # [codec (compact)] pub value : unbond :: Value , } pub mod unbond { use super :: runtime_types ; pub type Value = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Unbond { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "unbond" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] # [doc = ""] # [doc = "This essentially frees up that balance to be used by the stash account to do whatever"] # [doc = "it wants."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller."] # [doc = ""] # [doc = "Emits `Withdrawn`."] # [doc = ""] # [doc = "See also [`Call::unbond`]."] # [doc = ""] # [doc = "## Parameters"] # [doc = ""] # [doc = "- `num_slashing_spans` indicates the number of metadata slashing spans to clear when"] # [doc = "this call results in a complete removal of all the data related to the stash account."] # [doc = "In this case, the `num_slashing_spans` must be larger or equal to the number of"] # [doc = "slashing spans associated with the stash account in the [`SlashingSpans`] storage type,"] # [doc = "otherwise the call will fail. The call weight is directly proportional to"] # [doc = "`num_slashing_spans`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(S) where S is the number of slashing spans to remove"] # [doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for WithdrawUnbonded { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "withdraw_unbonded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Declare the desire to validate for the origin controller."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] pub struct Validate { pub prefs : validate :: Prefs , } pub mod validate { use super :: runtime_types ; pub type Prefs = runtime_types :: pallet_staking :: ValidatorPrefs ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Validate { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "validate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Declare the desire to nominate `targets` for the origin controller."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] # [doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] # [doc = "- Both the reads and writes follow a similar pattern."] pub struct Nominate { pub targets : nominate :: Targets , } pub mod nominate { use super :: runtime_types ; pub type Targets = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Nominate { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "nominate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Declare no desire to either validate or nominate."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains one read."] # [doc = "- Writes are limited to the `origin` account key."] pub struct Chill ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Chill { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "chill" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "(Re-)set the payment target for a controller."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "---------"] 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 :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetPayee { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "set_payee" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "(Re-)sets the controller of a stash to the stash itself. This function previously"] # [doc = "accepted a `controller` argument to set the controller to an account other than the"] # [doc = "stash itself. This functionality has now been removed, now only setting the controller"] # [doc = "to the stash, if it is not already."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(1)"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] pub struct SetController ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetController { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "set_controller" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the ideal number of validators."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(1)"] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetValidatorCount { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "set_validator_count" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Increments the ideal number of validators up to maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "Same as [`Self::set_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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for IncreaseValidatorCount { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "increase_validator_count" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Scale up the ideal number of validators by a factor up to maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "Same as [`Self::set_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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScaleValidatorCount { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "scale_validator_count" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force there to be no new eras indefinitely."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# Warning"] # [doc = ""] # [doc = "The election process starts multiple blocks before the end of the era."] # [doc = "Thus the election process may be ongoing when this is called. In this case the"] # [doc = "election will continue until the next era is triggered."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] pub struct ForceNoEras ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceNoEras { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "force_no_eras" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force there to be a new era at the end of the next session. After this, it will be"] # [doc = "reset to normal (non-forced) behaviour."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# Warning"] # [doc = ""] # [doc = "The election process starts multiple blocks before the end of the era."] # [doc = "If this is called just before a new era is triggered, the election process may not"] # [doc = "have enough blocks to get a result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] pub struct ForceNewEra ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceNewEra { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "force_new_era" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the validators who cannot be slashed (if any)."] # [doc = ""] # [doc = "The dispatch origin must be Root."] pub struct SetInvulnerables { pub invulnerables : set_invulnerables :: Invulnerables , } pub mod set_invulnerables { use super :: runtime_types ; pub type Invulnerables = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetInvulnerables { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "set_invulnerables" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Parameters"] # [doc = ""] # [doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] # [doc = "details."] 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type NumSlashingSpans = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceUnstake { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "force_unstake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force there to be a new era at the end of sessions indefinitely."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# Warning"] # [doc = ""] # [doc = "The election process starts multiple blocks before the end of the era."] # [doc = "If this is called just before a new era is triggered, the election process may not"] # [doc = "have enough blocks to get a result."] pub struct ForceNewEraAlways ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceNewEraAlways { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "force_new_era_always" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel enactment of a deferred slash."] # [doc = ""] # [doc = "Can be called by the `T::AdminOrigin`."] # [doc = ""] # [doc = "Parameters: era and indices of the slashes for that era to kill."] 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelDeferredSlash { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "cancel_deferred_slash" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Pay out next page of the stakers behind a validator for the given era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator."] # [doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] # [doc = ""] # [doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] # [doc = "it is not one of the stakers."] # [doc = ""] # [doc = "The reward payout could be paged in case there are too many nominators backing the"] # [doc = "`validator_stash`. This call will payout unpaid pages in an ascending order. To claim a"] # [doc = "specific page, use `payout_stakers_by_page`.`"] # [doc = ""] # [doc = "If all pages are claimed, it returns an error `InvalidPage`."] 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Era = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PayoutStakers { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "payout_stakers" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Rebond a portion of the stash scheduled to be unlocked."] # [doc = ""] # [doc = "The dispatch origin must be signed by the controller."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Time complexity: O(L), where L is unlocking chunks"] # [doc = "- Bounded by `MaxUnlockingChunks`."] pub struct Rebond { # [codec (compact)] pub value : rebond :: Value , } pub mod rebond { use super :: runtime_types ; pub type Value = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Rebond { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "rebond" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] # [doc = "be considered `dust` in the staking system. The requirements are:"] # [doc = ""] # [doc = "1. the `total_balance` of the stash is below existential deposit."] # [doc = "2. or, the `ledger.total` of the stash is below existential deposit."] # [doc = "3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero."] # [doc = ""] # [doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] # [doc = "is still receiving staking rewards in `RewardDestination::Staked`."] # [doc = ""] # [doc = "It can be called by anyone, as long as `stash` meets the above requirements."] # [doc = ""] # [doc = "Refunds the transaction fees upon successful execution."] # [doc = ""] # [doc = "## Parameters"] # [doc = ""] # [doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] # [doc = "details."] 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type NumSlashingSpans = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReapStash { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "reap_stash" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove the given nominations from the calling validator."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] # [doc = " should no longer be nominating this validator."] # [doc = ""] # [doc = "Note: Making this call only makes sense if you first set the validator preferences to"] # [doc = "block any further nominations."] pub struct Kick { pub who : kick :: Who , } pub mod kick { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Kick { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "kick" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the various staking configurations ."] # [doc = ""] # [doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] # [doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] # [doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] # [doc = " set to `None`, no limit is enforced."] # [doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] # [doc = " set to `None`, no limit is enforced."] # [doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] # [doc = " should be filled in order for the `chill_other` transaction to work."] # [doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] # [doc = " This is checked only upon calling `validate`. Existing validators are not affected."] # [doc = ""] # [doc = "RuntimeOrigin must be Root to call this function."] # [doc = ""] # [doc = "NOTE: Existing nominators and validators will not be affected by this update."] # [doc = "to kick people under the new limits, `chill_other` should be called."] 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 max_staked_rewards : set_staking_configs :: MaxStakedRewards , } 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 > ; pub type MaxStakedRewards = runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < runtime_types :: sp_arithmetic :: per_things :: Percent > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetStakingConfigs { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "set_staking_configs" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Declare a `controller` to stop participating as either a validator or nominator."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] # [doc = ""] # [doc = "If the caller is the same as the controller being targeted, then no further checks are"] # [doc = "enforced, and this function behaves just like `chill`."] # [doc = ""] # [doc = "If the caller is different than the controller being targeted, the following conditions"] # [doc = "must be met:"] # [doc = ""] # [doc = "* `controller` must belong to a nominator who has become non-decodable,"] # [doc = ""] # [doc = "Or:"] # [doc = ""] # [doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] # [doc = " nominators or validators we must reach before users can start chilling one-another."] # [doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] # [doc = " how close we are to the threshold."] # [doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] # [doc = " if this is a person that should be chilled because they have not met the threshold"] # [doc = " bond required."] # [doc = ""] # [doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] # [doc = "who do not satisfy these requirements."] pub struct ChillOther { pub stash : chill_other :: Stash , } pub mod chill_other { use super :: runtime_types ; pub type Stash = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ChillOther { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "chill_other" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force a validator to have at least the minimum commission. This will not affect a"] # [doc = "validator who already has a commission greater than or equal to the minimum. Any account"] # [doc = "can call this."] 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceApplyMinCommission { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "force_apply_min_commission" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the minimum amount of commission that each validators must maintain."] # [doc = ""] # [doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] # [doc = "by the `T::AdminOrigin`. Root can always call this."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMinCommission { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "set_min_commission" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Pay out a page of the stakers behind a validator for the given era and page."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator."] # [doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] # [doc = "- `page` is the page index of nominators to pay out with value between 0 and"] # [doc = " `num_nominators / T::MaxExposurePageSize`."] # [doc = ""] # [doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] # [doc = "it is not one of the stakers."] # [doc = ""] # [doc = "If a validator has more than [`Config::MaxExposurePageSize`] nominators backing"] # [doc = "them, then the list of nominators is paged, with each page being capped at"] # [doc = "[`Config::MaxExposurePageSize`.] If a validator has more than one page of nominators,"] # [doc = "the call needs to be made for each page separately in order for all the nominators"] # [doc = "backing a validator to receive the reward. The nominators are not sorted across pages"] # [doc = "and so it should not be assumed the highest staker would be on the topmost page and vice"] # [doc = "versa. If rewards are not claimed in [`Config::HistoryDepth`] eras, they are lost."] 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Era = :: core :: primitive :: u32 ; pub type Page = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PayoutStakersByPage { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "payout_stakers_by_page" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Migrates an account's `RewardDestination::Controller` to"] # [doc = "`RewardDestination::Account(controller)`."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "This will waive the transaction fee if the `payee` is successfully migrated."] pub struct UpdatePayee { pub controller : update_payee :: Controller , } pub mod update_payee { use super :: runtime_types ; pub type Controller = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdatePayee { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "update_payee" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Updates a batch of controller accounts to their corresponding stash account if they are"] # [doc = "not the same. Ignores any controller accounts that do not exist, and does not operate if"] # [doc = "the stash and controller are already the same."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "The dispatch origin must be `T::AdminOrigin`."] 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 :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DeprecateControllerBatch { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "deprecate_controller_batch" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Restores the state of a ledger which is in an inconsistent state."] # [doc = ""] # [doc = "The requirements to restore a ledger are the following:"] # [doc = "* The stash is bonded; or"] # [doc = "* The stash is not bonded but it has a staking lock left behind; or"] # [doc = "* If the stash has an associated ledger and its state is inconsistent; or"] # [doc = "* If the ledger is not corrupted *but* its staking lock is out of sync."] # [doc = ""] # [doc = "The `maybe_*` input parameters will overwrite the corresponding data and metadata of the"] # [doc = "ledger associated with the stash. If the input parameters are not set, the ledger will"] # [doc = "be reset values from on-chain state."] pub struct RestoreLedger { pub stash : restore_ledger :: Stash , pub maybe_controller : restore_ledger :: MaybeController , pub maybe_total : restore_ledger :: MaybeTotal , pub maybe_unlocking : restore_ledger :: MaybeUnlocking , } pub mod restore_ledger { use super :: runtime_types ; pub type Stash = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type MaybeController = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type MaybeTotal = :: core :: option :: Option < :: core :: primitive :: u128 > ; pub type MaybeUnlocking = :: core :: option :: Option < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_staking :: UnlockChunk < :: core :: primitive :: u128 > > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RestoreLedger { const PALLET : & 'static str = "Staking" ; const CALL : & 'static str = "restore_ledger" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] # [doc = "be the account that controls it."] # [doc = ""] # [doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the stash account."] # [doc = ""] # [doc = "Emits `Bonded`."] # [doc = "## Complexity"] # [doc = "- Independent of the arguments. Moderate complexity."] # [doc = "- O(1)."] # [doc = "- Three extra DB entries."] # [doc = ""] # [doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] # [doc = "unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed"] # [doc = "as dust."] pub fn bond (& self , value : types :: bond :: Value , payee : types :: bond :: Payee ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Bond > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] # [doc = "for staking."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] # [doc = ""] # [doc = "Use this if there are additional funds in your stash account that you wish to bond."] # [doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] # [doc = "any limitation on the amount that can be added."] # [doc = ""] # [doc = "Emits `Bonded`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- O(1)."] pub fn bond_extra (& self , max_additional : types :: bond_extra :: MaxAdditional ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BondExtra > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] # [doc = "period ends. If this leaves an amount actively bonded less than"] # [doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] # [doc = "the funds out of management ready for transfer."] # [doc = ""] # [doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] # [doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] # [doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] # [doc = ""] # [doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] # [doc = "they should call `chill` first in order to free up their bonded funds."] # [doc = ""] # [doc = "Emits `Unbonded`."] # [doc = ""] # [doc = "See also [`Call::withdraw_unbonded`]."] pub fn unbond (& self , value : types :: unbond :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Unbond > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove any unlocked chunks from the `unlocking` queue from our management."] # [doc = ""] # [doc = "This essentially frees up that balance to be used by the stash account to do whatever"] # [doc = "it wants."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller."] # [doc = ""] # [doc = "Emits `Withdrawn`."] # [doc = ""] # [doc = "See also [`Call::unbond`]."] # [doc = ""] # [doc = "## Parameters"] # [doc = ""] # [doc = "- `num_slashing_spans` indicates the number of metadata slashing spans to clear when"] # [doc = "this call results in a complete removal of all the data related to the stash account."] # [doc = "In this case, the `num_slashing_spans` must be larger or equal to the number of"] # [doc = "slashing spans associated with the stash account in the [`SlashingSpans`] storage type,"] # [doc = "otherwise the call will fail. The call weight is directly proportional to"] # [doc = "`num_slashing_spans`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(S) where S is the number of slashing spans to remove"] # [doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] pub fn withdraw_unbonded (& self , num_slashing_spans : types :: withdraw_unbonded :: NumSlashingSpans ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: WithdrawUnbonded > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Declare the desire to validate for the origin controller."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] pub fn validate (& self , prefs : types :: validate :: Prefs ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Validate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Declare the desire to nominate `targets` for the origin controller."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] # [doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] # [doc = "- Both the reads and writes follow a similar pattern."] pub fn nominate (& self , targets : types :: nominate :: Targets ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Nominate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Staking" , "nominate" , types :: Nominate { targets , } , [14u8 , 209u8 , 112u8 , 222u8 , 40u8 , 211u8 , 118u8 , 188u8 , 26u8 , 88u8 , 135u8 , 233u8 , 36u8 , 99u8 , 68u8 , 189u8 , 184u8 , 169u8 , 146u8 , 217u8 , 87u8 , 198u8 , 89u8 , 32u8 , 193u8 , 135u8 , 251u8 , 88u8 , 241u8 , 151u8 , 205u8 , 138u8 ,]) } # [doc = "Declare no desire to either validate or nominate."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains one read."] # [doc = "- Writes are limited to the `origin` account key."] pub fn chill (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Chill > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "(Re-)set the payment target for a controller."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "---------"] pub fn set_payee (& self , payee : types :: set_payee :: Payee ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetPayee > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "(Re-)sets the controller of a stash to the stash itself. This function previously"] # [doc = "accepted a `controller` argument to set the controller to an account other than the"] # [doc = "stash itself. This functionality has now been removed, now only setting the controller"] # [doc = "to the stash, if it is not already."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(1)"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] pub fn set_controller (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetController > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the ideal number of validators."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(1)"] pub fn set_validator_count (& self , new : types :: set_validator_count :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetValidatorCount > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Increments the ideal number of validators up to maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "Same as [`Self::set_validator_count`]."] pub fn increase_validator_count (& self , additional : types :: increase_validator_count :: Additional ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: IncreaseValidatorCount > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Scale up the ideal number of validators by a factor up to maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "Same as [`Self::set_validator_count`]."] pub fn scale_validator_count (& self , factor : types :: scale_validator_count :: Factor ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScaleValidatorCount > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Force there to be no new eras indefinitely."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# Warning"] # [doc = ""] # [doc = "The election process starts multiple blocks before the end of the era."] # [doc = "Thus the election process may be ongoing when this is called. In this case the"] # [doc = "election will continue until the next era is triggered."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] pub fn force_no_eras (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceNoEras > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Force there to be a new era at the end of the next session. After this, it will be"] # [doc = "reset to normal (non-forced) behaviour."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# Warning"] # [doc = ""] # [doc = "The election process starts multiple blocks before the end of the era."] # [doc = "If this is called just before a new era is triggered, the election process may not"] # [doc = "have enough blocks to get a result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] pub fn force_new_era (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceNewEra > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the validators who cannot be slashed (if any)."] # [doc = ""] # [doc = "The dispatch origin must be Root."] pub fn set_invulnerables (& self , invulnerables : types :: set_invulnerables :: Invulnerables ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetInvulnerables > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Parameters"] # [doc = ""] # [doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] # [doc = "details."] pub fn force_unstake (& self , stash : types :: force_unstake :: Stash , num_slashing_spans : types :: force_unstake :: NumSlashingSpans ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceUnstake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Force there to be a new era at the end of sessions indefinitely."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# Warning"] # [doc = ""] # [doc = "The election process starts multiple blocks before the end of the era."] # [doc = "If this is called just before a new era is triggered, the election process may not"] # [doc = "have enough blocks to get a result."] pub fn force_new_era_always (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceNewEraAlways > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Cancel enactment of a deferred slash."] # [doc = ""] # [doc = "Can be called by the `T::AdminOrigin`."] # [doc = ""] # [doc = "Parameters: era and indices of the slashes for that era to kill."] pub fn cancel_deferred_slash (& self , era : types :: cancel_deferred_slash :: Era , slash_indices : types :: cancel_deferred_slash :: SlashIndices ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelDeferredSlash > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Pay out next page of the stakers behind a validator for the given era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator."] # [doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] # [doc = ""] # [doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] # [doc = "it is not one of the stakers."] # [doc = ""] # [doc = "The reward payout could be paged in case there are too many nominators backing the"] # [doc = "`validator_stash`. This call will payout unpaid pages in an ascending order. To claim a"] # [doc = "specific page, use `payout_stakers_by_page`.`"] # [doc = ""] # [doc = "If all pages are claimed, it returns an error `InvalidPage`."] pub fn payout_stakers (& self , validator_stash : types :: payout_stakers :: ValidatorStash , era : types :: payout_stakers :: Era ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PayoutStakers > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Rebond a portion of the stash scheduled to be unlocked."] # [doc = ""] # [doc = "The dispatch origin must be signed by the controller."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Time complexity: O(L), where L is unlocking chunks"] # [doc = "- Bounded by `MaxUnlockingChunks`."] pub fn rebond (& self , value : types :: rebond :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Rebond > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove all data structures concerning a staker/stash once it is at a state where it can"] # [doc = "be considered `dust` in the staking system. The requirements are:"] # [doc = ""] # [doc = "1. the `total_balance` of the stash is below existential deposit."] # [doc = "2. or, the `ledger.total` of the stash is below existential deposit."] # [doc = "3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero."] # [doc = ""] # [doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] # [doc = "is still receiving staking rewards in `RewardDestination::Staked`."] # [doc = ""] # [doc = "It can be called by anyone, as long as `stash` meets the above requirements."] # [doc = ""] # [doc = "Refunds the transaction fees upon successful execution."] # [doc = ""] # [doc = "## Parameters"] # [doc = ""] # [doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] # [doc = "details."] pub fn reap_stash (& self , stash : types :: reap_stash :: Stash , num_slashing_spans : types :: reap_stash :: NumSlashingSpans ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReapStash > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove the given nominations from the calling validator."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] # [doc = " should no longer be nominating this validator."] # [doc = ""] # [doc = "Note: Making this call only makes sense if you first set the validator preferences to"] # [doc = "block any further nominations."] pub fn kick (& self , who : types :: kick :: Who ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Kick > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Staking" , "kick" , types :: Kick { who , } , [27u8 , 64u8 , 10u8 , 21u8 , 174u8 , 6u8 , 40u8 , 249u8 , 144u8 , 247u8 , 5u8 , 123u8 , 225u8 , 172u8 , 143u8 , 50u8 , 192u8 , 248u8 , 160u8 , 179u8 , 119u8 , 122u8 , 147u8 , 92u8 , 248u8 , 123u8 , 3u8 , 154u8 , 205u8 , 199u8 , 6u8 , 126u8 ,]) } # [doc = "Update the various staking configurations ."] # [doc = ""] # [doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] # [doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] # [doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] # [doc = " set to `None`, no limit is enforced."] # [doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] # [doc = " set to `None`, no limit is enforced."] # [doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] # [doc = " should be filled in order for the `chill_other` transaction to work."] # [doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] # [doc = " This is checked only upon calling `validate`. Existing validators are not affected."] # [doc = ""] # [doc = "RuntimeOrigin must be Root to call this function."] # [doc = ""] # [doc = "NOTE: Existing nominators and validators will not be affected by this update."] # [doc = "to kick people under the new limits, `chill_other` should be called."] 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 , max_staked_rewards : types :: set_staking_configs :: MaxStakedRewards ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetStakingConfigs > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Staking" , "set_staking_configs" , types :: SetStakingConfigs { min_nominator_bond , min_validator_bond , max_nominator_count , max_validator_count , chill_threshold , min_commission , max_staked_rewards , } , [14u8 , 242u8 , 77u8 , 245u8 , 48u8 , 49u8 , 147u8 , 180u8 , 37u8 , 61u8 , 225u8 , 86u8 , 130u8 , 232u8 , 77u8 , 134u8 , 152u8 , 139u8 , 18u8 , 105u8 , 135u8 , 203u8 , 113u8 , 240u8 , 240u8 , 90u8 , 163u8 , 185u8 , 47u8 , 233u8 , 157u8 , 8u8 ,]) } # [doc = "Declare a `controller` to stop participating as either a validator or nominator."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] # [doc = ""] # [doc = "If the caller is the same as the controller being targeted, then no further checks are"] # [doc = "enforced, and this function behaves just like `chill`."] # [doc = ""] # [doc = "If the caller is different than the controller being targeted, the following conditions"] # [doc = "must be met:"] # [doc = ""] # [doc = "* `controller` must belong to a nominator who has become non-decodable,"] # [doc = ""] # [doc = "Or:"] # [doc = ""] # [doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] # [doc = " nominators or validators we must reach before users can start chilling one-another."] # [doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] # [doc = " how close we are to the threshold."] # [doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] # [doc = " if this is a person that should be chilled because they have not met the threshold"] # [doc = " bond required."] # [doc = ""] # [doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] # [doc = "who do not satisfy these requirements."] pub fn chill_other (& self , stash : types :: chill_other :: Stash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ChillOther > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Force a validator to have at least the minimum commission. This will not affect a"] # [doc = "validator who already has a commission greater than or equal to the minimum. Any account"] # [doc = "can call this."] pub fn force_apply_min_commission (& self , validator_stash : types :: force_apply_min_commission :: ValidatorStash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceApplyMinCommission > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the minimum amount of commission that each validators must maintain."] # [doc = ""] # [doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] # [doc = "by the `T::AdminOrigin`. Root can always call this."] pub fn set_min_commission (& self , new : types :: set_min_commission :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMinCommission > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Pay out a page of the stakers behind a validator for the given era and page."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator."] # [doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] # [doc = "- `page` is the page index of nominators to pay out with value between 0 and"] # [doc = " `num_nominators / T::MaxExposurePageSize`."] # [doc = ""] # [doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] # [doc = "it is not one of the stakers."] # [doc = ""] # [doc = "If a validator has more than [`Config::MaxExposurePageSize`] nominators backing"] # [doc = "them, then the list of nominators is paged, with each page being capped at"] # [doc = "[`Config::MaxExposurePageSize`.] If a validator has more than one page of nominators,"] # [doc = "the call needs to be made for each page separately in order for all the nominators"] # [doc = "backing a validator to receive the reward. The nominators are not sorted across pages"] # [doc = "and so it should not be assumed the highest staker would be on the topmost page and vice"] # [doc = "versa. If rewards are not claimed in [`Config::HistoryDepth`] eras, they are lost."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PayoutStakersByPage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Migrates an account's `RewardDestination::Controller` to"] # [doc = "`RewardDestination::Account(controller)`."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "This will waive the transaction fee if the `payee` is successfully migrated."] pub fn update_payee (& self , controller : types :: update_payee :: Controller ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdatePayee > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Updates a batch of controller accounts to their corresponding stash account if they are"] # [doc = "not the same. Ignores any controller accounts that do not exist, and does not operate if"] # [doc = "the stash and controller are already the same."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "The dispatch origin must be `T::AdminOrigin`."] pub fn deprecate_controller_batch (& self , controllers : types :: deprecate_controller_batch :: Controllers ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DeprecateControllerBatch > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Restores the state of a ledger which is in an inconsistent state."] # [doc = ""] # [doc = "The requirements to restore a ledger are the following:"] # [doc = "* The stash is bonded; or"] # [doc = "* The stash is not bonded but it has a staking lock left behind; or"] # [doc = "* If the stash has an associated ledger and its state is inconsistent; or"] # [doc = "* If the ledger is not corrupted *but* its staking lock is out of sync."] # [doc = ""] # [doc = "The `maybe_*` input parameters will overwrite the corresponding data and metadata of the"] # [doc = "ledger associated with the stash. If the input parameters are not set, the ledger will"] # [doc = "be reset values from on-chain state."] pub fn restore_ledger (& self , stash : types :: restore_ledger :: Stash , maybe_controller : types :: restore_ledger :: MaybeController , maybe_total : types :: restore_ledger :: MaybeTotal , maybe_unlocking : types :: restore_ledger :: MaybeUnlocking ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RestoreLedger > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Staking" , "restore_ledger" , types :: RestoreLedger { stash , maybe_controller , maybe_total , maybe_unlocking , } , [199u8 , 92u8 , 58u8 , 85u8 , 126u8 , 61u8 , 68u8 , 207u8 , 29u8 , 62u8 , 9u8 , 161u8 , 162u8 , 101u8 , 180u8 , 210u8 , 157u8 , 88u8 , 216u8 , 169u8 , 169u8 , 229u8 , 190u8 , 94u8 , 40u8 , 73u8 , 37u8 , 64u8 , 23u8 , 125u8 , 117u8 , 31u8 ,]) } } } # [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for EraPaid { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "EraPaid" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Dest = runtime_types :: pallet_staking :: RewardDestination < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Rewarded { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "Rewarded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Slashed { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "Slashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Fraction = runtime_types :: sp_arithmetic :: per_things :: Perbill ; pub type SlashEra = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SlashReported { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "SlashReported" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for OldSlashingReportDiscarded { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "OldSlashingReportDiscarded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A new set of stakers was elected."] pub struct StakersElected ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakersElected { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "StakersElected" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Bonded { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "Bonded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Unbonded { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "Unbonded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Withdrawn { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "Withdrawn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Stash = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Kicked { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "Kicked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakingElectionFailed { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "StakingElectionFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Chilled { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "Chilled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PayoutStarted { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "PayoutStarted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Prefs = runtime_types :: pallet_staking :: ValidatorPrefs ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ValidatorPrefsSet { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "ValidatorPrefsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for SnapshotVotersSizeExceeded { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "SnapshotVotersSizeExceeded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for SnapshotTargetsSizeExceeded { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "SnapshotTargetsSizeExceeded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for ForceEra { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "ForceEra" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report of a controller batch deprecation."] pub struct ControllerBatchDeprecated { pub failures : controller_batch_deprecated :: Failures , } pub mod controller_batch_deprecated { use super :: runtime_types ; pub type Failures = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ControllerBatchDeprecated { const PALLET : & 'static str = "Staking" ; const EVENT : & 'static str = "ControllerBatchDeprecated" ; } } 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } pub mod bonded { use super :: runtime_types ; pub type Bonded = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod payee { use super :: runtime_types ; pub type Payee = runtime_types :: pallet_staking :: RewardDestination < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod validators { use super :: runtime_types ; pub type Validators = runtime_types :: pallet_staking :: ValidatorPrefs ; pub type Param0 = :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod counter_for_nominators { use super :: runtime_types ; pub type CounterForNominators = :: core :: primitive :: u32 ; } pub mod virtual_stakers { use super :: runtime_types ; pub type VirtualStakers = () ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod counter_for_virtual_stakers { use super :: runtime_types ; pub type CounterForVirtualStakers = :: 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 :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 > ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod eras_stakers_clipped { use super :: runtime_types ; pub type ErasStakersClipped = runtime_types :: sp_staking :: Exposure < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 > ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod eras_stakers_paged { use super :: runtime_types ; pub type ErasStakersPaged = runtime_types :: sp_staking :: ExposurePage < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 > ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param2 = :: core :: primitive :: u32 ; } pub mod claimed_rewards { use super :: runtime_types ; pub type ClaimedRewards = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 max_staked_rewards { use super :: runtime_types ; pub type MaxStakedRewards = runtime_types :: sp_arithmetic :: per_things :: Percent ; } 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_staking :: UnappliedSlash < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 > > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod bonded_eras { use super :: runtime_types ; pub type BondedEras = :: subxt :: ext :: subxt_core :: alloc :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod slashing_spans { use super :: runtime_types ; pub type SlashingSpans = runtime_types :: pallet_staking :: slashing :: SlashingSpans ; pub type Param0 = :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 disabled_validators { use super :: runtime_types ; pub type DisabledValidators = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > ; } 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_count :: ValidatorCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ValidatorCount" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: minimum_validator_count :: MinimumValidatorCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "MinimumValidatorCount" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: invulnerables :: Invulnerables , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Invulnerables" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonded :: Bonded , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Bonded" , () , [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 :: core :: borrow :: Borrow < types :: bonded :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonded :: Param0 > , types :: bonded :: Bonded , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Bonded" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_nominator_bond :: MinNominatorBond , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "MinNominatorBond" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_validator_bond :: MinValidatorBond , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "MinValidatorBond" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: minimum_active_stake :: MinimumActiveStake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "MinimumActiveStake" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_commission :: MinCommission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "MinCommission" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: ledger :: Ledger , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Ledger" , () , [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 :: core :: borrow :: Borrow < types :: ledger :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: ledger :: Param0 > , types :: ledger :: Ledger , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Ledger" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: payee :: Payee , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Payee" , () , [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 :: core :: borrow :: Borrow < types :: payee :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: payee :: Param0 > , types :: payee :: Payee , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Payee" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validators :: Validators , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Validators" , () , [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 :: core :: borrow :: Borrow < types :: validators :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validators :: Param0 > , types :: validators :: Validators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Validators" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_validators :: CounterForValidators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "CounterForValidators" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_validators_count :: MaxValidatorsCount , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "MaxValidatorsCount" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: nominators :: Nominators , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Nominators" , () , [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 :: core :: borrow :: Borrow < types :: nominators :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: nominators :: Param0 > , types :: nominators :: Nominators , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "Nominators" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_nominators :: CounterForNominators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "CounterForNominators" , () , [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 = " Stakers whose funds are managed by other pallets."] # [doc = ""] # [doc = " This pallet does not apply any locks on them, therefore they are only virtually bonded. They"] # [doc = " are expected to be keyless accounts and hence should not be allowed to mutate their ledger"] # [doc = " directly via this pallet. Instead, these accounts are managed by other pallets and accessed"] # [doc = " via low level apis. We keep track of them to do minimal integrity checks."] pub fn virtual_stakers_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: virtual_stakers :: VirtualStakers , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "VirtualStakers" , () , [176u8 , 114u8 , 176u8 , 164u8 , 4u8 , 33u8 , 248u8 , 152u8 , 206u8 , 8u8 , 241u8 , 209u8 , 96u8 , 131u8 , 145u8 , 120u8 , 74u8 , 141u8 , 249u8 , 208u8 , 93u8 , 157u8 , 125u8 , 0u8 , 63u8 , 18u8 , 61u8 , 195u8 , 240u8 , 145u8 , 15u8 , 161u8 ,]) } # [doc = " Stakers whose funds are managed by other pallets."] # [doc = ""] # [doc = " This pallet does not apply any locks on them, therefore they are only virtually bonded. They"] # [doc = " are expected to be keyless accounts and hence should not be allowed to mutate their ledger"] # [doc = " directly via this pallet. Instead, these accounts are managed by other pallets and accessed"] # [doc = " via low level apis. We keep track of them to do minimal integrity checks."] pub fn virtual_stakers (& self , _0 : impl :: core :: borrow :: Borrow < types :: virtual_stakers :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: virtual_stakers :: Param0 > , types :: virtual_stakers :: VirtualStakers , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "VirtualStakers" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [176u8 , 114u8 , 176u8 , 164u8 , 4u8 , 33u8 , 248u8 , 152u8 , 206u8 , 8u8 , 241u8 , 209u8 , 96u8 , 131u8 , 145u8 , 120u8 , 74u8 , 141u8 , 249u8 , 208u8 , 93u8 , 157u8 , 125u8 , 0u8 , 63u8 , 18u8 , 61u8 , 195u8 , 240u8 , 145u8 , 15u8 , 161u8 ,]) } # [doc = "Counter for the related counted storage map"] pub fn counter_for_virtual_stakers (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_virtual_stakers :: CounterForVirtualStakers , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "CounterForVirtualStakers" , () , [50u8 , 194u8 , 203u8 , 237u8 , 196u8 , 237u8 , 212u8 , 33u8 , 145u8 , 68u8 , 29u8 , 99u8 , 68u8 , 153u8 , 191u8 , 111u8 , 104u8 , 148u8 , 191u8 , 92u8 , 249u8 , 22u8 , 253u8 , 98u8 , 176u8 , 152u8 , 237u8 , 143u8 , 26u8 , 5u8 , 1u8 , 98u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_nominators_count :: MaxNominatorsCount , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "MaxNominatorsCount" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_era :: CurrentEra , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "CurrentEra" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: active_era :: ActiveEra , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ActiveEra" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_start_session_index :: ErasStartSessionIndex , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStartSessionIndex" , () , [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 :: core :: borrow :: Borrow < types :: eras_start_session_index :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_start_session_index :: Param0 > , types :: eras_start_session_index :: ErasStartSessionIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStartSessionIndex" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_stakers :: ErasStakers , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakers" , () , [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 :: core :: borrow :: Borrow < types :: eras_stakers :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers :: Param0 > , types :: eras_stakers :: ErasStakers , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakers" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: eras_stakers :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: eras_stakers :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers :: Param1 > ,) , types :: eras_stakers :: ErasStakers , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakers" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_stakers_overview :: ErasStakersOverview , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersOverview" , () , [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 :: core :: borrow :: Borrow < types :: eras_stakers_overview :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_overview :: Param0 > , types :: eras_stakers_overview :: ErasStakersOverview , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersOverview" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: eras_stakers_overview :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: eras_stakers_overview :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_overview :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_overview :: Param1 > ,) , types :: eras_stakers_overview :: ErasStakersOverview , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersOverview" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_stakers_clipped :: ErasStakersClipped , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersClipped" , () , [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 :: core :: borrow :: Borrow < types :: eras_stakers_clipped :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_clipped :: Param0 > , types :: eras_stakers_clipped :: ErasStakersClipped , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersClipped" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: eras_stakers_clipped :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: eras_stakers_clipped :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_clipped :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_clipped :: Param1 > ,) , types :: eras_stakers_clipped :: ErasStakersClipped , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersClipped" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_stakers_paged :: ErasStakersPaged , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersPaged" , () , [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 :: core :: borrow :: Borrow < types :: eras_stakers_paged :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_paged :: Param0 > , types :: eras_stakers_paged :: ErasStakersPaged , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersPaged" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: eras_stakers_paged :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: eras_stakers_paged :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_paged :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_paged :: Param1 > ,) , types :: eras_stakers_paged :: ErasStakersPaged , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersPaged" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: eras_stakers_paged :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: eras_stakers_paged :: Param1 > , _2 : impl :: core :: borrow :: Borrow < types :: eras_stakers_paged :: Param2 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_paged :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_paged :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_stakers_paged :: Param2 > ,) , types :: eras_stakers_paged :: ErasStakersPaged , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasStakersPaged" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: claimed_rewards :: ClaimedRewards , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ClaimedRewards" , () , [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 :: core :: borrow :: Borrow < types :: claimed_rewards :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: claimed_rewards :: Param0 > , types :: claimed_rewards :: ClaimedRewards , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ClaimedRewards" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: claimed_rewards :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: claimed_rewards :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: claimed_rewards :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: claimed_rewards :: Param1 > ,) , types :: claimed_rewards :: ClaimedRewards , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ClaimedRewards" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_validator_prefs :: ErasValidatorPrefs , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasValidatorPrefs" , () , [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 :: core :: borrow :: Borrow < types :: eras_validator_prefs :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_validator_prefs :: Param0 > , types :: eras_validator_prefs :: ErasValidatorPrefs , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasValidatorPrefs" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: eras_validator_prefs :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: eras_validator_prefs :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_validator_prefs :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_validator_prefs :: Param1 > ,) , types :: eras_validator_prefs :: ErasValidatorPrefs , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasValidatorPrefs" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_validator_reward :: ErasValidatorReward , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasValidatorReward" , () , [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 :: core :: borrow :: Borrow < types :: eras_validator_reward :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_validator_reward :: Param0 > , types :: eras_validator_reward :: ErasValidatorReward , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasValidatorReward" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_reward_points :: ErasRewardPoints , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasRewardPoints" , () , [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 :: core :: borrow :: Borrow < types :: eras_reward_points :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_reward_points :: Param0 > , types :: eras_reward_points :: ErasRewardPoints , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasRewardPoints" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_total_stake :: ErasTotalStake , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasTotalStake" , () , [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 :: core :: borrow :: Borrow < types :: eras_total_stake :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: eras_total_stake :: Param0 > , types :: eras_total_stake :: ErasTotalStake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ErasTotalStake" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: force_era :: ForceEra , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ForceEra" , () , [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 = " Maximum staked rewards, i.e. the percentage of the era inflation that"] # [doc = " is used for stake rewards."] # [doc = " See [Era payout](./index.html#era-payout)."] pub fn max_staked_rewards (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_staked_rewards :: MaxStakedRewards , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "MaxStakedRewards" , () , [115u8 , 208u8 , 243u8 , 76u8 , 110u8 , 71u8 , 154u8 , 80u8 , 193u8 , 138u8 , 75u8 , 11u8 , 24u8 , 51u8 , 112u8 , 125u8 , 153u8 , 151u8 , 216u8 , 67u8 , 214u8 , 4u8 , 94u8 , 229u8 , 32u8 , 186u8 , 140u8 , 150u8 , 100u8 , 233u8 , 88u8 , 53u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: slash_reward_fraction :: SlashRewardFraction , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "SlashRewardFraction" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: canceled_slash_payout :: CanceledSlashPayout , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "CanceledSlashPayout" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: unapplied_slashes :: UnappliedSlashes , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "UnappliedSlashes" , () , [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 :: core :: borrow :: Borrow < types :: unapplied_slashes :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: unapplied_slashes :: Param0 > , types :: unapplied_slashes :: UnappliedSlashes , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "UnappliedSlashes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonded_eras :: BondedEras , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "BondedEras" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_slash_in_era :: ValidatorSlashInEra , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ValidatorSlashInEra" , () , [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 :: core :: borrow :: Borrow < types :: validator_slash_in_era :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_slash_in_era :: Param0 > , types :: validator_slash_in_era :: ValidatorSlashInEra , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ValidatorSlashInEra" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: validator_slash_in_era :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: validator_slash_in_era :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_slash_in_era :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_slash_in_era :: Param1 > ,) , types :: validator_slash_in_era :: ValidatorSlashInEra , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ValidatorSlashInEra" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: nominator_slash_in_era :: NominatorSlashInEra , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "NominatorSlashInEra" , () , [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 :: core :: borrow :: Borrow < types :: nominator_slash_in_era :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: nominator_slash_in_era :: Param0 > , types :: nominator_slash_in_era :: NominatorSlashInEra , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "NominatorSlashInEra" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: nominator_slash_in_era :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: nominator_slash_in_era :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: nominator_slash_in_era :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: nominator_slash_in_era :: Param1 > ,) , types :: nominator_slash_in_era :: NominatorSlashInEra , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "NominatorSlashInEra" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: slashing_spans :: SlashingSpans , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "SlashingSpans" , () , [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 :: core :: borrow :: Borrow < types :: slashing_spans :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: slashing_spans :: Param0 > , types :: slashing_spans :: SlashingSpans , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "SlashingSpans" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: span_slash :: SpanSlash , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "SpanSlash" , () , [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 :: core :: borrow :: Borrow < types :: span_slash :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: span_slash :: Param0 > , types :: span_slash :: SpanSlash , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "SpanSlash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: span_slash :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: span_slash :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: span_slash :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: span_slash :: Param1 > ,) , types :: span_slash :: SpanSlash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "SpanSlash" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_planned_session :: CurrentPlannedSession , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "CurrentPlannedSession" , () , [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. The offenders are disabled for a"] # [doc = " whole era. For this reason they are kept here - only staking pallet knows about eras. The"] # [doc = " implementor of [`DisablingStrategy`] defines if a validator should be disabled which"] # [doc = " implicitly means that the implementor also controls the max number of disabled validators."] # [doc = ""] # [doc = " The vec is always kept sorted so that we can find whether a given validator has previously"] # [doc = " offended using binary search."] pub fn disabled_validators (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: disabled_validators :: DisabledValidators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "DisabledValidators" , () , [213u8 , 19u8 , 168u8 , 234u8 , 187u8 , 200u8 , 180u8 , 97u8 , 234u8 , 189u8 , 36u8 , 233u8 , 158u8 , 184u8 , 45u8 , 35u8 , 129u8 , 213u8 , 133u8 , 8u8 , 104u8 , 183u8 , 46u8 , 68u8 , 154u8 , 240u8 , 132u8 , 22u8 , 247u8 , 11u8 , 54u8 , 221u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: chill_threshold :: ChillThreshold , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Staking" , "ChillThreshold" , () , [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: sp_staking :: Exposure < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 > ,) > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod concurrent_reports_index { use super :: runtime_types ; pub type ConcurrentReportsIndex = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: reports :: Reports , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Offences" , "Reports" , () , [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 :: core :: borrow :: Borrow < types :: reports :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reports :: Param0 > , types :: reports :: Reports , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Offences" , "Reports" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: concurrent_reports_index :: ConcurrentReportsIndex , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Offences" , "ConcurrentReportsIndex" , () , [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 :: core :: borrow :: Borrow < types :: concurrent_reports_index :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: concurrent_reports_index :: Param0 > , types :: concurrent_reports_index :: ConcurrentReportsIndex , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Offences" , "ConcurrentReportsIndex" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: concurrent_reports_index :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: concurrent_reports_index :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: concurrent_reports_index :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: concurrent_reports_index :: Param1 > ,) , types :: concurrent_reports_index :: ConcurrentReportsIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Offences" , "ConcurrentReportsIndex" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: historical_sessions :: HistoricalSessions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Historical" , "HistoricalSessions" , () , [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 :: core :: borrow :: Borrow < types :: historical_sessions :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: historical_sessions :: Param0 > , types :: historical_sessions :: HistoricalSessions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Historical" , "HistoricalSessions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: stored_range :: StoredRange , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Historical" , "StoredRange" , () , [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 session { use super :: root_mod ; use super :: runtime_types ; # [doc = "Error for the session pallet."] pub type Error = runtime_types :: pallet_session :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_session :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the session key(s) of the function caller to `keys`."] # [doc = "Allows an account to set its session key prior to becoming a validator."] # [doc = "This doesn't take effect until the next session."] # [doc = ""] # [doc = "The dispatch origin of this function must be signed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] # [doc = " fixed."] pub struct SetKeys { pub keys : set_keys :: Keys , pub proof : set_keys :: Proof , } pub mod set_keys { use super :: runtime_types ; pub type Keys = runtime_types :: paseo_runtime :: SessionKeys ; pub type Proof = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetKeys { const PALLET : & 'static str = "Session" ; const CALL : & 'static str = "set_keys" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Removes any session key(s) of the function caller."] # [doc = ""] # [doc = "This doesn't take effect until the next session."] # [doc = ""] # [doc = "The dispatch origin of this function must be Signed and the account must be either be"] # [doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] # [doc = "means being a controller account) or directly convertible into a validator ID (which"] # [doc = "usually means being a stash account)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] # [doc = " `T::Keys::key_ids()` which is fixed."] pub struct PurgeKeys ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PurgeKeys { const PALLET : & 'static str = "Session" ; const CALL : & 'static str = "purge_keys" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Sets the session key(s) of the function caller to `keys`."] # [doc = "Allows an account to set its session key prior to becoming a validator."] # [doc = "This doesn't take effect until the next session."] # [doc = ""] # [doc = "The dispatch origin of this function must be signed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] # [doc = " fixed."] pub fn set_keys (& self , keys : types :: set_keys :: Keys , proof : types :: set_keys :: Proof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetKeys > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Session" , "set_keys" , types :: SetKeys { keys , proof , } , [251u8 , 79u8 , 44u8 , 78u8 , 55u8 , 160u8 , 150u8 , 159u8 , 183u8 , 86u8 , 129u8 , 32u8 , 250u8 , 138u8 , 223u8 , 100u8 , 40u8 , 203u8 , 116u8 , 224u8 , 244u8 , 142u8 , 7u8 , 154u8 , 147u8 , 97u8 , 160u8 , 162u8 , 95u8 , 5u8 , 213u8 , 246u8 ,]) } # [doc = "Removes any session key(s) of the function caller."] # [doc = ""] # [doc = "This doesn't take effect until the next session."] # [doc = ""] # [doc = "The dispatch origin of this function must be Signed and the account must be either be"] # [doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] # [doc = "means being a controller account) or directly convertible into a validator ID (which"] # [doc = "usually means being a stash account)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] # [doc = " `T::Keys::key_ids()` which is fixed."] pub fn purge_keys (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PurgeKeys > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Session" , "purge_keys" , types :: PurgeKeys { } , [215u8 , 204u8 , 146u8 , 236u8 , 32u8 , 78u8 , 198u8 , 79u8 , 85u8 , 214u8 , 15u8 , 151u8 , 158u8 , 31u8 , 146u8 , 119u8 , 119u8 , 204u8 , 151u8 , 169u8 , 226u8 , 67u8 , 217u8 , 39u8 , 241u8 , 245u8 , 203u8 , 240u8 , 203u8 , 172u8 , 16u8 , 209u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_session :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "New session has happened. Note that the argument is the session index, not the"] # [doc = "block number as the type might suggest."] pub struct NewSession { pub session_index : new_session :: SessionIndex , } pub mod new_session { use super :: runtime_types ; pub type SessionIndex = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewSession { const PALLET : & 'static str = "Session" ; const EVENT : & 'static str = "NewSession" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod validators { use super :: runtime_types ; pub type Validators = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } pub mod current_index { use super :: runtime_types ; pub type CurrentIndex = :: core :: primitive :: u32 ; } pub mod queued_changed { use super :: runtime_types ; pub type QueuedChanged = :: core :: primitive :: bool ; } pub mod queued_keys { use super :: runtime_types ; pub type QueuedKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: paseo_runtime :: SessionKeys ,) > ; } pub mod disabled_validators { use super :: runtime_types ; pub type DisabledValidators = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > ; } pub mod next_keys { use super :: runtime_types ; pub type NextKeys = runtime_types :: paseo_runtime :: SessionKeys ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod key_owner { use super :: runtime_types ; pub type KeyOwner = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = runtime_types :: sp_core :: crypto :: KeyTypeId ; pub type Param1 = [:: core :: primitive :: u8] ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The current set of validators."] pub fn validators (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validators :: Validators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "Validators" , () , [50u8 , 86u8 , 154u8 , 222u8 , 249u8 , 209u8 , 156u8 , 22u8 , 155u8 , 25u8 , 133u8 , 194u8 , 210u8 , 50u8 , 38u8 , 28u8 , 139u8 , 201u8 , 90u8 , 139u8 , 115u8 , 12u8 , 12u8 , 141u8 , 4u8 , 178u8 , 201u8 , 241u8 , 223u8 , 234u8 , 6u8 , 86u8 ,]) } # [doc = " Current index of the session."] pub fn current_index (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_index :: CurrentIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "CurrentIndex" , () , [167u8 , 151u8 , 125u8 , 150u8 , 159u8 , 21u8 , 78u8 , 217u8 , 237u8 , 183u8 , 135u8 , 65u8 , 187u8 , 114u8 , 188u8 , 206u8 , 16u8 , 32u8 , 69u8 , 208u8 , 134u8 , 159u8 , 232u8 , 224u8 , 243u8 , 27u8 , 31u8 , 166u8 , 145u8 , 44u8 , 221u8 , 230u8 ,]) } # [doc = " True if the underlying economic identities or weighting behind the validators"] # [doc = " has changed in the queued validator set."] pub fn queued_changed (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: queued_changed :: QueuedChanged , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "QueuedChanged" , () , [184u8 , 137u8 , 224u8 , 137u8 , 31u8 , 236u8 , 95u8 , 164u8 , 102u8 , 225u8 , 198u8 , 227u8 , 140u8 , 37u8 , 113u8 , 57u8 , 59u8 , 4u8 , 202u8 , 102u8 , 117u8 , 36u8 , 226u8 , 64u8 , 113u8 , 141u8 , 199u8 , 111u8 , 99u8 , 144u8 , 198u8 , 153u8 ,]) } # [doc = " The queued keys for the next session. When the next session begins, these keys"] # [doc = " will be used to determine the validator's session keys."] pub fn queued_keys (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: queued_keys :: QueuedKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "QueuedKeys" , () , [54u8 , 232u8 , 4u8 , 80u8 , 89u8 , 214u8 , 20u8 , 219u8 , 48u8 , 108u8 , 26u8 , 89u8 , 170u8 , 210u8 , 66u8 , 37u8 , 12u8 , 60u8 , 148u8 , 186u8 , 241u8 , 64u8 , 83u8 , 37u8 , 124u8 , 217u8 , 51u8 , 120u8 , 148u8 , 205u8 , 85u8 , 48u8 ,]) } # [doc = " Indices of disabled validators."] # [doc = ""] # [doc = " The vec is always kept sorted so that we can find whether a given validator is"] # [doc = " disabled using binary search. It gets cleared when `on_session_ending` returns"] # [doc = " a new set of identities."] pub fn disabled_validators (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: disabled_validators :: DisabledValidators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "DisabledValidators" , () , [213u8 , 19u8 , 168u8 , 234u8 , 187u8 , 200u8 , 180u8 , 97u8 , 234u8 , 189u8 , 36u8 , 233u8 , 158u8 , 184u8 , 45u8 , 35u8 , 129u8 , 213u8 , 133u8 , 8u8 , 104u8 , 183u8 , 46u8 , 68u8 , 154u8 , 240u8 , 132u8 , 22u8 , 247u8 , 11u8 , 54u8 , 221u8 ,]) } # [doc = " The next session keys for a validator."] pub fn next_keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_keys :: NextKeys , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "NextKeys" , () , [123u8 , 233u8 , 243u8 , 13u8 , 162u8 , 60u8 , 206u8 , 97u8 , 76u8 , 43u8 , 184u8 , 99u8 , 17u8 , 23u8 , 110u8 , 108u8 , 131u8 , 195u8 , 109u8 , 24u8 , 217u8 , 93u8 , 99u8 , 41u8 , 95u8 , 196u8 , 239u8 , 243u8 , 191u8 , 131u8 , 2u8 , 57u8 ,]) } # [doc = " The next session keys for a validator."] pub fn next_keys (& self , _0 : impl :: core :: borrow :: Borrow < types :: next_keys :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: next_keys :: Param0 > , types :: next_keys :: NextKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "NextKeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [123u8 , 233u8 , 243u8 , 13u8 , 162u8 , 60u8 , 206u8 , 97u8 , 76u8 , 43u8 , 184u8 , 99u8 , 17u8 , 23u8 , 110u8 , 108u8 , 131u8 , 195u8 , 109u8 , 24u8 , 217u8 , 93u8 , 99u8 , 41u8 , 95u8 , 196u8 , 239u8 , 243u8 , 191u8 , 131u8 , 2u8 , 57u8 ,]) } # [doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: key_owner :: KeyOwner , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "KeyOwner" , () , [217u8 , 204u8 , 21u8 , 114u8 , 247u8 , 129u8 , 32u8 , 242u8 , 93u8 , 91u8 , 253u8 , 253u8 , 248u8 , 90u8 , 12u8 , 202u8 , 195u8 , 25u8 , 18u8 , 100u8 , 253u8 , 109u8 , 88u8 , 77u8 , 217u8 , 140u8 , 51u8 , 40u8 , 118u8 , 35u8 , 107u8 , 206u8 ,]) } # [doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_iter1 (& self , _0 : impl :: core :: borrow :: Borrow < types :: key_owner :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: key_owner :: Param0 > , types :: key_owner :: KeyOwner , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "KeyOwner" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [217u8 , 204u8 , 21u8 , 114u8 , 247u8 , 129u8 , 32u8 , 242u8 , 93u8 , 91u8 , 253u8 , 253u8 , 248u8 , 90u8 , 12u8 , 202u8 , 195u8 , 25u8 , 18u8 , 100u8 , 253u8 , 109u8 , 88u8 , 77u8 , 217u8 , 140u8 , 51u8 , 40u8 , 118u8 , 35u8 , 107u8 , 206u8 ,]) } # [doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner (& self , _0 : impl :: core :: borrow :: Borrow < types :: key_owner :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: key_owner :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: key_owner :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: key_owner :: Param1 > ,) , types :: key_owner :: KeyOwner , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Session" , "KeyOwner" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) ,) , [217u8 , 204u8 , 21u8 , 114u8 , 247u8 , 129u8 , 32u8 , 242u8 , 93u8 , 91u8 , 253u8 , 253u8 , 248u8 , 90u8 , 12u8 , 202u8 , 195u8 , 25u8 , 18u8 , 100u8 , 253u8 , 109u8 , 88u8 , 77u8 , 217u8 , 140u8 , 51u8 , 40u8 , 118u8 , 35u8 , 107u8 , 206u8 ,]) } } } } pub mod grandpa { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_grandpa :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_grandpa :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] pub struct ReportEquivocation { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation :: EquivocationProof > , pub key_owner_proof : report_equivocation :: KeyOwnerProof , } pub mod report_equivocation { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; pub type KeyOwnerProof = runtime_types :: sp_session :: MembershipProof ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocation { const PALLET : & 'static str = "Grandpa" ; const CALL : & 'static str = "report_equivocation" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub struct ReportEquivocationUnsigned { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation_unsigned :: EquivocationProof > , pub key_owner_proof : report_equivocation_unsigned :: KeyOwnerProof , } pub mod report_equivocation_unsigned { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; pub type KeyOwnerProof = runtime_types :: sp_session :: MembershipProof ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocationUnsigned { const PALLET : & 'static str = "Grandpa" ; const CALL : & 'static str = "report_equivocation_unsigned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] # [doc = ""] # [doc = "This will trigger a forced authority set change at the beginning of the next session, to"] # [doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] # [doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] # [doc = "The block production rate (which may be slowed down because of finality lagging) should"] # [doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] # [doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] # [doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] # [doc = "block of all validators of the new authority set."] # [doc = ""] # [doc = "Only callable by root."] pub struct NoteStalled { pub delay : note_stalled :: Delay , pub best_finalized_block_number : note_stalled :: BestFinalizedBlockNumber , } pub mod note_stalled { use super :: runtime_types ; pub type Delay = :: core :: primitive :: u32 ; pub type BestFinalizedBlockNumber = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for NoteStalled { const PALLET : & 'static str = "Grandpa" ; const CALL : & 'static str = "note_stalled" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] pub fn report_equivocation (& self , equivocation_proof : types :: report_equivocation :: EquivocationProof , key_owner_proof : types :: report_equivocation :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocation > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Grandpa" , "report_equivocation" , types :: ReportEquivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [197u8 , 206u8 , 246u8 , 26u8 , 171u8 , 25u8 , 214u8 , 211u8 , 138u8 , 132u8 , 148u8 , 48u8 , 66u8 , 12u8 , 92u8 , 17u8 , 190u8 , 155u8 , 121u8 , 222u8 , 226u8 , 171u8 , 208u8 , 123u8 , 253u8 , 247u8 , 253u8 , 191u8 , 90u8 , 4u8 , 224u8 , 104u8 ,]) } # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub fn report_equivocation_unsigned (& self , equivocation_proof : types :: report_equivocation_unsigned :: EquivocationProof , key_owner_proof : types :: report_equivocation_unsigned :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocationUnsigned > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Grandpa" , "report_equivocation_unsigned" , types :: ReportEquivocationUnsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [109u8 , 97u8 , 251u8 , 184u8 , 77u8 , 61u8 , 95u8 , 187u8 , 132u8 , 146u8 , 18u8 , 105u8 , 109u8 , 124u8 , 181u8 , 74u8 , 143u8 , 171u8 , 248u8 , 188u8 , 69u8 , 63u8 , 65u8 , 92u8 , 64u8 , 42u8 , 104u8 , 131u8 , 67u8 , 202u8 , 172u8 , 73u8 ,]) } # [doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] # [doc = ""] # [doc = "This will trigger a forced authority set change at the beginning of the next session, to"] # [doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] # [doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] # [doc = "The block production rate (which may be slowed down because of finality lagging) should"] # [doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] # [doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] # [doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] # [doc = "block of all validators of the new authority set."] # [doc = ""] # [doc = "Only callable by root."] pub fn note_stalled (& self , delay : types :: note_stalled :: Delay , best_finalized_block_number : types :: note_stalled :: BestFinalizedBlockNumber ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: NoteStalled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Grandpa" , "note_stalled" , types :: NoteStalled { delay , best_finalized_block_number , } , [158u8 , 25u8 , 64u8 , 114u8 , 131u8 , 139u8 , 227u8 , 132u8 , 42u8 , 107u8 , 40u8 , 249u8 , 18u8 , 93u8 , 254u8 , 86u8 , 37u8 , 67u8 , 250u8 , 35u8 , 241u8 , 194u8 , 209u8 , 20u8 , 39u8 , 75u8 , 186u8 , 21u8 , 48u8 , 124u8 , 151u8 , 31u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_grandpa :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "New authority set has been applied."] pub struct NewAuthorities { pub authority_set : new_authorities :: AuthoritySet , } pub mod new_authorities { use super :: runtime_types ; pub type AuthoritySet = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewAuthorities { const PALLET : & 'static str = "Grandpa" ; const EVENT : & 'static str = "NewAuthorities" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Current authority set has been paused."] pub struct Paused ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Paused { const PALLET : & 'static str = "Grandpa" ; const EVENT : & 'static str = "Paused" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Current authority set has been resumed."] pub struct Resumed ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Resumed { const PALLET : & 'static str = "Grandpa" ; const EVENT : & 'static str = "Resumed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod state { use super :: runtime_types ; pub type State = runtime_types :: pallet_grandpa :: StoredState < :: core :: primitive :: u32 > ; } pub mod pending_change { use super :: runtime_types ; pub type PendingChange = runtime_types :: pallet_grandpa :: StoredPendingChange < :: core :: primitive :: u32 > ; } pub mod next_forced { use super :: runtime_types ; pub type NextForced = :: core :: primitive :: u32 ; } pub mod stalled { use super :: runtime_types ; pub type Stalled = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; } pub mod current_set_id { use super :: runtime_types ; pub type CurrentSetId = :: core :: primitive :: u64 ; } pub mod set_id_session { use super :: runtime_types ; 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 { # [doc = " State of the current authority set."] pub fn state (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: state :: State , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "State" , () , [73u8 , 71u8 , 112u8 , 83u8 , 238u8 , 75u8 , 44u8 , 9u8 , 180u8 , 33u8 , 30u8 , 121u8 , 98u8 , 96u8 , 61u8 , 133u8 , 16u8 , 70u8 , 30u8 , 249u8 , 34u8 , 148u8 , 15u8 , 239u8 , 164u8 , 157u8 , 52u8 , 27u8 , 144u8 , 52u8 , 223u8 , 109u8 ,]) } # [doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_change :: PendingChange , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "PendingChange" , () , [32u8 , 165u8 , 141u8 , 100u8 , 109u8 , 66u8 , 58u8 , 22u8 , 118u8 , 84u8 , 92u8 , 164u8 , 119u8 , 130u8 , 104u8 , 25u8 , 244u8 , 111u8 , 223u8 , 54u8 , 184u8 , 95u8 , 196u8 , 30u8 , 244u8 , 129u8 , 110u8 , 127u8 , 200u8 , 66u8 , 226u8 , 26u8 ,]) } # [doc = " next block number where we can force a change."] pub fn next_forced (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_forced :: NextForced , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "NextForced" , () , [3u8 , 231u8 , 56u8 , 18u8 , 87u8 , 112u8 , 227u8 , 126u8 , 180u8 , 131u8 , 255u8 , 141u8 , 82u8 , 34u8 , 61u8 , 47u8 , 234u8 , 37u8 , 95u8 , 62u8 , 33u8 , 235u8 , 231u8 , 122u8 , 125u8 , 8u8 , 223u8 , 95u8 , 255u8 , 204u8 , 40u8 , 97u8 ,]) } # [doc = " `true` if we are currently stalled."] pub fn stalled (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: stalled :: Stalled , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "Stalled" , () , [6u8 , 81u8 , 205u8 , 142u8 , 195u8 , 48u8 , 0u8 , 247u8 , 108u8 , 170u8 , 10u8 , 249u8 , 72u8 , 206u8 , 32u8 , 103u8 , 109u8 , 57u8 , 51u8 , 21u8 , 144u8 , 204u8 , 79u8 , 8u8 , 191u8 , 185u8 , 38u8 , 34u8 , 118u8 , 223u8 , 75u8 , 241u8 ,]) } # [doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"] # [doc = " in the \"set\" of Grandpa validators from genesis."] pub fn current_set_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_set_id :: CurrentSetId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "CurrentSetId" , () , [234u8 , 215u8 , 218u8 , 42u8 , 30u8 , 76u8 , 129u8 , 40u8 , 125u8 , 137u8 , 207u8 , 47u8 , 46u8 , 213u8 , 159u8 , 50u8 , 175u8 , 81u8 , 155u8 , 123u8 , 246u8 , 175u8 , 156u8 , 68u8 , 22u8 , 113u8 , 135u8 , 137u8 , 163u8 , 18u8 , 115u8 , 73u8 ,]) } # [doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] # [doc = " members were responsible."] # [doc = ""] # [doc = " This is only used for validating equivocation proofs. An equivocation proof must"] # [doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] # [doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] # [doc = " was the owner of a given key on a given session, and what the active set ID was"] # [doc = " during that session."] # [doc = ""] # [doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: set_id_session :: SetIdSession , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "SetIdSession" , () , [47u8 , 0u8 , 239u8 , 121u8 , 187u8 , 213u8 , 254u8 , 50u8 , 238u8 , 10u8 , 162u8 , 65u8 , 189u8 , 166u8 , 37u8 , 74u8 , 82u8 , 81u8 , 160u8 , 20u8 , 180u8 , 253u8 , 238u8 , 18u8 , 209u8 , 203u8 , 38u8 , 148u8 , 16u8 , 105u8 , 72u8 , 169u8 ,]) } # [doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] # [doc = " members were responsible."] # [doc = ""] # [doc = " This is only used for validating equivocation proofs. An equivocation proof must"] # [doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] # [doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] # [doc = " was the owner of a given key on a given session, and what the active set ID was"] # [doc = " during that session."] # [doc = ""] # [doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session (& self , _0 : impl :: core :: borrow :: Borrow < types :: set_id_session :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: set_id_session :: Param0 > , types :: set_id_session :: SetIdSession , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "SetIdSession" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [47u8 , 0u8 , 239u8 , 121u8 , 187u8 , 213u8 , 254u8 , 50u8 , 238u8 , 10u8 , 162u8 , 65u8 , 189u8 , 166u8 , 37u8 , 74u8 , 82u8 , 81u8 , 160u8 , 20u8 , 180u8 , 253u8 , 238u8 , 18u8 , 209u8 , 203u8 , 38u8 , 148u8 , 16u8 , 105u8 , 72u8 , 169u8 ,]) } # [doc = " The current list of authorities."] pub fn authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorities :: Authorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "Authorities" , () , [192u8 , 157u8 , 98u8 , 244u8 , 104u8 , 38u8 , 195u8 , 114u8 , 183u8 , 62u8 , 247u8 , 18u8 , 31u8 , 152u8 , 246u8 , 206u8 , 97u8 , 13u8 , 118u8 , 211u8 , 104u8 , 54u8 , 150u8 , 152u8 , 126u8 , 170u8 , 228u8 , 158u8 , 108u8 , 129u8 , 134u8 , 44u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Max Authorities in use"] pub fn max_authorities (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Grandpa" , "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 number of nominators for each validator."] pub fn max_nominators (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Grandpa" , "MaxNominators" , [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 entries to keep in the set id to session index mapping."] # [doc = ""] # [doc = " Since the `SetIdSession` map is only used for validating equivocations this"] # [doc = " value should relate to the bonding duration of whatever staking system is"] # [doc = " being used (if any). If equivocation handling is not enabled then this value"] # [doc = " can be zero."] pub fn max_set_id_session_entries (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Grandpa" , "MaxSetIdSessionEntries" , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: keys :: Keys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("AuthorityDiscovery" , "Keys" , () , [35u8 , 71u8 , 73u8 , 255u8 , 160u8 , 250u8 , 38u8 , 205u8 , 32u8 , 139u8 , 236u8 , 83u8 , 194u8 , 12u8 , 20u8 , 221u8 , 114u8 , 94u8 , 196u8 , 246u8 , 136u8 , 175u8 , 70u8 , 98u8 , 91u8 , 50u8 , 236u8 , 131u8 , 131u8 , 146u8 , 150u8 , 192u8 ,]) } # [doc = " Keys of the next authority set."] pub fn next_keys (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_keys :: NextKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("AuthorityDiscovery" , "NextKeys" , () , [54u8 , 44u8 , 61u8 , 196u8 , 2u8 , 249u8 , 185u8 , 199u8 , 245u8 , 154u8 , 178u8 , 109u8 , 237u8 , 147u8 , 72u8 , 209u8 , 72u8 , 196u8 , 31u8 , 192u8 , 217u8 , 231u8 , 71u8 , 28u8 , 148u8 , 138u8 , 29u8 , 115u8 , 247u8 , 95u8 , 185u8 , 189u8 ,]) } } } } pub mod treasury { use super :: root_mod ; use super :: runtime_types ; # [doc = "Error for the treasury pallet."] pub type Error = runtime_types :: pallet_treasury :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_treasury :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Propose and approve a spend of treasury funds."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`."] # [doc = ""] # [doc = "### Details"] # [doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] # [doc = "beneficiary."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] # [doc = "- `beneficiary`: The destination account for the transfer."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::SpendApproved`] if successful."] pub struct SpendLocal { # [codec (compact)] pub amount : spend_local :: Amount , pub beneficiary : spend_local :: Beneficiary , } pub mod spend_local { use super :: runtime_types ; pub type Amount = :: core :: primitive :: u128 ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SpendLocal { const PALLET : & 'static str = "Treasury" ; const CALL : & 'static str = "spend_local" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force a previously approved proposal to be removed from the approval queue."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::RejectOrigin`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "The original deposit will no longer be returned."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `proposal_id`: The index of a proposal"] # [doc = ""] # [doc = "### Complexity"] # [doc = "- O(A) where `A` is the number of approvals"] # [doc = ""] # [doc = "### Errors"] # [doc = "- [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the"] # [doc = " approval queue, i.e., the proposal has not been approved. This could also mean the"] # [doc = " proposal does not exist altogether, thus there is no way it would have been approved"] # [doc = " in the first place."] pub struct RemoveApproval { # [codec (compact)] pub proposal_id : remove_approval :: ProposalId , } pub mod remove_approval { use super :: runtime_types ; pub type ProposalId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveApproval { const PALLET : & 'static str = "Treasury" ; const CALL : & 'static str = "remove_approval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Propose and approve a spend of treasury funds."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least"] # [doc = "`amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted"] # [doc = "for assertion using the [`Config::BalanceConverter`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "Create an approved spend for transferring a specific `amount` of `asset_kind` to a"] # [doc = "designated beneficiary. The spend must be claimed using the `payout` dispatchable within"] # [doc = "the [`Config::PayoutPeriod`]."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `asset_kind`: An indicator of the specific asset class to be spent."] # [doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] # [doc = "- `beneficiary`: The beneficiary of the spend."] # [doc = "- `valid_from`: The block number from which the spend can be claimed. It can refer to"] # [doc = " the past if the resulting spend has not yet expired according to the"] # [doc = " [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after"] # [doc = " approval."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::AssetSpendApproved`] if successful."] pub struct Spend { pub asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < spend :: AssetKind > , # [codec (compact)] pub amount : spend :: Amount , pub beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < spend :: Beneficiary > , pub valid_from : spend :: ValidFrom , } pub mod spend { use super :: runtime_types ; pub type AssetKind = runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset ; pub type Amount = :: core :: primitive :: u128 ; pub type Beneficiary = runtime_types :: xcm :: VersionedLocation ; pub type ValidFrom = :: core :: option :: Option < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Spend { const PALLET : & 'static str = "Treasury" ; const CALL : & 'static str = "spend" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Claim a spend."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be signed"] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "Spends must be claimed within some temporal bounds. A spend may be claimed within one"] # [doc = "[`Config::PayoutPeriod`] from the `valid_from` block."] # [doc = "In case of a payout failure, the spend status must be updated with the `check_status`"] # [doc = "dispatchable before retrying with the current function."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `index`: The spend index."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::Paid`] if successful."] pub struct Payout { pub index : payout :: Index , } pub mod payout { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Payout { const PALLET : & 'static str = "Treasury" ; const CALL : & 'static str = "payout" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Check the status of the spend and remove it from the storage if processed."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be signed."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "The status check is a prerequisite for retrying a failed payout."] # [doc = "If a spend has either succeeded or expired, it is removed from the storage by this"] # [doc = "function. In such instances, transaction fees are refunded."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `index`: The spend index."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::PaymentFailed`] if the spend payout has failed."] # [doc = "Emits [`Event::SpendProcessed`] if the spend payout has succeed."] pub struct CheckStatus { pub index : check_status :: Index , } pub mod check_status { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CheckStatus { const PALLET : & 'static str = "Treasury" ; const CALL : & 'static str = "check_status" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Void previously approved spend."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::RejectOrigin`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "A spend void is only possible if the payout has not been attempted yet."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `index`: The spend index."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::AssetSpendVoided`] if successful."] pub struct VoidSpend { pub index : void_spend :: Index , } pub mod void_spend { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for VoidSpend { const PALLET : & 'static str = "Treasury" ; const CALL : & 'static str = "void_spend" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Propose and approve a spend of treasury funds."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`."] # [doc = ""] # [doc = "### Details"] # [doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] # [doc = "beneficiary."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] # [doc = "- `beneficiary`: The destination account for the transfer."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::SpendApproved`] if successful."] pub fn spend_local (& self , amount : types :: spend_local :: Amount , beneficiary : types :: spend_local :: Beneficiary ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SpendLocal > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Treasury" , "spend_local" , types :: SpendLocal { amount , 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 ,]) } # [doc = "Force a previously approved proposal to be removed from the approval queue."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::RejectOrigin`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "The original deposit will no longer be returned."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `proposal_id`: The index of a proposal"] # [doc = ""] # [doc = "### Complexity"] # [doc = "- O(A) where `A` is the number of approvals"] # [doc = ""] # [doc = "### Errors"] # [doc = "- [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the"] # [doc = " approval queue, i.e., the proposal has not been approved. This could also mean the"] # [doc = " proposal does not exist altogether, thus there is no way it would have been approved"] # [doc = " in the first place."] pub fn remove_approval (& self , proposal_id : types :: remove_approval :: ProposalId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveApproval > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Treasury" , "remove_approval" , types :: RemoveApproval { proposal_id , } , [180u8 , 20u8 , 39u8 , 227u8 , 29u8 , 228u8 , 234u8 , 36u8 , 155u8 , 114u8 , 197u8 , 135u8 , 185u8 , 31u8 , 56u8 , 247u8 , 224u8 , 168u8 , 254u8 , 233u8 , 250u8 , 134u8 , 186u8 , 155u8 , 108u8 , 84u8 , 94u8 , 226u8 , 207u8 , 130u8 , 196u8 , 100u8 ,]) } # [doc = "Propose and approve a spend of treasury funds."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least"] # [doc = "`amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted"] # [doc = "for assertion using the [`Config::BalanceConverter`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "Create an approved spend for transferring a specific `amount` of `asset_kind` to a"] # [doc = "designated beneficiary. The spend must be claimed using the `payout` dispatchable within"] # [doc = "the [`Config::PayoutPeriod`]."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `asset_kind`: An indicator of the specific asset class to be spent."] # [doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] # [doc = "- `beneficiary`: The beneficiary of the spend."] # [doc = "- `valid_from`: The block number from which the spend can be claimed. It can refer to"] # [doc = " the past if the resulting spend has not yet expired according to the"] # [doc = " [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after"] # [doc = " approval."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::AssetSpendApproved`] if successful."] pub fn spend (& self , asset_kind : types :: spend :: AssetKind , amount : types :: spend :: Amount , beneficiary : types :: spend :: Beneficiary , valid_from : types :: spend :: ValidFrom ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Spend > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Treasury" , "spend" , types :: Spend { asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (asset_kind) , amount , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (beneficiary) , valid_from , } , [127u8 , 68u8 , 115u8 , 140u8 , 122u8 , 90u8 , 253u8 , 105u8 , 230u8 , 137u8 , 104u8 , 130u8 , 221u8 , 123u8 , 49u8 , 126u8 , 247u8 , 80u8 , 12u8 , 4u8 , 223u8 , 218u8 , 187u8 , 192u8 , 61u8 , 221u8 , 46u8 , 211u8 , 71u8 , 196u8 , 55u8 , 237u8 ,]) } # [doc = "Claim a spend."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be signed"] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "Spends must be claimed within some temporal bounds. A spend may be claimed within one"] # [doc = "[`Config::PayoutPeriod`] from the `valid_from` block."] # [doc = "In case of a payout failure, the spend status must be updated with the `check_status`"] # [doc = "dispatchable before retrying with the current function."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `index`: The spend index."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::Paid`] if successful."] pub fn payout (& self , index : types :: payout :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Payout > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Treasury" , "payout" , types :: Payout { index , } , [179u8 , 254u8 , 82u8 , 94u8 , 248u8 , 26u8 , 6u8 , 34u8 , 93u8 , 244u8 , 186u8 , 199u8 , 163u8 , 32u8 , 110u8 , 220u8 , 78u8 , 11u8 , 168u8 , 182u8 , 169u8 , 56u8 , 53u8 , 194u8 , 168u8 , 218u8 , 131u8 , 38u8 , 46u8 , 156u8 , 93u8 , 234u8 ,]) } # [doc = "Check the status of the spend and remove it from the storage if processed."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be signed."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "The status check is a prerequisite for retrying a failed payout."] # [doc = "If a spend has either succeeded or expired, it is removed from the storage by this"] # [doc = "function. In such instances, transaction fees are refunded."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `index`: The spend index."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::PaymentFailed`] if the spend payout has failed."] # [doc = "Emits [`Event::SpendProcessed`] if the spend payout has succeed."] pub fn check_status (& self , index : types :: check_status :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CheckStatus > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Treasury" , "check_status" , types :: CheckStatus { index , } , [164u8 , 111u8 , 10u8 , 11u8 , 104u8 , 237u8 , 112u8 , 240u8 , 104u8 , 130u8 , 179u8 , 221u8 , 54u8 , 18u8 , 8u8 , 172u8 , 148u8 , 245u8 , 110u8 , 174u8 , 75u8 , 38u8 , 46u8 , 143u8 , 101u8 , 232u8 , 65u8 , 252u8 , 36u8 , 152u8 , 29u8 , 209u8 ,]) } # [doc = "Void previously approved spend."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::RejectOrigin`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "A spend void is only possible if the payout has not been attempted yet."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `index`: The spend index."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::AssetSpendVoided`] if successful."] pub fn void_spend (& self , index : types :: void_spend :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: VoidSpend > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Treasury" , "void_spend" , types :: VoidSpend { index , } , [9u8 , 212u8 , 174u8 , 92u8 , 43u8 , 102u8 , 224u8 , 124u8 , 247u8 , 239u8 , 196u8 , 68u8 , 132u8 , 171u8 , 116u8 , 206u8 , 52u8 , 23u8 , 92u8 , 31u8 , 156u8 , 160u8 , 25u8 , 16u8 , 125u8 , 60u8 , 9u8 , 109u8 , 145u8 , 139u8 , 102u8 , 224u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_treasury :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "We have ended a spend period and will now allocate funds."] pub struct Spending { pub budget_remaining : spending :: BudgetRemaining , } pub mod spending { use super :: runtime_types ; pub type BudgetRemaining = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Spending { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "Spending" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some funds have been allocated."] pub struct Awarded { pub proposal_index : awarded :: ProposalIndex , pub award : awarded :: Award , pub account : awarded :: Account , } pub mod awarded { use super :: runtime_types ; pub type ProposalIndex = :: core :: primitive :: u32 ; pub type Award = :: core :: primitive :: u128 ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Awarded { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "Awarded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some of our funds have been burnt."] pub struct Burnt { pub burnt_funds : burnt :: BurntFunds , } pub mod burnt { use super :: runtime_types ; pub type BurntFunds = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Burnt { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "Burnt" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Spending has finished; this is the amount that rolls over until next spend."] pub struct Rollover { pub rollover_balance : rollover :: RolloverBalance , } pub mod rollover { use super :: runtime_types ; pub type RolloverBalance = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Rollover { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "Rollover" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some funds have been deposited."] pub struct Deposit { pub value : deposit :: Value , } pub mod deposit { use super :: runtime_types ; pub type Value = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Deposit { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "Deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A new spend proposal has been approved."] pub struct SpendApproved { pub proposal_index : spend_approved :: ProposalIndex , pub amount : spend_approved :: Amount , pub beneficiary : spend_approved :: Beneficiary , } pub mod spend_approved { use super :: runtime_types ; pub type ProposalIndex = :: core :: primitive :: u32 ; pub type Amount = :: core :: primitive :: u128 ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SpendApproved { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "SpendApproved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The inactive funds of the pallet have been updated."] pub struct UpdatedInactive { pub reactivated : updated_inactive :: Reactivated , pub deactivated : updated_inactive :: Deactivated , } pub mod updated_inactive { use super :: runtime_types ; pub type Reactivated = :: core :: primitive :: u128 ; pub type Deactivated = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for UpdatedInactive { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "UpdatedInactive" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A new asset spend proposal has been approved."] pub struct AssetSpendApproved { pub index : asset_spend_approved :: Index , pub asset_kind : asset_spend_approved :: AssetKind , pub amount : asset_spend_approved :: Amount , pub beneficiary : asset_spend_approved :: Beneficiary , pub valid_from : asset_spend_approved :: ValidFrom , pub expire_at : asset_spend_approved :: ExpireAt , } 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 Amount = :: core :: primitive :: u128 ; pub type Beneficiary = runtime_types :: xcm :: VersionedLocation ; pub type ValidFrom = :: core :: primitive :: u32 ; pub type ExpireAt = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AssetSpendApproved { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "AssetSpendApproved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An approved spend was voided."] pub struct AssetSpendVoided { pub index : asset_spend_voided :: Index , } pub mod asset_spend_voided { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AssetSpendVoided { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "AssetSpendVoided" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A payment happened."] pub struct Paid { pub index : paid :: Index , pub payment_id : paid :: PaymentId , } pub mod paid { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; pub type PaymentId = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Paid { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "Paid" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A payment failed and can be retried."] pub struct PaymentFailed { pub index : payment_failed :: Index , pub payment_id : payment_failed :: PaymentId , } pub mod payment_failed { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; pub type PaymentId = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PaymentFailed { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "PaymentFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A spend was processed and removed from the storage. It might have been successfully"] # [doc = "paid or it may have expired."] pub struct SpendProcessed { pub index : spend_processed :: Index , } pub mod spend_processed { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SpendProcessed { const PALLET : & 'static str = "Treasury" ; const EVENT : & 'static str = "SpendProcessed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod proposal_count { use super :: runtime_types ; pub type ProposalCount = :: core :: primitive :: u32 ; } pub mod proposals { use super :: runtime_types ; pub type Proposals = runtime_types :: pallet_treasury :: Proposal < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod deactivated { use super :: runtime_types ; pub type Deactivated = :: core :: primitive :: u128 ; } pub mod approvals { use super :: runtime_types ; pub type Approvals = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u32 > ; } pub mod spend_count { use super :: runtime_types ; pub type SpendCount = :: core :: primitive :: u32 ; } 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 :: VersionedLocation , :: core :: primitive :: u32 , :: core :: primitive :: u64 > ; pub type Param0 = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Number of proposals that have been made."] pub fn proposal_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: proposal_count :: ProposalCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Treasury" , "ProposalCount" , () , [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 = " Proposals that have been made."] pub fn proposals_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: proposals :: Proposals , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Treasury" , "Proposals" , () , [207u8 , 135u8 , 145u8 , 146u8 , 48u8 , 10u8 , 252u8 , 40u8 , 20u8 , 115u8 , 205u8 , 41u8 , 173u8 , 83u8 , 115u8 , 46u8 , 106u8 , 40u8 , 130u8 , 157u8 , 213u8 , 87u8 , 45u8 , 23u8 , 14u8 , 167u8 , 99u8 , 208u8 , 153u8 , 163u8 , 141u8 , 55u8 ,]) } # [doc = " Proposals that have been made."] pub fn proposals (& self , _0 : impl :: core :: borrow :: Borrow < types :: proposals :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: proposals :: Param0 > , types :: proposals :: Proposals , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Treasury" , "Proposals" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [207u8 , 135u8 , 145u8 , 146u8 , 48u8 , 10u8 , 252u8 , 40u8 , 20u8 , 115u8 , 205u8 , 41u8 , 173u8 , 83u8 , 115u8 , 46u8 , 106u8 , 40u8 , 130u8 , 157u8 , 213u8 , 87u8 , 45u8 , 23u8 , 14u8 , 167u8 , 99u8 , 208u8 , 153u8 , 163u8 , 141u8 , 55u8 ,]) } # [doc = " The amount which has been reported as inactive to Currency."] pub fn deactivated (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: deactivated :: Deactivated , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Treasury" , "Deactivated" , () , [120u8 , 221u8 , 159u8 , 56u8 , 161u8 , 44u8 , 54u8 , 233u8 , 47u8 , 114u8 , 170u8 , 150u8 , 52u8 , 24u8 , 137u8 , 212u8 , 122u8 , 247u8 , 40u8 , 17u8 , 208u8 , 130u8 , 42u8 , 154u8 , 33u8 , 222u8 , 59u8 , 116u8 , 0u8 , 15u8 , 79u8 , 123u8 ,]) } # [doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: approvals :: Approvals , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Treasury" , "Approvals" , () , [78u8 , 147u8 , 186u8 , 235u8 , 17u8 , 40u8 , 247u8 , 235u8 , 67u8 , 222u8 , 3u8 , 14u8 , 248u8 , 17u8 , 67u8 , 180u8 , 93u8 , 161u8 , 64u8 , 35u8 , 119u8 , 194u8 , 187u8 , 226u8 , 135u8 , 162u8 , 147u8 , 174u8 , 139u8 , 72u8 , 99u8 , 212u8 ,]) } # [doc = " The count of spends that have been made."] pub fn spend_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: spend_count :: SpendCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Treasury" , "SpendCount" , () , [220u8 , 74u8 , 248u8 , 52u8 , 243u8 , 209u8 , 42u8 , 236u8 , 27u8 , 98u8 , 76u8 , 153u8 , 129u8 , 176u8 , 34u8 , 177u8 , 33u8 , 132u8 , 21u8 , 71u8 , 206u8 , 146u8 , 222u8 , 44u8 , 232u8 , 246u8 , 205u8 , 92u8 , 240u8 , 136u8 , 182u8 , 30u8 ,]) } # [doc = " Spends that have been approved and being processed."] pub fn spends_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: spends :: Spends , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Treasury" , "Spends" , () , [207u8 , 104u8 , 63u8 , 103u8 , 177u8 , 66u8 , 236u8 , 100u8 , 122u8 , 213u8 , 125u8 , 153u8 , 180u8 , 219u8 , 124u8 , 22u8 , 88u8 , 161u8 , 188u8 , 197u8 , 70u8 , 46u8 , 72u8 , 170u8 , 146u8 , 4u8 , 127u8 , 160u8 , 204u8 , 2u8 , 89u8 , 95u8 ,]) } # [doc = " Spends that have been approved and being processed."] pub fn spends (& self , _0 : impl :: core :: borrow :: Borrow < types :: spends :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: spends :: Param0 > , types :: spends :: Spends , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Treasury" , "Spends" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [207u8 , 104u8 , 63u8 , 103u8 , 177u8 , 66u8 , 236u8 , 100u8 , 122u8 , 213u8 , 125u8 , 153u8 , 180u8 , 219u8 , 124u8 , 22u8 , 88u8 , 161u8 , 188u8 , 197u8 , 70u8 , 46u8 , 72u8 , 170u8 , 146u8 , 4u8 , 127u8 , 160u8 , 204u8 , 2u8 , 89u8 , 95u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Period between successive spends."] pub fn spend_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Treasury" , "SpendPeriod" , [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 = " Percentage of spare funds (if any) that are burnt per spend period."] pub fn burn (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_arithmetic :: per_things :: Permill > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Treasury" , "Burn" , [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 treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_support :: PalletId > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Treasury" , "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 number of approvals that can wait in the spending queue."] # [doc = ""] # [doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] pub fn max_approvals (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Treasury" , "MaxApprovals" , [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 period during which an approved treasury spend has to be claimed."] pub fn payout_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Treasury" , "PayoutPeriod" , [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 conviction_voting { 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 ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_conviction_voting :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"] # [doc = "otherwise it is a vote to keep the status quo."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `poll_index`: The index of the poll to vote for."] # [doc = "- `vote`: The vote configuration."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."] pub struct Vote { # [codec (compact)] pub poll_index : vote :: PollIndex , pub vote : vote :: Vote , } pub mod vote { use super :: runtime_types ; pub type PollIndex = :: core :: primitive :: u32 ; pub type Vote = runtime_types :: pallet_conviction_voting :: vote :: AccountVote < :: core :: primitive :: u128 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Vote { const PALLET : & 'static str = "ConvictionVoting" ; const CALL : & 'static str = "vote" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Delegate the voting power (with some given conviction) of the sending account for a"] # [doc = "particular class of polls."] # [doc = ""] # [doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] # [doc = "time appropriate for the conviction's lock period."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] # [doc = " - be delegating already; or"] # [doc = " - have no voting activity (if there is, then it will need to be removed through"] # [doc = " `remove_vote`)."] # [doc = ""] # [doc = "- `to`: The account whose voting the `target` account's voting power will follow."] # [doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"] # [doc = " to this function are required."] # [doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] # [doc = " account is undelegated, the funds will be locked for the corresponding period."] # [doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] # [doc = " be more than the account's current balance."] # [doc = ""] # [doc = "Emits `Delegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] # [doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] pub struct Delegate { pub class : delegate :: Class , pub to : delegate :: To , pub conviction : delegate :: Conviction , pub balance : delegate :: Balance , } pub mod delegate { use super :: runtime_types ; pub type Class = :: core :: primitive :: u16 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Conviction = runtime_types :: pallet_conviction_voting :: conviction :: Conviction ; pub type Balance = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Delegate { const PALLET : & 'static str = "ConvictionVoting" ; const CALL : & 'static str = "delegate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Undelegate the voting power of the sending account for a particular class of polls."] # [doc = ""] # [doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] # [doc = "of the conviction with which the delegation was issued has passed."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] # [doc = "currently delegating."] # [doc = ""] # [doc = "- `class`: The class of polls to remove the delegation from."] # [doc = ""] # [doc = "Emits `Undelegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] # [doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] pub struct Undelegate { pub class : undelegate :: Class , } pub mod undelegate { use super :: runtime_types ; pub type Class = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Undelegate { const PALLET : & 'static str = "ConvictionVoting" ; const CALL : & 'static str = "undelegate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove the lock caused by prior voting/delegating which has expired within a particular"] # [doc = "class."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `class`: The class of polls to unlock."] # [doc = "- `target`: The account to remove the lock on."] # [doc = ""] # [doc = "Weight: `O(R)` with R number of vote of target."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Unlock { const PALLET : & 'static str = "ConvictionVoting" ; const CALL : & 'static str = "unlock" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a vote for a poll."] # [doc = ""] # [doc = "If:"] # [doc = "- the poll was cancelled, or"] # [doc = "- the poll is ongoing, or"] # [doc = "- the poll has ended such that"] # [doc = " - the vote of the account was in opposition to the result; or"] # [doc = " - there was no conviction to the account's vote; or"] # [doc = " - the account made a split vote"] # [doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] # [doc = "funds being available."] # [doc = ""] # [doc = "If, however, the poll has ended and:"] # [doc = "- it finished corresponding to the vote of the account, and"] # [doc = "- the account made a standard vote with conviction, and"] # [doc = "- the lock period of the conviction is not over"] # [doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] # [doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] # [doc = "of both the amount locked and the time is it locked for)."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] # [doc = "registered for poll `index`."] # [doc = ""] # [doc = "- `index`: The index of poll of the vote to be removed."] # [doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"] # [doc = " which have finished or are cancelled, this must be `Some`."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveVote { const PALLET : & 'static str = "ConvictionVoting" ; const CALL : & 'static str = "remove_vote" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a vote for a poll."] # [doc = ""] # [doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] # [doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] # [doc = "either because the poll was cancelled, because the voter lost the poll or"] # [doc = "because the conviction period is over."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"] # [doc = " `index`."] # [doc = "- `index`: The index of poll of the vote to be removed."] # [doc = "- `class`: The class of the poll."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Class = :: core :: primitive :: u16 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveOtherVote { const PALLET : & 'static str = "ConvictionVoting" ; const CALL : & 'static str = "remove_other_vote" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"] # [doc = "otherwise it is a vote to keep the status quo."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `poll_index`: The index of the poll to vote for."] # [doc = "- `vote`: The vote configuration."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."] pub fn vote (& self , poll_index : types :: vote :: PollIndex , vote : types :: vote :: Vote ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Vote > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Delegate the voting power (with some given conviction) of the sending account for a"] # [doc = "particular class of polls."] # [doc = ""] # [doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] # [doc = "time appropriate for the conviction's lock period."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] # [doc = " - be delegating already; or"] # [doc = " - have no voting activity (if there is, then it will need to be removed through"] # [doc = " `remove_vote`)."] # [doc = ""] # [doc = "- `to`: The account whose voting the `target` account's voting power will follow."] # [doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"] # [doc = " to this function are required."] # [doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] # [doc = " account is undelegated, the funds will be locked for the corresponding period."] # [doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] # [doc = " be more than the account's current balance."] # [doc = ""] # [doc = "Emits `Delegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] # [doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] pub fn delegate (& self , class : types :: delegate :: Class , to : types :: delegate :: To , conviction : types :: delegate :: Conviction , balance : types :: delegate :: Balance ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Delegate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ConvictionVoting" , "delegate" , types :: Delegate { class , to , conviction , balance , } , [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 ,]) } # [doc = "Undelegate the voting power of the sending account for a particular class of polls."] # [doc = ""] # [doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] # [doc = "of the conviction with which the delegation was issued has passed."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] # [doc = "currently delegating."] # [doc = ""] # [doc = "- `class`: The class of polls to remove the delegation from."] # [doc = ""] # [doc = "Emits `Undelegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] # [doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] pub fn undelegate (& self , class : types :: undelegate :: Class ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Undelegate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove the lock caused by prior voting/delegating which has expired within a particular"] # [doc = "class."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `class`: The class of polls to unlock."] # [doc = "- `target`: The account to remove the lock on."] # [doc = ""] # [doc = "Weight: `O(R)` with R number of vote of target."] pub fn unlock (& self , class : types :: unlock :: Class , target : types :: unlock :: Target ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Unlock > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove a vote for a poll."] # [doc = ""] # [doc = "If:"] # [doc = "- the poll was cancelled, or"] # [doc = "- the poll is ongoing, or"] # [doc = "- the poll has ended such that"] # [doc = " - the vote of the account was in opposition to the result; or"] # [doc = " - there was no conviction to the account's vote; or"] # [doc = " - the account made a split vote"] # [doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] # [doc = "funds being available."] # [doc = ""] # [doc = "If, however, the poll has ended and:"] # [doc = "- it finished corresponding to the vote of the account, and"] # [doc = "- the account made a standard vote with conviction, and"] # [doc = "- the lock period of the conviction is not over"] # [doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] # [doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] # [doc = "of both the amount locked and the time is it locked for)."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] # [doc = "registered for poll `index`."] # [doc = ""] # [doc = "- `index`: The index of poll of the vote to be removed."] # [doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"] # [doc = " which have finished or are cancelled, this must be `Some`."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] pub fn remove_vote (& self , class : types :: remove_vote :: Class , index : types :: remove_vote :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveVote > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove a vote for a poll."] # [doc = ""] # [doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] # [doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] # [doc = "either because the poll was cancelled, because the voter lost the poll or"] # [doc = "because the conviction period is over."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"] # [doc = " `index`."] # [doc = "- `index`: The index of poll of the vote to be removed."] # [doc = "- `class`: The class of the poll."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveOtherVote > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ConvictionVoting" , "remove_other_vote" , types :: RemoveOtherVote { target , class , index , } , [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 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_conviction_voting :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Delegated { const PALLET : & 'static str = "ConvictionVoting" ; const EVENT : & 'static str = "Delegated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: 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 voting_for { use super :: runtime_types ; pub type VotingFor = runtime_types :: pallet_conviction_voting :: vote :: Voting < :: core :: primitive :: u128 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 , :: core :: primitive :: u32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } } 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: voting_for :: VotingFor , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ConvictionVoting" , "VotingFor" , () , [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 :: core :: borrow :: Borrow < types :: voting_for :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: voting_for :: Param0 > , types :: voting_for :: VotingFor , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ConvictionVoting" , "VotingFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: voting_for :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: voting_for :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: voting_for :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: voting_for :: Param1 > ,) , types :: voting_for :: VotingFor , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ConvictionVoting" , "VotingFor" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: class_locks_for :: ClassLocksFor , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ConvictionVoting" , "ClassLocksFor" , () , [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 :: core :: borrow :: Borrow < types :: class_locks_for :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: class_locks_for :: Param0 > , types :: class_locks_for :: ClassLocksFor , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ConvictionVoting" , "ClassLocksFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Propose a referendum on a privileged action."] # [doc = ""] # [doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"] # [doc = " available."] # [doc = "- `proposal_origin`: The origin from which the proposal should be executed."] # [doc = "- `proposal`: The proposal."] # [doc = "- `enactment_moment`: The moment that the proposal should be enacted."] # [doc = ""] # [doc = "Emits `Submitted`."] pub struct Submit { pub proposal_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < submit :: ProposalOrigin > , pub proposal : submit :: Proposal , pub enactment_moment : submit :: EnactmentMoment , } pub mod submit { use super :: runtime_types ; pub type ProposalOrigin = runtime_types :: paseo_runtime :: OriginCaller ; pub type Proposal = runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: paseo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > ; pub type EnactmentMoment = runtime_types :: frame_support :: traits :: schedule :: DispatchTime < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Submit { const PALLET : & 'static str = "Referenda" ; const CALL : & 'static str = "submit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Post the Decision Deposit for a referendum."] # [doc = ""] # [doc = "- `origin`: must be `Signed` and the account must have funds available for the"] # [doc = " referendum's track's Decision Deposit."] # [doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"] # [doc = " posted."] # [doc = ""] # [doc = "Emits `DecisionDepositPlaced`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for PlaceDecisionDeposit { const PALLET : & 'static str = "Referenda" ; const CALL : & 'static str = "place_decision_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Refund the Decision Deposit for a closed referendum back to the depositor."] # [doc = ""] # [doc = "- `origin`: must be `Signed` or `Root`."] # [doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"] # [doc = " refunded."] # [doc = ""] # [doc = "Emits `DecisionDepositRefunded`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for RefundDecisionDeposit { const PALLET : & 'static str = "Referenda" ; const CALL : & 'static str = "refund_decision_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel an ongoing referendum."] # [doc = ""] # [doc = "- `origin`: must be the `CancelOrigin`."] # [doc = "- `index`: The index of the referendum to be cancelled."] # [doc = ""] # [doc = "Emits `Cancelled`."] pub struct Cancel { pub index : cancel :: Index , } pub mod cancel { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Cancel { const PALLET : & 'static str = "Referenda" ; const CALL : & 'static str = "cancel" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel an ongoing referendum and slash the deposits."] # [doc = ""] # [doc = "- `origin`: must be the `KillOrigin`."] # [doc = "- `index`: The index of the referendum to be cancelled."] # [doc = ""] # [doc = "Emits `Killed` and `DepositSlashed`."] pub struct Kill { pub index : kill :: Index , } pub mod kill { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Kill { const PALLET : & 'static str = "Referenda" ; const CALL : & 'static str = "kill" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Advance a referendum onto its next logical state. Only used internally."] # [doc = ""] # [doc = "- `origin`: must be `Root`."] # [doc = "- `index`: the referendum to be advanced."] pub struct NudgeReferendum { pub index : nudge_referendum :: Index , } pub mod nudge_referendum { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for NudgeReferendum { const PALLET : & 'static str = "Referenda" ; const CALL : & 'static str = "nudge_referendum" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Advance a track onto its next logical state. Only used internally."] # [doc = ""] # [doc = "- `origin`: must be `Root`."] # [doc = "- `track`: the track to be advanced."] # [doc = ""] # [doc = "Action item for when there is now one fewer referendum in the deciding phase and the"] # [doc = "`DecidingCount` is not yet updated. This means that we should either:"] # [doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"] # [doc = "- decrement `DecidingCount`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for OneFewerDeciding { const PALLET : & 'static str = "Referenda" ; const CALL : & 'static str = "one_fewer_deciding" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Refund the Submission Deposit for a closed referendum back to the depositor."] # [doc = ""] # [doc = "- `origin`: must be `Signed` or `Root`."] # [doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"] # [doc = " refunded."] # [doc = ""] # [doc = "Emits `SubmissionDepositRefunded`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for RefundSubmissionDeposit { const PALLET : & 'static str = "Referenda" ; const CALL : & 'static str = "refund_submission_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set or clear metadata of a referendum."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"] # [doc = " metadata of a finished referendum."] # [doc = "- `index`: The index of a referendum to set or clear metadata for."] # [doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a 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 :: ext :: subxt_core :: utils :: H256 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMetadata { const PALLET : & 'static str = "Referenda" ; const CALL : & 'static str = "set_metadata" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Propose a referendum on a privileged action."] # [doc = ""] # [doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"] # [doc = " available."] # [doc = "- `proposal_origin`: The origin from which the proposal should be executed."] # [doc = "- `proposal`: The proposal."] # [doc = "- `enactment_moment`: The moment that the proposal should be enacted."] # [doc = ""] # [doc = "Emits `Submitted`."] pub fn submit (& self , proposal_origin : types :: submit :: ProposalOrigin , proposal : types :: submit :: Proposal , enactment_moment : types :: submit :: EnactmentMoment ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Submit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Referenda" , "submit" , types :: Submit { proposal_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (proposal_origin) , proposal , enactment_moment , } , [223u8 , 128u8 , 124u8 , 218u8 , 77u8 , 214u8 , 226u8 , 135u8 , 128u8 , 59u8 , 8u8 , 155u8 , 182u8 , 57u8 , 92u8 , 150u8 , 54u8 , 55u8 , 184u8 , 237u8 , 53u8 , 156u8 , 202u8 , 112u8 , 39u8 , 122u8 , 165u8 , 90u8 , 253u8 , 221u8 , 239u8 , 98u8 ,]) } # [doc = "Post the Decision Deposit for a referendum."] # [doc = ""] # [doc = "- `origin`: must be `Signed` and the account must have funds available for the"] # [doc = " referendum's track's Decision Deposit."] # [doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"] # [doc = " posted."] # [doc = ""] # [doc = "Emits `DecisionDepositPlaced`."] pub fn place_decision_deposit (& self , index : types :: place_decision_deposit :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PlaceDecisionDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Refund the Decision Deposit for a closed referendum back to the depositor."] # [doc = ""] # [doc = "- `origin`: must be `Signed` or `Root`."] # [doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"] # [doc = " refunded."] # [doc = ""] # [doc = "Emits `DecisionDepositRefunded`."] pub fn refund_decision_deposit (& self , index : types :: refund_decision_deposit :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RefundDecisionDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Cancel an ongoing referendum."] # [doc = ""] # [doc = "- `origin`: must be the `CancelOrigin`."] # [doc = "- `index`: The index of the referendum to be cancelled."] # [doc = ""] # [doc = "Emits `Cancelled`."] pub fn cancel (& self , index : types :: cancel :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Cancel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Cancel an ongoing referendum and slash the deposits."] # [doc = ""] # [doc = "- `origin`: must be the `KillOrigin`."] # [doc = "- `index`: The index of the referendum to be cancelled."] # [doc = ""] # [doc = "Emits `Killed` and `DepositSlashed`."] pub fn kill (& self , index : types :: kill :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Kill > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Advance a referendum onto its next logical state. Only used internally."] # [doc = ""] # [doc = "- `origin`: must be `Root`."] # [doc = "- `index`: the referendum to be advanced."] pub fn nudge_referendum (& self , index : types :: nudge_referendum :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: NudgeReferendum > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Advance a track onto its next logical state. Only used internally."] # [doc = ""] # [doc = "- `origin`: must be `Root`."] # [doc = "- `track`: the track to be advanced."] # [doc = ""] # [doc = "Action item for when there is now one fewer referendum in the deciding phase and the"] # [doc = "`DecidingCount` is not yet updated. This means that we should either:"] # [doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"] # [doc = "- decrement `DecidingCount`."] pub fn one_fewer_deciding (& self , track : types :: one_fewer_deciding :: Track ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: OneFewerDeciding > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Refund the Submission Deposit for a closed referendum back to the depositor."] # [doc = ""] # [doc = "- `origin`: must be `Signed` or `Root`."] # [doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"] # [doc = " refunded."] # [doc = ""] # [doc = "Emits `SubmissionDepositRefunded`."] pub fn refund_submission_deposit (& self , index : types :: refund_submission_deposit :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RefundSubmissionDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set or clear metadata of a referendum."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"] # [doc = " metadata of a finished referendum."] # [doc = "- `index`: The index of a referendum to set or clear metadata for."] # [doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] pub fn set_metadata (& self , index : types :: set_metadata :: Index , maybe_hash : types :: set_metadata :: MaybeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMetadata > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: paseo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Submitted { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "Submitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DecisionDepositPlaced { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "DecisionDepositPlaced" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DecisionDepositRefunded { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "DecisionDepositRefunded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositSlashed { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "DepositSlashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: paseo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > ; pub type Tally = runtime_types :: pallet_conviction_voting :: types :: Tally < :: core :: primitive :: u128 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DecisionStarted { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "DecisionStarted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for ConfirmStarted { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "ConfirmStarted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for ConfirmAborted { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "ConfirmAborted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Confirmed { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "Confirmed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Approved { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "Approved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Rejected { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "Rejected" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for TimedOut { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "TimedOut" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Cancelled { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "Cancelled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Killed { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "Killed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubmissionDepositRefunded { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "SubmissionDepositRefunded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MetadataSet { const PALLET : & 'static str = "Referenda" ; const EVENT : & 'static str = "MetadataSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: 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 :: paseo_runtime :: OriginCaller , :: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: paseo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , :: core :: primitive :: u128 , runtime_types :: pallet_conviction_voting :: types :: Tally < :: core :: primitive :: u128 > , :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: referendum_count :: ReferendumCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Referenda" , "ReferendumCount" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: referendum_info_for :: ReferendumInfoFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Referenda" , "ReferendumInfoFor" , () , [253u8 , 63u8 , 98u8 , 86u8 , 146u8 , 99u8 , 51u8 , 101u8 , 133u8 , 123u8 , 106u8 , 204u8 , 65u8 , 142u8 , 113u8 , 79u8 , 205u8 , 209u8 , 115u8 , 162u8 , 4u8 , 108u8 , 235u8 , 255u8 , 125u8 , 58u8 , 112u8 , 89u8 , 60u8 , 252u8 , 119u8 , 60u8 ,]) } # [doc = " Information concerning any given referendum."] pub fn referendum_info_for (& self , _0 : impl :: core :: borrow :: Borrow < types :: referendum_info_for :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: referendum_info_for :: Param0 > , types :: referendum_info_for :: ReferendumInfoFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Referenda" , "ReferendumInfoFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [253u8 , 63u8 , 98u8 , 86u8 , 146u8 , 99u8 , 51u8 , 101u8 , 133u8 , 123u8 , 106u8 , 204u8 , 65u8 , 142u8 , 113u8 , 79u8 , 205u8 , 209u8 , 115u8 , 162u8 , 4u8 , 108u8 , 235u8 , 255u8 , 125u8 , 58u8 , 112u8 , 89u8 , 60u8 , 252u8 , 119u8 , 60u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: track_queue :: TrackQueue , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Referenda" , "TrackQueue" , () , [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 :: core :: borrow :: Borrow < types :: track_queue :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: track_queue :: Param0 > , types :: track_queue :: TrackQueue , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Referenda" , "TrackQueue" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: deciding_count :: DecidingCount , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Referenda" , "DecidingCount" , () , [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 :: core :: borrow :: Borrow < types :: deciding_count :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: deciding_count :: Param0 > , types :: deciding_count :: DecidingCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Referenda" , "DecidingCount" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: metadata_of :: MetadataOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Referenda" , "MetadataOf" , () , [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 :: core :: borrow :: Borrow < types :: metadata_of :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: metadata_of :: Param0 > , types :: metadata_of :: MetadataOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Referenda" , "MetadataOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u16 , runtime_types :: pallet_referenda :: types :: TrackInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > ,) > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 origins { use super :: root_mod ; use super :: runtime_types ; } 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct WhitelistCall { pub call_hash : whitelist_call :: CallHash , } pub mod whitelist_call { use super :: runtime_types ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for WhitelistCall { const PALLET : & 'static str = "Whitelist" ; const CALL : & 'static str = "whitelist_call" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RemoveWhitelistedCall { pub call_hash : remove_whitelisted_call :: CallHash , } pub mod remove_whitelisted_call { use super :: runtime_types ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveWhitelistedCall { const PALLET : & 'static str = "Whitelist" ; const CALL : & 'static str = "remove_whitelisted_call" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] 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 :: ext :: subxt_core :: utils :: H256 ; pub type CallEncodedLen = :: core :: primitive :: u32 ; pub type CallWeightWitness = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DispatchWhitelistedCall { const PALLET : & 'static str = "Whitelist" ; const CALL : & 'static str = "dispatch_whitelisted_call" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DispatchWhitelistedCallWithPreimage { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_whitelisted_call_with_preimage :: Call > , } pub mod dispatch_whitelisted_call_with_preimage { use super :: runtime_types ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DispatchWhitelistedCallWithPreimage { const PALLET : & 'static str = "Whitelist" ; const CALL : & 'static str = "dispatch_whitelisted_call_with_preimage" ; } } pub struct TransactionApi ; impl TransactionApi { pub fn whitelist_call (& self , call_hash : types :: whitelist_call :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: WhitelistCall > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } pub fn remove_whitelisted_call (& self , call_hash : types :: remove_whitelisted_call :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveWhitelistedCall > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DispatchWhitelistedCall > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } pub fn dispatch_whitelisted_call_with_preimage (& self , call : types :: dispatch_whitelisted_call_with_preimage :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DispatchWhitelistedCallWithPreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Whitelist" , "dispatch_whitelisted_call_with_preimage" , types :: DispatchWhitelistedCallWithPreimage { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [194u8 , 123u8 , 194u8 , 197u8 , 148u8 , 195u8 , 81u8 , 65u8 , 34u8 , 154u8 , 169u8 , 244u8 , 184u8 , 29u8 , 8u8 , 37u8 , 3u8 , 70u8 , 239u8 , 64u8 , 77u8 , 35u8 , 201u8 , 202u8 , 235u8 , 19u8 , 92u8 , 80u8 , 149u8 , 179u8 , 146u8 , 29u8 ,]) } } } # [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CallWhitelisted { pub call_hash : call_whitelisted :: CallHash , } pub mod call_whitelisted { use super :: runtime_types ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CallWhitelisted { const PALLET : & 'static str = "Whitelist" ; const EVENT : & 'static str = "CallWhitelisted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WhitelistedCallRemoved { const PALLET : & 'static str = "Whitelist" ; const EVENT : & 'static str = "WhitelistedCallRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; } } pub struct StorageApi ; impl StorageApi { pub fn whitelisted_call_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: whitelisted_call :: WhitelistedCall , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Whitelist" , "WhitelistedCall" , () , [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 :: core :: borrow :: Borrow < types :: whitelisted_call :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: whitelisted_call :: Param0 > , types :: whitelisted_call :: WhitelistedCall , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Whitelist" , "WhitelistedCall" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Make a claim to collect your DOTs."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to claim is deemed valid if the signature provided matches"] # [doc = "the expected signed message of:"] # [doc = ""] # [doc = "> Ethereum Signed Message:"] # [doc = "> (configured prefix string)(address)"] # [doc = ""] # [doc = "and `address` matches the `dest` account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `dest`: The destination account to payout the claim."] # [doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] # [doc = " described above."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to validate unsigned `claim` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] pub struct Claim { pub dest : claim :: Dest , pub ethereum_signature : claim :: EthereumSignature , } pub mod claim { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type EthereumSignature = runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Claim { const PALLET : & 'static str = "Claims" ; const CALL : & 'static str = "claim" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Mint a new claim to collect DOTs."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `who`: The Ethereum address allowed to collect this claim."] # [doc = "- `value`: The number of DOTs that will be claimed."] # [doc = "- `vesting_schedule`: An optional vesting schedule for these DOTs."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "We assume worst case that both vesting and statement is being inserted."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for MintClaim { const PALLET : & 'static str = "Claims" ; const CALL : & 'static str = "mint_claim" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Make a claim to collect your DOTs by signing a statement."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] # [doc = "the expected signed message of:"] # [doc = ""] # [doc = "> Ethereum Signed Message:"] # [doc = "> (configured prefix string)(address)(statement)"] # [doc = ""] # [doc = "and `address` matches the `dest` account; the `statement` must match that which is"] # [doc = "expected according to your purchase arrangement."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `dest`: The destination account to payout the claim."] # [doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] # [doc = " described above."] # [doc = "- `statement`: The identity of the statement which is being attested to in the"] # [doc = " signature."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to validate unsigned `claim_attest` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type EthereumSignature = runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature ; pub type Statement = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClaimAttest { const PALLET : & 'static str = "Claims" ; const CALL : & 'static str = "claim_attest" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Attest to a statement, needed to finalize the claims process."] # [doc = ""] # [doc = "WARNING: Insecure unless your chain includes `PrevalidateAttests` as a"] # [doc = "`SignedExtension`."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to attest is deemed valid if the sender has a `Preclaim` registered"] # [doc = "and provides a `statement` which is expected for the account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `statement`: The identity of the statement which is being attested to in the"] # [doc = " signature."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to do pre-validation on `attest` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] pub struct Attest { pub statement : attest :: Statement , } pub mod attest { use super :: runtime_types ; pub type Statement = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Attest { const PALLET : & 'static str = "Claims" ; const CALL : & 'static str = "attest" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] 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 :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MoveClaim { const PALLET : & 'static str = "Claims" ; const CALL : & 'static str = "move_claim" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Make a claim to collect your DOTs."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to claim is deemed valid if the signature provided matches"] # [doc = "the expected signed message of:"] # [doc = ""] # [doc = "> Ethereum Signed Message:"] # [doc = "> (configured prefix string)(address)"] # [doc = ""] # [doc = "and `address` matches the `dest` account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `dest`: The destination account to payout the claim."] # [doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] # [doc = " described above."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to validate unsigned `claim` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] pub fn claim (& self , dest : types :: claim :: Dest , ethereum_signature : types :: claim :: EthereumSignature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Claim > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Mint a new claim to collect DOTs."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `who`: The Ethereum address allowed to collect this claim."] # [doc = "- `value`: The number of DOTs that will be claimed."] # [doc = "- `vesting_schedule`: An optional vesting schedule for these DOTs."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "We assume worst case that both vesting and statement is being inserted."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MintClaim > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Make a claim to collect your DOTs by signing a statement."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] # [doc = "the expected signed message of:"] # [doc = ""] # [doc = "> Ethereum Signed Message:"] # [doc = "> (configured prefix string)(address)(statement)"] # [doc = ""] # [doc = "and `address` matches the `dest` account; the `statement` must match that which is"] # [doc = "expected according to your purchase arrangement."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `dest`: The destination account to payout the claim."] # [doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] # [doc = " described above."] # [doc = "- `statement`: The identity of the statement which is being attested to in the"] # [doc = " signature."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to validate unsigned `claim_attest` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] pub fn claim_attest (& self , dest : types :: claim_attest :: Dest , ethereum_signature : types :: claim_attest :: EthereumSignature , statement : types :: claim_attest :: Statement ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClaimAttest > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Attest to a statement, needed to finalize the claims process."] # [doc = ""] # [doc = "WARNING: Insecure unless your chain includes `PrevalidateAttests` as a"] # [doc = "`SignedExtension`."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to attest is deemed valid if the sender has a `Preclaim` registered"] # [doc = "and provides a `statement` which is expected for the account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `statement`: The identity of the statement which is being attested to in the"] # [doc = " signature."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to do pre-validation on `attest` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] pub fn attest (& self , statement : types :: attest :: Statement ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Attest > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } pub fn move_claim (& self , old : types :: move_claim :: Old , new : types :: move_claim :: New , maybe_preclaim : types :: move_claim :: MaybePreclaim ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MoveClaim > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type EthereumAddress = runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { pub fn claims_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: claims :: Claims , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Claims" , "Claims" , () , [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 :: core :: borrow :: Borrow < types :: claims :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: claims :: Param0 > , types :: claims :: Claims , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Claims" , "Claims" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total :: Total , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Claims" , "Total" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: vesting :: Vesting , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Claims" , "Vesting" , () , [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 :: core :: borrow :: Borrow < types :: vesting :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: vesting :: Param0 > , types :: vesting :: Vesting , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Claims" , "Vesting" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: signing :: Signing , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Claims" , "Signing" , () , [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 :: core :: borrow :: Borrow < types :: signing :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: signing :: Param0 > , types :: signing :: Signing , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Claims" , "Signing" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: preclaims :: Preclaims , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Claims" , "Preclaims" , () , [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 :: core :: borrow :: Borrow < types :: preclaims :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: preclaims :: Param0 > , types :: preclaims :: Preclaims , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Claims" , "Preclaims" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Claims" , "Prefix" , [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 ,]) } } } } pub mod vesting { use super :: root_mod ; use super :: runtime_types ; # [doc = "Error for the vesting pallet."] pub type Error = runtime_types :: pallet_vesting :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_vesting :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unlock any vested funds of the sender account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] # [doc = "locked under this pallet."] # [doc = ""] # [doc = "Emits either `VestingCompleted` or `VestingUpdated`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub struct Vest ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Vest { const PALLET : & 'static str = "Vesting" ; const CALL : & 'static str = "vest" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unlock any vested funds of a `target` account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] # [doc = "locked under this pallet."] # [doc = ""] # [doc = "Emits either `VestingCompleted` or `VestingUpdated`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub struct VestOther { pub target : vest_other :: Target , } pub mod vest_other { use super :: runtime_types ; pub type Target = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for VestOther { const PALLET : & 'static str = "Vesting" ; const CALL : & 'static str = "vest_other" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Create a vested transfer."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account receiving the vested funds."] # [doc = "- `schedule`: The vesting schedule attached to the transfer."] # [doc = ""] # [doc = "Emits `VestingCreated`."] # [doc = ""] # [doc = "NOTE: This will unlock all schedules through the current block."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub struct VestedTransfer { pub target : vested_transfer :: Target , pub schedule : vested_transfer :: Schedule , } pub mod vested_transfer { use super :: runtime_types ; pub type Target = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Schedule = runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for VestedTransfer { const PALLET : & 'static str = "Vesting" ; const CALL : & 'static str = "vested_transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force a vested transfer."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "- `source`: The account whose funds should be transferred."] # [doc = "- `target`: The account that should be transferred the vested funds."] # [doc = "- `schedule`: The vesting schedule attached to the transfer."] # [doc = ""] # [doc = "Emits `VestingCreated`."] # [doc = ""] # [doc = "NOTE: This will unlock all schedules through the current block."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub struct ForceVestedTransfer { pub source : force_vested_transfer :: Source , pub target : force_vested_transfer :: Target , pub schedule : force_vested_transfer :: Schedule , } pub mod force_vested_transfer { use super :: runtime_types ; pub type Source = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Target = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Schedule = runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceVestedTransfer { const PALLET : & 'static str = "Vesting" ; const CALL : & 'static str = "force_vested_transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] # [doc = "the highest possible start and end blocks. If both schedules have already started the"] # [doc = "current block will be used as the schedule start; with the caveat that if one schedule"] # [doc = "is finished by the current block, the other will be treated as the new merged schedule,"] # [doc = "unmodified."] # [doc = ""] # [doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] # [doc = "NOTE: This will unlock all schedules through the current block prior to merging."] # [doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] # [doc = "and both will be removed."] # [doc = ""] # [doc = "Merged schedule attributes:"] # [doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] # [doc = " current_block)`."] # [doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] # [doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `schedule1_index`: index of the first schedule to merge."] # [doc = "- `schedule2_index`: index of the second schedule to merge."] pub struct MergeSchedules { pub schedule1_index : merge_schedules :: Schedule1Index , pub schedule2_index : merge_schedules :: Schedule2Index , } pub mod merge_schedules { use super :: runtime_types ; pub type Schedule1Index = :: core :: primitive :: u32 ; pub type Schedule2Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MergeSchedules { const PALLET : & 'static str = "Vesting" ; const CALL : & 'static str = "merge_schedules" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force remove a vesting schedule"] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "- `target`: An account that has a vesting schedule"] # [doc = "- `schedule_index`: The vesting schedule index that should be removed"] pub struct ForceRemoveVestingSchedule { pub target : force_remove_vesting_schedule :: Target , pub schedule_index : force_remove_vesting_schedule :: ScheduleIndex , } pub mod force_remove_vesting_schedule { use super :: runtime_types ; pub type Target = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ScheduleIndex = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceRemoveVestingSchedule { const PALLET : & 'static str = "Vesting" ; const CALL : & 'static str = "force_remove_vesting_schedule" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Unlock any vested funds of the sender account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] # [doc = "locked under this pallet."] # [doc = ""] # [doc = "Emits either `VestingCompleted` or `VestingUpdated`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub fn vest (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Vest > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Vesting" , "vest" , types :: Vest { } , [149u8 , 89u8 , 178u8 , 148u8 , 127u8 , 127u8 , 155u8 , 60u8 , 114u8 , 126u8 , 204u8 , 123u8 , 166u8 , 70u8 , 104u8 , 208u8 , 186u8 , 69u8 , 139u8 , 181u8 , 151u8 , 154u8 , 235u8 , 161u8 , 191u8 , 35u8 , 111u8 , 60u8 , 21u8 , 165u8 , 44u8 , 122u8 ,]) } # [doc = "Unlock any vested funds of a `target` account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] # [doc = "locked under this pallet."] # [doc = ""] # [doc = "Emits either `VestingCompleted` or `VestingUpdated`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub fn vest_other (& self , target : types :: vest_other :: Target ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: VestOther > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Vesting" , "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 ,]) } # [doc = "Create a vested transfer."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account receiving the vested funds."] # [doc = "- `schedule`: The vesting schedule attached to the transfer."] # [doc = ""] # [doc = "Emits `VestingCreated`."] # [doc = ""] # [doc = "NOTE: This will unlock all schedules through the current block."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub fn vested_transfer (& self , target : types :: vested_transfer :: Target , schedule : types :: vested_transfer :: Schedule ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: VestedTransfer > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Vesting" , "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 ,]) } # [doc = "Force a vested transfer."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "- `source`: The account whose funds should be transferred."] # [doc = "- `target`: The account that should be transferred the vested funds."] # [doc = "- `schedule`: The vesting schedule attached to the transfer."] # [doc = ""] # [doc = "Emits `VestingCreated`."] # [doc = ""] # [doc = "NOTE: This will unlock all schedules through the current block."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] pub fn force_vested_transfer (& self , source : types :: force_vested_transfer :: Source , target : types :: force_vested_transfer :: Target , schedule : types :: force_vested_transfer :: Schedule ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceVestedTransfer > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Vesting" , "force_vested_transfer" , types :: ForceVestedTransfer { source , target , 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 ,]) } # [doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] # [doc = "the highest possible start and end blocks. If both schedules have already started the"] # [doc = "current block will be used as the schedule start; with the caveat that if one schedule"] # [doc = "is finished by the current block, the other will be treated as the new merged schedule,"] # [doc = "unmodified."] # [doc = ""] # [doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] # [doc = "NOTE: This will unlock all schedules through the current block prior to merging."] # [doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] # [doc = "and both will be removed."] # [doc = ""] # [doc = "Merged schedule attributes:"] # [doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] # [doc = " current_block)`."] # [doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] # [doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `schedule1_index`: index of the first schedule to merge."] # [doc = "- `schedule2_index`: index of the second schedule to merge."] pub fn merge_schedules (& self , schedule1_index : types :: merge_schedules :: Schedule1Index , schedule2_index : types :: merge_schedules :: Schedule2Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MergeSchedules > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Vesting" , "merge_schedules" , types :: MergeSchedules { schedule1_index , schedule2_index , } , [45u8 , 24u8 , 13u8 , 108u8 , 26u8 , 99u8 , 61u8 , 117u8 , 195u8 , 218u8 , 182u8 , 23u8 , 188u8 , 157u8 , 181u8 , 81u8 , 38u8 , 136u8 , 31u8 , 226u8 , 8u8 , 190u8 , 33u8 , 81u8 , 86u8 , 185u8 , 156u8 , 77u8 , 157u8 , 197u8 , 41u8 , 58u8 ,]) } # [doc = "Force remove a vesting schedule"] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "- `target`: An account that has a vesting schedule"] # [doc = "- `schedule_index`: The vesting schedule index that should be removed"] pub fn force_remove_vesting_schedule (& self , target : types :: force_remove_vesting_schedule :: Target , schedule_index : types :: force_remove_vesting_schedule :: ScheduleIndex ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceRemoveVestingSchedule > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Vesting" , "force_remove_vesting_schedule" , types :: ForceRemoveVestingSchedule { target , 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 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_vesting :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The amount vested has been updated. This could indicate a change in funds available."] # [doc = "The balance given is the amount which is left unvested (and thus locked)."] pub struct VestingUpdated { pub account : vesting_updated :: Account , pub unvested : vesting_updated :: Unvested , } pub mod vesting_updated { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Unvested = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for VestingUpdated { const PALLET : & 'static str = "Vesting" ; const EVENT : & 'static str = "VestingUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An \\[account\\] has become fully vested."] pub struct VestingCompleted { pub account : vesting_completed :: Account , } pub mod vesting_completed { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for VestingCompleted { const PALLET : & 'static str = "Vesting" ; const EVENT : & 'static str = "VestingCompleted" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod vesting { use super :: runtime_types ; pub type Vesting = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod storage_version { use super :: runtime_types ; pub type StorageVersion = runtime_types :: pallet_vesting :: Releases ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Information regarding the vesting of a given account."] pub fn vesting_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: vesting :: Vesting , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Vesting" , "Vesting" , () , [95u8 , 168u8 , 217u8 , 248u8 , 149u8 , 86u8 , 195u8 , 93u8 , 73u8 , 206u8 , 105u8 , 165u8 , 33u8 , 173u8 , 232u8 , 81u8 , 147u8 , 254u8 , 50u8 , 228u8 , 156u8 , 92u8 , 242u8 , 149u8 , 42u8 , 91u8 , 58u8 , 209u8 , 142u8 , 221u8 , 230u8 , 112u8 ,]) } # [doc = " Information regarding the vesting of a given account."] pub fn vesting (& self , _0 : impl :: core :: borrow :: Borrow < types :: vesting :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: vesting :: Param0 > , types :: vesting :: Vesting , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Vesting" , "Vesting" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [95u8 , 168u8 , 217u8 , 248u8 , 149u8 , 86u8 , 195u8 , 93u8 , 73u8 , 206u8 , 105u8 , 165u8 , 33u8 , 173u8 , 232u8 , 81u8 , 147u8 , 254u8 , 50u8 , 228u8 , 156u8 , 92u8 , 242u8 , 149u8 , 42u8 , 91u8 , 58u8 , 209u8 , 142u8 , 221u8 , 230u8 , 112u8 ,]) } # [doc = " Storage version of the pallet."] # [doc = ""] # [doc = " New networks start with latest version, as determined by the genesis build."] pub fn storage_version (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: storage_version :: StorageVersion , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Vesting" , "StorageVersion" , () , [230u8 , 137u8 , 180u8 , 133u8 , 142u8 , 124u8 , 231u8 , 234u8 , 223u8 , 10u8 , 154u8 , 98u8 , 158u8 , 253u8 , 228u8 , 80u8 , 5u8 , 9u8 , 91u8 , 210u8 , 252u8 , 9u8 , 13u8 , 195u8 , 193u8 , 164u8 , 129u8 , 113u8 , 128u8 , 218u8 , 8u8 , 40u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The minimum amount transferred to call `vested_transfer`."] pub fn min_vested_transfer (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Vesting" , "MinVestedTransfer" , [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 fn max_vesting_schedules (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Vesting" , "MaxVestingSchedules" , [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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a batch of dispatch calls."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] # [doc = ""] # [doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] # [doc = "event is deposited. If a call failed and the batch was interrupted, then the"] # [doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] # [doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] # [doc = "event is deposited."] pub struct Batch { pub calls : batch :: Calls , } pub mod batch { use super :: runtime_types ; pub type Calls = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: paseo_runtime :: RuntimeCall > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Batch { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "batch" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a call through an indexed pseudonym of the sender."] # [doc = ""] # [doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] # [doc = "use the same filter as the origin of this call."] # [doc = ""] # [doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] # [doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] # [doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] # [doc = "in the Multisig pallet instead."] # [doc = ""] # [doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub struct AsDerivative { pub index : as_derivative :: Index , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < as_derivative :: Call > , } pub mod as_derivative { use super :: runtime_types ; pub type Index = :: core :: primitive :: u16 ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AsDerivative { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "as_derivative" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a batch of dispatch calls and atomically execute them."] # [doc = "The whole transaction will rollback and fail if any of the calls failed."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub struct BatchAll { pub calls : batch_all :: Calls , } pub mod batch_all { use super :: runtime_types ; pub type Calls = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: paseo_runtime :: RuntimeCall > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BatchAll { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "batch_all" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct DispatchAs { pub as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as :: AsOrigin > , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as :: Call > , } pub mod dispatch_as { use super :: runtime_types ; pub type AsOrigin = runtime_types :: paseo_runtime :: OriginCaller ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DispatchAs { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "dispatch_as" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a batch of dispatch calls."] # [doc = "Unlike `batch`, it allows errors and won't interrupt."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub struct ForceBatch { pub calls : force_batch :: Calls , } pub mod force_batch { use super :: runtime_types ; pub type Calls = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: paseo_runtime :: RuntimeCall > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceBatch { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "force_batch" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch a function call with a specified weight."] # [doc = ""] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Root origin to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub struct WithWeight { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < with_weight :: Call > , pub weight : with_weight :: Weight , } pub mod with_weight { use super :: runtime_types ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for WithWeight { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "with_weight" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Send a batch of dispatch calls."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] # [doc = ""] # [doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] # [doc = "event is deposited. If a call failed and the batch was interrupted, then the"] # [doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] # [doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] # [doc = "event is deposited."] pub fn batch (& self , calls : types :: batch :: Calls ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Batch > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "batch" , types :: Batch { calls , } , [174u8 , 253u8 , 104u8 , 6u8 , 23u8 , 198u8 , 49u8 , 85u8 , 60u8 , 125u8 , 75u8 , 192u8 , 110u8 , 118u8 , 178u8 , 203u8 , 247u8 , 68u8 , 25u8 , 141u8 , 73u8 , 91u8 , 10u8 , 84u8 , 223u8 , 189u8 , 109u8 , 7u8 , 76u8 , 144u8 , 4u8 , 92u8 ,]) } # [doc = "Send a call through an indexed pseudonym of the sender."] # [doc = ""] # [doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] # [doc = "use the same filter as the origin of this call."] # [doc = ""] # [doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] # [doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] # [doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] # [doc = "in the Multisig pallet instead."] # [doc = ""] # [doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub fn as_derivative (& self , index : types :: as_derivative :: Index , call : types :: as_derivative :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AsDerivative > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "as_derivative" , types :: AsDerivative { index , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [178u8 , 30u8 , 44u8 , 123u8 , 44u8 , 28u8 , 38u8 , 62u8 , 34u8 , 58u8 , 31u8 , 66u8 , 12u8 , 85u8 , 9u8 , 199u8 , 148u8 , 50u8 , 60u8 , 23u8 , 143u8 , 252u8 , 20u8 , 204u8 , 193u8 , 163u8 , 90u8 , 37u8 , 171u8 , 54u8 , 47u8 , 12u8 ,]) } # [doc = "Send a batch of dispatch calls and atomically execute them."] # [doc = "The whole transaction will rollback and fail if any of the calls failed."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub fn batch_all (& self , calls : types :: batch_all :: Calls ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BatchAll > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "batch_all" , types :: BatchAll { calls , } , [248u8 , 7u8 , 231u8 , 119u8 , 236u8 , 32u8 , 236u8 , 248u8 , 81u8 , 3u8 , 75u8 , 7u8 , 53u8 , 83u8 , 1u8 , 128u8 , 24u8 , 69u8 , 176u8 , 122u8 , 47u8 , 129u8 , 35u8 , 219u8 , 189u8 , 94u8 , 144u8 , 82u8 , 193u8 , 199u8 , 212u8 , 160u8 ,]) } # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn dispatch_as (& self , as_origin : types :: dispatch_as :: AsOrigin , call : types :: dispatch_as :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DispatchAs > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "dispatch_as" , types :: DispatchAs { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (as_origin) , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [227u8 , 149u8 , 223u8 , 195u8 , 239u8 , 14u8 , 169u8 , 131u8 , 216u8 , 87u8 , 205u8 , 177u8 , 237u8 , 179u8 , 237u8 , 103u8 , 36u8 , 32u8 , 117u8 , 182u8 , 37u8 , 140u8 , 243u8 , 152u8 , 160u8 , 95u8 , 90u8 , 76u8 , 177u8 , 57u8 , 162u8 , 161u8 ,]) } # [doc = "Send a batch of dispatch calls."] # [doc = "Unlike `batch`, it allows errors and won't interrupt."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub fn force_batch (& self , calls : types :: force_batch :: Calls ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceBatch > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "force_batch" , types :: ForceBatch { calls , } , [1u8 , 14u8 , 158u8 , 112u8 , 191u8 , 128u8 , 181u8 , 79u8 , 167u8 , 62u8 , 99u8 , 122u8 , 32u8 , 76u8 , 225u8 , 153u8 , 79u8 , 222u8 , 205u8 , 157u8 , 116u8 , 104u8 , 38u8 , 160u8 , 69u8 , 43u8 , 89u8 , 216u8 , 31u8 , 163u8 , 221u8 , 123u8 ,]) } # [doc = "Dispatch a function call with a specified weight."] # [doc = ""] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Root origin to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub fn with_weight (& self , call : types :: with_weight :: Call , weight : types :: with_weight :: Weight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: WithWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "with_weight" , types :: WithWeight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , weight , } , [52u8 , 36u8 , 6u8 , 104u8 , 11u8 , 208u8 , 143u8 , 139u8 , 28u8 , 21u8 , 123u8 , 20u8 , 183u8 , 188u8 , 211u8 , 124u8 , 30u8 , 229u8 , 240u8 , 89u8 , 2u8 , 52u8 , 5u8 , 98u8 , 163u8 , 181u8 , 235u8 , 37u8 , 136u8 , 42u8 , 182u8 , 82u8 ,]) } } } # [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for BatchInterrupted { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "BatchInterrupted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchCompleted { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "BatchCompleted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchCompletedWithErrors { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "BatchCompletedWithErrors" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ItemCompleted { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "ItemCompleted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for ItemFailed { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "ItemFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 proxy { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] 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_proxy :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch the given `call` from an account that the sender is authorised for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub struct Proxy { pub real : proxy :: Real , pub force_proxy_type : proxy :: ForceProxyType , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < proxy :: Call > , } pub mod proxy { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ForceProxyType = :: core :: option :: Option < runtime_types :: paseo_runtime :: ProxyType > ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Proxy { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "proxy" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register a proxy account for the sender that is able to make calls on its behalf."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to make a proxy."] # [doc = "- `proxy_type`: The permissions allowed for this proxy account."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] pub struct AddProxy { pub delegate : add_proxy :: Delegate , pub proxy_type : add_proxy :: ProxyType , pub delay : add_proxy :: Delay , } pub mod add_proxy { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ProxyType = runtime_types :: paseo_runtime :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddProxy { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "add_proxy" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unregister a proxy account for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] # [doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] pub struct RemoveProxy { pub delegate : remove_proxy :: Delegate , pub proxy_type : remove_proxy :: ProxyType , pub delay : remove_proxy :: Delay , } pub mod remove_proxy { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ProxyType = runtime_types :: paseo_runtime :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveProxy { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "remove_proxy" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unregister all proxy accounts for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "WARNING: This may be called on accounts created by `pure`, however if done, then"] # [doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] pub struct RemoveProxies ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveProxies { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "remove_proxies" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] # [doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] # [doc = ""] # [doc = "Requires a `Signed` origin."] # [doc = ""] # [doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] # [doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] # [doc = "allow for maximum flexibility."] # [doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] # [doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] # [doc = "want to use `0`."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] # [doc = ""] # [doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] # [doc = "same sender, with the same parameters."] # [doc = ""] # [doc = "Fails if there are insufficient funds to pay for deposit."] 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 :: paseo_runtime :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CreatePure { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "create_pure" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Removes a previously spawned pure proxy."] # [doc = ""] # [doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] # [doc = "inaccessible."] # [doc = ""] # [doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] # [doc = "`pure` with corresponding parameters."] # [doc = ""] # [doc = "- `spawner`: The account that originally called `pure` to create this account."] # [doc = "- `index`: The disambiguation index originally passed to `pure`. Probably `0`."] # [doc = "- `proxy_type`: The proxy type originally passed to `pure`."] # [doc = "- `height`: The height of the chain when the call to `pure` was processed."] # [doc = "- `ext_index`: The extrinsic index in which the call to `pure` was processed."] # [doc = ""] # [doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] # [doc = "account whose `pure` call has corresponding parameters."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ProxyType = runtime_types :: paseo_runtime :: ProxyType ; pub type Index = :: core :: primitive :: u16 ; pub type Height = :: core :: primitive :: u32 ; pub type ExtIndex = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for KillPure { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "kill_pure" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Publish the hash of a proxy-call that will be made in the future."] # [doc = ""] # [doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] # [doc = "if the delay associated with the proxy relationship is greater than zero."] # [doc = ""] # [doc = "No more than `MaxPending` announcements may be made at any one time."] # [doc = ""] # [doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] # [doc = "`AnnouncementDepositBase` if there are no other pending announcements."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub struct Announce { pub real : announce :: Real , pub call_hash : announce :: CallHash , } pub mod announce { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Announce { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "announce" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a given announcement."] # [doc = ""] # [doc = "May be called by a proxy account to remove a call they previously announced and return"] # [doc = "the deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveAnnouncement { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "remove_announcement" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove the given announcement of a delegate."] # [doc = ""] # [doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] # [doc = "(`delegate`) has announced they want to execute. The deposit is returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `delegate`: The account that previously announced the call."] # [doc = "- `call_hash`: The hash of the call to be made."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RejectAnnouncement { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "reject_announcement" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch the given `call` from an account that the sender is authorized for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "Removes any corresponding announcement(s)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub struct ProxyAnnounced { pub delegate : proxy_announced :: Delegate , pub real : proxy_announced :: Real , pub force_proxy_type : proxy_announced :: ForceProxyType , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < proxy_announced :: Call > , } pub mod proxy_announced { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ForceProxyType = :: core :: option :: Option < runtime_types :: paseo_runtime :: ProxyType > ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ProxyAnnounced { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "proxy_announced" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Dispatch the given `call` from an account that the sender is authorised for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub fn proxy (& self , real : types :: proxy :: Real , force_proxy_type : types :: proxy :: ForceProxyType , call : types :: proxy :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Proxy > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "proxy" , types :: Proxy { real , force_proxy_type , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [52u8 , 255u8 , 97u8 , 6u8 , 37u8 , 151u8 , 80u8 , 84u8 , 55u8 , 63u8 , 180u8 , 16u8 , 228u8 , 232u8 , 153u8 , 237u8 , 66u8 , 114u8 , 196u8 , 177u8 , 156u8 , 92u8 , 148u8 , 203u8 , 99u8 , 76u8 , 98u8 , 240u8 , 152u8 , 125u8 , 154u8 , 173u8 ,]) } # [doc = "Register a proxy account for the sender that is able to make calls on its behalf."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to make a proxy."] # [doc = "- `proxy_type`: The permissions allowed for this proxy account."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] pub fn add_proxy (& self , delegate : types :: add_proxy :: Delegate , proxy_type : types :: add_proxy :: ProxyType , delay : types :: add_proxy :: Delay ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddProxy > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "add_proxy" , types :: AddProxy { delegate , proxy_type , delay , } , [150u8 , 43u8 , 5u8 , 238u8 , 53u8 , 59u8 , 185u8 , 115u8 , 23u8 , 230u8 , 251u8 , 156u8 , 81u8 , 25u8 , 54u8 , 228u8 , 180u8 , 34u8 , 20u8 , 185u8 , 245u8 , 75u8 , 179u8 , 127u8 , 215u8 , 6u8 , 215u8 , 128u8 , 219u8 , 91u8 , 120u8 , 69u8 ,]) } # [doc = "Unregister a proxy account for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] # [doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] pub fn remove_proxy (& self , delegate : types :: remove_proxy :: Delegate , proxy_type : types :: remove_proxy :: ProxyType , delay : types :: remove_proxy :: Delay ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveProxy > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "remove_proxy" , types :: RemoveProxy { delegate , proxy_type , delay , } , [202u8 , 56u8 , 4u8 , 202u8 , 163u8 , 217u8 , 181u8 , 140u8 , 29u8 , 112u8 , 20u8 , 118u8 , 206u8 , 84u8 , 171u8 , 184u8 , 159u8 , 80u8 , 66u8 , 212u8 , 193u8 , 44u8 , 203u8 , 39u8 , 212u8 , 152u8 , 13u8 , 1u8 , 169u8 , 71u8 , 235u8 , 234u8 ,]) } # [doc = "Unregister all proxy accounts for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "WARNING: This may be called on accounts created by `pure`, however if done, then"] # [doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] pub fn remove_proxies (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveProxies > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] # [doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] # [doc = ""] # [doc = "Requires a `Signed` origin."] # [doc = ""] # [doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] # [doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] # [doc = "allow for maximum flexibility."] # [doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] # [doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] # [doc = "want to use `0`."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] # [doc = ""] # [doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] # [doc = "same sender, with the same parameters."] # [doc = ""] # [doc = "Fails if there are insufficient funds to pay for deposit."] pub fn create_pure (& self , proxy_type : types :: create_pure :: ProxyType , delay : types :: create_pure :: Delay , index : types :: create_pure :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CreatePure > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "create_pure" , types :: CreatePure { proxy_type , delay , index , } , [153u8 , 253u8 , 230u8 , 190u8 , 100u8 , 28u8 , 86u8 , 200u8 , 250u8 , 169u8 , 184u8 , 105u8 , 219u8 , 48u8 , 24u8 , 160u8 , 109u8 , 115u8 , 173u8 , 191u8 , 47u8 , 95u8 , 149u8 , 86u8 , 189u8 , 89u8 , 228u8 , 0u8 , 97u8 , 61u8 , 137u8 , 55u8 ,]) } # [doc = "Removes a previously spawned pure proxy."] # [doc = ""] # [doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] # [doc = "inaccessible."] # [doc = ""] # [doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] # [doc = "`pure` with corresponding parameters."] # [doc = ""] # [doc = "- `spawner`: The account that originally called `pure` to create this account."] # [doc = "- `index`: The disambiguation index originally passed to `pure`. Probably `0`."] # [doc = "- `proxy_type`: The proxy type originally passed to `pure`."] # [doc = "- `height`: The height of the chain when the call to `pure` was processed."] # [doc = "- `ext_index`: The extrinsic index in which the call to `pure` was processed."] # [doc = ""] # [doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] # [doc = "account whose `pure` call has corresponding parameters."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: KillPure > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "kill_pure" , types :: KillPure { spawner , proxy_type , index , height , ext_index , } , [30u8 , 108u8 , 106u8 , 97u8 , 69u8 , 213u8 , 28u8 , 8u8 , 79u8 , 202u8 , 57u8 , 201u8 , 67u8 , 31u8 , 167u8 , 123u8 , 149u8 , 241u8 , 209u8 , 56u8 , 223u8 , 221u8 , 161u8 , 127u8 , 211u8 , 243u8 , 134u8 , 6u8 , 144u8 , 6u8 , 229u8 , 47u8 ,]) } # [doc = "Publish the hash of a proxy-call that will be made in the future."] # [doc = ""] # [doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] # [doc = "if the delay associated with the proxy relationship is greater than zero."] # [doc = ""] # [doc = "No more than `MaxPending` announcements may be made at any one time."] # [doc = ""] # [doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] # [doc = "`AnnouncementDepositBase` if there are no other pending announcements."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn announce (& self , real : types :: announce :: Real , call_hash : types :: announce :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Announce > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove a given announcement."] # [doc = ""] # [doc = "May be called by a proxy account to remove a call they previously announced and return"] # [doc = "the deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn remove_announcement (& self , real : types :: remove_announcement :: Real , call_hash : types :: remove_announcement :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveAnnouncement > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove the given announcement of a delegate."] # [doc = ""] # [doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] # [doc = "(`delegate`) has announced they want to execute. The deposit is returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `delegate`: The account that previously announced the call."] # [doc = "- `call_hash`: The hash of the call to be made."] pub fn reject_announcement (& self , delegate : types :: reject_announcement :: Delegate , call_hash : types :: reject_announcement :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RejectAnnouncement > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Dispatch the given `call` from an account that the sender is authorized for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "Removes any corresponding announcement(s)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ProxyAnnounced > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "proxy_announced" , types :: ProxyAnnounced { delegate , real , force_proxy_type , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [71u8 , 11u8 , 166u8 , 247u8 , 197u8 , 89u8 , 117u8 , 252u8 , 128u8 , 63u8 , 51u8 , 218u8 , 175u8 , 179u8 , 137u8 , 245u8 , 88u8 , 176u8 , 137u8 , 87u8 , 54u8 , 85u8 , 215u8 , 36u8 , 84u8 , 18u8 , 186u8 , 83u8 , 32u8 , 85u8 , 1u8 , 201u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_proxy :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A proxy was executed correctly, with the given."] pub struct ProxyExecuted { pub result : proxy_executed :: Result , } pub mod proxy_executed { use super :: runtime_types ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ProxyExecuted { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "ProxyExecuted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , } pub mod pure_created { use super :: runtime_types ; pub type Pure = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: paseo_runtime :: ProxyType ; pub type DisambiguationIndex = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PureCreated { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "PureCreated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , } pub mod announced { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Proxy = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Announced { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "Announced" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Delegatee = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: paseo_runtime :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ProxyAdded { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "ProxyAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Delegatee = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: paseo_runtime :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: 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 proxies { use super :: runtime_types ; pub type Proxies = (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_proxy :: ProxyDefinition < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: paseo_runtime :: ProxyType , :: core :: primitive :: u32 > > , :: core :: primitive :: u128 ,) ; pub type Param0 = :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > , :: core :: primitive :: u128 ,) ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } 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 (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: proxies :: Proxies , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Proxies" , () , [102u8 , 99u8 , 120u8 , 234u8 , 143u8 , 35u8 , 101u8 , 22u8 , 21u8 , 137u8 , 111u8 , 48u8 , 185u8 , 47u8 , 120u8 , 132u8 , 88u8 , 252u8 , 132u8 , 120u8 , 112u8 , 128u8 , 95u8 , 37u8 , 84u8 , 30u8 , 147u8 , 155u8 , 153u8 , 54u8 , 111u8 , 113u8 ,]) } # [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 :: core :: borrow :: Borrow < types :: proxies :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: proxies :: Param0 > , types :: proxies :: Proxies , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Proxies" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [102u8 , 99u8 , 120u8 , 234u8 , 143u8 , 35u8 , 101u8 , 22u8 , 21u8 , 137u8 , 111u8 , 48u8 , 185u8 , 47u8 , 120u8 , 132u8 , 88u8 , 252u8 , 132u8 , 120u8 , 112u8 , 128u8 , 95u8 , 37u8 , 84u8 , 30u8 , 147u8 , 155u8 , 153u8 , 54u8 , 111u8 , 113u8 ,]) } # [doc = " The announcements made by the proxy (key)."] pub fn announcements_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: announcements :: Announcements , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Announcements" , () , [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 :: core :: borrow :: Borrow < types :: announcements :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: announcements :: Param0 > , types :: announcements :: Announcements , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Announcements" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "multi-signature, but do not participate in the approval process."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(Z + C) where Z is the length of the call and C its execution weight."] pub struct AsMultiThreshold1 { pub other_signatories : as_multi_threshold1 :: OtherSignatories , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < as_multi_threshold1 :: Call > , } pub mod as_multi_threshold1 { use super :: runtime_types ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AsMultiThreshold1 { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "as_multi_threshold_1" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "If there are enough, then dispatch the call."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "NOTE: Unless this is the final approval, you will generally want to use"] # [doc = "`approve_as_multi` instead, since it only requires a hash of the call."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] # [doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] # [doc = "may be found in the deposited `MultisigExecuted` event."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S + Z + Call)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- The weight of the `call`."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub struct AsMulti { pub threshold : as_multi :: Threshold , pub other_signatories : as_multi :: OtherSignatories , pub maybe_timepoint : as_multi :: MaybeTimepoint , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < as_multi :: Call > , pub max_weight : as_multi :: MaxWeight , } pub mod as_multi { use super :: runtime_types ; pub type Threshold = :: core :: primitive :: u16 ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type MaybeTimepoint = :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; pub type MaxWeight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AsMulti { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "as_multi" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ApproveAsMulti { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "approve_as_multi" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] # [doc = "for this operation will be unreserved on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] # [doc = "transaction for this dispatch."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- One event."] # [doc = "- I/O: 1 read `O(S)`, one remove."] # [doc = "- Storage: removes one item."] 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelAsMulti { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "cancel_as_multi" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "multi-signature, but do not participate in the approval process."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(Z + C) where Z is the length of the call and C its execution weight."] pub fn as_multi_threshold_1 (& self , other_signatories : types :: as_multi_threshold1 :: OtherSignatories , call : types :: as_multi_threshold1 :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AsMultiThreshold1 > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "as_multi_threshold_1" , types :: AsMultiThreshold1 { other_signatories , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [127u8 , 138u8 , 131u8 , 206u8 , 232u8 , 185u8 , 113u8 , 156u8 , 196u8 , 83u8 , 151u8 , 245u8 , 177u8 , 27u8 , 234u8 , 35u8 , 75u8 , 224u8 , 149u8 , 140u8 , 38u8 , 30u8 , 183u8 , 186u8 , 97u8 , 111u8 , 15u8 , 108u8 , 198u8 , 50u8 , 176u8 , 121u8 ,]) } # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "If there are enough, then dispatch the call."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "NOTE: Unless this is the final approval, you will generally want to use"] # [doc = "`approve_as_multi` instead, since it only requires a hash of the call."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] # [doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] # [doc = "may be found in the deposited `MultisigExecuted` event."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S + Z + Call)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- The weight of the `call`."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AsMulti > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "as_multi" , types :: AsMulti { threshold , other_signatories , maybe_timepoint , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , max_weight , } , [184u8 , 146u8 , 190u8 , 50u8 , 61u8 , 82u8 , 190u8 , 97u8 , 244u8 , 66u8 , 94u8 , 177u8 , 172u8 , 205u8 , 59u8 , 158u8 , 115u8 , 205u8 , 13u8 , 0u8 , 52u8 , 157u8 , 125u8 , 20u8 , 232u8 , 207u8 , 76u8 , 8u8 , 219u8 , 135u8 , 21u8 , 44u8 ,]) } # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ApproveAsMulti > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] # [doc = "for this operation will be unreserved on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] # [doc = "transaction for this dispatch."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- One event."] # [doc = "- I/O: 1 read `O(S)`, one remove."] # [doc = "- Storage: removes one item."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelAsMulti > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewMultisig { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "NewMultisig" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MultisigApproval { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "MultisigApproval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MultisigExecuted { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "MultisigExecuted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: multisigs :: Multisigs , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Multisig" , "Multisigs" , () , [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 :: core :: borrow :: Borrow < types :: multisigs :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: multisigs :: Param0 > , types :: multisigs :: Multisigs , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Multisig" , "Multisigs" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: multisigs :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: multisigs :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: multisigs :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: multisigs :: Param1 > ,) , types :: multisigs :: Multisigs , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Multisig" , "Multisigs" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } } } } pub mod bounties { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_bounties :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Propose a new bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] # [doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] # [doc = "or slashed when rejected."] # [doc = ""] # [doc = "- `curator`: The curator account whom will manage this bounty."] # [doc = "- `fee`: The curator fee."] # [doc = "- `value`: The total payment amount of this bounty, curator fee included."] # [doc = "- `description`: The description of this bounty."] pub struct ProposeBounty { # [codec (compact)] pub value : propose_bounty :: Value , pub description : propose_bounty :: Description , } pub mod propose_bounty { use super :: runtime_types ; pub type Value = :: core :: primitive :: u128 ; pub type Description = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ProposeBounty { const PALLET : & 'static str = "Bounties" ; const CALL : & 'static str = "propose_bounty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] # [doc = "and the original deposit will be returned."] # [doc = ""] # [doc = "May only be called from `T::SpendOrigin`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct ApproveBounty { # [codec (compact)] pub bounty_id : approve_bounty :: BountyId , } pub mod approve_bounty { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ApproveBounty { const PALLET : & 'static str = "Bounties" ; const CALL : & 'static str = "approve_bounty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Propose a curator to a funded bounty."] # [doc = ""] # [doc = "May only be called from `T::SpendOrigin`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct ProposeCurator { # [codec (compact)] pub bounty_id : propose_curator :: BountyId , pub curator : propose_curator :: Curator , # [codec (compact)] pub fee : propose_curator :: Fee , } pub mod propose_curator { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; pub type Curator = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Fee = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ProposeCurator { const PALLET : & 'static str = "Bounties" ; const CALL : & 'static str = "propose_curator" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unassign curator from a bounty."] # [doc = ""] # [doc = "This function can only be called by the `RejectOrigin` a signed origin."] # [doc = ""] # [doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] # [doc = "malicious or inactive. As a result, we will slash the curator when possible."] # [doc = ""] # [doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] # [doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] # [doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] # [doc = ""] # [doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] # [doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] # [doc = "we should pick a new curator. In this case the curator should also be slashed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct UnassignCurator { # [codec (compact)] pub bounty_id : unassign_curator :: BountyId , } pub mod unassign_curator { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnassignCurator { const PALLET : & 'static str = "Bounties" ; const CALL : & 'static str = "unassign_curator" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Accept the curator role for a bounty."] # [doc = "A deposit will be reserved from curator and refund upon successful payout."] # [doc = ""] # [doc = "May only be called from the curator."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct AcceptCurator { # [codec (compact)] pub bounty_id : accept_curator :: BountyId , } pub mod accept_curator { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AcceptCurator { const PALLET : & 'static str = "Bounties" ; const CALL : & 'static str = "accept_curator" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] # [doc = "after a delay."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of this bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to award."] # [doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct AwardBounty { # [codec (compact)] pub bounty_id : award_bounty :: BountyId , pub beneficiary : award_bounty :: Beneficiary , } pub mod award_bounty { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AwardBounty { const PALLET : & 'static str = "Bounties" ; const CALL : & 'static str = "award_bounty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Claim the payout from an awarded bounty after payout delay."] # [doc = ""] # [doc = "The dispatch origin for this call must be the beneficiary of this bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to claim."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct ClaimBounty { # [codec (compact)] pub bounty_id : claim_bounty :: BountyId , } pub mod claim_bounty { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClaimBounty { const PALLET : & 'static str = "Bounties" ; const CALL : & 'static str = "claim_bounty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] # [doc = "the curator deposit will be unreserved if possible."] # [doc = ""] # [doc = "Only `T::RejectOrigin` is able to cancel a bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to cancel."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct CloseBounty { # [codec (compact)] pub bounty_id : close_bounty :: BountyId , } pub mod close_bounty { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CloseBounty { const PALLET : & 'static str = "Bounties" ; const CALL : & 'static str = "close_bounty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Extend the expiry time of an active bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of this bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to extend."] # [doc = "- `remark`: additional information."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct ExtendBountyExpiry { # [codec (compact)] pub bounty_id : extend_bounty_expiry :: BountyId , pub remark : extend_bounty_expiry :: Remark , } pub mod extend_bounty_expiry { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; pub type Remark = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ExtendBountyExpiry { const PALLET : & 'static str = "Bounties" ; const CALL : & 'static str = "extend_bounty_expiry" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Propose a new bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] # [doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] # [doc = "or slashed when rejected."] # [doc = ""] # [doc = "- `curator`: The curator account whom will manage this bounty."] # [doc = "- `fee`: The curator fee."] # [doc = "- `value`: The total payment amount of this bounty, curator fee included."] # [doc = "- `description`: The description of this bounty."] pub fn propose_bounty (& self , value : types :: propose_bounty :: Value , description : types :: propose_bounty :: Description ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ProposeBounty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Bounties" , "propose_bounty" , types :: ProposeBounty { value , description , } , [131u8 , 169u8 , 55u8 , 102u8 , 212u8 , 139u8 , 9u8 , 65u8 , 75u8 , 112u8 , 6u8 , 180u8 , 92u8 , 124u8 , 43u8 , 42u8 , 38u8 , 40u8 , 226u8 , 24u8 , 28u8 , 34u8 , 169u8 , 220u8 , 184u8 , 206u8 , 109u8 , 227u8 , 53u8 , 228u8 , 88u8 , 25u8 ,]) } # [doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] # [doc = "and the original deposit will be returned."] # [doc = ""] # [doc = "May only be called from `T::SpendOrigin`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn approve_bounty (& self , bounty_id : types :: approve_bounty :: BountyId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ApproveBounty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Bounties" , "approve_bounty" , types :: ApproveBounty { bounty_id , } , [85u8 , 12u8 , 177u8 , 91u8 , 183u8 , 124u8 , 175u8 , 148u8 , 188u8 , 200u8 , 237u8 , 144u8 , 6u8 , 67u8 , 159u8 , 48u8 , 177u8 , 222u8 , 183u8 , 137u8 , 173u8 , 131u8 , 128u8 , 219u8 , 255u8 , 243u8 , 80u8 , 224u8 , 126u8 , 136u8 , 90u8 , 47u8 ,]) } # [doc = "Propose a curator to a funded bounty."] # [doc = ""] # [doc = "May only be called from `T::SpendOrigin`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn propose_curator (& self , bounty_id : types :: propose_curator :: BountyId , curator : types :: propose_curator :: Curator , fee : types :: propose_curator :: Fee ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ProposeCurator > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Bounties" , "propose_curator" , types :: ProposeCurator { bounty_id , curator , 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 ,]) } # [doc = "Unassign curator from a bounty."] # [doc = ""] # [doc = "This function can only be called by the `RejectOrigin` a signed origin."] # [doc = ""] # [doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] # [doc = "malicious or inactive. As a result, we will slash the curator when possible."] # [doc = ""] # [doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] # [doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] # [doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] # [doc = ""] # [doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] # [doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] # [doc = "we should pick a new curator. In this case the curator should also be slashed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn unassign_curator (& self , bounty_id : types :: unassign_curator :: BountyId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnassignCurator > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Bounties" , "unassign_curator" , types :: UnassignCurator { bounty_id , } , [98u8 , 94u8 , 107u8 , 111u8 , 151u8 , 182u8 , 71u8 , 239u8 , 214u8 , 88u8 , 108u8 , 11u8 , 51u8 , 163u8 , 102u8 , 162u8 , 245u8 , 247u8 , 244u8 , 159u8 , 197u8 , 23u8 , 171u8 , 6u8 , 60u8 , 146u8 , 144u8 , 101u8 , 68u8 , 133u8 , 245u8 , 74u8 ,]) } # [doc = "Accept the curator role for a bounty."] # [doc = "A deposit will be reserved from curator and refund upon successful payout."] # [doc = ""] # [doc = "May only be called from the curator."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn accept_curator (& self , bounty_id : types :: accept_curator :: BountyId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AcceptCurator > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Bounties" , "accept_curator" , types :: AcceptCurator { bounty_id , } , [178u8 , 142u8 , 138u8 , 15u8 , 243u8 , 10u8 , 222u8 , 169u8 , 150u8 , 200u8 , 85u8 , 185u8 , 39u8 , 167u8 , 134u8 , 3u8 , 186u8 , 84u8 , 43u8 , 140u8 , 11u8 , 70u8 , 56u8 , 197u8 , 39u8 , 84u8 , 138u8 , 139u8 , 198u8 , 104u8 , 41u8 , 238u8 ,]) } # [doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] # [doc = "after a delay."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of this bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to award."] # [doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn award_bounty (& self , bounty_id : types :: award_bounty :: BountyId , beneficiary : types :: award_bounty :: Beneficiary ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AwardBounty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Bounties" , "award_bounty" , types :: AwardBounty { bounty_id , 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 ,]) } # [doc = "Claim the payout from an awarded bounty after payout delay."] # [doc = ""] # [doc = "The dispatch origin for this call must be the beneficiary of this bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to claim."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn claim_bounty (& self , bounty_id : types :: claim_bounty :: BountyId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClaimBounty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Bounties" , "claim_bounty" , types :: ClaimBounty { bounty_id , } , [211u8 , 143u8 , 123u8 , 205u8 , 140u8 , 43u8 , 176u8 , 103u8 , 110u8 , 125u8 , 158u8 , 131u8 , 103u8 , 62u8 , 69u8 , 215u8 , 220u8 , 110u8 , 11u8 , 3u8 , 30u8 , 193u8 , 235u8 , 177u8 , 96u8 , 241u8 , 140u8 , 53u8 , 62u8 , 133u8 , 170u8 , 25u8 ,]) } # [doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] # [doc = "the curator deposit will be unreserved if possible."] # [doc = ""] # [doc = "Only `T::RejectOrigin` is able to cancel a bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to cancel."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn close_bounty (& self , bounty_id : types :: close_bounty :: BountyId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CloseBounty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Bounties" , "close_bounty" , types :: CloseBounty { bounty_id , } , [144u8 , 234u8 , 109u8 , 39u8 , 227u8 , 231u8 , 104u8 , 48u8 , 45u8 , 196u8 , 217u8 , 220u8 , 241u8 , 197u8 , 157u8 , 227u8 , 154u8 , 156u8 , 181u8 , 69u8 , 146u8 , 77u8 , 203u8 , 167u8 , 79u8 , 102u8 , 15u8 , 253u8 , 135u8 , 53u8 , 96u8 , 60u8 ,]) } # [doc = "Extend the expiry time of an active bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of this bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to extend."] # [doc = "- `remark`: additional information."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn extend_bounty_expiry (& self , bounty_id : types :: extend_bounty_expiry :: BountyId , remark : types :: extend_bounty_expiry :: Remark ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ExtendBountyExpiry > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Bounties" , "extend_bounty_expiry" , types :: ExtendBountyExpiry { bounty_id , remark , } , [102u8 , 118u8 , 89u8 , 189u8 , 138u8 , 157u8 , 216u8 , 10u8 , 239u8 , 3u8 , 200u8 , 217u8 , 219u8 , 19u8 , 195u8 , 182u8 , 105u8 , 220u8 , 11u8 , 146u8 , 222u8 , 79u8 , 95u8 , 136u8 , 188u8 , 230u8 , 248u8 , 119u8 , 30u8 , 6u8 , 242u8 , 194u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_bounties :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "New bounty proposal."] pub struct BountyProposed { pub index : bounty_proposed :: Index , } pub mod bounty_proposed { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BountyProposed { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "BountyProposed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty proposal was rejected; funds were slashed."] pub struct BountyRejected { pub index : bounty_rejected :: Index , pub bond : bounty_rejected :: Bond , } pub mod bounty_rejected { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; pub type Bond = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BountyRejected { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "BountyRejected" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty proposal is funded and became active."] pub struct BountyBecameActive { pub index : bounty_became_active :: Index , } pub mod bounty_became_active { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BountyBecameActive { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "BountyBecameActive" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty is awarded to a beneficiary."] pub struct BountyAwarded { pub index : bounty_awarded :: Index , pub beneficiary : bounty_awarded :: Beneficiary , } pub mod bounty_awarded { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BountyAwarded { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "BountyAwarded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty is claimed by beneficiary."] pub struct BountyClaimed { pub index : bounty_claimed :: Index , pub payout : bounty_claimed :: Payout , pub beneficiary : bounty_claimed :: Beneficiary , } pub mod bounty_claimed { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; pub type Payout = :: core :: primitive :: u128 ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BountyClaimed { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "BountyClaimed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty is cancelled."] pub struct BountyCanceled { pub index : bounty_canceled :: Index , } pub mod bounty_canceled { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BountyCanceled { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "BountyCanceled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty expiry is extended."] pub struct BountyExtended { pub index : bounty_extended :: Index , } pub mod bounty_extended { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BountyExtended { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "BountyExtended" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty is approved."] pub struct BountyApproved { pub index : bounty_approved :: Index , } pub mod bounty_approved { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BountyApproved { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "BountyApproved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty curator is proposed."] pub struct CuratorProposed { pub bounty_id : curator_proposed :: BountyId , pub curator : curator_proposed :: Curator , } pub mod curator_proposed { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; pub type Curator = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CuratorProposed { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "CuratorProposed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty curator is unassigned."] pub struct CuratorUnassigned { pub bounty_id : curator_unassigned :: BountyId , } pub mod curator_unassigned { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CuratorUnassigned { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "CuratorUnassigned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bounty curator is accepted."] pub struct CuratorAccepted { pub bounty_id : curator_accepted :: BountyId , pub curator : curator_accepted :: Curator , } pub mod curator_accepted { use super :: runtime_types ; pub type BountyId = :: core :: primitive :: u32 ; pub type Curator = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CuratorAccepted { const PALLET : & 'static str = "Bounties" ; const EVENT : & 'static str = "CuratorAccepted" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod bounty_count { use super :: runtime_types ; pub type BountyCount = :: core :: primitive :: u32 ; } pub mod bounties { use super :: runtime_types ; pub type Bounties = runtime_types :: pallet_bounties :: Bounty < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u32 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod bounty_descriptions { use super :: runtime_types ; pub type BountyDescriptions = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod bounty_approvals { use super :: runtime_types ; pub type BountyApprovals = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u32 > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Number of bounty proposals that have been made."] pub fn bounty_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bounty_count :: BountyCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Bounties" , "BountyCount" , () , [120u8 , 204u8 , 26u8 , 150u8 , 37u8 , 81u8 , 43u8 , 223u8 , 180u8 , 252u8 , 142u8 , 144u8 , 109u8 , 5u8 , 184u8 , 72u8 , 223u8 , 230u8 , 66u8 , 196u8 , 14u8 , 14u8 , 164u8 , 190u8 , 246u8 , 168u8 , 190u8 , 56u8 , 212u8 , 73u8 , 175u8 , 26u8 ,]) } # [doc = " Bounties that have been made."] pub fn bounties_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bounties :: Bounties , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Bounties" , "Bounties" , () , [183u8 , 96u8 , 172u8 , 86u8 , 167u8 , 129u8 , 51u8 , 179u8 , 238u8 , 155u8 , 196u8 , 77u8 , 158u8 , 102u8 , 188u8 , 19u8 , 79u8 , 178u8 , 145u8 , 189u8 , 44u8 , 117u8 , 47u8 , 97u8 , 30u8 , 149u8 , 239u8 , 212u8 , 167u8 , 127u8 , 108u8 , 55u8 ,]) } # [doc = " Bounties that have been made."] pub fn bounties (& self , _0 : impl :: core :: borrow :: Borrow < types :: bounties :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bounties :: Param0 > , types :: bounties :: Bounties , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Bounties" , "Bounties" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [183u8 , 96u8 , 172u8 , 86u8 , 167u8 , 129u8 , 51u8 , 179u8 , 238u8 , 155u8 , 196u8 , 77u8 , 158u8 , 102u8 , 188u8 , 19u8 , 79u8 , 178u8 , 145u8 , 189u8 , 44u8 , 117u8 , 47u8 , 97u8 , 30u8 , 149u8 , 239u8 , 212u8 , 167u8 , 127u8 , 108u8 , 55u8 ,]) } # [doc = " The description of each bounty."] pub fn bounty_descriptions_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bounty_descriptions :: BountyDescriptions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Bounties" , "BountyDescriptions" , () , [71u8 , 40u8 , 133u8 , 84u8 , 55u8 , 207u8 , 169u8 , 189u8 , 160u8 , 51u8 , 202u8 , 144u8 , 15u8 , 226u8 , 97u8 , 114u8 , 54u8 , 247u8 , 53u8 , 26u8 , 36u8 , 54u8 , 186u8 , 163u8 , 198u8 , 100u8 , 191u8 , 121u8 , 186u8 , 160u8 , 85u8 , 97u8 ,]) } # [doc = " The description of each bounty."] pub fn bounty_descriptions (& self , _0 : impl :: core :: borrow :: Borrow < types :: bounty_descriptions :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bounty_descriptions :: Param0 > , types :: bounty_descriptions :: BountyDescriptions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Bounties" , "BountyDescriptions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [71u8 , 40u8 , 133u8 , 84u8 , 55u8 , 207u8 , 169u8 , 189u8 , 160u8 , 51u8 , 202u8 , 144u8 , 15u8 , 226u8 , 97u8 , 114u8 , 54u8 , 247u8 , 53u8 , 26u8 , 36u8 , 54u8 , 186u8 , 163u8 , 198u8 , 100u8 , 191u8 , 121u8 , 186u8 , 160u8 , 85u8 , 97u8 ,]) } # [doc = " Bounty indices that have been approved but not yet funded."] pub fn bounty_approvals (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bounty_approvals :: BountyApprovals , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Bounties" , "BountyApprovals" , () , [182u8 , 228u8 , 0u8 , 46u8 , 176u8 , 25u8 , 222u8 , 180u8 , 51u8 , 57u8 , 14u8 , 0u8 , 69u8 , 160u8 , 64u8 , 27u8 , 88u8 , 29u8 , 227u8 , 146u8 , 2u8 , 121u8 , 27u8 , 85u8 , 45u8 , 110u8 , 244u8 , 62u8 , 134u8 , 77u8 , 175u8 , 188u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The amount held on deposit for placing a bounty proposal."] pub fn bounty_deposit_base (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Bounties" , "BountyDepositBase" , [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 delay period for which a bounty beneficiary need to wait before claim the payout."] pub fn bounty_deposit_payout_delay (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Bounties" , "BountyDepositPayoutDelay" , [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 = " Bounty duration in blocks."] pub fn bounty_update_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Bounties" , "BountyUpdatePeriod" , [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 curator deposit is calculated as a percentage of the curator fee."] # [doc = ""] # [doc = " This deposit has optional upper and lower bounds with `CuratorDepositMax` and"] # [doc = " `CuratorDepositMin`."] pub fn curator_deposit_multiplier (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_arithmetic :: per_things :: Permill > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Bounties" , "CuratorDepositMultiplier" , [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 = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_max (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < :: core :: primitive :: u128 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Bounties" , "CuratorDepositMax" , [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 = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_min (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < :: core :: primitive :: u128 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Bounties" , "CuratorDepositMin" , [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 = " Minimum value for a bounty."] pub fn bounty_value_minimum (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Bounties" , "BountyValueMinimum" , [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 held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Bounties" , "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 ,]) } # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Bounties" , "MaximumReasonLength" , [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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Add a new child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of parent"] # [doc = "bounty and the parent bounty must be in \"active\" state."] # [doc = ""] # [doc = "Child-bounty gets added successfully & fund gets transferred from"] # [doc = "parent bounty to child-bounty account, if parent bounty has enough"] # [doc = "funds, else the call fails."] # [doc = ""] # [doc = "Upper bound to maximum number of active child bounties that can be"] # [doc = "added are managed via runtime trait config"] # [doc = "[`Config::MaxActiveChildBountyCount`]."] # [doc = ""] # [doc = "If the call is success, the status of child-bounty is updated to"] # [doc = "\"Added\"."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] # [doc = "- `value`: Value for executing the proposal."] # [doc = "- `description`: Text description for the 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddChildBounty { const PALLET : & 'static str = "ChildBounties" ; const CALL : & 'static str = "add_child_bounty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Propose curator for funded child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be curator of parent bounty."] # [doc = ""] # [doc = "Parent bounty must be in active state, for this child-bounty call to"] # [doc = "work."] # [doc = ""] # [doc = "Child-bounty must be in \"Added\" state, for processing the call. And"] # [doc = "state of child-bounty is moved to \"CuratorProposed\" on successful"] # [doc = "call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] # [doc = "- `curator`: Address of child-bounty curator."] # [doc = "- `fee`: payment fee to child-bounty curator for execution."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Fee = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ProposeCurator { const PALLET : & 'static str = "ChildBounties" ; const CALL : & 'static str = "propose_curator" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Accept the curator role for the child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of this"] # [doc = "child-bounty."] # [doc = ""] # [doc = "A deposit will be reserved from the curator and refund upon"] # [doc = "successful payout or cancellation."] # [doc = ""] # [doc = "Fee for curator is deducted from curator fee of parent bounty."] # [doc = ""] # [doc = "Parent bounty must be in active state, for this child-bounty call to"] # [doc = "work."] # [doc = ""] # [doc = "Child-bounty must be in \"CuratorProposed\" state, for processing the"] # [doc = "call. And state of child-bounty is moved to \"Active\" on successful"] # [doc = "call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for AcceptCurator { const PALLET : & 'static str = "ChildBounties" ; const CALL : & 'static str = "accept_curator" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unassign curator from a child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call can be either `RejectOrigin`, or"] # [doc = "the curator of the parent bounty, or any signed origin."] # [doc = ""] # [doc = "For the origin other than T::RejectOrigin and the child-bounty"] # [doc = "curator, parent bounty must be in active state, for this call to"] # [doc = "work. We allow child-bounty curator and T::RejectOrigin to execute"] # [doc = "this call irrespective of the parent bounty state."] # [doc = ""] # [doc = "If this function is called by the `RejectOrigin` or the"] # [doc = "parent bounty curator, we assume that the child-bounty curator is"] # [doc = "malicious or inactive. As a result, child-bounty curator deposit is"] # [doc = "slashed."] # [doc = ""] # [doc = "If the origin is the child-bounty curator, we take this as a sign"] # [doc = "that they are unable to do their job, and are willingly giving up."] # [doc = "We could slash the deposit, but for now we allow them to unreserve"] # [doc = "their deposit and exit without issue. (We may want to change this if"] # [doc = "it is abused.)"] # [doc = ""] # [doc = "Finally, the origin can be anyone iff the child-bounty curator is"] # [doc = "\"inactive\". Expiry update due of parent bounty is used to estimate"] # [doc = "inactive state of child-bounty curator."] # [doc = ""] # [doc = "This allows anyone in the community to call out that a child-bounty"] # [doc = "curator is not doing their due diligence, and we should pick a new"] # [doc = "one. In this case the child-bounty curator deposit is slashed."] # [doc = ""] # [doc = "State of child-bounty is moved to Added state on successful call"] # [doc = "completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnassignCurator { const PALLET : & 'static str = "ChildBounties" ; const CALL : & 'static str = "unassign_curator" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Award child-bounty to a beneficiary."] # [doc = ""] # [doc = "The beneficiary will be able to claim the funds after a delay."] # [doc = ""] # [doc = "The dispatch origin for this call must be the parent curator or"] # [doc = "curator of this child-bounty."] # [doc = ""] # [doc = "Parent bounty must be in active state, for this child-bounty call to"] # [doc = "work."] # [doc = ""] # [doc = "Child-bounty must be in active state, for processing the call. And"] # [doc = "state of child-bounty is moved to \"PendingPayout\" on successful call"] # [doc = "completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] # [doc = "- `beneficiary`: Beneficiary account."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AwardChildBounty { const PALLET : & 'static str = "ChildBounties" ; const CALL : & 'static str = "award_child_bounty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Claim the payout from an awarded child-bounty after payout delay."] # [doc = ""] # [doc = "The dispatch origin for this call may be any signed origin."] # [doc = ""] # [doc = "Call works independent of parent bounty state, No need for parent"] # [doc = "bounty to be in active state."] # [doc = ""] # [doc = "The Beneficiary is paid out with agreed bounty value. Curator fee is"] # [doc = "paid & curator deposit is unreserved."] # [doc = ""] # [doc = "Child-bounty must be in \"PendingPayout\" state, for processing the"] # [doc = "call. And instance of child-bounty is removed from the state on"] # [doc = "successful call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClaimChildBounty { const PALLET : & 'static str = "ChildBounties" ; const CALL : & 'static str = "claim_child_bounty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a proposed or active child-bounty. Child-bounty account funds"] # [doc = "are transferred to parent bounty account. The child-bounty curator"] # [doc = "deposit may be unreserved if possible."] # [doc = ""] # [doc = "The dispatch origin for this call must be either parent curator or"] # [doc = "`T::RejectOrigin`."] # [doc = ""] # [doc = "If the state of child-bounty is `Active`, curator deposit is"] # [doc = "unreserved."] # [doc = ""] # [doc = "If the state of child-bounty is `PendingPayout`, call fails &"] # [doc = "returns `PendingPayout` error."] # [doc = ""] # [doc = "For the origin other than T::RejectOrigin, parent bounty must be in"] # [doc = "active state, for this child-bounty call to work. For origin"] # [doc = "T::RejectOrigin execution is forced."] # [doc = ""] # [doc = "Instance of child-bounty is removed from the state on successful"] # [doc = "call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for CloseChildBounty { const PALLET : & 'static str = "ChildBounties" ; const CALL : & 'static str = "close_child_bounty" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Add a new child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of parent"] # [doc = "bounty and the parent bounty must be in \"active\" state."] # [doc = ""] # [doc = "Child-bounty gets added successfully & fund gets transferred from"] # [doc = "parent bounty to child-bounty account, if parent bounty has enough"] # [doc = "funds, else the call fails."] # [doc = ""] # [doc = "Upper bound to maximum number of active child bounties that can be"] # [doc = "added are managed via runtime trait config"] # [doc = "[`Config::MaxActiveChildBountyCount`]."] # [doc = ""] # [doc = "If the call is success, the status of child-bounty is updated to"] # [doc = "\"Added\"."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] # [doc = "- `value`: Value for executing the proposal."] # [doc = "- `description`: Text description for the 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddChildBounty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Propose curator for funded child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be curator of parent bounty."] # [doc = ""] # [doc = "Parent bounty must be in active state, for this child-bounty call to"] # [doc = "work."] # [doc = ""] # [doc = "Child-bounty must be in \"Added\" state, for processing the call. And"] # [doc = "state of child-bounty is moved to \"CuratorProposed\" on successful"] # [doc = "call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] # [doc = "- `curator`: Address of child-bounty curator."] # [doc = "- `fee`: payment fee to child-bounty curator for execution."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ProposeCurator > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ChildBounties" , "propose_curator" , types :: ProposeCurator { parent_bounty_id , child_bounty_id , curator , fee , } , [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 ,]) } # [doc = "Accept the curator role for the child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of this"] # [doc = "child-bounty."] # [doc = ""] # [doc = "A deposit will be reserved from the curator and refund upon"] # [doc = "successful payout or cancellation."] # [doc = ""] # [doc = "Fee for curator is deducted from curator fee of parent bounty."] # [doc = ""] # [doc = "Parent bounty must be in active state, for this child-bounty call to"] # [doc = "work."] # [doc = ""] # [doc = "Child-bounty must be in \"CuratorProposed\" state, for processing the"] # [doc = "call. And state of child-bounty is moved to \"Active\" on successful"] # [doc = "call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] pub fn accept_curator (& self , parent_bounty_id : types :: accept_curator :: ParentBountyId , child_bounty_id : types :: accept_curator :: ChildBountyId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AcceptCurator > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Unassign curator from a child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call can be either `RejectOrigin`, or"] # [doc = "the curator of the parent bounty, or any signed origin."] # [doc = ""] # [doc = "For the origin other than T::RejectOrigin and the child-bounty"] # [doc = "curator, parent bounty must be in active state, for this call to"] # [doc = "work. We allow child-bounty curator and T::RejectOrigin to execute"] # [doc = "this call irrespective of the parent bounty state."] # [doc = ""] # [doc = "If this function is called by the `RejectOrigin` or the"] # [doc = "parent bounty curator, we assume that the child-bounty curator is"] # [doc = "malicious or inactive. As a result, child-bounty curator deposit is"] # [doc = "slashed."] # [doc = ""] # [doc = "If the origin is the child-bounty curator, we take this as a sign"] # [doc = "that they are unable to do their job, and are willingly giving up."] # [doc = "We could slash the deposit, but for now we allow them to unreserve"] # [doc = "their deposit and exit without issue. (We may want to change this if"] # [doc = "it is abused.)"] # [doc = ""] # [doc = "Finally, the origin can be anyone iff the child-bounty curator is"] # [doc = "\"inactive\". Expiry update due of parent bounty is used to estimate"] # [doc = "inactive state of child-bounty curator."] # [doc = ""] # [doc = "This allows anyone in the community to call out that a child-bounty"] # [doc = "curator is not doing their due diligence, and we should pick a new"] # [doc = "one. In this case the child-bounty curator deposit is slashed."] # [doc = ""] # [doc = "State of child-bounty is moved to Added state on successful call"] # [doc = "completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] pub fn unassign_curator (& self , parent_bounty_id : types :: unassign_curator :: ParentBountyId , child_bounty_id : types :: unassign_curator :: ChildBountyId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnassignCurator > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Award child-bounty to a beneficiary."] # [doc = ""] # [doc = "The beneficiary will be able to claim the funds after a delay."] # [doc = ""] # [doc = "The dispatch origin for this call must be the parent curator or"] # [doc = "curator of this child-bounty."] # [doc = ""] # [doc = "Parent bounty must be in active state, for this child-bounty call to"] # [doc = "work."] # [doc = ""] # [doc = "Child-bounty must be in active state, for processing the call. And"] # [doc = "state of child-bounty is moved to \"PendingPayout\" on successful call"] # [doc = "completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] # [doc = "- `beneficiary`: Beneficiary account."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AwardChildBounty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ChildBounties" , "award_child_bounty" , types :: AwardChildBounty { parent_bounty_id , child_bounty_id , beneficiary , } , [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 ,]) } # [doc = "Claim the payout from an awarded child-bounty after payout delay."] # [doc = ""] # [doc = "The dispatch origin for this call may be any signed origin."] # [doc = ""] # [doc = "Call works independent of parent bounty state, No need for parent"] # [doc = "bounty to be in active state."] # [doc = ""] # [doc = "The Beneficiary is paid out with agreed bounty value. Curator fee is"] # [doc = "paid & curator deposit is unreserved."] # [doc = ""] # [doc = "Child-bounty must be in \"PendingPayout\" state, for processing the"] # [doc = "call. And instance of child-bounty is removed from the state on"] # [doc = "successful call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClaimChildBounty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Cancel a proposed or active child-bounty. Child-bounty account funds"] # [doc = "are transferred to parent bounty account. The child-bounty curator"] # [doc = "deposit may be unreserved if possible."] # [doc = ""] # [doc = "The dispatch origin for this call must be either parent curator or"] # [doc = "`T::RejectOrigin`."] # [doc = ""] # [doc = "If the state of child-bounty is `Active`, curator deposit is"] # [doc = "unreserved."] # [doc = ""] # [doc = "If the state of child-bounty is `PendingPayout`, call fails &"] # [doc = "returns `PendingPayout` error."] # [doc = ""] # [doc = "For the origin other than T::RejectOrigin, parent bounty must be in"] # [doc = "active state, for this child-bounty call to work. For origin"] # [doc = "T::RejectOrigin execution is forced."] # [doc = ""] # [doc = "Instance of child-bounty is removed from the state on successful"] # [doc = "call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CloseChildBounty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Added { const PALLET : & 'static str = "ChildBounties" ; const EVENT : & 'static str = "Added" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Awarded { const PALLET : & 'static str = "ChildBounties" ; const EVENT : & 'static str = "Awarded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Claimed { const PALLET : & 'static str = "ChildBounties" ; const EVENT : & 'static str = "Claimed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: child_bounty_count :: ChildBountyCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ChildBountyCount" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: parent_child_bounties :: ParentChildBounties , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ParentChildBounties" , () , [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 :: core :: borrow :: Borrow < types :: parent_child_bounties :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: parent_child_bounties :: Param0 > , types :: parent_child_bounties :: ParentChildBounties , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ParentChildBounties" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: child_bounties :: ChildBounties , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ChildBounties" , () , [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 :: core :: borrow :: Borrow < types :: child_bounties :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_bounties :: Param0 > , types :: child_bounties :: ChildBounties , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ChildBounties" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: child_bounties :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: child_bounties :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_bounties :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_bounties :: Param1 > ,) , types :: child_bounties :: ChildBounties , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ChildBounties" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: child_bounty_descriptions :: ChildBountyDescriptions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ChildBountyDescriptions" , () , [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 :: core :: borrow :: Borrow < types :: child_bounty_descriptions :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_bounty_descriptions :: Param0 > , types :: child_bounty_descriptions :: ChildBountyDescriptions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ChildBountyDescriptions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: children_curator_fees :: ChildrenCuratorFees , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ChildrenCuratorFees" , () , [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 :: core :: borrow :: Borrow < types :: children_curator_fees :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: children_curator_fees :: Param0 > , types :: children_curator_fees :: ChildrenCuratorFees , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ChildBounties" , "ChildrenCuratorFees" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] pub struct SubmitUnsigned { pub raw_solution : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < submit_unsigned :: RawSolution > , 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 :: paseo_runtime :: NposCompactSolution16 > ; pub type Witness = runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SubmitUnsigned { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const CALL : & 'static str = "submit_unsigned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] 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 < runtime_types :: sp_npos_elections :: ElectionScore > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMinimumUntrustedScore { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const CALL : & 'static str = "set_minimum_untrusted_score" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] pub struct SetEmergencyElectionResult { pub supports : set_emergency_election_result :: Supports , } pub mod set_emergency_election_result { use super :: runtime_types ; pub type Supports = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ,) > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetEmergencyElectionResult { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const CALL : & 'static str = "set_emergency_election_result" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] pub struct Submit { pub raw_solution : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < submit :: RawSolution > , } pub mod submit { use super :: runtime_types ; pub type RawSolution = runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: paseo_runtime :: NposCompactSolution16 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Submit { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const CALL : & 'static str = "submit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for GovernanceFallback { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const CALL : & 'static str = "governance_fallback" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] pub fn submit_unsigned (& self , raw_solution : types :: submit_unsigned :: RawSolution , witness : types :: submit_unsigned :: Witness ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SubmitUnsigned > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ElectionProviderMultiPhase" , "submit_unsigned" , types :: SubmitUnsigned { raw_solution : :: subxt :: ext :: subxt_core :: alloc :: 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 = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] pub fn set_minimum_untrusted_score (& self , maybe_next_score : types :: set_minimum_untrusted_score :: MaybeNextScore ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMinimumUntrustedScore > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] pub fn set_emergency_election_result (& self , supports : types :: set_emergency_election_result :: Supports ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetEmergencyElectionResult > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] pub fn submit (& self , raw_solution : types :: submit :: RawSolution ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Submit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ElectionProviderMultiPhase" , "submit" , types :: Submit { raw_solution : :: subxt :: ext :: subxt_core :: alloc :: 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 = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] pub fn governance_fallback (& self , maybe_max_voters : types :: governance_fallback :: MaybeMaxVoters , maybe_max_targets : types :: governance_fallback :: MaybeMaxTargets ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: GovernanceFallback > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 submitted 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 :: ext :: subxt_core :: utils :: AccountId32 > ; pub type PrevEjected = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SolutionStored { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const EVENT : & 'static str = "SolutionStored" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for ElectionFinalized { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const EVENT : & 'static str = "ElectionFinalized" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for ElectionFailed { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const EVENT : & 'static str = "ElectionFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Value = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Rewarded { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const EVENT : & 'static str = "Rewarded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Value = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Slashed { const PALLET : & 'static str = "ElectionProviderMultiPhase" ; const EVENT : & 'static str = "Slashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 round { use super :: runtime_types ; pub type Round = :: core :: primitive :: u32 ; } pub mod current_phase { use super :: runtime_types ; 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 :: ext :: subxt_core :: utils :: AccountId32 , (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , runtime_types :: paseo_runtime :: NposCompactSolution16 > ; 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 = " 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: round :: Round , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "Round" , () , [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 = " Current phase."] pub fn current_phase (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_phase :: CurrentPhase , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "CurrentPhase" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: queued_solution :: QueuedSolution , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "QueuedSolution" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: snapshot :: Snapshot , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "Snapshot" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: desired_targets :: DesiredTargets , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "DesiredTargets" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: snapshot_metadata :: SnapshotMetadata , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "SnapshotMetadata" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: signed_submission_next_index :: SignedSubmissionNextIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "SignedSubmissionNextIndex" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: signed_submission_indices :: SignedSubmissionIndices , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "SignedSubmissionIndices" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: signed_submissions_map :: SignedSubmissionsMap , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , () , [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 :: core :: borrow :: Borrow < types :: signed_submissions_map :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: signed_submissions_map :: Param0 > , types :: signed_submissions_map :: SignedSubmissionsMap , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "SignedSubmissionsMap" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [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 = " 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: minimum_untrusted_score :: MinimumUntrustedScore , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ElectionProviderMultiPhase" , "MinimumUntrustedScore" , () , [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 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_arithmetic :: per_things :: Perbill > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_weights :: weight_v2 :: Weight > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_weights :: weight_v2 :: Weight > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] # [doc = "changed its score that it should properly fall into a different bag than its current"] # [doc = "one."] # [doc = ""] # [doc = "Anyone can call this function about any potentially dislocated account."] # [doc = ""] # [doc = "Will always update the stored score of `dislocated` to the correct score, based on"] # [doc = "`ScoreProvider`."] # [doc = ""] # [doc = "If `dislocated` does not exists, it returns an error."] pub struct Rebag { pub dislocated : rebag :: Dislocated , } pub mod rebag { use super :: runtime_types ; pub type Dislocated = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Rebag { const PALLET : & 'static str = "VoterList" ; const CALL : & 'static str = "rebag" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Move the caller's Id directly in front of `lighter`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] # [doc = "the account going in front of `lighter`. Fee is payed by the origin under all"] # [doc = "circumstances."] # [doc = ""] # [doc = "Only works if:"] # [doc = ""] # [doc = "- both nodes are within the same bag,"] # [doc = "- and `origin` has a greater `Score` than `lighter`."] pub struct PutInFrontOf { pub lighter : put_in_front_of :: Lighter , } pub mod put_in_front_of { use super :: runtime_types ; pub type Lighter = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PutInFrontOf { const PALLET : & 'static str = "VoterList" ; const CALL : & 'static str = "put_in_front_of" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Same as [`Pallet::put_in_front_of`], but it can be called by anyone."] # [doc = ""] # [doc = "Fee is paid by the origin under all circumstances."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Lighter = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PutInFrontOfOther { const PALLET : & 'static str = "VoterList" ; const CALL : & 'static str = "put_in_front_of_other" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] # [doc = "changed its score that it should properly fall into a different bag than its current"] # [doc = "one."] # [doc = ""] # [doc = "Anyone can call this function about any potentially dislocated account."] # [doc = ""] # [doc = "Will always update the stored score of `dislocated` to the correct score, based on"] # [doc = "`ScoreProvider`."] # [doc = ""] # [doc = "If `dislocated` does not exists, it returns an error."] pub fn rebag (& self , dislocated : types :: rebag :: Dislocated ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Rebag > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("VoterList" , "rebag" , types :: Rebag { dislocated , } , [9u8 , 111u8 , 68u8 , 237u8 , 32u8 , 21u8 , 214u8 , 84u8 , 11u8 , 39u8 , 94u8 , 43u8 , 198u8 , 46u8 , 91u8 , 147u8 , 194u8 , 3u8 , 35u8 , 171u8 , 95u8 , 248u8 , 78u8 , 0u8 , 7u8 , 99u8 , 2u8 , 124u8 , 139u8 , 42u8 , 109u8 , 226u8 ,]) } # [doc = "Move the caller's Id directly in front of `lighter`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] # [doc = "the account going in front of `lighter`. Fee is payed by the origin under all"] # [doc = "circumstances."] # [doc = ""] # [doc = "Only works if:"] # [doc = ""] # [doc = "- both nodes are within the same bag,"] # [doc = "- and `origin` has a greater `Score` than `lighter`."] pub fn put_in_front_of (& self , lighter : types :: put_in_front_of :: Lighter ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PutInFrontOf > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("VoterList" , "put_in_front_of" , types :: PutInFrontOf { lighter , } , [61u8 , 76u8 , 164u8 , 177u8 , 140u8 , 44u8 , 127u8 , 198u8 , 195u8 , 241u8 , 36u8 , 80u8 , 32u8 , 85u8 , 183u8 , 130u8 , 137u8 , 128u8 , 16u8 , 203u8 , 184u8 , 19u8 , 151u8 , 55u8 , 10u8 , 194u8 , 162u8 , 8u8 , 211u8 , 110u8 , 126u8 , 75u8 ,]) } # [doc = "Same as [`Pallet::put_in_front_of`], but it can be called by anyone."] # [doc = ""] # [doc = "Fee is paid by the origin under all circumstances."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PutInFrontOfOther > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("VoterList" , "put_in_front_of_other" , types :: PutInFrontOfOther { heavier , lighter , } , [27u8 , 9u8 , 204u8 , 221u8 , 221u8 , 253u8 , 36u8 , 10u8 , 251u8 , 149u8 , 248u8 , 137u8 , 69u8 , 108u8 , 9u8 , 253u8 , 106u8 , 241u8 , 139u8 , 255u8 , 103u8 , 27u8 , 22u8 , 69u8 , 44u8 , 10u8 , 181u8 , 252u8 , 135u8 , 69u8 , 126u8 , 205u8 ,]) } } } # [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type From = :: core :: primitive :: u64 ; pub type To = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Rebagged { const PALLET : & 'static str = "VoterList" ; const EVENT : & 'static str = "Rebagged" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewScore = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: list_nodes :: ListNodes , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("VoterList" , "ListNodes" , () , [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 :: core :: borrow :: Borrow < types :: list_nodes :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: list_nodes :: Param0 > , types :: list_nodes :: ListNodes , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("VoterList" , "ListNodes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_list_nodes :: CounterForListNodes , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("VoterList" , "CounterForListNodes" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: list_bags :: ListBags , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("VoterList" , "ListBags" , () , [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 :: core :: borrow :: Borrow < types :: list_bags :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: list_bags :: Param0 > , types :: list_bags :: ListBags , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("VoterList" , "ListBags" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } } } } 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] # [doc = "pools account and immediately increases the pools bond."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "* An account can only be a member of a single pool."] # [doc = "* An account cannot join the same pool multiple times."] # [doc = "* This call will *not* dust the member account, so the member must have at least"] # [doc = " `existential deposit + amount` in their account."] # [doc = "* Only a pool with [`PoolState::Open`] can be joined"] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for Join { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "join" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] # [doc = ""] # [doc = "Additional funds can come from either the free balance of the account, of from the"] # [doc = "accumulated rewards, see [`BondExtra`]."] # [doc = ""] # [doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] # [doc = "See `bond_extra_other` to bond pending rewards of `other` members."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for BondExtra { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "bond_extra" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] # [doc = "has accumulated since their last claimed payout (OR since joining if this is their first"] # [doc = "time claiming rewards). The payout will be transferred to the member's account."] # [doc = ""] # [doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] # [doc = "members in the pools stake. Rewards do not \"expire\"."] # [doc = ""] # [doc = "See `claim_payout_other` to claim rewards on behalf of some `other` pool member."] pub struct ClaimPayout ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClaimPayout { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "claim_payout" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] # [doc = "implicitly collects the rewards one last time, since not doing so would mean some"] # [doc = "rewards would be forfeited."] # [doc = ""] # [doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] # [doc = "account)."] # [doc = ""] # [doc = "# Conditions for a permissionless dispatch."] # [doc = ""] # [doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] # [doc = " as a kick."] # [doc = "* The pool is destroying and the member is not the depositor."] # [doc = "* The pool is destroying, the member is the depositor and no other members are in the"] # [doc = " pool."] # [doc = ""] # [doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] # [doc = "`member_account`):"] # [doc = ""] # [doc = "* The caller is not the depositor."] # [doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] # [doc = " pool."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "If there are too many unlocking chunks to unbond with the pool account,"] # [doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] # [doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] # [doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] # [doc = "are available). However, it may not be possible to release the current unlocking chunks,"] # [doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] # [doc = "staking system."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type UnbondingPoints = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Unbond { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "unbond" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] # [doc = ""] # [doc = "This is useful if there are too many unlocking chunks to call `unbond`, and some"] # [doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] # [doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] # [doc = "they attempt to unbond."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for PoolWithdrawUnbonded { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "pool_withdraw_unbonded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] # [doc = "error is returned."] # [doc = ""] # [doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] # [doc = "account)."] # [doc = ""] # [doc = "# Conditions for a permissionless dispatch"] # [doc = ""] # [doc = "* The pool is in destroy mode and the target is not the depositor."] # [doc = "* The target is the depositor and they are the only member in the sub pools."] # [doc = "* The pool is blocked and the caller is either the root or bouncer."] # [doc = ""] # [doc = "# Conditions for permissioned dispatch"] # [doc = ""] # [doc = "* The caller is the target and they are not the depositor."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "- If the target is the depositor, the pool will be destroyed."] # [doc = "- If the pool has any pending slash, we also try to slash the member before letting them"] # [doc = "withdraw. This calculation adds some weight overhead and is only defensive. In reality,"] # [doc = "pool slashes must have been already applied via permissionless [`Call::apply_slash`]."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type NumSlashingSpans = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for WithdrawUnbonded { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "withdraw_unbonded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Create a new delegation pool."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] # [doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] # [doc = " destroyed."] # [doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] # [doc = " creating multiple pools in the same extrinsic."] # [doc = "* `root` - The account to set as [`PoolRoles::root`]."] # [doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] # [doc = "* `bouncer` - The account to set as the [`PoolRoles::bouncer`]."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] # [doc = "needs at have at least `amount + existential_deposit` transferable."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Nominator = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Bouncer = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Create { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "create" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Create a new delegation pool with a previously used pool id"] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "same as `create` with the inclusion of"] # [doc = "* `pool_id` - `A valid PoolId."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Nominator = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Bouncer = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type PoolId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CreateWithPoolId { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "create_with_pool_id" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Nominate on behalf of the pool."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] # [doc = "root role."] # [doc = ""] # [doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] # [doc = "account."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to have"] # [doc = "at least `depositor_min_bond` in the pool to start nominating."] 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Nominate { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "nominate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a new state for the pool."] # [doc = ""] # [doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] # [doc = "change again."] # [doc = ""] # [doc = "The dispatch origin of this call must be either:"] # [doc = ""] # [doc = "1. signed by the bouncer, or the root role of the pool,"] # [doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] # [doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetState { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "set_state" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a new metadata for the pool."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] # [doc = "pool."] 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMetadata { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "set_metadata" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update configurations for the nomination pools. The origin for this call must be"] # [doc = "[`Config::AdminOrigin`]."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `min_join_bond` - Set [`MinJoinBond`]."] # [doc = "* `min_create_bond` - Set [`MinCreateBond`]."] # [doc = "* `max_pools` - Set [`MaxPools`]."] # [doc = "* `max_members` - Set [`MaxPoolMembers`]."] # [doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] # [doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetConfigs { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "set_configs" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the roles of the pool."] # [doc = ""] # [doc = "The root is the only entity that can change any of the roles, including itself,"] # [doc = "excluding the depositor, who can never change."] # [doc = ""] # [doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] # [doc = "most pool members and they should be informed of changes to pool 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 :: ext :: subxt_core :: utils :: AccountId32 > ; pub type NewNominator = runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type NewBouncer = runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdateRoles { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "update_roles" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Chill on behalf of the pool."] # [doc = ""] # [doc = "The dispatch origin of this call can be signed by the pool nominator or the pool"] # [doc = "root role, same as [`Pallet::nominate`]."] # [doc = ""] # [doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] # [doc = "account)."] # [doc = ""] # [doc = "# Conditions for a permissionless dispatch:"] # [doc = "* When pool depositor has less than `MinNominatorBond` staked, otherwise pool members"] # [doc = " are unable to unbond."] # [doc = ""] # [doc = "# Conditions for permissioned dispatch:"] # [doc = "* The caller has a nominator or root role of the pool."] # [doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] # [doc = "account."] pub struct Chill { pub pool_id : chill :: PoolId , } pub mod chill { use super :: runtime_types ; pub type PoolId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Chill { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "chill" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] # [doc = "pools."] # [doc = ""] # [doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] # [doc = "other`."] # [doc = ""] # [doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] # [doc = "`other` members assuming set_claim_permission for the given member is"] # [doc = "`PermissionlessCompound` or `PermissionlessAll`."] 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 :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Extra = runtime_types :: pallet_nomination_pools :: BondExtra < :: core :: primitive :: u128 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BondExtraOther { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "bond_extra_other" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] # [doc = "bonding and withdrawing."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - Member of a pool."] # [doc = "* `permission` - The permission to be applied."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetClaimPermission { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "set_claim_permission" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "`origin` can claim payouts on some pool member `other`'s behalf."] # [doc = ""] # [doc = "Pool member `other` must have a `PermissionlessWithdraw` or `PermissionlessAll` claim"] # [doc = "permission for this call to be successful."] pub struct ClaimPayoutOther { pub other : claim_payout_other :: Other , } pub mod claim_payout_other { use super :: runtime_types ; pub type Other = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClaimPayoutOther { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "claim_payout_other" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the commission of a pool."] # [doc = "Both a commission percentage and a commission payee must be provided in the `current`"] # [doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] # [doc = ""] # [doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] 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 :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCommission { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "set_commission" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the maximum commission of a pool."] # [doc = ""] # [doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] # [doc = "- Current commission will be lowered in the event it is higher than a new max"] # [doc = " commission."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCommissionMax { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "set_commission_max" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the commission change rate for a pool."] # [doc = ""] # [doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] # [doc = "restrictive than the current."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCommissionChangeRate { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "set_commission_change_rate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Claim pending commission."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] # [doc = "commission is paid out and added to total claimed commission`. Total pending commission"] # [doc = "is reset to zero. the current."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClaimCommission { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "claim_commission" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Top up the deficit or withdraw the excess ED from the pool."] # [doc = ""] # [doc = "When a pool is created, the pool depositor transfers ED to the reward account of the"] # [doc = "pool. ED is subject to change and over time, the deposit in the reward account may be"] # [doc = "insufficient to cover the ED deficit of the pool or vice-versa where there is excess"] # [doc = "deposit to the pool. This call allows anyone to adjust the ED deposit of the"] # [doc = "pool by either topping up the deficit or claiming the excess."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for AdjustPoolDeposit { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "adjust_pool_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set or remove a pool's commission claim permission."] # [doc = ""] # [doc = "Determines who can claim the pool's pending commission. Only the `Root` role of the pool"] # [doc = "is able to configure commission claim permissions."] 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 :: ext :: subxt_core :: utils :: AccountId32 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCommissionClaimPermission { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "set_commission_claim_permission" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Apply a pending slash on a member."] # [doc = ""] # [doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "This call can be dispatched permissionlessly (i.e. by any account). If the member has"] # [doc = "slash to be applied, caller may be rewarded with the part of the slash."] pub struct ApplySlash { pub member_account : apply_slash :: MemberAccount , } pub mod apply_slash { use super :: runtime_types ; pub type MemberAccount = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ApplySlash { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "apply_slash" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Migrates delegated funds from the pool account to the `member_account`."] # [doc = ""] # [doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "This is a permission-less call and refunds any fee if claim is successful."] # [doc = ""] # [doc = "If the pool has migrated to delegation based staking, the staked tokens of pool members"] # [doc = "can be moved and held in their own account. See [`adapter::DelegateStake`]"] pub struct MigrateDelegation { pub member_account : migrate_delegation :: MemberAccount , } pub mod migrate_delegation { use super :: runtime_types ; pub type MemberAccount = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MigrateDelegation { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "migrate_delegation" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Migrate pool from [`adapter::StakeStrategyType::Transfer`] to"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "This call can be dispatched permissionlessly, and refunds any fee if successful."] # [doc = ""] # [doc = "If the pool has already migrated to delegation based staking, this call will fail."] pub struct MigratePoolToDelegateStake { pub pool_id : migrate_pool_to_delegate_stake :: PoolId , } pub mod migrate_pool_to_delegate_stake { use super :: runtime_types ; pub type PoolId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MigratePoolToDelegateStake { const PALLET : & 'static str = "NominationPools" ; const CALL : & 'static str = "migrate_pool_to_delegate_stake" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] # [doc = "pools account and immediately increases the pools bond."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "* An account can only be a member of a single pool."] # [doc = "* An account cannot join the same pool multiple times."] # [doc = "* This call will *not* dust the member account, so the member must have at least"] # [doc = " `existential deposit + amount` in their account."] # [doc = "* Only a pool with [`PoolState::Open`] can be joined"] pub fn join (& self , amount : types :: join :: Amount , pool_id : types :: join :: PoolId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Join > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Bond `extra` more funds from `origin` into the pool to which they already belong."] # [doc = ""] # [doc = "Additional funds can come from either the free balance of the account, of from the"] # [doc = "accumulated rewards, see [`BondExtra`]."] # [doc = ""] # [doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] # [doc = "See `bond_extra_other` to bond pending rewards of `other` members."] pub fn bond_extra (& self , extra : types :: bond_extra :: Extra ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BondExtra > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "A bonded member can use this to claim their payout based on the rewards that the pool"] # [doc = "has accumulated since their last claimed payout (OR since joining if this is their first"] # [doc = "time claiming rewards). The payout will be transferred to the member's account."] # [doc = ""] # [doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] # [doc = "members in the pools stake. Rewards do not \"expire\"."] # [doc = ""] # [doc = "See `claim_payout_other` to claim rewards on behalf of some `other` pool member."] pub fn claim_payout (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClaimPayout > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] # [doc = "implicitly collects the rewards one last time, since not doing so would mean some"] # [doc = "rewards would be forfeited."] # [doc = ""] # [doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] # [doc = "account)."] # [doc = ""] # [doc = "# Conditions for a permissionless dispatch."] # [doc = ""] # [doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] # [doc = " as a kick."] # [doc = "* The pool is destroying and the member is not the depositor."] # [doc = "* The pool is destroying, the member is the depositor and no other members are in the"] # [doc = " pool."] # [doc = ""] # [doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] # [doc = "`member_account`):"] # [doc = ""] # [doc = "* The caller is not the depositor."] # [doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] # [doc = " pool."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "If there are too many unlocking chunks to unbond with the pool account,"] # [doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] # [doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] # [doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] # [doc = "are available). However, it may not be possible to release the current unlocking chunks,"] # [doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] # [doc = "staking system."] pub fn unbond (& self , member_account : types :: unbond :: MemberAccount , unbonding_points : types :: unbond :: UnbondingPoints ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Unbond > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("NominationPools" , "unbond" , types :: Unbond { member_account , unbonding_points , } , [7u8 , 80u8 , 46u8 , 120u8 , 249u8 , 148u8 , 126u8 , 232u8 , 3u8 , 130u8 , 61u8 , 94u8 , 174u8 , 151u8 , 235u8 , 206u8 , 120u8 , 48u8 , 201u8 , 128u8 , 78u8 , 13u8 , 148u8 , 39u8 , 70u8 , 65u8 , 79u8 , 232u8 , 204u8 , 125u8 , 182u8 , 33u8 ,]) } # [doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] # [doc = ""] # [doc = "This is useful if there are too many unlocking chunks to call `unbond`, and some"] # [doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] # [doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] # [doc = "they attempt to unbond."] pub fn pool_withdraw_unbonded (& self , pool_id : types :: pool_withdraw_unbonded :: PoolId , num_slashing_spans : types :: pool_withdraw_unbonded :: NumSlashingSpans ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PoolWithdrawUnbonded > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] # [doc = "error is returned."] # [doc = ""] # [doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] # [doc = "account)."] # [doc = ""] # [doc = "# Conditions for a permissionless dispatch"] # [doc = ""] # [doc = "* The pool is in destroy mode and the target is not the depositor."] # [doc = "* The target is the depositor and they are the only member in the sub pools."] # [doc = "* The pool is blocked and the caller is either the root or bouncer."] # [doc = ""] # [doc = "# Conditions for permissioned dispatch"] # [doc = ""] # [doc = "* The caller is the target and they are not the depositor."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "- If the target is the depositor, the pool will be destroyed."] # [doc = "- If the pool has any pending slash, we also try to slash the member before letting them"] # [doc = "withdraw. This calculation adds some weight overhead and is only defensive. In reality,"] # [doc = "pool slashes must have been already applied via permissionless [`Call::apply_slash`]."] pub fn withdraw_unbonded (& self , member_account : types :: withdraw_unbonded :: MemberAccount , num_slashing_spans : types :: withdraw_unbonded :: NumSlashingSpans ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: WithdrawUnbonded > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("NominationPools" , "withdraw_unbonded" , types :: WithdrawUnbonded { member_account , num_slashing_spans , } , [69u8 , 9u8 , 243u8 , 218u8 , 41u8 , 80u8 , 5u8 , 112u8 , 23u8 , 90u8 , 208u8 , 120u8 , 91u8 , 181u8 , 37u8 , 159u8 , 183u8 , 41u8 , 187u8 , 212u8 , 39u8 , 175u8 , 90u8 , 245u8 , 242u8 , 18u8 , 220u8 , 40u8 , 160u8 , 46u8 , 214u8 , 239u8 ,]) } # [doc = "Create a new delegation pool."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] # [doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] # [doc = " destroyed."] # [doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] # [doc = " creating multiple pools in the same extrinsic."] # [doc = "* `root` - The account to set as [`PoolRoles::root`]."] # [doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] # [doc = "* `bouncer` - The account to set as the [`PoolRoles::bouncer`]."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] # [doc = "needs at have at least `amount + existential_deposit` transferable."] pub fn create (& self , amount : types :: create :: Amount , root : types :: create :: Root , nominator : types :: create :: Nominator , bouncer : types :: create :: Bouncer ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Create > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("NominationPools" , "create" , types :: Create { amount , root , nominator , bouncer , } , [75u8 , 103u8 , 67u8 , 204u8 , 44u8 , 28u8 , 143u8 , 33u8 , 194u8 , 100u8 , 71u8 , 143u8 , 211u8 , 193u8 , 229u8 , 119u8 , 237u8 , 212u8 , 65u8 , 62u8 , 19u8 , 52u8 , 14u8 , 4u8 , 205u8 , 88u8 , 156u8 , 238u8 , 143u8 , 158u8 , 144u8 , 108u8 ,]) } # [doc = "Create a new delegation pool with a previously used pool id"] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "same as `create` with the inclusion of"] # [doc = "* `pool_id` - `A valid PoolId."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CreateWithPoolId > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("NominationPools" , "create_with_pool_id" , types :: CreateWithPoolId { amount , root , nominator , bouncer , pool_id , } , [41u8 , 12u8 , 98u8 , 131u8 , 99u8 , 176u8 , 30u8 , 4u8 , 227u8 , 7u8 , 42u8 , 158u8 , 27u8 , 233u8 , 227u8 , 230u8 , 34u8 , 16u8 , 117u8 , 203u8 , 110u8 , 160u8 , 68u8 , 153u8 , 78u8 , 116u8 , 191u8 , 96u8 , 156u8 , 207u8 , 223u8 , 80u8 ,]) } # [doc = "Nominate on behalf of the pool."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] # [doc = "root role."] # [doc = ""] # [doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] # [doc = "account."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to have"] # [doc = "at least `depositor_min_bond` in the pool to start nominating."] pub fn nominate (& self , pool_id : types :: nominate :: PoolId , validators : types :: nominate :: Validators ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Nominate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set a new state for the pool."] # [doc = ""] # [doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] # [doc = "change again."] # [doc = ""] # [doc = "The dispatch origin of this call must be either:"] # [doc = ""] # [doc = "1. signed by the bouncer, or the root role of the pool,"] # [doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] # [doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] pub fn set_state (& self , pool_id : types :: set_state :: PoolId , state : types :: set_state :: State ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetState > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set a new metadata for the pool."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] # [doc = "pool."] pub fn set_metadata (& self , pool_id : types :: set_metadata :: PoolId , metadata : types :: set_metadata :: Metadata ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMetadata > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Update configurations for the nomination pools. The origin for this call must be"] # [doc = "[`Config::AdminOrigin`]."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `min_join_bond` - Set [`MinJoinBond`]."] # [doc = "* `min_create_bond` - Set [`MinCreateBond`]."] # [doc = "* `max_pools` - Set [`MaxPools`]."] # [doc = "* `max_members` - Set [`MaxPoolMembers`]."] # [doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] # [doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetConfigs > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Update the roles of the pool."] # [doc = ""] # [doc = "The root is the only entity that can change any of the roles, including itself,"] # [doc = "excluding the depositor, who can never change."] # [doc = ""] # [doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] # [doc = "most pool members and they should be informed of changes to pool 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdateRoles > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Chill on behalf of the pool."] # [doc = ""] # [doc = "The dispatch origin of this call can be signed by the pool nominator or the pool"] # [doc = "root role, same as [`Pallet::nominate`]."] # [doc = ""] # [doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] # [doc = "account)."] # [doc = ""] # [doc = "# Conditions for a permissionless dispatch:"] # [doc = "* When pool depositor has less than `MinNominatorBond` staked, otherwise pool members"] # [doc = " are unable to unbond."] # [doc = ""] # [doc = "# Conditions for permissioned dispatch:"] # [doc = "* The caller has a nominator or root role of the pool."] # [doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] # [doc = "account."] pub fn chill (& self , pool_id : types :: chill :: PoolId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Chill > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] # [doc = "pools."] # [doc = ""] # [doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] # [doc = "other`."] # [doc = ""] # [doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] # [doc = "`other` members assuming set_claim_permission for the given member is"] # [doc = "`PermissionlessCompound` or `PermissionlessAll`."] pub fn bond_extra_other (& self , member : types :: bond_extra_other :: Member , extra : types :: bond_extra_other :: Extra ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BondExtraOther > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("NominationPools" , "bond_extra_other" , types :: BondExtraOther { member , extra , } , [32u8 , 200u8 , 198u8 , 128u8 , 30u8 , 21u8 , 39u8 , 98u8 , 49u8 , 4u8 , 96u8 , 146u8 , 169u8 , 179u8 , 109u8 , 253u8 , 168u8 , 212u8 , 206u8 , 161u8 , 116u8 , 191u8 , 110u8 , 189u8 , 63u8 , 252u8 , 39u8 , 107u8 , 98u8 , 25u8 , 137u8 , 0u8 ,]) } # [doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] # [doc = "bonding and withdrawing."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - Member of a pool."] # [doc = "* `permission` - The permission to be applied."] pub fn set_claim_permission (& self , permission : types :: set_claim_permission :: Permission ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetClaimPermission > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "`origin` can claim payouts on some pool member `other`'s behalf."] # [doc = ""] # [doc = "Pool member `other` must have a `PermissionlessWithdraw` or `PermissionlessAll` claim"] # [doc = "permission for this call to be successful."] pub fn claim_payout_other (& self , other : types :: claim_payout_other :: Other ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClaimPayoutOther > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the commission of a pool."] # [doc = "Both a commission percentage and a commission payee must be provided in the `current`"] # [doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] # [doc = ""] # [doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] pub fn set_commission (& self , pool_id : types :: set_commission :: PoolId , new_commission : types :: set_commission :: NewCommission ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCommission > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the maximum commission of a pool."] # [doc = ""] # [doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] # [doc = "- Current commission will be lowered in the event it is higher than a new max"] # [doc = " commission."] pub fn set_commission_max (& self , pool_id : types :: set_commission_max :: PoolId , max_commission : types :: set_commission_max :: MaxCommission ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCommissionMax > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the commission change rate for a pool."] # [doc = ""] # [doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] # [doc = "restrictive than the current."] pub fn set_commission_change_rate (& self , pool_id : types :: set_commission_change_rate :: PoolId , change_rate : types :: set_commission_change_rate :: ChangeRate ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCommissionChangeRate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Claim pending commission."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] # [doc = "commission is paid out and added to total claimed commission`. Total pending commission"] # [doc = "is reset to zero. the current."] pub fn claim_commission (& self , pool_id : types :: claim_commission :: PoolId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClaimCommission > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Top up the deficit or withdraw the excess ED from the pool."] # [doc = ""] # [doc = "When a pool is created, the pool depositor transfers ED to the reward account of the"] # [doc = "pool. ED is subject to change and over time, the deposit in the reward account may be"] # [doc = "insufficient to cover the ED deficit of the pool or vice-versa where there is excess"] # [doc = "deposit to the pool. This call allows anyone to adjust the ED deposit of the"] # [doc = "pool by either topping up the deficit or claiming the excess."] pub fn adjust_pool_deposit (& self , pool_id : types :: adjust_pool_deposit :: PoolId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AdjustPoolDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set or remove a pool's commission claim permission."] # [doc = ""] # [doc = "Determines who can claim the pool's pending commission. Only the `Root` role of the pool"] # [doc = "is able to configure commission claim permissions."] pub fn set_commission_claim_permission (& self , pool_id : types :: set_commission_claim_permission :: PoolId , permission : types :: set_commission_claim_permission :: Permission ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCommissionClaimPermission > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Apply a pending slash on a member."] # [doc = ""] # [doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "This call can be dispatched permissionlessly (i.e. by any account). If the member has"] # [doc = "slash to be applied, caller may be rewarded with the part of the slash."] pub fn apply_slash (& self , member_account : types :: apply_slash :: MemberAccount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ApplySlash > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("NominationPools" , "apply_slash" , types :: ApplySlash { member_account , } , [3u8 , 91u8 , 46u8 , 173u8 , 191u8 , 148u8 , 46u8 , 35u8 , 107u8 , 122u8 , 58u8 , 140u8 , 35u8 , 164u8 , 30u8 , 180u8 , 123u8 , 155u8 , 110u8 , 127u8 , 119u8 , 237u8 , 154u8 , 75u8 , 117u8 , 94u8 , 27u8 , 34u8 , 61u8 , 87u8 , 145u8 , 8u8 ,]) } # [doc = "Migrates delegated funds from the pool account to the `member_account`."] # [doc = ""] # [doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "This is a permission-less call and refunds any fee if claim is successful."] # [doc = ""] # [doc = "If the pool has migrated to delegation based staking, the staked tokens of pool members"] # [doc = "can be moved and held in their own account. See [`adapter::DelegateStake`]"] pub fn migrate_delegation (& self , member_account : types :: migrate_delegation :: MemberAccount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MigrateDelegation > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("NominationPools" , "migrate_delegation" , types :: MigrateDelegation { member_account , } , [18u8 , 142u8 , 120u8 , 40u8 , 196u8 , 5u8 , 253u8 , 127u8 , 1u8 , 254u8 , 71u8 , 159u8 , 172u8 , 87u8 , 169u8 , 26u8 , 157u8 , 217u8 , 159u8 , 226u8 , 88u8 , 114u8 , 92u8 , 121u8 , 155u8 , 188u8 , 226u8 , 138u8 , 4u8 , 18u8 , 161u8 , 175u8 ,]) } # [doc = "Migrate pool from [`adapter::StakeStrategyType::Transfer`] to"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "This call can be dispatched permissionlessly, and refunds any fee if successful."] # [doc = ""] # [doc = "If the pool has already migrated to delegation based staking, this call will fail."] pub fn migrate_pool_to_delegate_stake (& self , pool_id : types :: migrate_pool_to_delegate_stake :: PoolId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MigratePoolToDelegateStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("NominationPools" , "migrate_pool_to_delegate_stake" , types :: MigratePoolToDelegateStake { pool_id , } , [63u8 , 137u8 , 37u8 , 37u8 , 79u8 , 184u8 , 127u8 , 89u8 , 85u8 , 219u8 , 64u8 , 6u8 , 32u8 , 115u8 , 52u8 , 74u8 , 212u8 , 117u8 , 0u8 , 128u8 , 149u8 , 225u8 , 94u8 , 113u8 , 4u8 , 209u8 , 136u8 , 188u8 , 224u8 , 220u8 , 125u8 , 167u8 ,]) } } } # [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type PoolId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Created { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "Created" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type PoolId = :: core :: primitive :: u32 ; pub type Bonded = :: core :: primitive :: u128 ; pub type Joined = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Bonded { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "Bonded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type PoolId = :: core :: primitive :: u32 ; pub type Payout = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PaidOut { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "PaidOut" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Unbonded { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "Unbonded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type PoolId = :: core :: primitive :: u32 ; pub type Balance = :: core :: primitive :: u128 ; pub type Points = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Withdrawn { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "Withdrawn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Destroyed { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "Destroyed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for StateChanged { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "StateChanged" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MemberRemoved { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "MemberRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Bouncer = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Nominator = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RolesUpdated { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "RolesUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for PoolSlashed { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "PoolSlashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for UnbondingPoolSlashed { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "UnbondingPoolSlashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PoolCommissionUpdated { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "PoolCommissionUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for PoolMaxCommissionUpdated { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "PoolMaxCommissionUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for PoolCommissionChangeRateUpdated { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "PoolCommissionChangeRateUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 > > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PoolCommissionClaimPermissionUpdated { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "PoolCommissionClaimPermissionUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for PoolCommissionClaimed { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "PoolCommissionClaimed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for MinBalanceDeficitAdjusted { const PALLET : & 'static str = "NominationPools" ; const EVENT : & 'static str = "MinBalanceDeficitAdjusted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_value_locked :: TotalValueLocked , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "TotalValueLocked" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_join_bond :: MinJoinBond , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "MinJoinBond" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_create_bond :: MinCreateBond , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "MinCreateBond" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_pools :: MaxPools , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "MaxPools" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_pool_members :: MaxPoolMembers , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "MaxPoolMembers" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_pool_members_per_pool :: MaxPoolMembersPerPool , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "MaxPoolMembersPerPool" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: global_max_commission :: GlobalMaxCommission , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "GlobalMaxCommission" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pool_members :: PoolMembers , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "PoolMembers" , () , [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 :: core :: borrow :: Borrow < types :: pool_members :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pool_members :: Param0 > , types :: pool_members :: PoolMembers , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "PoolMembers" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_pool_members :: CounterForPoolMembers , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "CounterForPoolMembers" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonded_pools :: BondedPools , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "BondedPools" , () , [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 :: core :: borrow :: Borrow < types :: bonded_pools :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonded_pools :: Param0 > , types :: bonded_pools :: BondedPools , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "BondedPools" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_bonded_pools :: CounterForBondedPools , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "CounterForBondedPools" , () , [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 of the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: reward_pools :: RewardPools , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "RewardPools" , () , [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 of the reward pool. Keyed by the bonded pools account."] pub fn reward_pools (& self , _0 : impl :: core :: borrow :: Borrow < types :: reward_pools :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reward_pools :: Param0 > , types :: reward_pools :: RewardPools , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "RewardPools" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_reward_pools :: CounterForRewardPools , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "CounterForRewardPools" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: sub_pools_storage :: SubPoolsStorage , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "SubPoolsStorage" , () , [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 :: core :: borrow :: Borrow < types :: sub_pools_storage :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: sub_pools_storage :: Param0 > , types :: sub_pools_storage :: SubPoolsStorage , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "SubPoolsStorage" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_sub_pools_storage :: CounterForSubPoolsStorage , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "CounterForSubPoolsStorage" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: metadata :: Metadata , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "Metadata" , () , [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 :: core :: borrow :: Borrow < types :: metadata :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: metadata :: Param0 > , types :: metadata :: Metadata , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "Metadata" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_metadata :: CounterForMetadata , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "CounterForMetadata" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_pool_id :: LastPoolId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "LastPoolId" , () , [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 and on automatic withdraw update. In all other instances, the"] # [doc = " pool id is used, and the accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: reverse_pool_id_lookup :: ReversePoolIdLookup , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "ReversePoolIdLookup" , () , [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 and on automatic withdraw update. In all other instances, the"] # [doc = " pool id is used, and the accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup (& self , _0 : impl :: core :: borrow :: Borrow < types :: reverse_pool_id_lookup :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reverse_pool_id_lookup :: Param0 > , types :: reverse_pool_id_lookup :: ReversePoolIdLookup , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "ReversePoolIdLookup" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_reverse_pool_id_lookup :: CounterForReversePoolIdLookup , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "CounterForReversePoolIdLookup" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: claim_permissions :: ClaimPermissions , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "ClaimPermissions" , () , [127u8 , 58u8 , 154u8 , 103u8 , 97u8 , 80u8 , 68u8 , 18u8 , 167u8 , 41u8 , 93u8 , 100u8 , 94u8 , 81u8 , 82u8 , 98u8 , 13u8 , 162u8 , 122u8 , 199u8 , 216u8 , 139u8 , 238u8 , 97u8 , 174u8 , 102u8 , 11u8 , 250u8 , 247u8 , 174u8 , 185u8 , 134u8 ,]) } # [doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions (& self , _0 : impl :: core :: borrow :: Borrow < types :: claim_permissions :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: claim_permissions :: Param0 > , types :: claim_permissions :: ClaimPermissions , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("NominationPools" , "ClaimPermissions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [127u8 , 58u8 , 154u8 , 103u8 , 97u8 , 80u8 , 68u8 , 18u8 , 167u8 , 41u8 , 93u8 , 100u8 , 94u8 , 81u8 , 82u8 , 98u8 , 13u8 , 162u8 , 122u8 , 199u8 , 216u8 , 139u8 , 238u8 , 97u8 , 174u8 , 102u8 , 11u8 , 250u8 , 247u8 , 174u8 , 185u8 , 134u8 ,]) } } } 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_support :: PalletId > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u8 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register oneself for fast-unstake."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "The dispatch origin of this call must be *signed* by whoever is permitted to call"] # [doc = "unbond funds by the staking system. See [`Config::Staking`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "The stash associated with the origin must have no ongoing unlocking chunks. If"] # [doc = "successful, this will fully unbond and chill the stash. Then, it will enqueue the stash"] # [doc = "to be checked in further blocks."] # [doc = ""] # [doc = "If by the time this is called, the stash is actually eligible for fast-unstake, then"] # [doc = "they are guaranteed to remain eligible, because the call will chill them as well."] # [doc = ""] # [doc = "If the check works, the entire staking data is removed, i.e. the stash is fully"] # [doc = "unstaked."] # [doc = ""] # [doc = "If the check fails, the stash remains chilled and waiting for being unbonded as in with"] # [doc = "the normal staking system, but they lose part of their unbonding chunks due to consuming"] # [doc = "the chain's resources."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Some events from the staking and currency system might be emitted."] pub struct RegisterFastUnstake ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RegisterFastUnstake { const PALLET : & 'static str = "FastUnstake" ; const CALL : & 'static str = "register_fast_unstake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Deregister oneself from the fast-unstake."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "The dispatch origin of this call must be *signed* by whoever is permitted to call"] # [doc = "unbond funds by the staking system. See [`Config::Staking`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "This is useful if one is registered, they are still waiting, and they change their mind."] # [doc = ""] # [doc = "Note that the associated stash is still fully unbonded and chilled as a consequence of"] # [doc = "calling [`Pallet::register_fast_unstake`]. Therefore, this should probably be followed"] # [doc = "by a call to `rebond` in the staking system."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Some events from the staking and currency system might be emitted."] pub struct Deregister ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Deregister { const PALLET : & 'static str = "FastUnstake" ; const CALL : & 'static str = "deregister" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Control the operation of this pallet."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "The dispatch origin of this call must be [`Config::ControlOrigin`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "Can set the number of eras to check per block, and potentially other admin work."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "No events are emitted from this dispatch."] pub struct Control { pub eras_to_check : control :: ErasToCheck , } pub mod control { use super :: runtime_types ; pub type ErasToCheck = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Control { const PALLET : & 'static str = "FastUnstake" ; const CALL : & 'static str = "control" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Register oneself for fast-unstake."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "The dispatch origin of this call must be *signed* by whoever is permitted to call"] # [doc = "unbond funds by the staking system. See [`Config::Staking`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "The stash associated with the origin must have no ongoing unlocking chunks. If"] # [doc = "successful, this will fully unbond and chill the stash. Then, it will enqueue the stash"] # [doc = "to be checked in further blocks."] # [doc = ""] # [doc = "If by the time this is called, the stash is actually eligible for fast-unstake, then"] # [doc = "they are guaranteed to remain eligible, because the call will chill them as well."] # [doc = ""] # [doc = "If the check works, the entire staking data is removed, i.e. the stash is fully"] # [doc = "unstaked."] # [doc = ""] # [doc = "If the check fails, the stash remains chilled and waiting for being unbonded as in with"] # [doc = "the normal staking system, but they lose part of their unbonding chunks due to consuming"] # [doc = "the chain's resources."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Some events from the staking and currency system might be emitted."] pub fn register_fast_unstake (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RegisterFastUnstake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Deregister oneself from the fast-unstake."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "The dispatch origin of this call must be *signed* by whoever is permitted to call"] # [doc = "unbond funds by the staking system. See [`Config::Staking`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "This is useful if one is registered, they are still waiting, and they change their mind."] # [doc = ""] # [doc = "Note that the associated stash is still fully unbonded and chilled as a consequence of"] # [doc = "calling [`Pallet::register_fast_unstake`]. Therefore, this should probably be followed"] # [doc = "by a call to `rebond` in the staking system."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Some events from the staking and currency system might be emitted."] pub fn deregister (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Deregister > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Control the operation of this pallet."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "The dispatch origin of this call must be [`Config::ControlOrigin`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "Can set the number of eras to check per block, and potentially other admin work."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "No events are emitted from this dispatch."] pub fn control (& self , eras_to_check : types :: control :: ErasToCheck ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Control > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Unstaked { const PALLET : & 'static str = "FastUnstake" ; const EVENT : & 'static str = "Unstaked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Slashed { const PALLET : & 'static str = "FastUnstake" ; const EVENT : & 'static str = "Slashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchChecked { const PALLET : & 'static str = "FastUnstake" ; const EVENT : & 'static str = "BatchChecked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for BatchFinished { const PALLET : & 'static str = "FastUnstake" ; const EVENT : & 'static str = "BatchFinished" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An internal error happened. Operations will be paused now."] pub struct InternalError ; impl :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: head :: Head , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("FastUnstake" , "Head" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: queue :: Queue , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("FastUnstake" , "Queue" , () , [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 :: core :: borrow :: Borrow < types :: queue :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: queue :: Param0 > , types :: queue :: Queue , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("FastUnstake" , "Queue" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_queue :: CounterForQueue , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("FastUnstake" , "CounterForQueue" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: eras_to_check_per_block :: ErasToCheckPerBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("FastUnstake" , "ErasToCheckPerBlock" , () , [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetValidationUpgradeCooldown { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_validation_upgrade_cooldown" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetValidationUpgradeDelay { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_validation_upgrade_delay" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the acceptance period for an included candidate."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCodeRetentionPeriod { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_code_retention_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the max validation code size for incoming upgrades."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxCodeSize { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_code_size" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the max POV block size for incoming upgrades."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxPovSize { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_pov_size" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the max head data size for paras."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxHeadDataSize { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_head_data_size" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the number of coretime execution cores."] # [doc = ""] # [doc = "NOTE: that this configuration is managed by the coretime chain. Only manually change"] # [doc = "this, if you really know what you are doing!"] pub struct SetCoretimeCores { pub new : set_coretime_cores :: New , } pub mod set_coretime_cores { use super :: runtime_types ; pub type New = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCoretimeCores { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_coretime_cores" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the max number of times a claim may timeout on a core before it is abandoned"] pub struct SetMaxAvailabilityTimeouts { pub new : set_max_availability_timeouts :: New , } pub mod set_max_availability_timeouts { use super :: runtime_types ; pub type New = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxAvailabilityTimeouts { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_availability_timeouts" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the parachain validator-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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetGroupRotationFrequency { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_group_rotation_frequency" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the availability period for paras."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetParasAvailabilityPeriod { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_paras_availability_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetSchedulingLookahead { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_scheduling_lookahead" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the maximum number of validators to assign to any 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxValidatorsPerCore { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_validators_per_core" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the maximum number of validators to use in parachain consensus."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxValidators { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_validators" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the dispute period, in number of sessions to keep for disputes."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetDisputePeriod { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_dispute_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetDisputePostConclusionAcceptancePeriod { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_dispute_post_conclusion_acceptance_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the no show slots, in number of number of consensus slots."] # [doc = "Must be at least 1."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetNoShowSlots { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_no_show_slots" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the total number of 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetNDelayTranches { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_n_delay_tranches" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetZerothDelayTrancheWidth { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_zeroth_delay_tranche_width" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the number of validators needed to approve a block."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetNeededApprovals { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_needed_approvals" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetRelayVrfModuloSamples { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_relay_vrf_modulo_samples" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum items that can present in a upward dispatch queue at once."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxUpwardQueueCount { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_upward_queue_count" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum total size of items that can present in a upward dispatch queue at"] # [doc = "once."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxUpwardQueueSize { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_upward_queue_size" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the critical 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxDownwardMessageSize { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_downward_message_size" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum size of an upward message that can be sent by a candidate."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxUpwardMessageSize { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_upward_message_size" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum number of messages that a candidate can contain."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxUpwardMessageNumPerCandidate { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_max_upward_message_num_per_candidate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the number of sessions after which an HRMP open channel request expires."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHrmpOpenRequestTtl { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_hrmp_open_request_ttl" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHrmpSenderDeposit { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_hrmp_sender_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] # [doc = "channel."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHrmpRecipientDeposit { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_hrmp_recipient_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHrmpChannelMaxCapacity { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_hrmp_channel_max_capacity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHrmpChannelMaxTotalSize { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_hrmp_channel_max_total_size" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHrmpMaxParachainInboundChannels { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_hrmp_max_parachain_inbound_channels" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHrmpChannelMaxMessageSize { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_hrmp_channel_max_message_size" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHrmpMaxParachainOutboundChannels { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_hrmp_max_parachain_outbound_channels" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum number of outbound HRMP messages can be sent by a 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHrmpMaxMessageNumPerCandidate { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_hrmp_max_message_num_per_candidate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetPvfVotingTtl { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_pvf_voting_ttl" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the minimum delay between announcing the upgrade block for a parachain until the"] # [doc = "upgrade taking place."] # [doc = ""] # [doc = "See the field documentation for information and constraints for the new value."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMinimumValidationUpgradeDelay { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_minimum_validation_upgrade_delay" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Setting this to true will disable consistency checks for the configuration setters."] # [doc = "Use with caution."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetBypassConsistencyCheck { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_bypass_consistency_check" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the asynchronous backing parameters."] 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 :: v7 :: async_backing :: AsyncBackingParams ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetAsyncBackingParams { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_async_backing_params" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set PVF executor parameters."] 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 :: v7 :: executor_params :: ExecutorParams ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetExecutorParams { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_executor_params" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the on demand (parathreads) 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetOnDemandBaseFee { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_on_demand_base_fee" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the on demand (parathreads) 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetOnDemandFeeVariability { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_on_demand_fee_variability" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the on demand (parathreads) 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetOnDemandQueueMaxSize { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_on_demand_queue_max_size" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the on demand (parathreads) fee variability."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetOnDemandTargetQueueUtilization { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_on_demand_target_queue_utilization" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the on demand (parathreads) ttl in the claimqueue."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetOnDemandTtl { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_on_demand_ttl" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the minimum backing votes threshold."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMinimumBackingVotes { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_minimum_backing_votes" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set/Unset a node feature."] pub struct SetNodeFeature { pub index : set_node_feature :: Index , pub value : set_node_feature :: Value , } pub mod set_node_feature { use super :: runtime_types ; pub type Index = :: core :: primitive :: u8 ; pub type Value = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetNodeFeature { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_node_feature" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set approval-voting-params."] pub struct SetApprovalVotingParams { pub new : set_approval_voting_params :: New , } pub mod set_approval_voting_params { use super :: runtime_types ; pub type New = runtime_types :: polkadot_primitives :: v7 :: ApprovalVotingParams ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetApprovalVotingParams { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_approval_voting_params" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set scheduler-params."] pub struct SetSchedulerParams { pub new : set_scheduler_params :: New , } pub mod set_scheduler_params { use super :: runtime_types ; pub type New = runtime_types :: polkadot_primitives :: vstaging :: SchedulerParams < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetSchedulerParams { const PALLET : & 'static str = "Configuration" ; const CALL : & 'static str = "set_scheduler_params" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Set the validation upgrade cooldown."] pub fn set_validation_upgrade_cooldown (& self , new : types :: set_validation_upgrade_cooldown :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetValidationUpgradeCooldown > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the validation upgrade delay."] pub fn set_validation_upgrade_delay (& self , new : types :: set_validation_upgrade_delay :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetValidationUpgradeDelay > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the acceptance period for an included candidate."] pub fn set_code_retention_period (& self , new : types :: set_code_retention_period :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCodeRetentionPeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the max validation code size for incoming upgrades."] pub fn set_max_code_size (& self , new : types :: set_max_code_size :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxCodeSize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the max POV block size for incoming upgrades."] pub fn set_max_pov_size (& self , new : types :: set_max_pov_size :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxPovSize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the max head data size for paras."] pub fn set_max_head_data_size (& self , new : types :: set_max_head_data_size :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxHeadDataSize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the number of coretime execution cores."] # [doc = ""] # [doc = "NOTE: that this configuration is managed by the coretime chain. Only manually change"] # [doc = "this, if you really know what you are doing!"] pub fn set_coretime_cores (& self , new : types :: set_coretime_cores :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCoretimeCores > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Configuration" , "set_coretime_cores" , types :: SetCoretimeCores { new , } , [179u8 , 131u8 , 211u8 , 152u8 , 167u8 , 6u8 , 108u8 , 94u8 , 179u8 , 97u8 , 87u8 , 227u8 , 57u8 , 120u8 , 133u8 , 130u8 , 59u8 , 243u8 , 224u8 , 2u8 , 11u8 , 86u8 , 251u8 , 77u8 , 159u8 , 177u8 , 145u8 , 34u8 , 117u8 , 93u8 , 28u8 , 52u8 ,]) } # [doc = "Set the max number of times a claim may timeout on a core before it is abandoned"] pub fn set_max_availability_timeouts (& self , new : types :: set_max_availability_timeouts :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxAvailabilityTimeouts > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Configuration" , "set_max_availability_timeouts" , types :: SetMaxAvailabilityTimeouts { new , } , [53u8 , 141u8 , 53u8 , 9u8 , 149u8 , 145u8 , 48u8 , 165u8 , 157u8 , 2u8 , 45u8 , 23u8 , 128u8 , 233u8 , 27u8 , 132u8 , 189u8 , 212u8 , 45u8 , 187u8 , 2u8 , 112u8 , 26u8 , 88u8 , 233u8 , 84u8 , 148u8 , 73u8 , 222u8 , 208u8 , 195u8 , 153u8 ,]) } # [doc = "Set the parachain validator-group rotation frequency"] pub fn set_group_rotation_frequency (& self , new : types :: set_group_rotation_frequency :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetGroupRotationFrequency > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the availability period for paras."] pub fn set_paras_availability_period (& self , new : types :: set_paras_availability_period :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetParasAvailabilityPeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] pub fn set_scheduling_lookahead (& self , new : types :: set_scheduling_lookahead :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetSchedulingLookahead > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the maximum number of validators to assign to any core."] pub fn set_max_validators_per_core (& self , new : types :: set_max_validators_per_core :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxValidatorsPerCore > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the maximum number of validators to use in parachain consensus."] pub fn set_max_validators (& self , new : types :: set_max_validators :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxValidators > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the dispute period, in number of sessions to keep for disputes."] pub fn set_dispute_period (& self , new : types :: set_dispute_period :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetDisputePeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the dispute post conclusion acceptance period."] pub fn set_dispute_post_conclusion_acceptance_period (& self , new : types :: set_dispute_post_conclusion_acceptance_period :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetDisputePostConclusionAcceptancePeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the no show slots, in number of number of consensus slots."] # [doc = "Must be at least 1."] pub fn set_no_show_slots (& self , new : types :: set_no_show_slots :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetNoShowSlots > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the total number of delay tranches."] pub fn set_n_delay_tranches (& self , new : types :: set_n_delay_tranches :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetNDelayTranches > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the zeroth delay tranche width."] pub fn set_zeroth_delay_tranche_width (& self , new : types :: set_zeroth_delay_tranche_width :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetZerothDelayTrancheWidth > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the number of validators needed to approve a block."] pub fn set_needed_approvals (& self , new : types :: set_needed_approvals :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetNeededApprovals > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] pub fn set_relay_vrf_modulo_samples (& self , new : types :: set_relay_vrf_modulo_samples :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetRelayVrfModuloSamples > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum items that can present in a upward dispatch queue at once."] pub fn set_max_upward_queue_count (& self , new : types :: set_max_upward_queue_count :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxUpwardQueueCount > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum total size of items that can present in a upward dispatch queue at"] # [doc = "once."] pub fn set_max_upward_queue_size (& self , new : types :: set_max_upward_queue_size :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxUpwardQueueSize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the critical downward message size."] pub fn set_max_downward_message_size (& self , new : types :: set_max_downward_message_size :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxDownwardMessageSize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum size of an upward message that can be sent by a candidate."] pub fn set_max_upward_message_size (& self , new : types :: set_max_upward_message_size :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxUpwardMessageSize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum number of messages that a candidate can contain."] pub fn set_max_upward_message_num_per_candidate (& self , new : types :: set_max_upward_message_num_per_candidate :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxUpwardMessageNumPerCandidate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the number of sessions after which an HRMP open channel request expires."] pub fn set_hrmp_open_request_ttl (& self , new : types :: set_hrmp_open_request_ttl :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHrmpOpenRequestTtl > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] pub fn set_hrmp_sender_deposit (& self , new : types :: set_hrmp_sender_deposit :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHrmpSenderDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] # [doc = "channel."] pub fn set_hrmp_recipient_deposit (& self , new : types :: set_hrmp_recipient_deposit :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHrmpRecipientDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum number of messages allowed in an HRMP channel at once."] pub fn set_hrmp_channel_max_capacity (& self , new : types :: set_hrmp_channel_max_capacity :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHrmpChannelMaxCapacity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] pub fn set_hrmp_channel_max_total_size (& self , new : types :: set_hrmp_channel_max_total_size :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHrmpChannelMaxTotalSize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] pub fn set_hrmp_max_parachain_inbound_channels (& self , new : types :: set_hrmp_max_parachain_inbound_channels :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHrmpMaxParachainInboundChannels > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum size of a message that could ever be put into an HRMP channel."] pub fn set_hrmp_channel_max_message_size (& self , new : types :: set_hrmp_channel_max_message_size :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHrmpChannelMaxMessageSize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] pub fn set_hrmp_max_parachain_outbound_channels (& self , new : types :: set_hrmp_max_parachain_outbound_channels :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHrmpMaxParachainOutboundChannels > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] pub fn set_hrmp_max_message_num_per_candidate (& self , new : types :: set_hrmp_max_message_num_per_candidate :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHrmpMaxMessageNumPerCandidate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the number of session changes after which a PVF pre-checking voting is rejected."] pub fn set_pvf_voting_ttl (& self , new : types :: set_pvf_voting_ttl :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetPvfVotingTtl > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Sets the minimum delay between announcing the upgrade block for a parachain until the"] # [doc = "upgrade taking place."] # [doc = ""] # [doc = "See the field documentation for information and constraints for the new value."] pub fn set_minimum_validation_upgrade_delay (& self , new : types :: set_minimum_validation_upgrade_delay :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMinimumValidationUpgradeDelay > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Setting this to true will disable consistency checks for the configuration setters."] # [doc = "Use with caution."] pub fn set_bypass_consistency_check (& self , new : types :: set_bypass_consistency_check :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetBypassConsistencyCheck > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the asynchronous backing parameters."] pub fn set_async_backing_params (& self , new : types :: set_async_backing_params :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetAsyncBackingParams > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set PVF executor parameters."] pub fn set_executor_params (& self , new : types :: set_executor_params :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetExecutorParams > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Configuration" , "set_executor_params" , types :: SetExecutorParams { new , } , [79u8 , 167u8 , 242u8 , 14u8 , 22u8 , 177u8 , 240u8 , 134u8 , 154u8 , 77u8 , 233u8 , 188u8 , 110u8 , 223u8 , 25u8 , 52u8 , 58u8 , 241u8 , 226u8 , 255u8 , 2u8 , 26u8 , 8u8 , 241u8 , 125u8 , 33u8 , 63u8 , 204u8 , 93u8 , 31u8 , 229u8 , 0u8 ,]) } # [doc = "Set the on demand (parathreads) base fee."] pub fn set_on_demand_base_fee (& self , new : types :: set_on_demand_base_fee :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetOnDemandBaseFee > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the on demand (parathreads) fee variability."] pub fn set_on_demand_fee_variability (& self , new : types :: set_on_demand_fee_variability :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetOnDemandFeeVariability > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the on demand (parathreads) queue max size."] pub fn set_on_demand_queue_max_size (& self , new : types :: set_on_demand_queue_max_size :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetOnDemandQueueMaxSize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the on demand (parathreads) fee variability."] pub fn set_on_demand_target_queue_utilization (& self , new : types :: set_on_demand_target_queue_utilization :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetOnDemandTargetQueueUtilization > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the on demand (parathreads) ttl in the claimqueue."] pub fn set_on_demand_ttl (& self , new : types :: set_on_demand_ttl :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetOnDemandTtl > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the minimum backing votes threshold."] pub fn set_minimum_backing_votes (& self , new : types :: set_minimum_backing_votes :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMinimumBackingVotes > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set/Unset a node feature."] pub fn set_node_feature (& self , index : types :: set_node_feature :: Index , value : types :: set_node_feature :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetNodeFeature > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Configuration" , "set_node_feature" , types :: SetNodeFeature { index , value , } , [255u8 , 19u8 , 208u8 , 76u8 , 122u8 , 6u8 , 42u8 , 182u8 , 118u8 , 151u8 , 245u8 , 80u8 , 162u8 , 243u8 , 45u8 , 57u8 , 122u8 , 148u8 , 98u8 , 170u8 , 157u8 , 40u8 , 92u8 , 234u8 , 12u8 , 141u8 , 54u8 , 80u8 , 97u8 , 249u8 , 115u8 , 27u8 ,]) } # [doc = "Set approval-voting-params."] pub fn set_approval_voting_params (& self , new : types :: set_approval_voting_params :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetApprovalVotingParams > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Configuration" , "set_approval_voting_params" , types :: SetApprovalVotingParams { new , } , [248u8 , 81u8 , 74u8 , 103u8 , 28u8 , 108u8 , 190u8 , 177u8 , 201u8 , 252u8 , 87u8 , 236u8 , 20u8 , 189u8 , 192u8 , 173u8 , 40u8 , 160u8 , 170u8 , 187u8 , 42u8 , 108u8 , 184u8 , 131u8 , 120u8 , 237u8 , 229u8 , 240u8 , 128u8 , 49u8 , 163u8 , 11u8 ,]) } # [doc = "Set scheduler-params."] pub fn set_scheduler_params (& self , new : types :: set_scheduler_params :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetSchedulerParams > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Configuration" , "set_scheduler_params" , types :: SetSchedulerParams { new , } , [191u8 , 87u8 , 235u8 , 71u8 , 143u8 , 46u8 , 2u8 , 88u8 , 111u8 , 15u8 , 251u8 , 230u8 , 241u8 , 172u8 , 183u8 , 110u8 , 33u8 , 26u8 , 43u8 , 119u8 , 74u8 , 62u8 , 200u8 , 226u8 , 83u8 , 180u8 , 123u8 , 132u8 , 171u8 , 65u8 , 30u8 , 13u8 ,]) } } } 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 = :: subxt :: ext :: subxt_core :: alloc :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: active_config :: ActiveConfig , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Configuration" , "ActiveConfig" , () , [9u8 , 85u8 , 45u8 , 253u8 , 3u8 , 175u8 , 115u8 , 58u8 , 71u8 , 169u8 , 68u8 , 163u8 , 231u8 , 24u8 , 231u8 , 216u8 , 61u8 , 134u8 , 59u8 , 89u8 , 31u8 , 103u8 , 105u8 , 8u8 , 182u8 , 99u8 , 51u8 , 130u8 , 255u8 , 2u8 , 0u8 , 147u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_configs :: PendingConfigs , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Configuration" , "PendingConfigs" , () , [7u8 , 170u8 , 38u8 , 177u8 , 76u8 , 75u8 , 198u8 , 192u8 , 247u8 , 137u8 , 85u8 , 17u8 , 74u8 , 93u8 , 170u8 , 177u8 , 198u8 , 208u8 , 183u8 , 28u8 , 178u8 , 5u8 , 39u8 , 246u8 , 175u8 , 78u8 , 145u8 , 37u8 , 212u8 , 20u8 , 52u8 , 110u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bypass_consistency_check :: BypassConsistencyCheck , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Configuration" , "BypassConsistencyCheck" , () , [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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex > ; } pub mod active_validator_keys { use super :: runtime_types ; pub type ActiveValidatorKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: validator_app :: Public > ; } pub mod allowed_relay_parents { use super :: runtime_types ; pub type AllowedRelayParents = runtime_types :: polkadot_runtime_parachains :: shared :: AllowedRelayParentsTracker < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The current session index."] pub fn current_session_index (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_session_index :: CurrentSessionIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasShared" , "CurrentSessionIndex" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: active_validator_indices :: ActiveValidatorIndices , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasShared" , "ActiveValidatorIndices" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: active_validator_keys :: ActiveValidatorKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasShared" , "ActiveValidatorKeys" , () , [228u8 , 111u8 , 152u8 , 198u8 , 158u8 , 9u8 , 193u8 , 222u8 , 92u8 , 190u8 , 91u8 , 24u8 , 98u8 , 156u8 , 88u8 , 231u8 , 255u8 , 1u8 , 74u8 , 56u8 , 44u8 , 110u8 , 175u8 , 29u8 , 45u8 , 242u8 , 129u8 , 181u8 , 145u8 , 5u8 , 28u8 , 40u8 ,]) } # [doc = " All allowed relay-parents."] pub fn allowed_relay_parents (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: allowed_relay_parents :: AllowedRelayParents , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasShared" , "AllowedRelayParents" , () , [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: CandidateReceipt < :: subxt :: ext :: subxt_core :: utils :: H256 > ; pub type Field1 = runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData ; pub type Field2 = runtime_types :: polkadot_primitives :: v7 :: CoreIndex ; pub type Field3 = runtime_types :: polkadot_primitives :: v7 :: GroupIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CandidateBacked { const PALLET : & 'static str = "ParaInclusion" ; const EVENT : & 'static str = "CandidateBacked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: CandidateReceipt < :: subxt :: ext :: subxt_core :: utils :: H256 > ; pub type Field1 = runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData ; pub type Field2 = runtime_types :: polkadot_primitives :: v7 :: CoreIndex ; pub type Field3 = runtime_types :: polkadot_primitives :: v7 :: GroupIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CandidateIncluded { const PALLET : & 'static str = "ParaInclusion" ; const EVENT : & 'static str = "CandidateIncluded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: CandidateReceipt < :: subxt :: ext :: subxt_core :: utils :: H256 > ; pub type Field1 = runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData ; pub type Field2 = runtime_types :: polkadot_primitives :: v7 :: CoreIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CandidateTimedOut { const PALLET : & 'static str = "ParaInclusion" ; const EVENT : & 'static str = "CandidateTimedOut" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 v1 { use super :: runtime_types ; pub type V1 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: inclusion :: CandidatePendingAvailability < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > ; pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Candidates pending availability by `ParaId`. They form a chain starting from the latest"] # [doc = " included head of the para."] # [doc = " Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage"] # [doc = " would otherwise have the exact same prefix which could cause undefined behaviour when doing"] # [doc = " the migration."] pub fn v1_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: v1 :: V1 , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaInclusion" , "V1" , () , [168u8 , 102u8 , 148u8 , 186u8 , 81u8 , 2u8 , 106u8 , 60u8 , 191u8 , 34u8 , 196u8 , 207u8 , 208u8 , 186u8 , 138u8 , 3u8 , 31u8 , 128u8 , 200u8 , 132u8 , 34u8 , 248u8 , 248u8 , 14u8 , 109u8 , 197u8 , 44u8 , 140u8 , 253u8 , 33u8 , 186u8 , 71u8 ,]) } # [doc = " Candidates pending availability by `ParaId`. They form a chain starting from the latest"] # [doc = " included head of the para."] # [doc = " Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage"] # [doc = " would otherwise have the exact same prefix which could cause undefined behaviour when doing"] # [doc = " the migration."] pub fn v1 (& self , _0 : impl :: core :: borrow :: Borrow < types :: v1 :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: v1 :: Param0 > , types :: v1 :: V1 , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaInclusion" , "V1" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [168u8 , 102u8 , 148u8 , 186u8 , 81u8 , 2u8 , 106u8 , 60u8 , 191u8 , 34u8 , 196u8 , 207u8 , 208u8 , 186u8 , 138u8 , 3u8 , 31u8 , 128u8 , 200u8 , 132u8 , 34u8 , 248u8 , 248u8 , 14u8 , 109u8 , 197u8 , 44u8 , 140u8 , 253u8 , 33u8 , 186u8 , 71u8 ,]) } } } } 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enter the paras inherent. This will process bitfields and backed candidates."] pub struct Enter { pub data : enter :: Data , } pub mod enter { use super :: runtime_types ; pub type Data = runtime_types :: polkadot_primitives :: v7 :: InherentData < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Enter { const PALLET : & 'static str = "ParaInherent" ; const CALL : & 'static str = "enter" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Enter the paras inherent. This will process bitfields and backed candidates."] pub fn enter (& self , data : types :: enter :: Data ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Enter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ParaInherent" , "enter" , types :: Enter { data , } , [244u8 , 74u8 , 26u8 , 233u8 , 127u8 , 208u8 , 55u8 , 137u8 , 180u8 , 244u8 , 70u8 , 55u8 , 177u8 , 211u8 , 53u8 , 224u8 , 167u8 , 95u8 , 71u8 , 211u8 , 204u8 , 137u8 , 42u8 , 149u8 , 209u8 , 214u8 , 26u8 , 2u8 , 67u8 , 107u8 , 131u8 , 72u8 ,]) } } } 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 :: v7 :: ScrapedOnChainVotes < :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: included :: Included , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaInherent" , "Included" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: on_chain_votes :: OnChainVotes , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaInherent" , "OnChainVotes" , () , [97u8 , 41u8 , 197u8 , 241u8 , 12u8 , 210u8 , 132u8 , 148u8 , 4u8 , 230u8 , 206u8 , 170u8 , 41u8 , 135u8 , 147u8 , 63u8 , 47u8 , 192u8 , 0u8 , 133u8 , 104u8 , 186u8 , 137u8 , 94u8 , 227u8 , 108u8 , 253u8 , 86u8 , 207u8 , 233u8 , 65u8 , 27u8 ,]) } } } } 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex > > ; } pub mod availability_cores { use super :: runtime_types ; pub type AvailabilityCores = :: subxt :: ext :: subxt_core :: alloc :: 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 :: ext :: subxt_core :: utils :: KeyedVec < runtime_types :: polkadot_primitives :: v7 :: CoreIndex , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_groups :: ValidatorGroups , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaScheduler" , "ValidatorGroups" , () , [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. The i'th parachain belongs to the i'th core, with the"] # [doc = " remaining cores all being on demand parachain 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: availability_cores :: AvailabilityCores , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaScheduler" , "AvailabilityCores" , () , [250u8 , 177u8 , 44u8 , 237u8 , 5u8 , 116u8 , 135u8 , 99u8 , 136u8 , 209u8 , 181u8 , 145u8 , 254u8 , 57u8 , 42u8 , 92u8 , 236u8 , 67u8 , 128u8 , 171u8 , 200u8 , 88u8 , 40u8 , 31u8 , 163u8 , 128u8 , 15u8 , 96u8 , 181u8 , 224u8 , 162u8 , 188u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: session_start_block :: SessionStartBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaScheduler" , "SessionStartBlock" , () , [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. 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: claim_queue :: ClaimQueue , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaScheduler" , "ClaimQueue" , () , [192u8 , 65u8 , 227u8 , 114u8 , 125u8 , 169u8 , 134u8 , 70u8 , 201u8 , 99u8 , 246u8 , 23u8 , 0u8 , 143u8 , 163u8 , 87u8 , 216u8 , 1u8 , 184u8 , 124u8 , 23u8 , 180u8 , 132u8 , 143u8 , 202u8 , 81u8 , 144u8 , 242u8 , 15u8 , 141u8 , 124u8 , 126u8 ,]) } } } } 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the storage for the parachain validation code immediately."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSetCurrentCode { const PALLET : & 'static str = "Paras" ; const CALL : & 'static str = "force_set_current_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the storage for the current parachain head data immediately."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSetCurrentHead { const PALLET : & 'static str = "Paras" ; const CALL : & 'static str = "force_set_current_head" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule an upgrade as if it was scheduled in the given relay parent block."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceScheduleCodeUpgrade { const PALLET : & 'static str = "Paras" ; const CALL : & 'static str = "force_schedule_code_upgrade" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Note a new block head for para within the context of the current block."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceNoteNewHead { const PALLET : & 'static str = "Paras" ; const CALL : & 'static str = "force_note_new_head" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Put a parachain directly into the next session's action queue."] # [doc = "We can't queue it any sooner than this without going into the"] # [doc = "initializer..."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceQueueAction { const PALLET : & 'static str = "Paras" ; const CALL : & 'static str = "force_queue_action" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Adds the validation code to the storage."] # [doc = ""] # [doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] # [doc = "is running for that code, it will be instantly accepted."] # [doc = ""] # [doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] # [doc = "into storage with reference count 0. This is to account the fact that there are no users"] # [doc = "for this code yet. The caller will have to make sure that this code eventually gets"] # [doc = "used by some parachain or removed from the storage to avoid storage leaks. For the"] # [doc = "latter prefer to use the `poke_unused_validation_code` dispatchable to raw storage"] # [doc = "manipulation."] # [doc = ""] # [doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] # [doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddTrustedValidationCode { const PALLET : & 'static str = "Paras" ; const CALL : & 'static str = "add_trusted_validation_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove the validation code from the storage iff the reference count is 0."] # [doc = ""] # [doc = "This is better than removing the storage directly, because it will not remove the code"] # [doc = "that was suddenly got used by some parachain while this dispatchable was pending"] # [doc = "dispatching."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for PokeUnusedValidationCode { const PALLET : & 'static str = "Paras" ; const CALL : & 'static str = "poke_unused_validation_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] # [doc = "enacts the results if that was the last vote before achieving the supermajority."] 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 :: v7 :: PvfCheckStatement ; pub type Signature = runtime_types :: polkadot_primitives :: v7 :: validator_app :: Signature ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for IncludePvfCheckStatement { const PALLET : & 'static str = "Paras" ; const CALL : & 'static str = "include_pvf_check_statement" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the storage for the current parachain head data immediately."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSetMostRecentContext { const PALLET : & 'static str = "Paras" ; const CALL : & 'static str = "force_set_most_recent_context" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Set the storage for the parachain validation code immediately."] pub fn force_set_current_code (& self , para : types :: force_set_current_code :: Para , new_code : types :: force_set_current_code :: NewCode ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSetCurrentCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the storage for the current parachain head data immediately."] pub fn force_set_current_head (& self , para : types :: force_set_current_head :: Para , new_head : types :: force_set_current_head :: NewHead ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSetCurrentHead > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Schedule an upgrade as if it was scheduled in the given relay parent block."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceScheduleCodeUpgrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Note a new block head for para within the context of the current block."] pub fn force_note_new_head (& self , para : types :: force_note_new_head :: Para , new_head : types :: force_note_new_head :: NewHead ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceNoteNewHead > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Put a parachain directly into the next session's action queue."] # [doc = "We can't queue it any sooner than this without going into the"] # [doc = "initializer..."] pub fn force_queue_action (& self , para : types :: force_queue_action :: Para ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceQueueAction > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Adds the validation code to the storage."] # [doc = ""] # [doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] # [doc = "is running for that code, it will be instantly accepted."] # [doc = ""] # [doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] # [doc = "into storage with reference count 0. This is to account the fact that there are no users"] # [doc = "for this code yet. The caller will have to make sure that this code eventually gets"] # [doc = "used by some parachain or removed from the storage to avoid storage leaks. For the"] # [doc = "latter prefer to use the `poke_unused_validation_code` dispatchable to raw storage"] # [doc = "manipulation."] # [doc = ""] # [doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] # [doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] pub fn add_trusted_validation_code (& self , validation_code : types :: add_trusted_validation_code :: ValidationCode ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddTrustedValidationCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove the validation code from the storage iff the reference count is 0."] # [doc = ""] # [doc = "This is better than removing the storage directly, because it will not remove the code"] # [doc = "that was suddenly got used by some parachain while this dispatchable was pending"] # [doc = "dispatching."] pub fn poke_unused_validation_code (& self , validation_code_hash : types :: poke_unused_validation_code :: ValidationCodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PokeUnusedValidationCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] # [doc = "enacts the results if that was the last vote before achieving the supermajority."] pub fn include_pvf_check_statement (& self , stmt : types :: include_pvf_check_statement :: Stmt , signature : types :: include_pvf_check_statement :: Signature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: IncludePvfCheckStatement > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Paras" , "include_pvf_check_statement" , types :: IncludePvfCheckStatement { stmt , signature , } , [207u8 , 92u8 , 120u8 , 222u8 , 183u8 , 105u8 , 82u8 , 155u8 , 62u8 , 41u8 , 87u8 , 66u8 , 240u8 , 71u8 , 160u8 , 114u8 , 99u8 , 195u8 , 247u8 , 190u8 , 40u8 , 132u8 , 71u8 , 161u8 , 109u8 , 207u8 , 9u8 , 163u8 , 125u8 , 98u8 , 71u8 , 107u8 ,]) } # [doc = "Set the storage for the current parachain head data immediately."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSetMostRecentContext > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for CurrentCodeUpdated { const PALLET : & 'static str = "Paras" ; const EVENT : & 'static str = "CurrentCodeUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for CurrentHeadUpdated { const PALLET : & 'static str = "Paras" ; const EVENT : & 'static str = "CurrentHeadUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for CodeUpgradeScheduled { const PALLET : & 'static str = "Paras" ; const EVENT : & 'static str = "CodeUpgradeScheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for NewHeadNoted { const PALLET : & 'static str = "Paras" ; const EVENT : & 'static str = "NewHeadNoted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for ActionQueued { const PALLET : & 'static str = "Paras" ; const EVENT : & 'static str = "ActionQueued" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for PvfCheckStarted { const PALLET : & 'static str = "Paras" ; const EVENT : & 'static str = "PvfCheckStarted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for PvfCheckAccepted { const PALLET : & 'static str = "Paras" ; const EVENT : & 'static str = "PvfCheckAccepted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash > ; } pub mod parachains { use super :: runtime_types ; pub type Parachains = :: subxt :: ext :: subxt_core :: alloc :: 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 = :: subxt :: ext :: subxt_core :: alloc :: 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_upgrades_at { use super :: runtime_types ; pub type FutureCodeUpgradesAt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , :: core :: primitive :: u32 ,) > ; } 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 :: v7 :: 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 :: v7 :: UpgradeRestriction ; pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } pub mod upgrade_cooldowns { use super :: runtime_types ; pub type UpgradeCooldowns = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , :: core :: primitive :: u32 ,) > ; } pub mod upcoming_upgrades { use super :: runtime_types ; pub type UpcomingUpgrades = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , :: core :: primitive :: u32 ,) > ; } pub mod actions_queue { use super :: runtime_types ; pub type ActionsQueue = :: subxt :: ext :: subxt_core :: alloc :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pvf_active_vote_map :: PvfActiveVoteMap , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "PvfActiveVoteMap" , () , [180u8 , 73u8 , 103u8 , 207u8 , 245u8 , 111u8 , 142u8 , 8u8 , 159u8 , 143u8 , 245u8 , 212u8 , 149u8 , 78u8 , 213u8 , 224u8 , 206u8 , 8u8 , 95u8 , 40u8 , 24u8 , 72u8 , 123u8 , 41u8 , 198u8 , 190u8 , 9u8 , 33u8 , 247u8 , 205u8 , 60u8 , 199u8 ,]) } # [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 :: core :: borrow :: Borrow < types :: pvf_active_vote_map :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pvf_active_vote_map :: Param0 > , types :: pvf_active_vote_map :: PvfActiveVoteMap , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "PvfActiveVoteMap" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [180u8 , 73u8 , 103u8 , 207u8 , 245u8 , 111u8 , 142u8 , 8u8 , 159u8 , 143u8 , 245u8 , 212u8 , 149u8 , 78u8 , 213u8 , 224u8 , 206u8 , 8u8 , 95u8 , 40u8 , 24u8 , 72u8 , 123u8 , 41u8 , 198u8 , 190u8 , 9u8 , 33u8 , 247u8 , 205u8 , 60u8 , 199u8 ,]) } # [doc = " The list of all currently active PVF votes. Auxiliary to `PvfActiveVoteMap`."] pub fn pvf_active_vote_list (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pvf_active_vote_list :: PvfActiveVoteList , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "PvfActiveVoteList" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: parachains :: Parachains , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "Parachains" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: para_lifecycles :: ParaLifecycles , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "ParaLifecycles" , () , [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 :: core :: borrow :: Borrow < types :: para_lifecycles :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: para_lifecycles :: Param0 > , types :: para_lifecycles :: ParaLifecycles , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "ParaLifecycles" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: heads :: Heads , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "Heads" , () , [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 :: core :: borrow :: Borrow < types :: heads :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: heads :: Param0 > , types :: heads :: Heads , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "Heads" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: most_recent_context :: MostRecentContext , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "MostRecentContext" , () , [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 :: core :: borrow :: Borrow < types :: most_recent_context :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: most_recent_context :: Param0 > , types :: most_recent_context :: MostRecentContext , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "MostRecentContext" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_code_hash :: CurrentCodeHash , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "CurrentCodeHash" , () , [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 :: core :: borrow :: Borrow < types :: current_code_hash :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: current_code_hash :: Param0 > , types :: current_code_hash :: CurrentCodeHash , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "CurrentCodeHash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: past_code_hash :: PastCodeHash , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "PastCodeHash" , () , [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 :: core :: borrow :: Borrow < types :: past_code_hash :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: past_code_hash :: Param0 > , types :: past_code_hash :: PastCodeHash , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "PastCodeHash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: past_code_hash :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: past_code_hash :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: past_code_hash :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: past_code_hash :: Param1 > ,) , types :: past_code_hash :: PastCodeHash , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "PastCodeHash" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: past_code_meta :: PastCodeMeta , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "PastCodeMeta" , () , [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 :: core :: borrow :: Borrow < types :: past_code_meta :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: past_code_meta :: Param0 > , types :: past_code_meta :: PastCodeMeta , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "PastCodeMeta" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: past_code_pruning :: PastCodePruning , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "PastCodePruning" , () , [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 parachain."] # [doc = ""] # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: future_code_upgrades :: FutureCodeUpgrades , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "FutureCodeUpgrades" , () , [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 parachain."] # [doc = ""] # [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 :: core :: borrow :: Borrow < types :: future_code_upgrades :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: future_code_upgrades :: Param0 > , types :: future_code_upgrades :: FutureCodeUpgrades , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "FutureCodeUpgrades" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 list of upcoming future code upgrades."] # [doc = ""] # [doc = " Each item is a pair of the parachain and the expected block at which the upgrade should be"] # [doc = " applied. The upgrade will be applied at the given relay chain block. In contrast to"] # [doc = " [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any"] # [doc = " progress or not."] # [doc = ""] # [doc = " Ordered ascending by block number."] pub fn future_code_upgrades_at (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: future_code_upgrades_at :: FutureCodeUpgradesAt , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "FutureCodeUpgradesAt" , () , [106u8 , 115u8 , 201u8 , 132u8 , 198u8 , 78u8 , 236u8 , 157u8 , 246u8 , 176u8 , 236u8 , 158u8 , 90u8 , 166u8 , 25u8 , 230u8 , 30u8 , 149u8 , 163u8 , 15u8 , 108u8 , 145u8 , 167u8 , 118u8 , 74u8 , 211u8 , 96u8 , 173u8 , 56u8 , 11u8 , 181u8 , 146u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: future_code_hash :: FutureCodeHash , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "FutureCodeHash" , () , [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 :: core :: borrow :: Borrow < types :: future_code_hash :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: future_code_hash :: Param0 > , types :: future_code_hash :: FutureCodeHash , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "FutureCodeHash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upgrade_go_ahead_signal :: UpgradeGoAheadSignal , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "UpgradeGoAheadSignal" , () , [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 :: core :: borrow :: Borrow < types :: upgrade_go_ahead_signal :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: upgrade_go_ahead_signal :: Param0 > , types :: upgrade_go_ahead_signal :: UpgradeGoAheadSignal , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "UpgradeGoAheadSignal" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upgrade_restriction_signal :: UpgradeRestrictionSignal , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "UpgradeRestrictionSignal" , () , [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 :: core :: borrow :: Borrow < types :: upgrade_restriction_signal :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: upgrade_restriction_signal :: Param0 > , types :: upgrade_restriction_signal :: UpgradeRestrictionSignal , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "UpgradeRestrictionSignal" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upgrade_cooldowns :: UpgradeCooldowns , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "UpgradeCooldowns" , () , [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."] # [doc = ""] # [doc = " Each item is a pair of which para performs a code upgrade and at which relay-chain block it"] # [doc = " is expected at."] # [doc = ""] # [doc = " Ordered ascending by block number."] pub fn upcoming_upgrades (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upcoming_upgrades :: UpcomingUpgrades , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "UpcomingUpgrades" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: actions_queue :: ActionsQueue , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "ActionsQueue" , () , [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 :: core :: borrow :: Borrow < types :: actions_queue :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: actions_queue :: Param0 > , types :: actions_queue :: ActionsQueue , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "ActionsQueue" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upcoming_paras_genesis :: UpcomingParasGenesis , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "UpcomingParasGenesis" , () , [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 :: core :: borrow :: Borrow < types :: upcoming_paras_genesis :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: upcoming_paras_genesis :: Param0 > , types :: upcoming_paras_genesis :: UpcomingParasGenesis , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "UpcomingParasGenesis" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: code_by_hash_refs :: CodeByHashRefs , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "CodeByHashRefs" , () , [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 :: core :: borrow :: Borrow < types :: code_by_hash_refs :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: code_by_hash_refs :: Param0 > , types :: code_by_hash_refs :: CodeByHashRefs , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "CodeByHashRefs" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: code_by_hash :: CodeByHash , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "CodeByHash" , () , [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 :: core :: borrow :: Borrow < types :: code_by_hash :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: code_by_hash :: Param0 > , types :: code_by_hash :: CodeByHash , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Paras" , "CodeByHash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Issue a signal to the consensus engine to forcibly act as though all parachain"] # [doc = "blocks in all relay chain blocks up to and including the given number in the current"] # [doc = "chain are valid and should be finalized."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceApprove { const PALLET : & 'static str = "Initializer" ; const CALL : & 'static str = "force_approve" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Issue a signal to the consensus engine to forcibly act as though all parachain"] # [doc = "blocks in all relay chain blocks up to and including the given number in the current"] # [doc = "chain are valid and should be finalized."] pub fn force_approve (& self , up_to : types :: force_approve :: UpTo ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceApprove > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = :: subxt :: ext :: subxt_core :: alloc :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: has_initialized :: HasInitialized , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Initializer" , "HasInitialized" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: buffered_session_changes :: BufferedSessionChanges , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Initializer" , "BufferedSessionChanges" , () , [52u8 , 253u8 , 99u8 , 88u8 , 47u8 , 128u8 , 246u8 , 183u8 , 252u8 , 144u8 , 187u8 , 140u8 , 169u8 , 21u8 , 167u8 , 72u8 , 246u8 , 217u8 , 140u8 , 234u8 , 222u8 , 57u8 , 254u8 , 33u8 , 237u8 , 212u8 , 136u8 , 204u8 , 79u8 , 185u8 , 83u8 , 36u8 ,]) } } } } 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 = :: subxt :: ext :: subxt_core :: alloc :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: downward_message_queues :: DownwardMessageQueues , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Dmp" , "DownwardMessageQueues" , () , [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 :: core :: borrow :: Borrow < types :: downward_message_queues :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: downward_message_queues :: Param0 > , types :: downward_message_queues :: DownwardMessageQueues , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Dmp" , "DownwardMessageQueues" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: downward_message_queue_heads :: DownwardMessageQueueHeads , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Dmp" , "DownwardMessageQueueHeads" , () , [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 :: core :: borrow :: Borrow < types :: downward_message_queue_heads :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: downward_message_queue_heads :: Param0 > , types :: downward_message_queue_heads :: DownwardMessageQueueHeads , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Dmp" , "DownwardMessageQueueHeads" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: delivery_fee_factor :: DeliveryFeeFactor , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Dmp" , "DeliveryFeeFactor" , () , [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 :: core :: borrow :: Borrow < types :: delivery_fee_factor :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: delivery_fee_factor :: Param0 > , types :: delivery_fee_factor :: DeliveryFeeFactor , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Dmp" , "DeliveryFeeFactor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] # [doc = "parameters."] # [doc = ""] # [doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] # [doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] # [doc = ""] # [doc = "These numbers are a subject to the relay-chain configuration limits."] # [doc = ""] # [doc = "The channel can be opened only after the recipient confirms it and only on a session"] # [doc = "change."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for HrmpInitOpenChannel { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "hrmp_init_open_channel" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Accept a pending open channel request from the given sender."] # [doc = ""] # [doc = "The channel will be opened only on the next session boundary."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for HrmpAcceptOpenChannel { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "hrmp_accept_open_channel" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] # [doc = "recipient in the channel being closed."] # [doc = ""] # [doc = "The closure can only happen on a session change."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for HrmpCloseChannel { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "hrmp_close_channel" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "This extrinsic triggers the cleanup of all the HRMP storage items that a para may have."] # [doc = "Normally this happens once per session, but this allows you to trigger the cleanup"] # [doc = "immediately for a specific parachain."] # [doc = ""] # [doc = "Number of inbound and outbound channels for `para` must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceCleanHrmp { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "force_clean_hrmp" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force process HRMP open channel requests."] # [doc = ""] # [doc = "If there are pending HRMP open channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of opening channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceProcessHrmpOpen { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "force_process_hrmp_open" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force process HRMP close channel requests."] # [doc = ""] # [doc = "If there are pending HRMP close channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of closing channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceProcessHrmpClose { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "force_process_hrmp_close" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "This cancels a pending open channel request. It can be canceled by either of the sender"] # [doc = "or the recipient for that request. The origin must be either of those."] # [doc = ""] # [doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] # [doc = "already accepted."] # [doc = ""] # [doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] # [doc = "witness data."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for HrmpCancelOpenRequest { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "hrmp_cancel_open_request" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Open a channel from a `sender` to a `recipient` `ParaId`. Although opened by governance,"] # [doc = "the `max_capacity` and `max_message_size` are still subject to the Relay Chain's"] # [doc = "configured limits."] # [doc = ""] # [doc = "Expected use is when one (and only one) of the `ParaId`s involved in the channel is"] # [doc = "governed by the system, e.g. a system parachain."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceOpenHrmpChannel { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "force_open_hrmp_channel" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Establish an HRMP channel between two system chains. If the channel does not already"] # [doc = "exist, the transaction fees will be refunded to the caller. The system does not take"] # [doc = "deposits for channels between system chains, and automatically sets the message number"] # [doc = "and size limits to the maximum allowed by the network's configuration."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A system chain, `ParaId`."] # [doc = "- `recipient`: A system chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function, but _both_ inputs MUST be system chains. If"] # [doc = "the channel does not exist yet, there is no fee."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for EstablishSystemChannel { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "establish_system_channel" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the deposits held for an HRMP channel to the latest `Configuration`. Channels"] # [doc = "with system chains do not require a deposit."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A chain, `ParaId`."] # [doc = "- `recipient`: A chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for PokeChannelDeposits { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "poke_channel_deposits" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Establish a bidirectional HRMP channel between a parachain and a system chain."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `target_system_chain`: A system chain, `ParaId`."] # [doc = ""] # [doc = "The origin needs to be the parachain origin."] pub struct EstablishChannelWithSystem { pub target_system_chain : establish_channel_with_system :: TargetSystemChain , } pub mod establish_channel_with_system { use super :: runtime_types ; pub type TargetSystemChain = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for EstablishChannelWithSystem { const PALLET : & 'static str = "Hrmp" ; const CALL : & 'static str = "establish_channel_with_system" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] # [doc = "parameters."] # [doc = ""] # [doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] # [doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] # [doc = ""] # [doc = "These numbers are a subject to the relay-chain configuration limits."] # [doc = ""] # [doc = "The channel can be opened only after the recipient confirms it and only on a session"] # [doc = "change."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: HrmpInitOpenChannel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Accept a pending open channel request from the given sender."] # [doc = ""] # [doc = "The channel will be opened only on the next session boundary."] pub fn hrmp_accept_open_channel (& self , sender : types :: hrmp_accept_open_channel :: Sender ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: HrmpAcceptOpenChannel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] # [doc = "recipient in the channel being closed."] # [doc = ""] # [doc = "The closure can only happen on a session change."] pub fn hrmp_close_channel (& self , channel_id : types :: hrmp_close_channel :: ChannelId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: HrmpCloseChannel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "This extrinsic triggers the cleanup of all the HRMP storage items that a para may have."] # [doc = "Normally this happens once per session, but this allows you to trigger the cleanup"] # [doc = "immediately for a specific parachain."] # [doc = ""] # [doc = "Number of inbound and outbound channels for `para` must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceCleanHrmp > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Force process HRMP open channel requests."] # [doc = ""] # [doc = "If there are pending HRMP open channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of opening channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] pub fn force_process_hrmp_open (& self , channels : types :: force_process_hrmp_open :: Channels ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceProcessHrmpOpen > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Force process HRMP close channel requests."] # [doc = ""] # [doc = "If there are pending HRMP close channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of closing channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] pub fn force_process_hrmp_close (& self , channels : types :: force_process_hrmp_close :: Channels ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceProcessHrmpClose > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "This cancels a pending open channel request. It can be canceled by either of the sender"] # [doc = "or the recipient for that request. The origin must be either of those."] # [doc = ""] # [doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] # [doc = "already accepted."] # [doc = ""] # [doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] # [doc = "witness data."] pub fn hrmp_cancel_open_request (& self , channel_id : types :: hrmp_cancel_open_request :: ChannelId , open_requests : types :: hrmp_cancel_open_request :: OpenRequests ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: HrmpCancelOpenRequest > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Open a channel from a `sender` to a `recipient` `ParaId`. Although opened by governance,"] # [doc = "the `max_capacity` and `max_message_size` are still subject to the Relay Chain's"] # [doc = "configured limits."] # [doc = ""] # [doc = "Expected use is when one (and only one) of the `ParaId`s involved in the channel is"] # [doc = "governed by the system, e.g. a system parachain."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceOpenHrmpChannel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Establish an HRMP channel between two system chains. If the channel does not already"] # [doc = "exist, the transaction fees will be refunded to the caller. The system does not take"] # [doc = "deposits for channels between system chains, and automatically sets the message number"] # [doc = "and size limits to the maximum allowed by the network's configuration."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A system chain, `ParaId`."] # [doc = "- `recipient`: A system chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function, but _both_ inputs MUST be system chains. If"] # [doc = "the channel does not exist yet, there is no fee."] pub fn establish_system_channel (& self , sender : types :: establish_system_channel :: Sender , recipient : types :: establish_system_channel :: Recipient ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: EstablishSystemChannel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Update the deposits held for an HRMP channel to the latest `Configuration`. Channels"] # [doc = "with system chains do not require a deposit."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A chain, `ParaId`."] # [doc = "- `recipient`: A chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function."] pub fn poke_channel_deposits (& self , sender : types :: poke_channel_deposits :: Sender , recipient : types :: poke_channel_deposits :: Recipient ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PokeChannelDeposits > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Establish a bidirectional HRMP channel between a parachain and a system chain."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `target_system_chain`: A system chain, `ParaId`."] # [doc = ""] # [doc = "The origin needs to be the parachain origin."] pub fn establish_channel_with_system (& self , target_system_chain : types :: establish_channel_with_system :: TargetSystemChain ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: EstablishChannelWithSystem > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Hrmp" , "establish_channel_with_system" , types :: EstablishChannelWithSystem { target_system_chain , } , [97u8 , 88u8 , 72u8 , 195u8 , 37u8 , 11u8 , 77u8 , 206u8 , 254u8 , 81u8 , 104u8 , 73u8 , 220u8 , 240u8 , 187u8 , 154u8 , 131u8 , 146u8 , 128u8 , 116u8 , 223u8 , 35u8 , 105u8 , 236u8 , 208u8 , 99u8 , 233u8 , 74u8 , 115u8 , 166u8 , 5u8 , 205u8 ,]) } } } # [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for OpenChannelRequested { const PALLET : & 'static str = "Hrmp" ; const EVENT : & 'static str = "OpenChannelRequested" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for OpenChannelCanceled { const PALLET : & 'static str = "Hrmp" ; const EVENT : & 'static str = "OpenChannelCanceled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for OpenChannelAccepted { const PALLET : & 'static str = "Hrmp" ; const EVENT : & 'static str = "OpenChannelAccepted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for ChannelClosed { const PALLET : & 'static str = "Hrmp" ; const EVENT : & 'static str = "ChannelClosed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for HrmpChannelForceOpened { const PALLET : & 'static str = "Hrmp" ; const EVENT : & 'static str = "HrmpChannelForceOpened" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An HRMP channel was opened with a system chain."] 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 :: ext :: subxt_core :: events :: StaticEvent for HrmpSystemChannelOpened { const PALLET : & 'static str = "Hrmp" ; const EVENT : & 'static str = "HrmpSystemChannelOpened" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 = :: subxt :: ext :: subxt_core :: alloc :: 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 = :: subxt :: ext :: subxt_core :: alloc :: 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 = :: subxt :: ext :: subxt_core :: alloc :: 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 = :: subxt :: ext :: subxt_core :: alloc :: 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 = :: subxt :: ext :: subxt_core :: alloc :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u32 , :: subxt :: ext :: subxt_core :: alloc :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_open_channel_requests :: HrmpOpenChannelRequests , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpOpenChannelRequests" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_open_channel_requests :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_open_channel_requests :: Param0 > , types :: hrmp_open_channel_requests :: HrmpOpenChannelRequests , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpOpenChannelRequests" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_open_channel_requests_list :: HrmpOpenChannelRequestsList , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpOpenChannelRequestsList" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_open_channel_request_count :: HrmpOpenChannelRequestCount , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpOpenChannelRequestCount" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_open_channel_request_count :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_open_channel_request_count :: Param0 > , types :: hrmp_open_channel_request_count :: HrmpOpenChannelRequestCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpOpenChannelRequestCount" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_accepted_channel_request_count :: HrmpAcceptedChannelRequestCount , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpAcceptedChannelRequestCount" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_accepted_channel_request_count :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_accepted_channel_request_count :: Param0 > , types :: hrmp_accepted_channel_request_count :: HrmpAcceptedChannelRequestCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpAcceptedChannelRequestCount" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_close_channel_requests :: HrmpCloseChannelRequests , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpCloseChannelRequests" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_close_channel_requests :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_close_channel_requests :: Param0 > , types :: hrmp_close_channel_requests :: HrmpCloseChannelRequests , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpCloseChannelRequests" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_close_channel_requests_list :: HrmpCloseChannelRequestsList , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpCloseChannelRequestsList" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_watermarks :: HrmpWatermarks , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpWatermarks" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_watermarks :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_watermarks :: Param0 > , types :: hrmp_watermarks :: HrmpWatermarks , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpWatermarks" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_channels :: HrmpChannels , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpChannels" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_channels :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_channels :: Param0 > , types :: hrmp_channels :: HrmpChannels , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpChannels" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_ingress_channels_index :: HrmpIngressChannelsIndex , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpIngressChannelsIndex" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_ingress_channels_index :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_ingress_channels_index :: Param0 > , types :: hrmp_ingress_channels_index :: HrmpIngressChannelsIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpIngressChannelsIndex" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_egress_channels_index :: HrmpEgressChannelsIndex , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpEgressChannelsIndex" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_egress_channels_index :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_egress_channels_index :: Param0 > , types :: hrmp_egress_channels_index :: HrmpEgressChannelsIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpEgressChannelsIndex" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_channel_contents :: HrmpChannelContents , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpChannelContents" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_channel_contents :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_channel_contents :: Param0 > , types :: hrmp_channel_contents :: HrmpChannelContents , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpChannelContents" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: hrmp_channel_digests :: HrmpChannelDigests , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpChannelDigests" , () , [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 :: core :: borrow :: Borrow < types :: hrmp_channel_digests :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: hrmp_channel_digests :: Param0 > , types :: hrmp_channel_digests :: HrmpChannelDigests , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Hrmp" , "HrmpChannelDigests" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: 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 :: v7 :: SessionInfo ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod account_keys { use super :: runtime_types ; pub type AccountKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod session_executor_params { use super :: runtime_types ; pub type SessionExecutorParams = runtime_types :: polkadot_primitives :: v7 :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: assignment_keys_unsafe :: AssignmentKeysUnsafe , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaSessionInfo" , "AssignmentKeysUnsafe" , () , [180u8 , 187u8 , 151u8 , 97u8 , 28u8 , 143u8 , 44u8 , 107u8 , 127u8 , 16u8 , 82u8 , 208u8 , 210u8 , 99u8 , 211u8 , 54u8 , 252u8 , 164u8 , 138u8 , 142u8 , 124u8 , 117u8 , 217u8 , 184u8 , 223u8 , 65u8 , 45u8 , 143u8 , 220u8 , 212u8 , 254u8 , 173u8 ,]) } # [doc = " The earliest session for which previous session info is stored."] pub fn earliest_stored_session (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: earliest_stored_session :: EarliestStoredSession , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaSessionInfo" , "EarliestStoredSession" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: sessions :: Sessions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaSessionInfo" , "Sessions" , () , [234u8 , 87u8 , 239u8 , 243u8 , 224u8 , 177u8 , 208u8 , 208u8 , 80u8 , 111u8 , 190u8 , 108u8 , 189u8 , 81u8 , 68u8 , 30u8 , 108u8 , 83u8 , 43u8 , 150u8 , 87u8 , 156u8 , 68u8 , 231u8 , 151u8 , 67u8 , 26u8 , 223u8 , 218u8 , 137u8 , 229u8 , 228u8 ,]) } # [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 :: core :: borrow :: Borrow < types :: sessions :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: sessions :: Param0 > , types :: sessions :: Sessions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaSessionInfo" , "Sessions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [234u8 , 87u8 , 239u8 , 243u8 , 224u8 , 177u8 , 208u8 , 208u8 , 80u8 , 111u8 , 190u8 , 108u8 , 189u8 , 81u8 , 68u8 , 30u8 , 108u8 , 83u8 , 43u8 , 150u8 , 87u8 , 156u8 , 68u8 , 231u8 , 151u8 , 67u8 , 26u8 , 223u8 , 218u8 , 137u8 , 229u8 , 228u8 ,]) } # [doc = " The validator account keys of the validators actively participating in parachain consensus."] pub fn account_keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account_keys :: AccountKeys , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaSessionInfo" , "AccountKeys" , () , [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 :: core :: borrow :: Borrow < types :: account_keys :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_keys :: Param0 > , types :: account_keys :: AccountKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaSessionInfo" , "AccountKeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: session_executor_params :: SessionExecutorParams , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaSessionInfo" , "SessionExecutorParams" , () , [38u8 , 80u8 , 118u8 , 112u8 , 189u8 , 55u8 , 95u8 , 184u8 , 19u8 , 8u8 , 114u8 , 6u8 , 173u8 , 80u8 , 254u8 , 98u8 , 107u8 , 202u8 , 215u8 , 107u8 , 149u8 , 157u8 , 145u8 , 8u8 , 249u8 , 255u8 , 83u8 , 199u8 , 47u8 , 179u8 , 208u8 , 83u8 ,]) } # [doc = " Executor parameter set for a given session index"] pub fn session_executor_params (& self , _0 : impl :: core :: borrow :: Borrow < types :: session_executor_params :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: session_executor_params :: Param0 > , types :: session_executor_params :: SessionExecutorParams , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParaSessionInfo" , "SessionExecutorParams" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [38u8 , 80u8 , 118u8 , 112u8 , 189u8 , 55u8 , 95u8 , 184u8 , 19u8 , 8u8 , 114u8 , 6u8 , 173u8 , 80u8 , 254u8 , 98u8 , 107u8 , 202u8 , 215u8 , 107u8 , 149u8 , 157u8 , 145u8 , 8u8 , 249u8 , 255u8 , 83u8 , 199u8 , 47u8 , 179u8 , 208u8 , 83u8 ,]) } } } } 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ForceUnfreeze ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceUnfreeze { const PALLET : & 'static str = "ParasDisputes" ; const CALL : & 'static str = "force_unfreeze" ; } } pub struct TransactionApi ; impl TransactionApi { pub fn force_unfreeze (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceUnfreeze > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for DisputeInitiated { const PALLET : & 'static str = "ParasDisputes" ; const EVENT : & 'static str = "DisputeInitiated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for DisputeConcluded { const PALLET : & 'static str = "ParasDisputes" ; const EVENT : & 'static str = "DisputeConcluded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: v7 :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex > ; 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_pruned_session :: LastPrunedSession , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "LastPrunedSession" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: disputes :: Disputes , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "Disputes" , () , [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 :: core :: borrow :: Borrow < types :: disputes :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: disputes :: Param0 > , types :: disputes :: Disputes , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "Disputes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: disputes :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: disputes :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: disputes :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: disputes :: Param1 > ,) , types :: disputes :: Disputes , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "Disputes" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: backers_on_disputes :: BackersOnDisputes , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "BackersOnDisputes" , () , [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 :: core :: borrow :: Borrow < types :: backers_on_disputes :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: backers_on_disputes :: Param0 > , types :: backers_on_disputes :: BackersOnDisputes , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "BackersOnDisputes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: backers_on_disputes :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: backers_on_disputes :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: backers_on_disputes :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: backers_on_disputes :: Param1 > ,) , types :: backers_on_disputes :: BackersOnDisputes , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "BackersOnDisputes" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: included :: Included , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "Included" , () , [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 :: core :: borrow :: Borrow < types :: included :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: included :: Param0 > , types :: included :: Included , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "Included" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: included :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: included :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: included :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: included :: Param1 > ,) , types :: included :: Included , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "Included" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: frozen :: Frozen , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasDisputes" , "Frozen" , () , [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ReportDisputeLostUnsigned { pub dispute_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_dispute_lost_unsigned :: DisputeProof > , 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 :: v7 :: slashing :: DisputeProof ; pub type KeyOwnerProof = runtime_types :: sp_session :: MembershipProof ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportDisputeLostUnsigned { const PALLET : & 'static str = "ParasSlashing" ; const CALL : & 'static str = "report_dispute_lost_unsigned" ; } } pub struct TransactionApi ; impl TransactionApi { 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportDisputeLostUnsigned > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ParasSlashing" , "report_dispute_lost_unsigned" , types :: ReportDisputeLostUnsigned { dispute_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (dispute_proof) , key_owner_proof , } , [18u8 , 73u8 , 202u8 , 17u8 , 170u8 , 157u8 , 84u8 , 74u8 , 185u8 , 45u8 , 77u8 , 154u8 , 79u8 , 108u8 , 36u8 , 247u8 , 125u8 , 6u8 , 170u8 , 179u8 , 64u8 , 149u8 , 201u8 , 138u8 , 74u8 , 148u8 , 37u8 , 120u8 , 235u8 , 220u8 , 214u8 , 95u8 ,]) } } } 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 :: v7 :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: unapplied_slashes :: UnappliedSlashes , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasSlashing" , "UnappliedSlashes" , () , [139u8 , 156u8 , 52u8 , 31u8 , 151u8 , 223u8 , 139u8 , 230u8 , 222u8 , 217u8 , 12u8 , 49u8 , 83u8 , 192u8 , 23u8 , 89u8 , 204u8 , 185u8 , 212u8 , 185u8 , 176u8 , 49u8 , 91u8 , 206u8 , 184u8 , 98u8 , 65u8 , 151u8 , 246u8 , 128u8 , 149u8 , 186u8 ,]) } # [doc = " Validators pending dispute slashes."] pub fn unapplied_slashes_iter1 (& self , _0 : impl :: core :: borrow :: Borrow < types :: unapplied_slashes :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: unapplied_slashes :: Param0 > , types :: unapplied_slashes :: UnappliedSlashes , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasSlashing" , "UnappliedSlashes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [139u8 , 156u8 , 52u8 , 31u8 , 151u8 , 223u8 , 139u8 , 230u8 , 222u8 , 217u8 , 12u8 , 49u8 , 83u8 , 192u8 , 23u8 , 89u8 , 204u8 , 185u8 , 212u8 , 185u8 , 176u8 , 49u8 , 91u8 , 206u8 , 184u8 , 98u8 , 65u8 , 151u8 , 246u8 , 128u8 , 149u8 , 186u8 ,]) } # [doc = " Validators pending dispute slashes."] pub fn unapplied_slashes (& self , _0 : impl :: core :: borrow :: Borrow < types :: unapplied_slashes :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: unapplied_slashes :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: unapplied_slashes :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: unapplied_slashes :: Param1 > ,) , types :: unapplied_slashes :: UnappliedSlashes , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasSlashing" , "UnappliedSlashes" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) ,) , [139u8 , 156u8 , 52u8 , 31u8 , 151u8 , 223u8 , 139u8 , 230u8 , 222u8 , 217u8 , 12u8 , 49u8 , 83u8 , 192u8 , 23u8 , 89u8 , 204u8 , 185u8 , 212u8 , 185u8 , 176u8 , 49u8 , 91u8 , 206u8 , 184u8 , 98u8 , 65u8 , 151u8 , 246u8 , 128u8 , 149u8 , 186u8 ,]) } # [doc = " `ValidatorSetCount` per session."] pub fn validator_set_counts_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_set_counts :: ValidatorSetCounts , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasSlashing" , "ValidatorSetCounts" , () , [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 :: core :: borrow :: Borrow < types :: validator_set_counts :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_set_counts :: Param0 > , types :: validator_set_counts :: ValidatorSetCounts , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("ParasSlashing" , "ValidatorSetCounts" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 on_demand { 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Create a single on demand core order."] # [doc = "Will use the spot price for the current block and will reap the account if needed."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: The sender of the call, funds will be withdrawn from this account."] # [doc = "- `max_amount`: The maximum balance to withdraw from the origin to place an order."] # [doc = "- `para_id`: A `ParaId` the origin wants to provide blockspace for."] # [doc = ""] # [doc = "Errors:"] # [doc = "- `InsufficientBalance`: from the Currency implementation"] # [doc = "- `QueueFull`"] # [doc = "- `SpotPriceHigherThanMaxAmount`"] # [doc = ""] # [doc = "Events:"] # [doc = "- `OnDemandOrderPlaced`"] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for PlaceOrderAllowDeath { const PALLET : & 'static str = "OnDemand" ; const CALL : & 'static str = "place_order_allow_death" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Same as the [`place_order_allow_death`](Self::place_order_allow_death) call , but with a"] # [doc = "check that placing the order will not reap the account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: The sender of the call, funds will be withdrawn from this account."] # [doc = "- `max_amount`: The maximum balance to withdraw from the origin to place an order."] # [doc = "- `para_id`: A `ParaId` the origin wants to provide blockspace for."] # [doc = ""] # [doc = "Errors:"] # [doc = "- `InsufficientBalance`: from the Currency implementation"] # [doc = "- `QueueFull`"] # [doc = "- `SpotPriceHigherThanMaxAmount`"] # [doc = ""] # [doc = "Events:"] # [doc = "- `OnDemandOrderPlaced`"] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for PlaceOrderKeepAlive { const PALLET : & 'static str = "OnDemand" ; const CALL : & 'static str = "place_order_keep_alive" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Create a single on demand core order."] # [doc = "Will use the spot price for the current block and will reap the account if needed."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: The sender of the call, funds will be withdrawn from this account."] # [doc = "- `max_amount`: The maximum balance to withdraw from the origin to place an order."] # [doc = "- `para_id`: A `ParaId` the origin wants to provide blockspace for."] # [doc = ""] # [doc = "Errors:"] # [doc = "- `InsufficientBalance`: from the Currency implementation"] # [doc = "- `QueueFull`"] # [doc = "- `SpotPriceHigherThanMaxAmount`"] # [doc = ""] # [doc = "Events:"] # [doc = "- `OnDemandOrderPlaced`"] pub fn place_order_allow_death (& self , max_amount : types :: place_order_allow_death :: MaxAmount , para_id : types :: place_order_allow_death :: ParaId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PlaceOrderAllowDeath > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("OnDemand" , "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 = "Same as the [`place_order_allow_death`](Self::place_order_allow_death) call , but with a"] # [doc = "check that placing the order will not reap the account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: The sender of the call, funds will be withdrawn from this account."] # [doc = "- `max_amount`: The maximum balance to withdraw from the origin to place an order."] # [doc = "- `para_id`: A `ParaId` the origin wants to provide blockspace for."] # [doc = ""] # [doc = "Errors:"] # [doc = "- `InsufficientBalance`: from the Currency implementation"] # [doc = "- `QueueFull`"] # [doc = "- `SpotPriceHigherThanMaxAmount`"] # [doc = ""] # [doc = "Events:"] # [doc = "- `OnDemandOrderPlaced`"] pub fn place_order_keep_alive (& self , max_amount : types :: place_order_keep_alive :: MaxAmount , para_id : types :: place_order_keep_alive :: ParaId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PlaceOrderKeepAlive > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("OnDemand" , "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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An order was placed at some spot price amount by orderer ordered_by"] pub struct OnDemandOrderPlaced { pub para_id : on_demand_order_placed :: ParaId , pub spot_price : on_demand_order_placed :: SpotPrice , pub ordered_by : on_demand_order_placed :: OrderedBy , } 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 ; pub type OrderedBy = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for OnDemandOrderPlaced { const PALLET : & 'static str = "OnDemand" ; const EVENT : & 'static str = "OnDemandOrderPlaced" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The value of the spot price has likely changed"] pub struct SpotPriceSet { pub spot_price : spot_price_set :: SpotPrice , } pub mod spot_price_set { use super :: runtime_types ; pub type SpotPrice = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SpotPriceSet { const PALLET : & 'static str = "OnDemand" ; const EVENT : & 'static str = "SpotPriceSet" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod para_id_affinity { use super :: runtime_types ; pub type ParaIdAffinity = runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: types :: CoreAffinityCount ; pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } pub mod queue_status { use super :: runtime_types ; pub type QueueStatus = runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: types :: QueueStatusType ; } pub mod free_entries { use super :: runtime_types ; pub type FreeEntries = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: types :: EnqueuedOrder > ; } pub mod affinity_entries { use super :: runtime_types ; pub type AffinityEntries = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: types :: EnqueuedOrder > ; pub type Param0 = runtime_types :: polkadot_primitives :: v7 :: CoreIndex ; } pub mod revenue { use super :: runtime_types ; pub type Revenue = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u128 > ; } } pub struct StorageApi ; impl StorageApi { # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: para_id_affinity :: ParaIdAffinity , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("OnDemand" , "ParaIdAffinity" , () , [84u8 , 171u8 , 103u8 , 180u8 , 176u8 , 210u8 , 232u8 , 184u8 , 221u8 , 129u8 , 174u8 , 253u8 , 250u8 , 168u8 , 2u8 , 250u8 , 105u8 , 143u8 , 120u8 , 204u8 , 30u8 , 242u8 , 151u8 , 44u8 , 48u8 , 150u8 , 81u8 , 194u8 , 191u8 , 91u8 , 29u8 , 46u8 ,]) } # [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 :: core :: borrow :: Borrow < types :: para_id_affinity :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: para_id_affinity :: Param0 > , types :: para_id_affinity :: ParaIdAffinity , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("OnDemand" , "ParaIdAffinity" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [84u8 , 171u8 , 103u8 , 180u8 , 176u8 , 210u8 , 232u8 , 184u8 , 221u8 , 129u8 , 174u8 , 253u8 , 250u8 , 168u8 , 2u8 , 250u8 , 105u8 , 143u8 , 120u8 , 204u8 , 30u8 , 242u8 , 151u8 , 44u8 , 48u8 , 150u8 , 81u8 , 194u8 , 191u8 , 91u8 , 29u8 , 46u8 ,]) } # [doc = " Overall status of queue (both free + affinity entries)"] pub fn queue_status (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: queue_status :: QueueStatus , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("OnDemand" , "QueueStatus" , () , [44u8 , 67u8 , 88u8 , 179u8 , 0u8 , 178u8 , 233u8 , 101u8 , 156u8 , 215u8 , 99u8 , 242u8 , 236u8 , 2u8 , 153u8 , 32u8 , 214u8 , 247u8 , 193u8 , 234u8 , 194u8 , 30u8 , 182u8 , 151u8 , 18u8 , 121u8 , 208u8 , 146u8 , 231u8 , 6u8 , 162u8 , 20u8 ,]) } # [doc = " Priority queue for all orders which don't yet (or not any more) have any core affinity."] pub fn free_entries (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: free_entries :: FreeEntries , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("OnDemand" , "FreeEntries" , () , [229u8 , 190u8 , 235u8 , 140u8 , 35u8 , 221u8 , 62u8 , 119u8 , 131u8 , 211u8 , 177u8 , 218u8 , 84u8 , 132u8 , 135u8 , 118u8 , 138u8 , 227u8 , 186u8 , 52u8 , 102u8 , 190u8 , 155u8 , 123u8 , 232u8 , 136u8 , 97u8 , 203u8 , 55u8 , 113u8 , 194u8 , 7u8 ,]) } # [doc = " Queue entries that are currently bound to a particular core due to core affinity."] pub fn affinity_entries_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: affinity_entries :: AffinityEntries , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("OnDemand" , "AffinityEntries" , () , [130u8 , 236u8 , 62u8 , 133u8 , 71u8 , 121u8 , 51u8 , 37u8 , 27u8 , 240u8 , 134u8 , 28u8 , 221u8 , 211u8 , 28u8 , 182u8 , 222u8 , 220u8 , 249u8 , 227u8 , 2u8 , 124u8 , 71u8 , 252u8 , 208u8 , 36u8 , 219u8 , 147u8 , 235u8 , 254u8 , 36u8 , 90u8 ,]) } # [doc = " Queue entries that are currently bound to a particular core due to core affinity."] pub fn affinity_entries (& self , _0 : impl :: core :: borrow :: Borrow < types :: affinity_entries :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: affinity_entries :: Param0 > , types :: affinity_entries :: AffinityEntries , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("OnDemand" , "AffinityEntries" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [130u8 , 236u8 , 62u8 , 133u8 , 71u8 , 121u8 , 51u8 , 37u8 , 27u8 , 240u8 , 134u8 , 28u8 , 221u8 , 211u8 , 28u8 , 182u8 , 222u8 , 220u8 , 249u8 , 227u8 , 2u8 , 124u8 , 71u8 , 252u8 , 208u8 , 36u8 , 219u8 , 147u8 , 235u8 , 254u8 , 36u8 , 90u8 ,]) } # [doc = " Keeps track of accumulated revenue from on demand order sales."] pub fn revenue (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: revenue :: Revenue , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("OnDemand" , "Revenue" , () , [42u8 , 127u8 , 42u8 , 59u8 , 80u8 , 19u8 , 151u8 , 234u8 , 157u8 , 17u8 , 183u8 , 129u8 , 121u8 , 39u8 , 74u8 , 43u8 , 121u8 , 14u8 , 82u8 , 11u8 , 14u8 , 182u8 , 125u8 , 52u8 , 37u8 , 132u8 , 159u8 , 93u8 , 106u8 , 130u8 , 225u8 , 64u8 ,]) } } } 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("OnDemand" , "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 ,]) } # [doc = " The maximum number of blocks some historical revenue"] # [doc = " information stored for."] pub fn max_historical_revenue (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("OnDemand" , "MaxHistoricalRevenue" , [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 = " Identifier for the internal revenue balance."] pub fn pallet_id (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_support :: PalletId > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("OnDemand" , "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 coretime_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_coretime :: pallet :: Error ; pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod core_schedules { use super :: runtime_types ; pub type CoreSchedules = runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: Schedule < :: core :: primitive :: u32 > ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = runtime_types :: polkadot_primitives :: v7 :: CoreIndex ; } pub mod core_descriptors { use super :: runtime_types ; pub type CoreDescriptors = runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: CoreDescriptor < :: core :: primitive :: u32 > ; pub type Param0 = runtime_types :: polkadot_primitives :: v7 :: CoreIndex ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Scheduled assignment sets."] # [doc = ""] # [doc = " Assignments as of the given block number. They will go into state once the block number is"] # [doc = " reached (and replace whatever was in there before)."] pub fn core_schedules_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: core_schedules :: CoreSchedules , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("CoretimeAssignmentProvider" , "CoreSchedules" , () , [34u8 , 85u8 , 91u8 , 158u8 , 28u8 , 200u8 , 76u8 , 188u8 , 253u8 , 91u8 , 153u8 , 42u8 , 42u8 , 227u8 , 119u8 , 181u8 , 247u8 , 44u8 , 29u8 , 24u8 , 128u8 , 49u8 , 57u8 , 248u8 , 24u8 , 145u8 , 34u8 , 74u8 , 21u8 , 225u8 , 159u8 , 232u8 ,]) } # [doc = " Scheduled assignment sets."] # [doc = ""] # [doc = " Assignments as of the given block number. They will go into state once the block number is"] # [doc = " reached (and replace whatever was in there before)."] pub fn core_schedules_iter1 (& self , _0 : impl :: core :: borrow :: Borrow < types :: core_schedules :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: core_schedules :: CoreSchedules , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("CoretimeAssignmentProvider" , "CoreSchedules" , () , [34u8 , 85u8 , 91u8 , 158u8 , 28u8 , 200u8 , 76u8 , 188u8 , 253u8 , 91u8 , 153u8 , 42u8 , 42u8 , 227u8 , 119u8 , 181u8 , 247u8 , 44u8 , 29u8 , 24u8 , 128u8 , 49u8 , 57u8 , 248u8 , 24u8 , 145u8 , 34u8 , 74u8 , 21u8 , 225u8 , 159u8 , 232u8 ,]) } # [doc = " Scheduled assignment sets."] # [doc = ""] # [doc = " Assignments as of the given block number. They will go into state once the block number is"] # [doc = " reached (and replace whatever was in there before)."] pub fn core_schedules (& self , _0 : impl :: core :: borrow :: Borrow < types :: core_schedules :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: core_schedules :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (() , () ,) , types :: core_schedules :: CoreSchedules , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("CoretimeAssignmentProvider" , "CoreSchedules" , (() , () ,) , [34u8 , 85u8 , 91u8 , 158u8 , 28u8 , 200u8 , 76u8 , 188u8 , 253u8 , 91u8 , 153u8 , 42u8 , 42u8 , 227u8 , 119u8 , 181u8 , 247u8 , 44u8 , 29u8 , 24u8 , 128u8 , 49u8 , 57u8 , 248u8 , 24u8 , 145u8 , 34u8 , 74u8 , 21u8 , 225u8 , 159u8 , 232u8 ,]) } # [doc = " Assignments which are currently active."] # [doc = ""] # [doc = " They will be picked from `PendingAssignments` once we reach the scheduled block number in"] # [doc = " `PendingAssignments`."] pub fn core_descriptors_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: core_descriptors :: CoreDescriptors , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("CoretimeAssignmentProvider" , "CoreDescriptors" , () , [1u8 , 90u8 , 208u8 , 119u8 , 150u8 , 241u8 , 133u8 , 74u8 , 22u8 , 166u8 , 13u8 , 7u8 , 73u8 , 136u8 , 105u8 , 61u8 , 251u8 , 245u8 , 164u8 , 7u8 , 45u8 , 68u8 , 190u8 , 224u8 , 34u8 , 22u8 , 30u8 , 250u8 , 171u8 , 152u8 , 238u8 , 120u8 ,]) } # [doc = " Assignments which are currently active."] # [doc = ""] # [doc = " They will be picked from `PendingAssignments` once we reach the scheduled block number in"] # [doc = " `PendingAssignments`."] pub fn core_descriptors (& self , _0 : impl :: core :: borrow :: Borrow < types :: core_descriptors :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: core_descriptors :: CoreDescriptors , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("CoretimeAssignmentProvider" , "CoreDescriptors" , () , [1u8 , 90u8 , 208u8 , 119u8 , 150u8 , 241u8 , 133u8 , 74u8 , 22u8 , 166u8 , 13u8 , 7u8 , 73u8 , 136u8 , 105u8 , 61u8 , 251u8 , 245u8 , 164u8 , 7u8 , 45u8 , 68u8 , 190u8 , 224u8 , 34u8 , 22u8 , 30u8 , 250u8 , 171u8 , 152u8 , 238u8 , 120u8 ,]) } } } } 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register head data and validation code for a reserved Para Id."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin."] # [doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] # [doc = "- `genesis_head`: The genesis head data of the parachain/thread."] # [doc = "- `validation_code`: The initial validation code of the parachain/thread."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The account with the originating signature must reserve a deposit."] # [doc = ""] # [doc = "The deposit is required to cover the costs associated with storing the genesis head"] # [doc = "data and the validation code."] # [doc = "This accounts for the potential to store validation code of a size up to the"] # [doc = "`max_code_size`, as defined in the configuration pallet"] # [doc = ""] # [doc = "Anything already reserved previously for this para ID is accounted for."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Registered` event is emitted in case of success."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for Register { const PALLET : & 'static str = "Registrar" ; const CALL : & 'static str = "register" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force the registration of a Para Id on the relay chain."] # [doc = ""] # [doc = "This function must be called by a Root origin."] # [doc = ""] # [doc = "The deposit taken can be specified for this registration. Any `ParaId`"] # [doc = "can be registered, including sub-1000 IDs which are System Parachains."] 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceRegister { const PALLET : & 'static str = "Registrar" ; const CALL : & 'static str = "force_register" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Deregister a Para Id, freeing all data and returning any deposit."] # [doc = ""] # [doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be an"] # [doc = "on-demand parachain."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for Deregister { const PALLET : & 'static str = "Registrar" ; const CALL : & 'static str = "deregister" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Swap a lease holding parachain with another parachain, either on-demand or lease"] # [doc = "holding."] # [doc = ""] # [doc = "The origin must be Root, the `para` owner, or the `para` itself."] # [doc = ""] # [doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] # [doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] # [doc = ""] # [doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] # [doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] # [doc = "scheduling info (i.e. whether they're an on-demand parachain or lease holding"] # [doc = "parachain), auction information and the auction deposit are switched."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for Swap { const PALLET : & 'static str = "Registrar" ; const CALL : & 'static str = "swap" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a manager lock from a para. This will allow the manager of a"] # [doc = "previously locked para to deregister or swap a para without using governance."] # [doc = ""] # [doc = "Can only be called by the Root origin or the parachain."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveLock { const PALLET : & 'static str = "Registrar" ; const CALL : & 'static str = "remove_lock" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Reserve a Para Id on the relay chain."] # [doc = ""] # [doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] # [doc = "The origin account is able to register head data and validation code using `register` to"] # [doc = "create an on-demand parachain. Using the Slots pallet, an on-demand parachain can then"] # [doc = "be upgraded to a lease holding parachain."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new"] # [doc = " para ID."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for"] # [doc = "use."] pub struct Reserve ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Reserve { const PALLET : & 'static str = "Registrar" ; const CALL : & 'static str = "reserve" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Add a manager lock from a para. This will prevent the manager of a"] # [doc = "para to deregister or swap a para."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddLock { const PALLET : & 'static str = "Registrar" ; const CALL : & 'static str = "add_lock" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a parachain upgrade."] # [doc = ""] # [doc = "This will kick off a check of `new_code` by all validators. After the majority of the"] # [doc = "validators have reported on the validity of the code, the code will either be enacted"] # [doc = "or the upgrade will be rejected. If the code will be enacted, the current code of the"] # [doc = "parachain will be overwritten directly. This means that any PoV will be checked by this"] # [doc = "new code. The parachain itself will not be informed explicitly that the validation code"] # [doc = "has changed."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleCodeUpgrade { const PALLET : & 'static str = "Registrar" ; const CALL : & 'static str = "schedule_code_upgrade" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the parachain's current head."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCurrentHead { const PALLET : & 'static str = "Registrar" ; const CALL : & 'static str = "set_current_head" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Register head data and validation code for a reserved Para Id."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin."] # [doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] # [doc = "- `genesis_head`: The genesis head data of the parachain/thread."] # [doc = "- `validation_code`: The initial validation code of the parachain/thread."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The account with the originating signature must reserve a deposit."] # [doc = ""] # [doc = "The deposit is required to cover the costs associated with storing the genesis head"] # [doc = "data and the validation code."] # [doc = "This accounts for the potential to store validation code of a size up to the"] # [doc = "`max_code_size`, as defined in the configuration pallet"] # [doc = ""] # [doc = "Anything already reserved previously for this para ID is accounted for."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Registered` event is emitted in case of success."] pub fn register (& self , id : types :: register :: Id , genesis_head : types :: register :: GenesisHead , validation_code : types :: register :: ValidationCode ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Register > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Force the registration of a Para Id on the relay chain."] # [doc = ""] # [doc = "This function must be called by a Root origin."] # [doc = ""] # [doc = "The deposit taken can be specified for this registration. Any `ParaId`"] # [doc = "can be registered, including sub-1000 IDs which are System Parachains."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceRegister > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Deregister a Para Id, freeing all data and returning any deposit."] # [doc = ""] # [doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be an"] # [doc = "on-demand parachain."] pub fn deregister (& self , id : types :: deregister :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Deregister > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Swap a lease holding parachain with another parachain, either on-demand or lease"] # [doc = "holding."] # [doc = ""] # [doc = "The origin must be Root, the `para` owner, or the `para` itself."] # [doc = ""] # [doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] # [doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] # [doc = ""] # [doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] # [doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] # [doc = "scheduling info (i.e. whether they're an on-demand parachain or lease holding"] # [doc = "parachain), auction information and the auction deposit are switched."] pub fn swap (& self , id : types :: swap :: Id , other : types :: swap :: Other ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Swap > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove a manager lock from a para. This will allow the manager of a"] # [doc = "previously locked para to deregister or swap a para without using governance."] # [doc = ""] # [doc = "Can only be called by the Root origin or the parachain."] pub fn remove_lock (& self , para : types :: remove_lock :: Para ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveLock > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Reserve a Para Id on the relay chain."] # [doc = ""] # [doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] # [doc = "The origin account is able to register head data and validation code using `register` to"] # [doc = "create an on-demand parachain. Using the Slots pallet, an on-demand parachain can then"] # [doc = "be upgraded to a lease holding parachain."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new"] # [doc = " para ID."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for"] # [doc = "use."] pub fn reserve (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Reserve > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Add a manager lock from a para. This will prevent the manager of a"] # [doc = "para to deregister or swap a para."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] pub fn add_lock (& self , para : types :: add_lock :: Para ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddLock > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Schedule a parachain upgrade."] # [doc = ""] # [doc = "This will kick off a check of `new_code` by all validators. After the majority of the"] # [doc = "validators have reported on the validity of the code, the code will either be enacted"] # [doc = "or the upgrade will be rejected. If the code will be enacted, the current code of the"] # [doc = "parachain will be overwritten directly. This means that any PoV will be checked by this"] # [doc = "new code. The parachain itself will not be informed explicitly that the validation code"] # [doc = "has changed."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] pub fn schedule_code_upgrade (& self , para : types :: schedule_code_upgrade :: Para , new_code : types :: schedule_code_upgrade :: NewCode ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleCodeUpgrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Set the parachain's current head."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] pub fn set_current_head (& self , para : types :: set_current_head :: Para , new_head : types :: set_current_head :: NewHead ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCurrentHead > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Registered { const PALLET : & 'static str = "Registrar" ; const EVENT : & 'static str = "Registered" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Deregistered { const PALLET : & 'static str = "Registrar" ; const EVENT : & 'static str = "Deregistered" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Reserved { const PALLET : & 'static str = "Registrar" ; const EVENT : & 'static str = "Reserved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_swap :: PendingSwap , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Registrar" , "PendingSwap" , () , [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 :: core :: borrow :: Borrow < types :: pending_swap :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_swap :: Param0 > , types :: pending_swap :: PendingSwap , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Registrar" , "PendingSwap" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: paras :: Paras , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Registrar" , "Paras" , () , [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 :: core :: borrow :: Borrow < types :: paras :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: paras :: Param0 > , types :: paras :: Paras , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Registrar" , "Paras" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_free_para_id :: NextFreeParaId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Registrar" , "NextFreeParaId" , () , [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Just a connect into the `lease_out` call, in case Root wants to force some lease to"] # [doc = "happen independently of any other on-chain mechanism to use it."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; pub type PeriodBegin = :: core :: primitive :: u32 ; pub type PeriodCount = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceLease { const PALLET : & 'static str = "Slots" ; const CALL : & 'static str = "force_lease" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Clear all leases for a Para Id, refunding any deposits back to the original owners."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClearAllLeases { const PALLET : & 'static str = "Slots" ; const CALL : & 'static str = "clear_all_leases" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Try to onboard a parachain that has a lease for the current lease period."] # [doc = ""] # [doc = "This function can be useful if there was some state issue with a para that should"] # [doc = "have onboarded, but was unable to. As long as they have a lease period, we can"] # [doc = "let them onboard from here."] # [doc = ""] # [doc = "Origin must be signed, but can be called by anyone."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for TriggerOnboard { const PALLET : & 'static str = "Slots" ; const CALL : & 'static str = "trigger_onboard" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Just a connect into the `lease_out` call, in case Root wants to force some lease to"] # [doc = "happen independently of any other on-chain mechanism to use it."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceLease > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Clear all leases for a Para Id, refunding any deposits back to the original owners."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] pub fn clear_all_leases (& self , para : types :: clear_all_leases :: Para ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClearAllLeases > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Try to onboard a parachain that has a lease for the current lease period."] # [doc = ""] # [doc = "This function can be useful if there was some state issue with a para that should"] # [doc = "have onboarded, but was unable to. As long as they have a lease period, we can"] # [doc = "let them onboard from here."] # [doc = ""] # [doc = "Origin must be signed, but can be called by anyone."] pub fn trigger_onboard (& self , para : types :: trigger_onboard :: Para ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TriggerOnboard > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for NewLeasePeriod { const PALLET : & 'static str = "Slots" ; const EVENT : & 'static str = "NewLeasePeriod" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < (:: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: leases :: Leases , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Slots" , "Leases" , () , [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 :: core :: borrow :: Borrow < types :: leases :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: leases :: Param0 > , types :: leases :: Leases , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Slots" , "Leases" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Create a new auction."] # [doc = ""] # [doc = "This can only happen when there isn't already an auction in progress and may only be"] # [doc = "called by the root origin. Accepts the `duration` of this auction and the"] # [doc = "`lease_period_index` of the initial lease period of the four that are to be auctioned."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for NewAuction { const PALLET : & 'static str = "Auctions" ; const CALL : & 'static str = "new_auction" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Make a new bid from an account (including a parachain account) for deploying a new"] # [doc = "parachain."] # [doc = ""] # [doc = "Multiple simultaneous bids from the same bidder are allowed only as long as all active"] # [doc = "bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted."] # [doc = ""] # [doc = "- `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and"] # [doc = "funded by) the same account."] # [doc = "- `auction_index` is the index of the auction to bid on. Should just be the present"] # [doc = "value of `AuctionCounter`."] # [doc = "- `first_slot` is the first lease period index of the range to bid on. This is the"] # [doc = "absolute lease period index value, not an auction-specific offset."] # [doc = "- `last_slot` is the last lease period index of the range to bid on. This is the"] # [doc = "absolute lease period index value, not an auction-specific offset."] # [doc = "- `amount` is the amount to bid to be held as deposit for the parachain should the"] # [doc = "bid win. This amount is held throughout the range."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for Bid { const PALLET : & 'static str = "Auctions" ; const CALL : & 'static str = "bid" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel an in-progress auction."] # [doc = ""] # [doc = "Can only be called by Root origin."] pub struct CancelAuction ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelAuction { const PALLET : & 'static str = "Auctions" ; const CALL : & 'static str = "cancel_auction" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Create a new auction."] # [doc = ""] # [doc = "This can only happen when there isn't already an auction in progress and may only be"] # [doc = "called by the root origin. Accepts the `duration` of this auction and the"] # [doc = "`lease_period_index` of the initial lease period of the four that are to be auctioned."] pub fn new_auction (& self , duration : types :: new_auction :: Duration , lease_period_index : types :: new_auction :: LeasePeriodIndex ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: NewAuction > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Make a new bid from an account (including a parachain account) for deploying a new"] # [doc = "parachain."] # [doc = ""] # [doc = "Multiple simultaneous bids from the same bidder are allowed only as long as all active"] # [doc = "bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted."] # [doc = ""] # [doc = "- `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and"] # [doc = "funded by) the same account."] # [doc = "- `auction_index` is the index of the auction to bid on. Should just be the present"] # [doc = "value of `AuctionCounter`."] # [doc = "- `first_slot` is the first lease period index of the range to bid on. This is the"] # [doc = "absolute lease period index value, not an auction-specific offset."] # [doc = "- `last_slot` is the last lease period index of the range to bid on. This is the"] # [doc = "absolute lease period index value, not an auction-specific offset."] # [doc = "- `amount` is the amount to bid to be held as deposit for the parachain should the"] # [doc = "bid win. This amount is held throughout the range."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Bid > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Cancel an in-progress auction."] # [doc = ""] # [doc = "Can only be called by Root origin."] pub fn cancel_auction (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelAuction > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for AuctionStarted { const PALLET : & 'static str = "Auctions" ; const EVENT : & 'static str = "AuctionStarted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for AuctionClosed { const PALLET : & 'static str = "Auctions" ; const EVENT : & 'static str = "AuctionClosed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type ExtraReserved = :: core :: primitive :: u128 ; pub type TotalAmount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Reserved { const PALLET : & 'static str = "Auctions" ; const EVENT : & 'static str = "Reserved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Unreserved { const PALLET : & 'static str = "Auctions" ; const EVENT : & 'static str = "Unreserved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ReserveConfiscated { const PALLET : & 'static str = "Auctions" ; const EVENT : & 'static str = "ReserveConfiscated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for BidAccepted { const PALLET : & 'static str = "Auctions" ; const EVENT : & 'static str = "BidAccepted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: auction_counter :: AuctionCounter , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Auctions" , "AuctionCounter" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: auction_info :: AuctionInfo , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Auctions" , "AuctionInfo" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: reserved_amounts :: ReservedAmounts , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Auctions" , "ReservedAmounts" , () , [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 :: core :: borrow :: Borrow < types :: reserved_amounts :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reserved_amounts :: Param0 > , types :: reserved_amounts :: ReservedAmounts , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Auctions" , "ReservedAmounts" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: reserved_amounts :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: reserved_amounts :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reserved_amounts :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reserved_amounts :: Param1 > ,) , types :: reserved_amounts :: ReservedAmounts , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Auctions" , "ReservedAmounts" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: winning :: Winning , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Auctions" , "Winning" , () , [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 :: core :: borrow :: Borrow < types :: winning :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: winning :: Param0 > , types :: winning :: Winning , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Auctions" , "Winning" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Create a new crowdloaning campaign for a parachain slot with the given lease period"] # [doc = "range."] # [doc = ""] # [doc = "This applies a lock to your parachain configuration, ensuring that it cannot be changed"] # [doc = "by the parachain manager."] 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 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 < runtime_types :: sp_runtime :: MultiSigner > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Create { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "create" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contribute to a crowd sale. This will transfer some balance over to fund a parachain"] # [doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] pub struct Contribute { # [codec (compact)] pub index : contribute :: Index , # [codec (compact)] pub value : contribute :: Value , pub signature : contribute :: Signature , } pub mod contribute { 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 < runtime_types :: sp_runtime :: MultiSignature > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Contribute { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "contribute" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Withdraw full balance of a specific contributor."] # [doc = ""] # [doc = "Origin must be signed, but can come from anyone."] # [doc = ""] # [doc = "The fund must be either in, or ready for, retirement. For a fund to be *in* retirement,"] # [doc = "then the retirement flag must be set. For a fund to be ready for retirement, then:"] # [doc = "- it must not already be in retirement;"] # [doc = "- the amount of raised funds must be bigger than the _free_ balance of the account;"] # [doc = "- and either:"] # [doc = " - the block number must be at least `end`; or"] # [doc = " - the current lease period must be greater than the fund's `last_period`."] # [doc = ""] # [doc = "In this case, the fund's retirement flag is set and its `end` is reset to the current"] # [doc = "block number."] # [doc = ""] # [doc = "- `who`: The account whose contribution should be withdrawn."] # [doc = "- `index`: The parachain to whose crowdloan the contribution was made."] pub struct Withdraw { pub who : withdraw :: Who , # [codec (compact)] pub index : withdraw :: Index , } pub mod withdraw { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Index = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Withdraw { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "withdraw" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Automatically refund contributors of an ended crowdloan."] # [doc = "Due to weight restrictions, this function may need to be called multiple"] # [doc = "times to fully refund all users. We will refund `RemoveKeysLimit` users at a time."] # [doc = ""] # [doc = "Origin must be signed, but can come from anyone."] pub struct Refund { # [codec (compact)] pub index : refund :: Index , } pub mod refund { use super :: runtime_types ; pub type Index = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Refund { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "refund" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a fund after the retirement period has ended and all funds have been returned."] pub struct Dissolve { # [codec (compact)] pub index : dissolve :: Index , } pub mod dissolve { use super :: runtime_types ; pub type Index = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Dissolve { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "dissolve" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Edit the configuration for an in-progress crowdloan."] # [doc = ""] # [doc = "Can only be called by Root origin."] 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 , } pub mod edit { 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 < runtime_types :: sp_runtime :: MultiSigner > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Edit { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "edit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Add an optional memo to an existing crowdloan contribution."] # [doc = ""] # [doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] pub struct AddMemo { pub index : add_memo :: Index , pub memo : add_memo :: Memo , } pub mod add_memo { use super :: runtime_types ; pub type Index = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; pub type Memo = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddMemo { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "add_memo" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Poke the fund into `NewRaise`"] # [doc = ""] # [doc = "Origin must be Signed, and the fund has non-zero raise."] pub struct Poke { pub index : poke :: Index , } pub mod poke { use super :: runtime_types ; pub type Index = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Poke { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "poke" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of"] # [doc = "a user over to fund a parachain slot. It will be withdrawable when the crowdloan has"] # [doc = "ended and the funds are unused."] pub struct ContributeAll { # [codec (compact)] pub index : contribute_all :: Index , pub signature : contribute_all :: Signature , } pub mod contribute_all { use super :: runtime_types ; pub type Index = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; pub type Signature = :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ContributeAll { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "contribute_all" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Create a new crowdloaning campaign for a parachain slot with the given lease period"] # [doc = "range."] # [doc = ""] # [doc = "This applies a lock to your parachain configuration, ensuring that it cannot be changed"] # [doc = "by the parachain manager."] 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 ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Create > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "create" , types :: Create { index , cap , first_period , last_period , end , verifier , } , [93u8 , 62u8 , 50u8 , 153u8 , 231u8 , 103u8 , 233u8 , 109u8 , 182u8 , 182u8 , 174u8 , 247u8 , 176u8 , 234u8 , 224u8 , 108u8 , 143u8 , 213u8 , 99u8 , 60u8 , 91u8 , 209u8 , 120u8 , 83u8 , 54u8 , 16u8 , 169u8 , 156u8 , 49u8 , 232u8 , 228u8 , 89u8 ,]) } # [doc = "Contribute to a crowd sale. This will transfer some balance over to fund a parachain"] # [doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] pub fn contribute (& self , index : types :: contribute :: Index , value : types :: contribute :: Value , signature : types :: contribute :: Signature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Contribute > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "contribute" , types :: Contribute { index , value , signature , } , [235u8 , 111u8 , 40u8 , 4u8 , 141u8 , 19u8 , 229u8 , 202u8 , 158u8 , 30u8 , 112u8 , 53u8 , 113u8 , 65u8 , 162u8 , 226u8 , 116u8 , 221u8 , 118u8 , 54u8 , 204u8 , 50u8 , 23u8 , 246u8 , 20u8 , 245u8 , 187u8 , 150u8 , 142u8 , 184u8 , 96u8 , 84u8 ,]) } # [doc = "Withdraw full balance of a specific contributor."] # [doc = ""] # [doc = "Origin must be signed, but can come from anyone."] # [doc = ""] # [doc = "The fund must be either in, or ready for, retirement. For a fund to be *in* retirement,"] # [doc = "then the retirement flag must be set. For a fund to be ready for retirement, then:"] # [doc = "- it must not already be in retirement;"] # [doc = "- the amount of raised funds must be bigger than the _free_ balance of the account;"] # [doc = "- and either:"] # [doc = " - the block number must be at least `end`; or"] # [doc = " - the current lease period must be greater than the fund's `last_period`."] # [doc = ""] # [doc = "In this case, the fund's retirement flag is set and its `end` is reset to the current"] # [doc = "block number."] # [doc = ""] # [doc = "- `who`: The account whose contribution should be withdrawn."] # [doc = "- `index`: The parachain to whose crowdloan the contribution was made."] pub fn withdraw (& self , who : types :: withdraw :: Who , index : types :: withdraw :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Withdraw > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Automatically refund contributors of an ended crowdloan."] # [doc = "Due to weight restrictions, this function may need to be called multiple"] # [doc = "times to fully refund all users. We will refund `RemoveKeysLimit` users at a time."] # [doc = ""] # [doc = "Origin must be signed, but can come from anyone."] pub fn refund (& self , index : types :: refund :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Refund > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Remove a fund after the retirement period has ended and all funds have been returned."] pub fn dissolve (& self , index : types :: dissolve :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Dissolve > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Edit the configuration for an in-progress crowdloan."] # [doc = ""] # [doc = "Can only be called by Root origin."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Edit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "edit" , types :: Edit { index , cap , first_period , last_period , end , verifier , } , [185u8 , 194u8 , 173u8 , 141u8 , 104u8 , 157u8 , 104u8 , 216u8 , 223u8 , 189u8 , 184u8 , 104u8 , 71u8 , 177u8 , 70u8 , 129u8 , 207u8 , 167u8 , 80u8 , 247u8 , 149u8 , 151u8 , 211u8 , 119u8 , 224u8 , 214u8 , 214u8 , 15u8 , 88u8 , 116u8 , 191u8 , 234u8 ,]) } # [doc = "Add an optional memo to an existing crowdloan contribution."] # [doc = ""] # [doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] pub fn add_memo (& self , index : types :: add_memo :: Index , memo : types :: add_memo :: Memo ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddMemo > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "add_memo" , types :: AddMemo { index , memo , } , [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 ,]) } # [doc = "Poke the fund into `NewRaise`"] # [doc = ""] # [doc = "Origin must be Signed, and the fund has non-zero raise."] pub fn poke (& self , index : types :: poke :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Poke > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of"] # [doc = "a user over to fund a parachain slot. It will be withdrawable when the crowdloan has"] # [doc = "ended and the funds are unused."] pub fn contribute_all (& self , index : types :: contribute_all :: Index , signature : types :: contribute_all :: Signature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ContributeAll > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "contribute_all" , types :: ContributeAll { index , signature , } , [167u8 , 206u8 , 26u8 , 124u8 , 97u8 , 175u8 , 170u8 , 30u8 , 34u8 , 29u8 , 1u8 , 189u8 , 8u8 , 168u8 , 108u8 , 7u8 , 154u8 , 248u8 , 96u8 , 158u8 , 15u8 , 160u8 , 222u8 , 205u8 , 143u8 , 18u8 , 128u8 , 215u8 , 29u8 , 109u8 , 158u8 , 11u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: polkadot_runtime_common :: crowdloan :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Create a new crowdloaning campaign."] pub struct Created { pub para_id : created :: ParaId , } pub mod created { use super :: runtime_types ; pub type ParaId = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Created { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Created" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , } pub mod contributed { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type FundIndex = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Contributed { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Contributed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , } pub mod withdrew { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type FundIndex = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Withdrew { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Withdrew" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , } pub mod partially_refunded { use super :: runtime_types ; pub type ParaId = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PartiallyRefunded { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "PartiallyRefunded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "All loans in a fund have been refunded."] pub struct AllRefunded { pub para_id : all_refunded :: ParaId , } pub mod all_refunded { use super :: runtime_types ; pub type ParaId = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AllRefunded { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "AllRefunded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Fund is dissolved."] pub struct Dissolved { pub para_id : dissolved :: ParaId , } pub mod dissolved { use super :: runtime_types ; pub type ParaId = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Dissolved { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Dissolved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for HandleBidResult { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "HandleBidResult" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Edited { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Edited" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; pub type ParaId = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; pub type Memo = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MemoUpdated { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "MemoUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for AddedToNewRaise { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "AddedToNewRaise" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod funds { use super :: runtime_types ; pub type Funds = runtime_types :: polkadot_runtime_common :: crowdloan :: FundInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 , :: core :: primitive :: u32 , :: core :: primitive :: u32 > ; pub type Param0 = runtime_types :: polkadot_parachain_primitives :: primitives :: Id ; } pub mod new_raise { use super :: runtime_types ; pub type NewRaise = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_parachain_primitives :: primitives :: Id > ; } pub mod endings_count { use super :: runtime_types ; pub type EndingsCount = :: core :: primitive :: u32 ; } pub mod next_fund_index { use super :: runtime_types ; pub type NextFundIndex = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Info on all of the funds."] pub fn funds_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: funds :: Funds , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Funds" , () , [201u8 , 39u8 , 80u8 , 58u8 , 162u8 , 213u8 , 138u8 , 215u8 , 11u8 , 6u8 , 39u8 , 197u8 , 142u8 , 151u8 , 231u8 , 166u8 , 255u8 , 142u8 , 219u8 , 116u8 , 56u8 , 187u8 , 128u8 , 11u8 , 216u8 , 49u8 , 95u8 , 154u8 , 55u8 , 241u8 , 185u8 , 198u8 ,]) } # [doc = " Info on all of the funds."] pub fn funds (& self , _0 : impl :: core :: borrow :: Borrow < types :: funds :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: funds :: Param0 > , types :: funds :: Funds , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Funds" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [201u8 , 39u8 , 80u8 , 58u8 , 162u8 , 213u8 , 138u8 , 215u8 , 11u8 , 6u8 , 39u8 , 197u8 , 142u8 , 151u8 , 231u8 , 166u8 , 255u8 , 142u8 , 219u8 , 116u8 , 56u8 , 187u8 , 128u8 , 11u8 , 216u8 , 49u8 , 95u8 , 154u8 , 55u8 , 241u8 , 185u8 , 198u8 ,]) } # [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 (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: new_raise :: NewRaise , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "NewRaise" , () , [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 ,]) } # [doc = " The number of auctions that have entered into their ending period so far."] pub fn endings_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: endings_count :: EndingsCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "EndingsCount" , () , [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 ,]) } # [doc = " Tracker for the next available fund index"] pub fn next_fund_index (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_fund_index :: NextFundIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "NextFundIndex" , () , [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 ,]) } } } pub mod constants { 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\")`"] pub fn pallet_id (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_support :: PalletId > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "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 minimum amount that may be contributed into a crowdloan. Should almost certainly be"] # [doc = " at least `ExistentialDeposit`."] pub fn min_contribution (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u128 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "MinContribution" , [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 = " Max number of storage keys to remove per extrinsic call."] pub fn remove_keys_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "RemoveKeysLimit" , [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 coretime { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: polkadot_runtime_parachains :: coretime :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: polkadot_runtime_parachains :: coretime :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Request the configuration to be updated with the specified number of cores. Warning:"] # [doc = "Since this only schedules a configuration update, it takes two sessions to come into"] # [doc = "effect."] # [doc = ""] # [doc = "- `origin`: Root or the Coretime Chain"] # [doc = "- `count`: total number of cores"] pub struct RequestCoreCount { pub count : request_core_count :: Count , } pub mod request_core_count { use super :: runtime_types ; pub type Count = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RequestCoreCount { const PALLET : & 'static str = "Coretime" ; const CALL : & 'static str = "request_core_count" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Request to claim the instantaneous coretime sales revenue starting from the block it was"] # [doc = "last claimed until and up to the block specified. The claimed amount value is sent back"] # [doc = "to the Coretime chain in a `notify_revenue` message. At the same time, the amount is"] # [doc = "teleported to the Coretime chain."] pub struct RequestRevenueAt { pub when : request_revenue_at :: When , } pub mod request_revenue_at { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RequestRevenueAt { const PALLET : & 'static str = "Coretime" ; const CALL : & 'static str = "request_revenue_at" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is"] # [doc = "to be used."] # [doc = ""] # [doc = "Parameters:"] # [doc = "-`origin`: The `ExternalBrokerOrigin`, assumed to be the coretime chain."] # [doc = "-`core`: The core that should be scheduled."] # [doc = "-`begin`: The starting blockheight of the instruction."] # [doc = "-`assignment`: How the blockspace should be utilised."] # [doc = "-`end_hint`: An optional hint as to when this particular set of instructions will end."] pub struct AssignCore { pub core : assign_core :: Core , pub begin : assign_core :: Begin , pub assignment : assign_core :: Assignment , pub end_hint : assign_core :: EndHint , } pub mod assign_core { use super :: runtime_types ; pub type Core = :: core :: primitive :: u16 ; pub type Begin = :: core :: primitive :: u32 ; pub type Assignment = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_broker :: coretime_interface :: CoreAssignment , runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: PartsOf57600 ,) > ; pub type EndHint = :: core :: option :: Option < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AssignCore { const PALLET : & 'static str = "Coretime" ; const CALL : & 'static str = "assign_core" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Request the configuration to be updated with the specified number of cores. Warning:"] # [doc = "Since this only schedules a configuration update, it takes two sessions to come into"] # [doc = "effect."] # [doc = ""] # [doc = "- `origin`: Root or the Coretime Chain"] # [doc = "- `count`: total number of cores"] pub fn request_core_count (& self , count : types :: request_core_count :: Count ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RequestCoreCount > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Coretime" , "request_core_count" , types :: RequestCoreCount { count , } , [8u8 , 225u8 , 74u8 , 162u8 , 188u8 , 3u8 , 191u8 , 45u8 , 167u8 , 21u8 , 227u8 , 200u8 , 65u8 , 221u8 , 49u8 , 212u8 , 12u8 , 229u8 , 160u8 , 178u8 , 136u8 , 13u8 , 131u8 , 42u8 , 220u8 , 3u8 , 151u8 , 241u8 , 210u8 , 158u8 , 218u8 , 217u8 ,]) } # [doc = "Request to claim the instantaneous coretime sales revenue starting from the block it was"] # [doc = "last claimed until and up to the block specified. The claimed amount value is sent back"] # [doc = "to the Coretime chain in a `notify_revenue` message. At the same time, the amount is"] # [doc = "teleported to the Coretime chain."] pub fn request_revenue_at (& self , when : types :: request_revenue_at :: When ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RequestRevenueAt > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Coretime" , "request_revenue_at" , types :: RequestRevenueAt { when , } , [177u8 , 11u8 , 232u8 , 159u8 , 238u8 , 12u8 , 176u8 , 8u8 , 83u8 , 20u8 , 36u8 , 223u8 , 1u8 , 202u8 , 138u8 , 236u8 , 120u8 , 161u8 , 17u8 , 161u8 , 112u8 , 108u8 , 79u8 , 35u8 , 141u8 , 123u8 , 166u8 , 107u8 , 220u8 , 139u8 , 167u8 , 67u8 ,]) } # [doc = "Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is"] # [doc = "to be used."] # [doc = ""] # [doc = "Parameters:"] # [doc = "-`origin`: The `ExternalBrokerOrigin`, assumed to be the coretime chain."] # [doc = "-`core`: The core that should be scheduled."] # [doc = "-`begin`: The starting blockheight of the instruction."] # [doc = "-`assignment`: How the blockspace should be utilised."] # [doc = "-`end_hint`: An optional hint as to when this particular set of instructions will end."] pub fn assign_core (& self , core : types :: assign_core :: Core , begin : types :: assign_core :: Begin , assignment : types :: assign_core :: Assignment , end_hint : types :: assign_core :: EndHint ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AssignCore > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Coretime" , "assign_core" , types :: AssignCore { core , begin , assignment , end_hint , } , [113u8 , 133u8 , 153u8 , 202u8 , 209u8 , 53u8 , 168u8 , 214u8 , 153u8 , 232u8 , 170u8 , 35u8 , 63u8 , 87u8 , 5u8 , 108u8 , 188u8 , 55u8 , 111u8 , 55u8 , 22u8 , 1u8 , 190u8 , 216u8 , 233u8 , 185u8 , 135u8 , 172u8 , 15u8 , 254u8 , 91u8 , 92u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: polkadot_runtime_parachains :: coretime :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The broker chain has asked for revenue information for a specific block."] pub struct RevenueInfoRequested { pub when : revenue_info_requested :: When , } pub mod revenue_info_requested { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RevenueInfoRequested { const PALLET : & 'static str = "Coretime" ; const EVENT : & 'static str = "RevenueInfoRequested" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A core has received a new assignment from the broker chain."] pub struct CoreAssigned { pub core : core_assigned :: Core , } pub mod core_assigned { use super :: runtime_types ; pub type Core = runtime_types :: polkadot_primitives :: v7 :: CoreIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CoreAssigned { const PALLET : & 'static str = "Coretime" ; const EVENT : & 'static str = "CoreAssigned" ; } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The ParaId of the coretime chain."] pub fn broker_id (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Coretime" , "BrokerId" , [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 coretime chain pot location."] pub fn broker_pot_location (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: staging_xcm :: v4 :: junctions :: Junctions > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Coretime" , "BrokerPotLocation" , [213u8 , 204u8 , 114u8 , 183u8 , 18u8 , 16u8 , 228u8 , 20u8 , 143u8 , 180u8 , 234u8 , 177u8 , 117u8 , 235u8 , 149u8 , 133u8 , 92u8 , 210u8 , 84u8 , 215u8 , 196u8 , 230u8 , 248u8 , 192u8 , 214u8 , 175u8 , 12u8 , 161u8 , 135u8 , 75u8 , 128u8 , 68u8 ,]) } } } } pub mod state_trie_migration { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_state_trie_migration :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_state_trie_migration :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Control the automatic migration."] # [doc = ""] # [doc = "The dispatch origin of this call must be [`Config::ControlOrigin`]."] pub struct ControlAutoMigration { pub maybe_config : control_auto_migration :: MaybeConfig , } pub mod control_auto_migration { use super :: runtime_types ; pub type MaybeConfig = :: core :: option :: Option < runtime_types :: pallet_state_trie_migration :: pallet :: MigrationLimits > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ControlAutoMigration { const PALLET : & 'static str = "StateTrieMigration" ; const CALL : & 'static str = "control_auto_migration" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Continue the migration for the given `limits`."] # [doc = ""] # [doc = "The dispatch origin of this call can be any signed account."] # [doc = ""] # [doc = "This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,"] # [doc = "Upon successful execution, the transaction fee is returned."] # [doc = ""] # [doc = "The (potentially over-estimated) of the byte length of all the data read must be"] # [doc = "provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing"] # [doc = "that executing the current `MigrationTask` with the given `limits` will not exceed"] # [doc = "`real_size_upper` bytes of read data."] # [doc = ""] # [doc = "The `witness_task` is merely a helper to prevent the caller from being slashed or"] # [doc = "generally trigger a migration that they do not intend. This parameter is just a message"] # [doc = "from caller, saying that they believed `witness_task` was the last state of the"] # [doc = "migration, and they only wish for their transaction to do anything, if this assumption"] # [doc = "holds. In case `witness_task` does not match, the transaction fails."] # [doc = ""] # [doc = "Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the"] # [doc = "recommended way of doing this is to pass a `limit` that only bounds `count`, as the"] # [doc = "`size` limit can always be overwritten."] pub struct ContinueMigrate { pub limits : continue_migrate :: Limits , pub real_size_upper : continue_migrate :: RealSizeUpper , pub witness_task : continue_migrate :: WitnessTask , } pub mod continue_migrate { use super :: runtime_types ; pub type Limits = runtime_types :: pallet_state_trie_migration :: pallet :: MigrationLimits ; pub type RealSizeUpper = :: core :: primitive :: u32 ; pub type WitnessTask = runtime_types :: pallet_state_trie_migration :: pallet :: MigrationTask ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ContinueMigrate { const PALLET : & 'static str = "StateTrieMigration" ; const CALL : & 'static str = "continue_migrate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Migrate the list of top keys by iterating each of them one by one."] # [doc = ""] # [doc = "This does not affect the global migration process tracker ([`MigrationProcess`]), and"] # [doc = "should only be used in case any keys are leftover due to a bug."] pub struct MigrateCustomTop { pub keys : migrate_custom_top :: Keys , pub witness_size : migrate_custom_top :: WitnessSize , } pub mod migrate_custom_top { use super :: runtime_types ; pub type Keys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; pub type WitnessSize = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MigrateCustomTop { const PALLET : & 'static str = "StateTrieMigration" ; const CALL : & 'static str = "migrate_custom_top" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Migrate the list of child keys by iterating each of them one by one."] # [doc = ""] # [doc = "All of the given child keys must be present under one `child_root`."] # [doc = ""] # [doc = "This does not affect the global migration process tracker ([`MigrationProcess`]), and"] # [doc = "should only be used in case any keys are leftover due to a bug."] pub struct MigrateCustomChild { pub root : migrate_custom_child :: Root , pub child_keys : migrate_custom_child :: ChildKeys , pub total_size : migrate_custom_child :: TotalSize , } pub mod migrate_custom_child { use super :: runtime_types ; pub type Root = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type ChildKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; pub type TotalSize = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MigrateCustomChild { const PALLET : & 'static str = "StateTrieMigration" ; const CALL : & 'static str = "migrate_custom_child" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the maximum limit of the signed migration."] pub struct SetSignedMaxLimits { pub limits : set_signed_max_limits :: Limits , } pub mod set_signed_max_limits { use super :: runtime_types ; pub type Limits = runtime_types :: pallet_state_trie_migration :: pallet :: MigrationLimits ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetSignedMaxLimits { const PALLET : & 'static str = "StateTrieMigration" ; const CALL : & 'static str = "set_signed_max_limits" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Forcefully set the progress the running migration."] # [doc = ""] # [doc = "This is only useful in one case: the next key to migrate is too big to be migrated with"] # [doc = "a signed account, in a parachain context, and we simply want to skip it. A reasonable"] # [doc = "example of this would be `:code:`, which is both very expensive to migrate, and commonly"] # [doc = "used, so probably it is already migrated."] # [doc = ""] # [doc = "In case you mess things up, you can also, in principle, use this to reset the migration"] # [doc = "process."] pub struct ForceSetProgress { pub progress_top : force_set_progress :: ProgressTop , pub progress_child : force_set_progress :: ProgressChild , } pub mod force_set_progress { use super :: runtime_types ; pub type ProgressTop = runtime_types :: pallet_state_trie_migration :: pallet :: Progress ; pub type ProgressChild = runtime_types :: pallet_state_trie_migration :: pallet :: Progress ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSetProgress { const PALLET : & 'static str = "StateTrieMigration" ; const CALL : & 'static str = "force_set_progress" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Control the automatic migration."] # [doc = ""] # [doc = "The dispatch origin of this call must be [`Config::ControlOrigin`]."] pub fn control_auto_migration (& self , maybe_config : types :: control_auto_migration :: MaybeConfig ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ControlAutoMigration > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("StateTrieMigration" , "control_auto_migration" , types :: ControlAutoMigration { maybe_config , } , [41u8 , 252u8 , 1u8 , 4u8 , 170u8 , 164u8 , 45u8 , 147u8 , 203u8 , 58u8 , 64u8 , 26u8 , 53u8 , 231u8 , 170u8 , 72u8 , 23u8 , 87u8 , 32u8 , 93u8 , 130u8 , 210u8 , 65u8 , 200u8 , 147u8 , 232u8 , 32u8 , 105u8 , 182u8 , 213u8 , 101u8 , 85u8 ,]) } # [doc = "Continue the migration for the given `limits`."] # [doc = ""] # [doc = "The dispatch origin of this call can be any signed account."] # [doc = ""] # [doc = "This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,"] # [doc = "Upon successful execution, the transaction fee is returned."] # [doc = ""] # [doc = "The (potentially over-estimated) of the byte length of all the data read must be"] # [doc = "provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing"] # [doc = "that executing the current `MigrationTask` with the given `limits` will not exceed"] # [doc = "`real_size_upper` bytes of read data."] # [doc = ""] # [doc = "The `witness_task` is merely a helper to prevent the caller from being slashed or"] # [doc = "generally trigger a migration that they do not intend. This parameter is just a message"] # [doc = "from caller, saying that they believed `witness_task` was the last state of the"] # [doc = "migration, and they only wish for their transaction to do anything, if this assumption"] # [doc = "holds. In case `witness_task` does not match, the transaction fails."] # [doc = ""] # [doc = "Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the"] # [doc = "recommended way of doing this is to pass a `limit` that only bounds `count`, as the"] # [doc = "`size` limit can always be overwritten."] pub fn continue_migrate (& self , limits : types :: continue_migrate :: Limits , real_size_upper : types :: continue_migrate :: RealSizeUpper , witness_task : types :: continue_migrate :: WitnessTask ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ContinueMigrate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("StateTrieMigration" , "continue_migrate" , types :: ContinueMigrate { limits , real_size_upper , witness_task , } , [244u8 , 113u8 , 101u8 , 72u8 , 234u8 , 245u8 , 21u8 , 134u8 , 132u8 , 53u8 , 179u8 , 247u8 , 210u8 , 42u8 , 87u8 , 131u8 , 157u8 , 133u8 , 108u8 , 97u8 , 12u8 , 252u8 , 69u8 , 100u8 , 236u8 , 171u8 , 134u8 , 241u8 , 68u8 , 15u8 , 227u8 , 23u8 ,]) } # [doc = "Migrate the list of top keys by iterating each of them one by one."] # [doc = ""] # [doc = "This does not affect the global migration process tracker ([`MigrationProcess`]), and"] # [doc = "should only be used in case any keys are leftover due to a bug."] pub fn migrate_custom_top (& self , keys : types :: migrate_custom_top :: Keys , witness_size : types :: migrate_custom_top :: WitnessSize ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MigrateCustomTop > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("StateTrieMigration" , "migrate_custom_top" , types :: MigrateCustomTop { keys , witness_size , } , [167u8 , 185u8 , 103u8 , 14u8 , 52u8 , 177u8 , 104u8 , 139u8 , 95u8 , 195u8 , 1u8 , 30u8 , 111u8 , 205u8 , 10u8 , 53u8 , 116u8 , 31u8 , 104u8 , 135u8 , 34u8 , 80u8 , 214u8 , 3u8 , 80u8 , 101u8 , 21u8 , 3u8 , 244u8 , 62u8 , 115u8 , 50u8 ,]) } # [doc = "Migrate the list of child keys by iterating each of them one by one."] # [doc = ""] # [doc = "All of the given child keys must be present under one `child_root`."] # [doc = ""] # [doc = "This does not affect the global migration process tracker ([`MigrationProcess`]), and"] # [doc = "should only be used in case any keys are leftover due to a bug."] pub fn migrate_custom_child (& self , root : types :: migrate_custom_child :: Root , child_keys : types :: migrate_custom_child :: ChildKeys , total_size : types :: migrate_custom_child :: TotalSize ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MigrateCustomChild > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("StateTrieMigration" , "migrate_custom_child" , types :: MigrateCustomChild { root , child_keys , total_size , } , [160u8 , 99u8 , 211u8 , 111u8 , 120u8 , 53u8 , 188u8 , 31u8 , 102u8 , 86u8 , 94u8 , 86u8 , 218u8 , 181u8 , 14u8 , 154u8 , 243u8 , 49u8 , 23u8 , 65u8 , 218u8 , 160u8 , 200u8 , 97u8 , 208u8 , 159u8 , 40u8 , 10u8 , 110u8 , 134u8 , 86u8 , 33u8 ,]) } # [doc = "Set the maximum limit of the signed migration."] pub fn set_signed_max_limits (& self , limits : types :: set_signed_max_limits :: Limits ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetSignedMaxLimits > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("StateTrieMigration" , "set_signed_max_limits" , types :: SetSignedMaxLimits { limits , } , [106u8 , 43u8 , 66u8 , 154u8 , 114u8 , 172u8 , 120u8 , 79u8 , 212u8 , 196u8 , 220u8 , 112u8 , 17u8 , 42u8 , 131u8 , 249u8 , 56u8 , 91u8 , 11u8 , 152u8 , 80u8 , 120u8 , 36u8 , 113u8 , 51u8 , 34u8 , 10u8 , 35u8 , 135u8 , 228u8 , 216u8 , 38u8 ,]) } # [doc = "Forcefully set the progress the running migration."] # [doc = ""] # [doc = "This is only useful in one case: the next key to migrate is too big to be migrated with"] # [doc = "a signed account, in a parachain context, and we simply want to skip it. A reasonable"] # [doc = "example of this would be `:code:`, which is both very expensive to migrate, and commonly"] # [doc = "used, so probably it is already migrated."] # [doc = ""] # [doc = "In case you mess things up, you can also, in principle, use this to reset the migration"] # [doc = "process."] pub fn force_set_progress (& self , progress_top : types :: force_set_progress :: ProgressTop , progress_child : types :: force_set_progress :: ProgressChild ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSetProgress > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("StateTrieMigration" , "force_set_progress" , types :: ForceSetProgress { progress_top , progress_child , } , [103u8 , 70u8 , 170u8 , 72u8 , 136u8 , 4u8 , 169u8 , 245u8 , 254u8 , 93u8 , 17u8 , 104u8 , 19u8 , 53u8 , 182u8 , 35u8 , 205u8 , 99u8 , 116u8 , 101u8 , 102u8 , 124u8 , 253u8 , 206u8 , 111u8 , 140u8 , 212u8 , 12u8 , 218u8 , 19u8 , 39u8 , 229u8 ,]) } } } # [doc = "Inner events of this pallet."] pub type Event = runtime_types :: pallet_state_trie_migration :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Given number of `(top, child)` keys were migrated respectively, with the given"] # [doc = "`compute`."] pub struct Migrated { pub top : migrated :: Top , pub child : migrated :: Child , pub compute : migrated :: Compute , } pub mod migrated { use super :: runtime_types ; pub type Top = :: core :: primitive :: u32 ; pub type Child = :: core :: primitive :: u32 ; pub type Compute = runtime_types :: pallet_state_trie_migration :: pallet :: MigrationCompute ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Migrated { const PALLET : & 'static str = "StateTrieMigration" ; const EVENT : & 'static str = "Migrated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some account got slashed by the given amount."] pub struct Slashed { pub who : slashed :: Who , pub amount : slashed :: Amount , } pub mod slashed { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Slashed { const PALLET : & 'static str = "StateTrieMigration" ; const EVENT : & 'static str = "Slashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The auto migration task finished."] pub struct AutoMigrationFinished ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AutoMigrationFinished { const PALLET : & 'static str = "StateTrieMigration" ; const EVENT : & 'static str = "AutoMigrationFinished" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Migration got halted due to an error or miss-configuration."] pub struct Halted { pub error : halted :: Error , } pub mod halted { use super :: runtime_types ; pub type Error = runtime_types :: pallet_state_trie_migration :: pallet :: Error ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Halted { const PALLET : & 'static str = "StateTrieMigration" ; const EVENT : & 'static str = "Halted" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod migration_process { use super :: runtime_types ; pub type MigrationProcess = runtime_types :: pallet_state_trie_migration :: pallet :: MigrationTask ; } pub mod auto_limits { use super :: runtime_types ; pub type AutoLimits = :: core :: option :: Option < runtime_types :: pallet_state_trie_migration :: pallet :: MigrationLimits > ; } pub mod signed_migration_max_limits { use super :: runtime_types ; pub type SignedMigrationMaxLimits = runtime_types :: pallet_state_trie_migration :: pallet :: MigrationLimits ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Migration progress."] # [doc = ""] # [doc = " This stores the snapshot of the last migrated keys. It can be set into motion and move"] # [doc = " forward by any of the means provided by this pallet."] pub fn migration_process (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: migration_process :: MigrationProcess , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("StateTrieMigration" , "MigrationProcess" , () , [119u8 , 172u8 , 143u8 , 118u8 , 90u8 , 3u8 , 154u8 , 185u8 , 165u8 , 165u8 , 249u8 , 230u8 , 77u8 , 14u8 , 221u8 , 146u8 , 75u8 , 243u8 , 69u8 , 209u8 , 79u8 , 253u8 , 28u8 , 64u8 , 243u8 , 45u8 , 29u8 , 1u8 , 22u8 , 127u8 , 0u8 , 66u8 ,]) } # [doc = " The limits that are imposed on automatic migrations."] # [doc = ""] # [doc = " If set to None, then no automatic migration happens."] pub fn auto_limits (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: auto_limits :: AutoLimits , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("StateTrieMigration" , "AutoLimits" , () , [225u8 , 29u8 , 94u8 , 66u8 , 169u8 , 230u8 , 106u8 , 20u8 , 238u8 , 81u8 , 238u8 , 183u8 , 185u8 , 74u8 , 94u8 , 58u8 , 107u8 , 174u8 , 228u8 , 10u8 , 156u8 , 225u8 , 95u8 , 75u8 , 208u8 , 227u8 , 58u8 , 147u8 , 161u8 , 68u8 , 158u8 , 99u8 ,]) } # [doc = " The maximum limits that the signed migration could use."] # [doc = ""] # [doc = " If not set, no signed submission is allowed."] pub fn signed_migration_max_limits (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: signed_migration_max_limits :: SignedMigrationMaxLimits , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("StateTrieMigration" , "SignedMigrationMaxLimits" , () , [121u8 , 97u8 , 145u8 , 237u8 , 10u8 , 145u8 , 206u8 , 119u8 , 15u8 , 12u8 , 200u8 , 24u8 , 231u8 , 140u8 , 248u8 , 227u8 , 202u8 , 78u8 , 93u8 , 134u8 , 144u8 , 79u8 , 55u8 , 136u8 , 89u8 , 52u8 , 49u8 , 64u8 , 136u8 , 249u8 , 245u8 , 175u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Maximal number of bytes that a key can have."] # [doc = ""] # [doc = " FRAME itself does not limit the key length."] # [doc = " The concrete value must therefore depend on your storage usage."] # [doc = " A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of"] # [doc = " keys which are then hashed and concatenated, resulting in arbitrarily long keys."] # [doc = ""] # [doc = " Use the *state migration RPC* to retrieve the length of the longest key in your"] # [doc = " storage: "] # [doc = ""] # [doc = " The migration will halt with a `Halted` event if this value is too small."] # [doc = " Since there is no real penalty from over-estimating, it is advised to use a large"] # [doc = " value. The default is 512 byte."] # [doc = ""] # [doc = " Some key lengths for reference:"] # [doc = " - [`frame_support::storage::StorageValue`]: 32 byte"] # [doc = " - [`frame_support::storage::StorageMap`]: 64 byte"] # [doc = " - [`frame_support::storage::StorageDoubleMap`]: 96 byte"] # [doc = ""] # [doc = " For more info see"] # [doc = " "] pub fn max_key_len (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("StateTrieMigration" , "MaxKeyLen" , [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 xcm_pallet { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_xcm :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_xcm :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Send { pub dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < send :: Dest > , pub message : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < send :: Message > , } pub mod send { use super :: runtime_types ; pub type Dest = runtime_types :: xcm :: VersionedLocation ; pub type Message = runtime_types :: xcm :: VersionedXcm ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Send { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "send" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Teleport some assets from the local chain to some destination chain."] # [doc = ""] # [doc = "**This function is deprecated: Use `limited_teleport_assets` instead.**"] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] # [doc = "with all fees taken as needed from the asset."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` chain."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] pub struct TeleportAssets { pub dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < teleport_assets :: Dest > , pub beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < teleport_assets :: Beneficiary > , pub assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < teleport_assets :: Assets > , pub fee_asset_item : teleport_assets :: FeeAssetItem , } pub mod teleport_assets { use super :: runtime_types ; pub type Dest = runtime_types :: xcm :: VersionedLocation ; pub type Beneficiary = runtime_types :: xcm :: VersionedLocation ; pub type Assets = runtime_types :: xcm :: VersionedAssets ; pub type FeeAssetItem = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TeleportAssets { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "teleport_assets" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer some assets from the local chain to the destination chain through their local,"] # [doc = "destination or remote reserve."] # [doc = ""] # [doc = "`assets` must have same reserve location and may not be teleportable to `dest`."] # [doc = " - `assets` have local reserve: transfer assets to sovereign account of destination"] # [doc = " chain and forward a notification XCM to `dest` to mint and deposit reserve-based"] # [doc = " assets to `beneficiary`."] # [doc = " - `assets` have destination reserve: burn local assets and forward a notification to"] # [doc = " `dest` chain to withdraw the reserve assets from this chain's sovereign account and"] # [doc = " deposit them to `beneficiary`."] # [doc = " - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move"] # [doc = " reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`"] # [doc = " to mint and deposit reserve-based assets to `beneficiary`."] # [doc = ""] # [doc = "**This function is deprecated: Use `limited_reserve_transfer_assets` instead.**"] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] # [doc = "with all fees taken as needed from the asset."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] pub struct ReserveTransferAssets { pub dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < reserve_transfer_assets :: Dest > , pub beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < reserve_transfer_assets :: Beneficiary > , pub assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < reserve_transfer_assets :: Assets > , pub fee_asset_item : reserve_transfer_assets :: FeeAssetItem , } pub mod reserve_transfer_assets { use super :: runtime_types ; pub type Dest = runtime_types :: xcm :: VersionedLocation ; pub type Beneficiary = runtime_types :: xcm :: VersionedLocation ; pub type Assets = runtime_types :: xcm :: VersionedAssets ; pub type FeeAssetItem = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReserveTransferAssets { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "reserve_transfer_assets" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Execute an XCM message from a local, signed, origin."] # [doc = ""] # [doc = "An event is deposited indicating whether `msg` could be executed completely or only"] # [doc = "partially."] # [doc = ""] # [doc = "No more than `max_weight` will be used in its attempted execution. If this is less than"] # [doc = "the maximum amount of weight that the message could take to be executed, then no"] # [doc = "execution attempt will be made."] pub struct Execute { pub message : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < execute :: Message > , pub max_weight : execute :: MaxWeight , } pub mod execute { use super :: runtime_types ; pub type Message = runtime_types :: xcm :: VersionedXcm ; pub type MaxWeight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Execute { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "execute" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Extoll that a particular destination can be communicated with through a particular"] # [doc = "version of XCM."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `location`: The destination that is being described."] # [doc = "- `xcm_version`: The latest version of XCM that `location` supports."] pub struct ForceXcmVersion { pub location : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < force_xcm_version :: Location > , pub version : force_xcm_version :: Version , } pub mod force_xcm_version { use super :: runtime_types ; pub type Location = runtime_types :: staging_xcm :: v4 :: location :: Location ; pub type Version = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceXcmVersion { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "force_xcm_version" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a safe XCM version (the version that XCM should be encoded with if the most recent"] # [doc = "version a destination can accept is unknown)."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."] pub struct ForceDefaultXcmVersion { pub maybe_xcm_version : force_default_xcm_version :: MaybeXcmVersion , } pub mod force_default_xcm_version { use super :: runtime_types ; pub type MaybeXcmVersion = :: core :: option :: Option < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceDefaultXcmVersion { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "force_default_xcm_version" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Ask a location to notify us regarding their XCM version and any changes to it."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `location`: The location to which we should subscribe for XCM version notifications."] pub struct ForceSubscribeVersionNotify { pub location : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < force_subscribe_version_notify :: Location > , } pub mod force_subscribe_version_notify { use super :: runtime_types ; pub type Location = runtime_types :: xcm :: VersionedLocation ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSubscribeVersionNotify { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "force_subscribe_version_notify" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Require that a particular destination should no longer notify us regarding any XCM"] # [doc = "version changes."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `location`: The location to which we are currently subscribed for XCM version"] # [doc = " notifications which we no longer desire."] pub struct ForceUnsubscribeVersionNotify { pub location : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < force_unsubscribe_version_notify :: Location > , } pub mod force_unsubscribe_version_notify { use super :: runtime_types ; pub type Location = runtime_types :: xcm :: VersionedLocation ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceUnsubscribeVersionNotify { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "force_unsubscribe_version_notify" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer some assets from the local chain to the destination chain through their local,"] # [doc = "destination or remote reserve."] # [doc = ""] # [doc = "`assets` must have same reserve location and may not be teleportable to `dest`."] # [doc = " - `assets` have local reserve: transfer assets to sovereign account of destination"] # [doc = " chain and forward a notification XCM to `dest` to mint and deposit reserve-based"] # [doc = " assets to `beneficiary`."] # [doc = " - `assets` have destination reserve: burn local assets and forward a notification to"] # [doc = " `dest` chain to withdraw the reserve assets from this chain's sovereign account and"] # [doc = " deposit them to `beneficiary`."] # [doc = " - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move"] # [doc = " reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`"] # [doc = " to mint and deposit reserve-based assets to `beneficiary`."] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] # [doc = "is needed than `weight_limit`, then the operation will fail and the sent assets may be"] # [doc = "at risk."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] pub struct LimitedReserveTransferAssets { pub dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < limited_reserve_transfer_assets :: Dest > , pub beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < limited_reserve_transfer_assets :: Beneficiary > , pub assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < limited_reserve_transfer_assets :: Assets > , 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 :: VersionedLocation ; pub type Beneficiary = runtime_types :: xcm :: VersionedLocation ; pub type Assets = runtime_types :: xcm :: VersionedAssets ; pub type FeeAssetItem = :: core :: primitive :: u32 ; pub type WeightLimit = runtime_types :: xcm :: v3 :: WeightLimit ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for LimitedReserveTransferAssets { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "limited_reserve_transfer_assets" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Teleport some assets from the local chain to some destination chain."] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] # [doc = "is needed than `weight_limit`, then the operation will fail and the sent assets may be"] # [doc = "at risk."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` chain."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] pub struct LimitedTeleportAssets { pub dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < limited_teleport_assets :: Dest > , pub beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < limited_teleport_assets :: Beneficiary > , pub assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < limited_teleport_assets :: Assets > , 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 :: VersionedLocation ; pub type Beneficiary = runtime_types :: xcm :: VersionedLocation ; pub type Assets = runtime_types :: xcm :: VersionedAssets ; pub type FeeAssetItem = :: core :: primitive :: u32 ; pub type WeightLimit = runtime_types :: xcm :: v3 :: WeightLimit ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for LimitedTeleportAssets { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "limited_teleport_assets" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set or unset the global suspension state of the XCM executor."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `suspended`: `true` to suspend, `false` to resume."] pub struct ForceSuspension { pub suspended : force_suspension :: Suspended , } pub mod force_suspension { use super :: runtime_types ; pub type Suspended = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSuspension { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "force_suspension" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer some assets from the local chain to the destination chain through their local,"] # [doc = "destination or remote reserve, or through teleports."] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for"] # [doc = "`weight_limit` of weight. If more weight is needed than `weight_limit`, then the"] # [doc = "operation will fail and the sent assets may be at risk."] # [doc = ""] # [doc = "`assets` (excluding `fees`) must have same reserve location or otherwise be teleportable"] # [doc = "to `dest`, no limitations imposed on `fees`."] # [doc = " - for local reserve: transfer assets to sovereign account of destination chain and"] # [doc = " forward a notification XCM to `dest` to mint and deposit reserve-based assets to"] # [doc = " `beneficiary`."] # [doc = " - for destination reserve: burn local assets and forward a notification to `dest` chain"] # [doc = " to withdraw the reserve assets from this chain's sovereign account and deposit them"] # [doc = " to `beneficiary`."] # [doc = " - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves"] # [doc = " from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint"] # [doc = " and deposit reserve-based assets to `beneficiary`."] # [doc = " - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport"] # [doc = " assets and deposit them to `beneficiary`."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent,"] # [doc = " Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send"] # [doc = " from relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] pub struct TransferAssets { pub dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < transfer_assets :: Dest > , pub beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < transfer_assets :: Beneficiary > , pub assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < transfer_assets :: Assets > , pub fee_asset_item : transfer_assets :: FeeAssetItem , pub weight_limit : transfer_assets :: WeightLimit , } pub mod transfer_assets { use super :: runtime_types ; pub type Dest = runtime_types :: xcm :: VersionedLocation ; pub type Beneficiary = runtime_types :: xcm :: VersionedLocation ; pub type Assets = runtime_types :: xcm :: VersionedAssets ; pub type FeeAssetItem = :: core :: primitive :: u32 ; pub type WeightLimit = runtime_types :: xcm :: v3 :: WeightLimit ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferAssets { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "transfer_assets" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Claims assets trapped on this pallet because of leftover assets during XCM execution."] # [doc = ""] # [doc = "- `origin`: Anyone can call this extrinsic."] # [doc = "- `assets`: The exact assets that were trapped. Use the version to specify what version"] # [doc = "was the latest when they were trapped."] # [doc = "- `beneficiary`: The location/account where the claimed assets will be deposited."] pub struct ClaimAssets { pub assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < claim_assets :: Assets > , pub beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < claim_assets :: Beneficiary > , } pub mod claim_assets { use super :: runtime_types ; pub type Assets = runtime_types :: xcm :: VersionedAssets ; pub type Beneficiary = runtime_types :: xcm :: VersionedLocation ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClaimAssets { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "claim_assets" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer assets from the local chain to the destination chain using explicit transfer"] # [doc = "types for assets and fees."] # [doc = ""] # [doc = "`assets` must have same reserve location or may be teleportable to `dest`. Caller must"] # [doc = "provide the `assets_transfer_type` to be used for `assets`:"] # [doc = " - `TransferType::LocalReserve`: transfer assets to sovereign account of destination"] # [doc = " chain and forward a notification XCM to `dest` to mint and deposit reserve-based"] # [doc = " assets to `beneficiary`."] # [doc = " - `TransferType::DestinationReserve`: burn local assets and forward a notification to"] # [doc = " `dest` chain to withdraw the reserve assets from this chain's sovereign account and"] # [doc = " deposit them to `beneficiary`."] # [doc = " - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`"] # [doc = " chain to move reserves from this chain's SA to `dest` chain's SA, and forward another"] # [doc = " XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically"] # [doc = " the remote `reserve` is Asset Hub."] # [doc = " - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to"] # [doc = " mint/teleport assets and deposit them to `beneficiary`."] # [doc = ""] # [doc = "On the destination chain, as well as any intermediary hops, `BuyExecution` is used to"] # [doc = "buy execution using transferred `assets` identified by `remote_fees_id`."] # [doc = "Make sure enough of the specified `remote_fees_id` asset is included in the given list"] # [doc = "of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight"] # [doc = "is needed than `weight_limit`, then the operation will fail and the sent assets may be"] # [doc = "at risk."] # [doc = ""] # [doc = "`remote_fees_id` may use different transfer type than rest of `assets` and can be"] # [doc = "specified through `fees_transfer_type`."] # [doc = ""] # [doc = "The caller needs to specify what should happen to the transferred assets once they reach"] # [doc = "the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which"] # [doc = "contains the instructions to execute on `dest` as a final step."] # [doc = " This is usually as simple as:"] # [doc = " `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,"] # [doc = " but could be something more exotic like sending the `assets` even further."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from"] # [doc = " parachain across a bridge to another ecosystem destination."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`."] # [doc = "- `remote_fees_id`: One of the included `assets` to be used to pay fees."] # [doc = "- `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets."] # [doc = "- `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the"] # [doc = " transfer, which also determines what happens to the assets on the destination chain."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] pub struct TransferAssetsUsingTypeAndThen { pub dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < transfer_assets_using_type_and_then :: Dest > , pub assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < transfer_assets_using_type_and_then :: Assets > , pub assets_transfer_type : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < transfer_assets_using_type_and_then :: AssetsTransferType > , pub remote_fees_id : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < transfer_assets_using_type_and_then :: RemoteFeesId > , pub fees_transfer_type : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < transfer_assets_using_type_and_then :: FeesTransferType > , pub custom_xcm_on_dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < transfer_assets_using_type_and_then :: CustomXcmOnDest > , pub weight_limit : transfer_assets_using_type_and_then :: WeightLimit , } pub mod transfer_assets_using_type_and_then { use super :: runtime_types ; pub type Dest = runtime_types :: xcm :: VersionedLocation ; pub type Assets = runtime_types :: xcm :: VersionedAssets ; pub type AssetsTransferType = runtime_types :: staging_xcm_executor :: traits :: asset_transfer :: TransferType ; pub type RemoteFeesId = runtime_types :: xcm :: VersionedAssetId ; pub type FeesTransferType = runtime_types :: staging_xcm_executor :: traits :: asset_transfer :: TransferType ; pub type CustomXcmOnDest = runtime_types :: xcm :: VersionedXcm ; pub type WeightLimit = runtime_types :: xcm :: v3 :: WeightLimit ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferAssetsUsingTypeAndThen { const PALLET : & 'static str = "XcmPallet" ; const CALL : & 'static str = "transfer_assets_using_type_and_then" ; } } pub struct TransactionApi ; impl TransactionApi { pub fn send (& self , dest : types :: send :: Dest , message : types :: send :: Message ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Send > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "send" , types :: Send { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (dest) , message : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (message) , } , [47u8 , 63u8 , 128u8 , 176u8 , 10u8 , 137u8 , 124u8 , 238u8 , 155u8 , 37u8 , 193u8 , 160u8 , 83u8 , 240u8 , 21u8 , 179u8 , 169u8 , 131u8 , 27u8 , 104u8 , 195u8 , 208u8 , 123u8 , 14u8 , 221u8 , 12u8 , 45u8 , 81u8 , 148u8 , 76u8 , 17u8 , 100u8 ,]) } # [doc = "Teleport some assets from the local chain to some destination chain."] # [doc = ""] # [doc = "**This function is deprecated: Use `limited_teleport_assets` instead.**"] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] # [doc = "with all fees taken as needed from the asset."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` chain."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TeleportAssets > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "teleport_assets" , types :: TeleportAssets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (dest) , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (beneficiary) , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (assets) , fee_asset_item , } , [124u8 , 191u8 , 118u8 , 61u8 , 45u8 , 225u8 , 97u8 , 83u8 , 198u8 , 20u8 , 139u8 , 117u8 , 241u8 , 1u8 , 19u8 , 54u8 , 79u8 , 181u8 , 131u8 , 112u8 , 11u8 , 118u8 , 147u8 , 12u8 , 89u8 , 156u8 , 123u8 , 123u8 , 195u8 , 45u8 , 50u8 , 107u8 ,]) } # [doc = "Transfer some assets from the local chain to the destination chain through their local,"] # [doc = "destination or remote reserve."] # [doc = ""] # [doc = "`assets` must have same reserve location and may not be teleportable to `dest`."] # [doc = " - `assets` have local reserve: transfer assets to sovereign account of destination"] # [doc = " chain and forward a notification XCM to `dest` to mint and deposit reserve-based"] # [doc = " assets to `beneficiary`."] # [doc = " - `assets` have destination reserve: burn local assets and forward a notification to"] # [doc = " `dest` chain to withdraw the reserve assets from this chain's sovereign account and"] # [doc = " deposit them to `beneficiary`."] # [doc = " - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move"] # [doc = " reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`"] # [doc = " to mint and deposit reserve-based assets to `beneficiary`."] # [doc = ""] # [doc = "**This function is deprecated: Use `limited_reserve_transfer_assets` instead.**"] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] # [doc = "with all fees taken as needed from the asset."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReserveTransferAssets > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "reserve_transfer_assets" , types :: ReserveTransferAssets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (dest) , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (beneficiary) , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (assets) , fee_asset_item , } , [97u8 , 102u8 , 230u8 , 44u8 , 135u8 , 197u8 , 43u8 , 53u8 , 182u8 , 125u8 , 140u8 , 141u8 , 229u8 , 73u8 , 29u8 , 55u8 , 159u8 , 104u8 , 197u8 , 20u8 , 124u8 , 234u8 , 250u8 , 94u8 , 133u8 , 253u8 , 189u8 , 6u8 , 216u8 , 162u8 , 218u8 , 89u8 ,]) } # [doc = "Execute an XCM message from a local, signed, origin."] # [doc = ""] # [doc = "An event is deposited indicating whether `msg` could be executed completely or only"] # [doc = "partially."] # [doc = ""] # [doc = "No more than `max_weight` will be used in its attempted execution. If this is less than"] # [doc = "the maximum amount of weight that the message could take to be executed, then no"] # [doc = "execution attempt will be made."] pub fn execute (& self , message : types :: execute :: Message , max_weight : types :: execute :: MaxWeight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Execute > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "execute" , types :: Execute { message : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (message) , max_weight , } , [71u8 , 109u8 , 92u8 , 110u8 , 198u8 , 150u8 , 140u8 , 125u8 , 248u8 , 236u8 , 177u8 , 156u8 , 198u8 , 223u8 , 51u8 , 15u8 , 52u8 , 240u8 , 20u8 , 200u8 , 68u8 , 145u8 , 36u8 , 156u8 , 159u8 , 153u8 , 125u8 , 48u8 , 181u8 , 61u8 , 53u8 , 208u8 ,]) } # [doc = "Extoll that a particular destination can be communicated with through a particular"] # [doc = "version of XCM."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `location`: The destination that is being described."] # [doc = "- `xcm_version`: The latest version of XCM that `location` supports."] pub fn force_xcm_version (& self , location : types :: force_xcm_version :: Location , version : types :: force_xcm_version :: Version ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceXcmVersion > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "force_xcm_version" , types :: ForceXcmVersion { location : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (location) , version , } , [69u8 , 151u8 , 198u8 , 154u8 , 69u8 , 181u8 , 41u8 , 111u8 , 145u8 , 230u8 , 103u8 , 42u8 , 237u8 , 91u8 , 235u8 , 6u8 , 156u8 , 65u8 , 187u8 , 48u8 , 171u8 , 200u8 , 49u8 , 4u8 , 9u8 , 210u8 , 229u8 , 152u8 , 187u8 , 88u8 , 80u8 , 246u8 ,]) } # [doc = "Set a safe XCM version (the version that XCM should be encoded with if the most recent"] # [doc = "version a destination can accept is unknown)."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."] pub fn force_default_xcm_version (& self , maybe_xcm_version : types :: force_default_xcm_version :: MaybeXcmVersion ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceDefaultXcmVersion > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "force_default_xcm_version" , types :: ForceDefaultXcmVersion { maybe_xcm_version , } , [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 ,]) } # [doc = "Ask a location to notify us regarding their XCM version and any changes to it."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `location`: The location to which we should subscribe for XCM version notifications."] pub fn force_subscribe_version_notify (& self , location : types :: force_subscribe_version_notify :: Location ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSubscribeVersionNotify > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "force_subscribe_version_notify" , types :: ForceSubscribeVersionNotify { location : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (location) , } , [203u8 , 171u8 , 70u8 , 130u8 , 46u8 , 63u8 , 76u8 , 50u8 , 105u8 , 23u8 , 249u8 , 190u8 , 115u8 , 74u8 , 70u8 , 125u8 , 132u8 , 112u8 , 138u8 , 60u8 , 33u8 , 35u8 , 45u8 , 29u8 , 95u8 , 103u8 , 187u8 , 182u8 , 188u8 , 196u8 , 248u8 , 152u8 ,]) } # [doc = "Require that a particular destination should no longer notify us regarding any XCM"] # [doc = "version changes."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `location`: The location to which we are currently subscribed for XCM version"] # [doc = " notifications which we no longer desire."] pub fn force_unsubscribe_version_notify (& self , location : types :: force_unsubscribe_version_notify :: Location ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceUnsubscribeVersionNotify > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "force_unsubscribe_version_notify" , types :: ForceUnsubscribeVersionNotify { location : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (location) , } , [6u8 , 113u8 , 168u8 , 215u8 , 233u8 , 202u8 , 249u8 , 134u8 , 131u8 , 8u8 , 142u8 , 203u8 , 142u8 , 95u8 , 216u8 , 70u8 , 38u8 , 99u8 , 166u8 , 97u8 , 218u8 , 132u8 , 247u8 , 14u8 , 42u8 , 99u8 , 4u8 , 115u8 , 200u8 , 180u8 , 213u8 , 50u8 ,]) } # [doc = "Transfer some assets from the local chain to the destination chain through their local,"] # [doc = "destination or remote reserve."] # [doc = ""] # [doc = "`assets` must have same reserve location and may not be teleportable to `dest`."] # [doc = " - `assets` have local reserve: transfer assets to sovereign account of destination"] # [doc = " chain and forward a notification XCM to `dest` to mint and deposit reserve-based"] # [doc = " assets to `beneficiary`."] # [doc = " - `assets` have destination reserve: burn local assets and forward a notification to"] # [doc = " `dest` chain to withdraw the reserve assets from this chain's sovereign account and"] # [doc = " deposit them to `beneficiary`."] # [doc = " - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move"] # [doc = " reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`"] # [doc = " to mint and deposit reserve-based assets to `beneficiary`."] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] # [doc = "is needed than `weight_limit`, then the operation will fail and the sent assets may be"] # [doc = "at risk."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: LimitedReserveTransferAssets > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "limited_reserve_transfer_assets" , types :: LimitedReserveTransferAssets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (dest) , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (beneficiary) , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (assets) , fee_asset_item , weight_limit , } , [198u8 , 66u8 , 204u8 , 162u8 , 222u8 , 246u8 , 141u8 , 165u8 , 241u8 , 62u8 , 43u8 , 236u8 , 56u8 , 200u8 , 54u8 , 47u8 , 174u8 , 83u8 , 167u8 , 220u8 , 174u8 , 111u8 , 123u8 , 202u8 , 248u8 , 232u8 , 166u8 , 80u8 , 152u8 , 223u8 , 86u8 , 141u8 ,]) } # [doc = "Teleport some assets from the local chain to some destination chain."] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] # [doc = "is needed than `weight_limit`, then the operation will fail and the sent assets may be"] # [doc = "at risk."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` chain."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: LimitedTeleportAssets > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "limited_teleport_assets" , types :: LimitedTeleportAssets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (dest) , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (beneficiary) , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (assets) , fee_asset_item , weight_limit , } , [70u8 , 61u8 , 32u8 , 43u8 , 101u8 , 104u8 , 251u8 , 60u8 , 212u8 , 124u8 , 113u8 , 243u8 , 241u8 , 183u8 , 5u8 , 231u8 , 209u8 , 231u8 , 136u8 , 3u8 , 145u8 , 242u8 , 179u8 , 171u8 , 185u8 , 185u8 , 7u8 , 34u8 , 5u8 , 203u8 , 21u8 , 210u8 ,]) } # [doc = "Set or unset the global suspension state of the XCM executor."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `suspended`: `true` to suspend, `false` to resume."] pub fn force_suspension (& self , suspended : types :: force_suspension :: Suspended ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSuspension > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Transfer some assets from the local chain to the destination chain through their local,"] # [doc = "destination or remote reserve, or through teleports."] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for"] # [doc = "`weight_limit` of weight. If more weight is needed than `weight_limit`, then the"] # [doc = "operation will fail and the sent assets may be at risk."] # [doc = ""] # [doc = "`assets` (excluding `fees`) must have same reserve location or otherwise be teleportable"] # [doc = "to `dest`, no limitations imposed on `fees`."] # [doc = " - for local reserve: transfer assets to sovereign account of destination chain and"] # [doc = " forward a notification XCM to `dest` to mint and deposit reserve-based assets to"] # [doc = " `beneficiary`."] # [doc = " - for destination reserve: burn local assets and forward a notification to `dest` chain"] # [doc = " to withdraw the reserve assets from this chain's sovereign account and deposit them"] # [doc = " to `beneficiary`."] # [doc = " - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves"] # [doc = " from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint"] # [doc = " and deposit reserve-based assets to `beneficiary`."] # [doc = " - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport"] # [doc = " assets and deposit them to `beneficiary`."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent,"] # [doc = " Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send"] # [doc = " from relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] pub fn transfer_assets (& self , dest : types :: transfer_assets :: Dest , beneficiary : types :: transfer_assets :: Beneficiary , assets : types :: transfer_assets :: Assets , fee_asset_item : types :: transfer_assets :: FeeAssetItem , weight_limit : types :: transfer_assets :: WeightLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferAssets > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "transfer_assets" , types :: TransferAssets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (dest) , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (beneficiary) , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (assets) , fee_asset_item , weight_limit , } , [44u8 , 155u8 , 182u8 , 37u8 , 123u8 , 148u8 , 150u8 , 191u8 , 117u8 , 32u8 , 16u8 , 238u8 , 121u8 , 188u8 , 217u8 , 110u8 , 10u8 , 236u8 , 174u8 , 91u8 , 100u8 , 201u8 , 109u8 , 109u8 , 60u8 , 177u8 , 233u8 , 66u8 , 181u8 , 191u8 , 105u8 , 37u8 ,]) } # [doc = "Claims assets trapped on this pallet because of leftover assets during XCM execution."] # [doc = ""] # [doc = "- `origin`: Anyone can call this extrinsic."] # [doc = "- `assets`: The exact assets that were trapped. Use the version to specify what version"] # [doc = "was the latest when they were trapped."] # [doc = "- `beneficiary`: The location/account where the claimed assets will be deposited."] pub fn claim_assets (& self , assets : types :: claim_assets :: Assets , beneficiary : types :: claim_assets :: Beneficiary ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClaimAssets > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "claim_assets" , types :: ClaimAssets { assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (assets) , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (beneficiary) , } , [155u8 , 23u8 , 166u8 , 172u8 , 251u8 , 171u8 , 136u8 , 240u8 , 253u8 , 51u8 , 164u8 , 43u8 , 141u8 , 23u8 , 189u8 , 177u8 , 33u8 , 32u8 , 212u8 , 56u8 , 174u8 , 165u8 , 129u8 , 7u8 , 49u8 , 217u8 , 213u8 , 214u8 , 250u8 , 91u8 , 200u8 , 195u8 ,]) } # [doc = "Transfer assets from the local chain to the destination chain using explicit transfer"] # [doc = "types for assets and fees."] # [doc = ""] # [doc = "`assets` must have same reserve location or may be teleportable to `dest`. Caller must"] # [doc = "provide the `assets_transfer_type` to be used for `assets`:"] # [doc = " - `TransferType::LocalReserve`: transfer assets to sovereign account of destination"] # [doc = " chain and forward a notification XCM to `dest` to mint and deposit reserve-based"] # [doc = " assets to `beneficiary`."] # [doc = " - `TransferType::DestinationReserve`: burn local assets and forward a notification to"] # [doc = " `dest` chain to withdraw the reserve assets from this chain's sovereign account and"] # [doc = " deposit them to `beneficiary`."] # [doc = " - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`"] # [doc = " chain to move reserves from this chain's SA to `dest` chain's SA, and forward another"] # [doc = " XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically"] # [doc = " the remote `reserve` is Asset Hub."] # [doc = " - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to"] # [doc = " mint/teleport assets and deposit them to `beneficiary`."] # [doc = ""] # [doc = "On the destination chain, as well as any intermediary hops, `BuyExecution` is used to"] # [doc = "buy execution using transferred `assets` identified by `remote_fees_id`."] # [doc = "Make sure enough of the specified `remote_fees_id` asset is included in the given list"] # [doc = "of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight"] # [doc = "is needed than `weight_limit`, then the operation will fail and the sent assets may be"] # [doc = "at risk."] # [doc = ""] # [doc = "`remote_fees_id` may use different transfer type than rest of `assets` and can be"] # [doc = "specified through `fees_transfer_type`."] # [doc = ""] # [doc = "The caller needs to specify what should happen to the transferred assets once they reach"] # [doc = "the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which"] # [doc = "contains the instructions to execute on `dest` as a final step."] # [doc = " This is usually as simple as:"] # [doc = " `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,"] # [doc = " but could be something more exotic like sending the `assets` even further."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from"] # [doc = " parachain across a bridge to another ecosystem destination."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`."] # [doc = "- `remote_fees_id`: One of the included `assets` to be used to pay fees."] # [doc = "- `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets."] # [doc = "- `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the"] # [doc = " transfer, which also determines what happens to the assets on the destination chain."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] pub fn transfer_assets_using_type_and_then (& self , dest : types :: transfer_assets_using_type_and_then :: Dest , assets : types :: transfer_assets_using_type_and_then :: Assets , assets_transfer_type : types :: transfer_assets_using_type_and_then :: AssetsTransferType , remote_fees_id : types :: transfer_assets_using_type_and_then :: RemoteFeesId , fees_transfer_type : types :: transfer_assets_using_type_and_then :: FeesTransferType , custom_xcm_on_dest : types :: transfer_assets_using_type_and_then :: CustomXcmOnDest , weight_limit : types :: transfer_assets_using_type_and_then :: WeightLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferAssetsUsingTypeAndThen > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("XcmPallet" , "transfer_assets_using_type_and_then" , types :: TransferAssetsUsingTypeAndThen { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (dest) , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (assets) , assets_transfer_type : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (assets_transfer_type) , remote_fees_id : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (remote_fees_id) , fees_transfer_type : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (fees_transfer_type) , custom_xcm_on_dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (custom_xcm_on_dest) , weight_limit , } , [128u8 , 51u8 , 64u8 , 139u8 , 106u8 , 225u8 , 14u8 , 247u8 , 44u8 , 109u8 , 11u8 , 15u8 , 7u8 , 235u8 , 7u8 , 195u8 , 177u8 , 94u8 , 9u8 , 107u8 , 110u8 , 174u8 , 154u8 , 157u8 , 20u8 , 232u8 , 38u8 , 207u8 , 228u8 , 151u8 , 10u8 , 226u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_xcm :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Execution of an XCM message was attempted."] pub struct Attempted { pub outcome : attempted :: Outcome , } pub mod attempted { use super :: runtime_types ; pub type Outcome = runtime_types :: staging_xcm :: v4 :: traits :: Outcome ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Attempted { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "Attempted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , } pub mod sent { use super :: runtime_types ; pub type Origin = runtime_types :: staging_xcm :: v4 :: location :: Location ; pub type Destination = runtime_types :: staging_xcm :: v4 :: location :: Location ; pub type Message = runtime_types :: staging_xcm :: v4 :: Xcm ; pub type MessageId = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Sent { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "Sent" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , } pub mod unexpected_response { use super :: runtime_types ; pub type Origin = runtime_types :: staging_xcm :: v4 :: location :: Location ; pub type QueryId = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for UnexpectedResponse { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "UnexpectedResponse" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , } pub mod response_ready { use super :: runtime_types ; pub type QueryId = :: core :: primitive :: u64 ; pub type Response = runtime_types :: staging_xcm :: v4 :: Response ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ResponseReady { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "ResponseReady" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for Notified { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "Notified" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for NotifyOverweight { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "NotifyOverweight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for NotifyDispatchError { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "NotifyDispatchError" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for NotifyDecodeFailed { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "NotifyDecodeFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type QueryId = :: core :: primitive :: u64 ; pub type ExpectedLocation = :: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: location :: Location > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for InvalidResponder { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "InvalidResponder" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type QueryId = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for InvalidResponderVersion { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "InvalidResponderVersion" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for ResponseTaken { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "ResponseTaken" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; pub type Origin = runtime_types :: staging_xcm :: v4 :: location :: Location ; pub type Assets = runtime_types :: xcm :: VersionedAssets ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AssetsTrapped { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "AssetsTrapped" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type Result = :: core :: primitive :: u32 ; pub type Cost = runtime_types :: staging_xcm :: v4 :: asset :: Assets ; pub type MessageId = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for VersionChangeNotified { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "VersionChangeNotified" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type Version = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SupportedVersionChanged { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "SupportedVersionChanged" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type QueryId = :: core :: primitive :: u64 ; pub type Error = runtime_types :: xcm :: v3 :: traits :: Error ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NotifyTargetSendFail { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "NotifyTargetSendFail" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: VersionedLocation ; pub type QueryId = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NotifyTargetMigrationFail { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "NotifyTargetMigrationFail" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type QueryId = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for InvalidQuerierVersion { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "InvalidQuerierVersion" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type QueryId = :: core :: primitive :: u64 ; pub type ExpectedQuerier = runtime_types :: staging_xcm :: v4 :: location :: Location ; pub type MaybeActualQuerier = :: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: location :: Location > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for InvalidQuerier { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "InvalidQuerier" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type Cost = runtime_types :: staging_xcm :: v4 :: asset :: Assets ; pub type MessageId = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for VersionNotifyStarted { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "VersionNotifyStarted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type Cost = runtime_types :: staging_xcm :: v4 :: asset :: Assets ; pub type MessageId = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for VersionNotifyRequested { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "VersionNotifyRequested" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type Cost = runtime_types :: staging_xcm :: v4 :: asset :: Assets ; pub type MessageId = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for VersionNotifyUnrequested { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "VersionNotifyUnrequested" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v4 :: location :: Location ; pub type Fees = runtime_types :: staging_xcm :: v4 :: asset :: Assets ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for FeesPaid { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "FeesPaid" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; pub type Origin = runtime_types :: staging_xcm :: v4 :: location :: Location ; pub type Assets = runtime_types :: xcm :: VersionedAssets ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AssetsClaimed { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "AssetsClaimed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A XCM version migration finished."] pub struct VersionMigrationFinished { pub version : version_migration_finished :: Version , } pub mod version_migration_finished { use super :: runtime_types ; pub type Version = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for VersionMigrationFinished { const PALLET : & 'static str = "XcmPallet" ; const EVENT : & 'static str = "VersionMigrationFinished" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod query_counter { 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 :: ext :: subxt_core :: 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 :: VersionedLocation ; } 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 :: VersionedLocation ; } pub mod version_notify_targets { use super :: runtime_types ; pub type VersionNotifyTargets = (:: core :: primitive :: u64 , runtime_types :: sp_weights :: weight_v2 :: Weight , :: core :: primitive :: u32 ,) ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = runtime_types :: xcm :: VersionedLocation ; } pub mod version_discovery_queue { use super :: runtime_types ; pub type VersionDiscoveryQueue = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: xcm :: VersionedLocation , :: 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 :: ext :: subxt_core :: 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 :: VersionedLocation ,) > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod xcm_execution_suspended { use super :: runtime_types ; pub type XcmExecutionSuspended = :: core :: primitive :: bool ; } pub mod should_record_xcm { use super :: runtime_types ; pub type ShouldRecordXcm = :: core :: primitive :: bool ; } pub mod recorded_xcm { use super :: runtime_types ; pub type RecordedXcm = runtime_types :: staging_xcm :: v4 :: Xcm ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The latest available query index."] pub fn query_counter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: query_counter :: QueryCounter , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "QueryCounter" , () , [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 ,]) } # [doc = " The ongoing queries."] pub fn queries_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: queries :: Queries , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "Queries" , () , [246u8 , 75u8 , 240u8 , 129u8 , 106u8 , 114u8 , 99u8 , 154u8 , 176u8 , 188u8 , 146u8 , 125u8 , 244u8 , 103u8 , 187u8 , 171u8 , 60u8 , 119u8 , 4u8 , 90u8 , 58u8 , 180u8 , 48u8 , 165u8 , 145u8 , 125u8 , 227u8 , 233u8 , 11u8 , 142u8 , 122u8 , 3u8 ,]) } # [doc = " The ongoing queries."] pub fn queries (& self , _0 : impl :: core :: borrow :: Borrow < types :: queries :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: queries :: Param0 > , types :: queries :: Queries , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "Queries" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [246u8 , 75u8 , 240u8 , 129u8 , 106u8 , 114u8 , 99u8 , 154u8 , 176u8 , 188u8 , 146u8 , 125u8 , 244u8 , 103u8 , 187u8 , 171u8 , 60u8 , 119u8 , 4u8 , 90u8 , 58u8 , 180u8 , 48u8 , 165u8 , 145u8 , 125u8 , 227u8 , 233u8 , 11u8 , 142u8 , 122u8 , 3u8 ,]) } # [doc = " The existing asset traps."] # [doc = ""] # [doc = " Key is the blake2 256 hash of (origin, versioned `Assets`) 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: asset_traps :: AssetTraps , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "AssetTraps" , () , [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 `Assets`) 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 :: core :: borrow :: Borrow < types :: asset_traps :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: asset_traps :: Param0 > , types :: asset_traps :: AssetTraps , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "AssetTraps" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: safe_xcm_version :: SafeXcmVersion , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "SafeXcmVersion" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: supported_version :: SupportedVersion , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "SupportedVersion" , () , [144u8 , 218u8 , 177u8 , 254u8 , 210u8 , 8u8 , 84u8 , 149u8 , 163u8 , 162u8 , 238u8 , 37u8 , 157u8 , 28u8 , 140u8 , 121u8 , 201u8 , 173u8 , 204u8 , 92u8 , 133u8 , 45u8 , 156u8 , 38u8 , 61u8 , 51u8 , 153u8 , 161u8 , 147u8 , 146u8 , 202u8 , 24u8 ,]) } # [doc = " The Latest versions that we know various locations support."] pub fn supported_version_iter1 (& self , _0 : impl :: core :: borrow :: Borrow < types :: supported_version :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: supported_version :: Param0 > , types :: supported_version :: SupportedVersion , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "SupportedVersion" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [144u8 , 218u8 , 177u8 , 254u8 , 210u8 , 8u8 , 84u8 , 149u8 , 163u8 , 162u8 , 238u8 , 37u8 , 157u8 , 28u8 , 140u8 , 121u8 , 201u8 , 173u8 , 204u8 , 92u8 , 133u8 , 45u8 , 156u8 , 38u8 , 61u8 , 51u8 , 153u8 , 161u8 , 147u8 , 146u8 , 202u8 , 24u8 ,]) } # [doc = " The Latest versions that we know various locations support."] pub fn supported_version (& self , _0 : impl :: core :: borrow :: Borrow < types :: supported_version :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: supported_version :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: supported_version :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: supported_version :: Param1 > ,) , types :: supported_version :: SupportedVersion , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "SupportedVersion" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) ,) , [144u8 , 218u8 , 177u8 , 254u8 , 210u8 , 8u8 , 84u8 , 149u8 , 163u8 , 162u8 , 238u8 , 37u8 , 157u8 , 28u8 , 140u8 , 121u8 , 201u8 , 173u8 , 204u8 , 92u8 , 133u8 , 45u8 , 156u8 , 38u8 , 61u8 , 51u8 , 153u8 , 161u8 , 147u8 , 146u8 , 202u8 , 24u8 ,]) } # [doc = " All locations that we have requested version notifications from."] pub fn version_notifiers_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: version_notifiers :: VersionNotifiers , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "VersionNotifiers" , () , [175u8 , 206u8 , 29u8 , 14u8 , 111u8 , 123u8 , 211u8 , 109u8 , 159u8 , 131u8 , 80u8 , 149u8 , 216u8 , 196u8 , 181u8 , 105u8 , 117u8 , 138u8 , 80u8 , 69u8 , 237u8 , 116u8 , 195u8 , 66u8 , 209u8 , 102u8 , 42u8 , 126u8 , 222u8 , 176u8 , 201u8 , 49u8 ,]) } # [doc = " All locations that we have requested version notifications from."] pub fn version_notifiers_iter1 (& self , _0 : impl :: core :: borrow :: Borrow < types :: version_notifiers :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: version_notifiers :: Param0 > , types :: version_notifiers :: VersionNotifiers , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "VersionNotifiers" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [175u8 , 206u8 , 29u8 , 14u8 , 111u8 , 123u8 , 211u8 , 109u8 , 159u8 , 131u8 , 80u8 , 149u8 , 216u8 , 196u8 , 181u8 , 105u8 , 117u8 , 138u8 , 80u8 , 69u8 , 237u8 , 116u8 , 195u8 , 66u8 , 209u8 , 102u8 , 42u8 , 126u8 , 222u8 , 176u8 , 201u8 , 49u8 ,]) } # [doc = " All locations that we have requested version notifications from."] pub fn version_notifiers (& self , _0 : impl :: core :: borrow :: Borrow < types :: version_notifiers :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: version_notifiers :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: version_notifiers :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: version_notifiers :: Param1 > ,) , types :: version_notifiers :: VersionNotifiers , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "VersionNotifiers" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) ,) , [175u8 , 206u8 , 29u8 , 14u8 , 111u8 , 123u8 , 211u8 , 109u8 , 159u8 , 131u8 , 80u8 , 149u8 , 216u8 , 196u8 , 181u8 , 105u8 , 117u8 , 138u8 , 80u8 , 69u8 , 237u8 , 116u8 , 195u8 , 66u8 , 209u8 , 102u8 , 42u8 , 126u8 , 222u8 , 176u8 , 201u8 , 49u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: version_notify_targets :: VersionNotifyTargets , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "VersionNotifyTargets" , () , [113u8 , 77u8 , 150u8 , 42u8 , 82u8 , 49u8 , 195u8 , 120u8 , 96u8 , 80u8 , 152u8 , 67u8 , 27u8 , 142u8 , 10u8 , 74u8 , 66u8 , 134u8 , 35u8 , 202u8 , 77u8 , 187u8 , 174u8 , 22u8 , 207u8 , 199u8 , 57u8 , 85u8 , 53u8 , 208u8 , 146u8 , 81u8 ,]) } # [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 :: core :: borrow :: Borrow < types :: version_notify_targets :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: version_notify_targets :: Param0 > , types :: version_notify_targets :: VersionNotifyTargets , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "VersionNotifyTargets" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [113u8 , 77u8 , 150u8 , 42u8 , 82u8 , 49u8 , 195u8 , 120u8 , 96u8 , 80u8 , 152u8 , 67u8 , 27u8 , 142u8 , 10u8 , 74u8 , 66u8 , 134u8 , 35u8 , 202u8 , 77u8 , 187u8 , 174u8 , 22u8 , 207u8 , 199u8 , 57u8 , 85u8 , 53u8 , 208u8 , 146u8 , 81u8 ,]) } # [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 :: core :: borrow :: Borrow < types :: version_notify_targets :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: version_notify_targets :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: version_notify_targets :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: version_notify_targets :: Param1 > ,) , types :: version_notify_targets :: VersionNotifyTargets , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "VersionNotifyTargets" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) ,) , [113u8 , 77u8 , 150u8 , 42u8 , 82u8 , 49u8 , 195u8 , 120u8 , 96u8 , 80u8 , 152u8 , 67u8 , 27u8 , 142u8 , 10u8 , 74u8 , 66u8 , 134u8 , 35u8 , 202u8 , 77u8 , 187u8 , 174u8 , 22u8 , 207u8 , 199u8 , 57u8 , 85u8 , 53u8 , 208u8 , 146u8 , 81u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: version_discovery_queue :: VersionDiscoveryQueue , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "VersionDiscoveryQueue" , () , [95u8 , 74u8 , 97u8 , 94u8 , 40u8 , 140u8 , 175u8 , 176u8 , 224u8 , 222u8 , 83u8 , 199u8 , 170u8 , 102u8 , 3u8 , 77u8 , 127u8 , 208u8 , 155u8 , 122u8 , 176u8 , 51u8 , 15u8 , 253u8 , 231u8 , 245u8 , 91u8 , 192u8 , 60u8 , 144u8 , 101u8 , 168u8 ,]) } # [doc = " The current migration's stage, if any."] pub fn current_migration (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_migration :: CurrentMigration , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "CurrentMigration" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: remote_locked_fungibles :: RemoteLockedFungibles , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "RemoteLockedFungibles" , () , [247u8 , 124u8 , 77u8 , 42u8 , 208u8 , 183u8 , 99u8 , 196u8 , 50u8 , 113u8 , 250u8 , 221u8 , 222u8 , 170u8 , 10u8 , 60u8 , 143u8 , 172u8 , 149u8 , 198u8 , 125u8 , 154u8 , 196u8 , 196u8 , 145u8 , 209u8 , 68u8 , 28u8 , 241u8 , 241u8 , 201u8 , 150u8 ,]) } # [doc = " Fungible assets which we know are locked on a remote chain."] pub fn remote_locked_fungibles_iter1 (& self , _0 : impl :: core :: borrow :: Borrow < types :: remote_locked_fungibles :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: remote_locked_fungibles :: Param0 > , types :: remote_locked_fungibles :: RemoteLockedFungibles , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "RemoteLockedFungibles" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [247u8 , 124u8 , 77u8 , 42u8 , 208u8 , 183u8 , 99u8 , 196u8 , 50u8 , 113u8 , 250u8 , 221u8 , 222u8 , 170u8 , 10u8 , 60u8 , 143u8 , 172u8 , 149u8 , 198u8 , 125u8 , 154u8 , 196u8 , 196u8 , 145u8 , 209u8 , 68u8 , 28u8 , 241u8 , 241u8 , 201u8 , 150u8 ,]) } # [doc = " Fungible assets which we know are locked on a remote chain."] pub fn remote_locked_fungibles_iter2 (& self , _0 : impl :: core :: borrow :: Borrow < types :: remote_locked_fungibles :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: remote_locked_fungibles :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: remote_locked_fungibles :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: remote_locked_fungibles :: Param1 > ,) , types :: remote_locked_fungibles :: RemoteLockedFungibles , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "RemoteLockedFungibles" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) ,) , [247u8 , 124u8 , 77u8 , 42u8 , 208u8 , 183u8 , 99u8 , 196u8 , 50u8 , 113u8 , 250u8 , 221u8 , 222u8 , 170u8 , 10u8 , 60u8 , 143u8 , 172u8 , 149u8 , 198u8 , 125u8 , 154u8 , 196u8 , 196u8 , 145u8 , 209u8 , 68u8 , 28u8 , 241u8 , 241u8 , 201u8 , 150u8 ,]) } # [doc = " Fungible assets which we know are locked on a remote chain."] pub fn remote_locked_fungibles (& self , _0 : impl :: core :: borrow :: Borrow < types :: remote_locked_fungibles :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: remote_locked_fungibles :: Param1 > , _2 : impl :: core :: borrow :: Borrow < types :: remote_locked_fungibles :: Param2 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: remote_locked_fungibles :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: remote_locked_fungibles :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: remote_locked_fungibles :: Param2 > ,) , types :: remote_locked_fungibles :: RemoteLockedFungibles , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "RemoteLockedFungibles" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2 . borrow ()) ,) , [247u8 , 124u8 , 77u8 , 42u8 , 208u8 , 183u8 , 99u8 , 196u8 , 50u8 , 113u8 , 250u8 , 221u8 , 222u8 , 170u8 , 10u8 , 60u8 , 143u8 , 172u8 , 149u8 , 198u8 , 125u8 , 154u8 , 196u8 , 196u8 , 145u8 , 209u8 , 68u8 , 28u8 , 241u8 , 241u8 , 201u8 , 150u8 ,]) } # [doc = " Fungible assets which we know are locked on this chain."] pub fn locked_fungibles_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: locked_fungibles :: LockedFungibles , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "LockedFungibles" , () , [254u8 , 234u8 , 1u8 , 27u8 , 27u8 , 32u8 , 217u8 , 24u8 , 47u8 , 30u8 , 62u8 , 80u8 , 86u8 , 125u8 , 120u8 , 24u8 , 143u8 , 229u8 , 161u8 , 153u8 , 240u8 , 246u8 , 80u8 , 15u8 , 49u8 , 189u8 , 20u8 , 204u8 , 239u8 , 198u8 , 97u8 , 174u8 ,]) } # [doc = " Fungible assets which we know are locked on this chain."] pub fn locked_fungibles (& self , _0 : impl :: core :: borrow :: Borrow < types :: locked_fungibles :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: locked_fungibles :: Param0 > , types :: locked_fungibles :: LockedFungibles , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "LockedFungibles" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [254u8 , 234u8 , 1u8 , 27u8 , 27u8 , 32u8 , 217u8 , 24u8 , 47u8 , 30u8 , 62u8 , 80u8 , 86u8 , 125u8 , 120u8 , 24u8 , 143u8 , 229u8 , 161u8 , 153u8 , 240u8 , 246u8 , 80u8 , 15u8 , 49u8 , 189u8 , 20u8 , 204u8 , 239u8 , 198u8 , 97u8 , 174u8 ,]) } # [doc = " Global suspension state of the XCM executor."] pub fn xcm_execution_suspended (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: xcm_execution_suspended :: XcmExecutionSuspended , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "XcmExecutionSuspended" , () , [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 ,]) } # [doc = " Whether or not incoming XCMs (both executed locally and received) should be recorded."] # [doc = " Only one XCM program will be recorded at a time."] # [doc = " This is meant to be used in runtime APIs, and it's advised it stays false"] # [doc = " for all other use cases, so as to not degrade regular performance."] # [doc = ""] # [doc = " Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]"] # [doc = " implementation in the XCM executor configuration."] pub fn should_record_xcm (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: should_record_xcm :: ShouldRecordXcm , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "ShouldRecordXcm" , () , [77u8 , 184u8 , 154u8 , 92u8 , 185u8 , 225u8 , 131u8 , 210u8 , 55u8 , 115u8 , 3u8 , 182u8 , 191u8 , 132u8 , 51u8 , 136u8 , 42u8 , 136u8 , 54u8 , 36u8 , 229u8 , 229u8 , 47u8 , 88u8 , 4u8 , 175u8 , 136u8 , 78u8 , 226u8 , 253u8 , 13u8 , 178u8 ,]) } # [doc = " If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally"] # [doc = " will be stored here."] # [doc = " Runtime APIs can fetch the XCM that was executed by accessing this value."] # [doc = ""] # [doc = " Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]"] # [doc = " implementation in the XCM executor configuration."] pub fn recorded_xcm (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: recorded_xcm :: RecordedXcm , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("XcmPallet" , "RecordedXcm" , () , [20u8 , 231u8 , 100u8 , 77u8 , 9u8 , 170u8 , 144u8 , 49u8 , 131u8 , 233u8 , 184u8 , 123u8 , 186u8 , 56u8 , 115u8 , 3u8 , 79u8 , 234u8 , 71u8 , 93u8 , 87u8 , 172u8 , 2u8 , 3u8 , 144u8 , 151u8 , 135u8 , 149u8 , 106u8 , 96u8 , 125u8 , 12u8 ,]) } } } } 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a page which has no more messages remaining to be processed or is stale."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReapPage { const PALLET : & 'static str = "MessageQueue" ; const CALL : & 'static str = "reap_page" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Execute an overweight message."] # [doc = ""] # [doc = "Temporary processing errors will be propagated whereas permanent errors are treated"] # [doc = "as success condition."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `message_origin`: The origin from which the message to be executed arrived."] # [doc = "- `page`: The page in the queue in which the message to be executed is sitting."] # [doc = "- `index`: The index into the queue of the message to be executed."] # [doc = "- `weight_limit`: The maximum amount of weight allowed to be consumed in the execution"] # [doc = " of the message."] # [doc = ""] # [doc = "Benchmark complexity considerations: O(index + weight_limit)."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for ExecuteOverweight { const PALLET : & 'static str = "MessageQueue" ; const CALL : & 'static str = "execute_overweight" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Remove a page which has no more messages remaining to be processed or is stale."] pub fn reap_page (& self , message_origin : types :: reap_page :: MessageOrigin , page_index : types :: reap_page :: PageIndex ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReapPage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 = "Execute an overweight message."] # [doc = ""] # [doc = "Temporary processing errors will be propagated whereas permanent errors are treated"] # [doc = "as success condition."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `message_origin`: The origin from which the message to be executed arrived."] # [doc = "- `page`: The page in the queue in which the message to be executed is sitting."] # [doc = "- `index`: The index into the queue of the message to be executed."] # [doc = "- `weight_limit`: The maximum amount of weight allowed to be consumed in the execution"] # [doc = " of the message."] # [doc = ""] # [doc = "Benchmark complexity considerations: O(index + weight_limit)."] 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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ExecuteOverweight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; pub type Origin = runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin ; pub type Error = runtime_types :: frame_support :: traits :: messages :: ProcessMessageError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ProcessingFailed { const PALLET : & 'static str = "MessageQueue" ; const EVENT : & 'static str = "ProcessingFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 ; 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 :: ext :: subxt_core :: events :: StaticEvent for Processed { const PALLET : & 'static str = "MessageQueue" ; const EVENT : & 'static str = "Processed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: events :: StaticEvent for OverweightEnqueued { const PALLET : & 'static str = "MessageQueue" ; const EVENT : & 'static str = "OverweightEnqueued" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: book_state_for :: BookStateFor , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MessageQueue" , "BookStateFor" , () , [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 :: core :: borrow :: Borrow < types :: book_state_for :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: book_state_for :: Param0 > , types :: book_state_for :: BookStateFor , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MessageQueue" , "BookStateFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: service_head :: ServiceHead , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MessageQueue" , "ServiceHead" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pages :: Pages , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MessageQueue" , "Pages" , () , [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 :: core :: borrow :: Borrow < types :: pages :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pages :: Param0 > , types :: pages :: Pages , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MessageQueue" , "Pages" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: core :: borrow :: Borrow < types :: pages :: Param0 > , _1 : impl :: core :: borrow :: Borrow < types :: pages :: Param1 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pages :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pages :: Param1 > ,) , types :: pages :: Pages , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MessageQueue" , "Pages" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 `on_initialize`."] # [doc = ""] # [doc = " This may be legitimately `None` in the case that you will call"] # [doc = " `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have"] # [doc = " it run in `on_idle`."] pub fn service_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " The maximum amount of weight (if any) to be used from remaining weight `on_idle` which"] # [doc = " should be provided to the message queue for servicing enqueued items `on_idle`."] # [doc = " Useful for parachains to process messages at the same block they are received."] # [doc = ""] # [doc = " If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`."] pub fn idle_max_service_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("MessageQueue" , "IdleMaxServiceWeight" , [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 asset_rate { 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 ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_asset_rate :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Initialize a conversion rate to native balance for the given asset."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] pub struct Create { pub asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < create :: AssetKind > , pub rate : create :: Rate , } pub mod create { use super :: runtime_types ; pub type AssetKind = runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset ; pub type Rate = runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Create { const PALLET : & 'static str = "AssetRate" ; const CALL : & 'static str = "create" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the conversion rate to native balance for the given asset."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] pub struct Update { pub asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < update :: AssetKind > , pub rate : update :: Rate , } pub mod update { use super :: runtime_types ; pub type AssetKind = runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset ; pub type Rate = runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Update { const PALLET : & 'static str = "AssetRate" ; const CALL : & 'static str = "update" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove an existing conversion rate to native balance for the given asset."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] pub struct Remove { pub asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < remove :: AssetKind > , } pub mod remove { use super :: runtime_types ; pub type AssetKind = runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Remove { const PALLET : & 'static str = "AssetRate" ; const CALL : & 'static str = "remove" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Initialize a conversion rate to native balance for the given asset."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] pub fn create (& self , asset_kind : types :: create :: AssetKind , rate : types :: create :: Rate ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Create > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AssetRate" , "create" , types :: Create { asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (asset_kind) , rate , } , [163u8 , 173u8 , 223u8 , 197u8 , 42u8 , 251u8 , 151u8 , 159u8 , 252u8 , 132u8 , 225u8 , 224u8 , 207u8 , 127u8 , 38u8 , 0u8 , 101u8 , 46u8 , 29u8 , 65u8 , 2u8 , 241u8 , 3u8 , 79u8 , 218u8 , 10u8 , 159u8 , 122u8 , 48u8 , 7u8 , 225u8 , 103u8 ,]) } # [doc = "Update the conversion rate to native balance for the given asset."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] pub fn update (& self , asset_kind : types :: update :: AssetKind , rate : types :: update :: Rate ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Update > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AssetRate" , "update" , types :: Update { asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (asset_kind) , rate , } , [21u8 , 51u8 , 198u8 , 111u8 , 185u8 , 155u8 , 215u8 , 34u8 , 5u8 , 135u8 , 138u8 , 77u8 , 76u8 , 158u8 , 63u8 , 240u8 , 117u8 , 39u8 , 83u8 , 146u8 , 70u8 , 136u8 , 61u8 , 159u8 , 30u8 , 66u8 , 85u8 , 41u8 , 122u8 , 174u8 , 25u8 , 49u8 ,]) } # [doc = "Remove an existing conversion rate to native balance for the given asset."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] pub fn remove (& self , asset_kind : types :: remove :: AssetKind ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Remove > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AssetRate" , "remove" , types :: Remove { asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (asset_kind) , } , [205u8 , 34u8 , 63u8 , 131u8 , 204u8 , 76u8 , 186u8 , 233u8 , 160u8 , 45u8 , 231u8 , 159u8 , 186u8 , 60u8 , 97u8 , 218u8 , 174u8 , 144u8 , 106u8 , 58u8 , 69u8 , 23u8 , 244u8 , 129u8 , 19u8 , 250u8 , 16u8 , 99u8 , 165u8 , 165u8 , 101u8 , 18u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_asset_rate :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AssetRateCreated { pub asset_kind : asset_rate_created :: AssetKind , pub rate : asset_rate_created :: Rate , } pub mod asset_rate_created { use super :: runtime_types ; pub type AssetKind = runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset ; pub type Rate = runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AssetRateCreated { const PALLET : & 'static str = "AssetRate" ; const EVENT : & 'static str = "AssetRateCreated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AssetRateRemoved { pub asset_kind : asset_rate_removed :: AssetKind , } pub mod asset_rate_removed { use super :: runtime_types ; pub type AssetKind = runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AssetRateRemoved { const PALLET : & 'static str = "AssetRate" ; const EVENT : & 'static str = "AssetRateRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = 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 ; } impl :: subxt :: ext :: subxt_core :: 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 conversion_rate_to_native { 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 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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: conversion_rate_to_native :: ConversionRateToNative , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("AssetRate" , "ConversionRateToNative" , () , [230u8 , 127u8 , 110u8 , 126u8 , 79u8 , 168u8 , 134u8 , 97u8 , 195u8 , 105u8 , 16u8 , 57u8 , 197u8 , 104u8 , 87u8 , 144u8 , 83u8 , 188u8 , 85u8 , 253u8 , 230u8 , 194u8 , 183u8 , 235u8 , 152u8 , 222u8 , 40u8 , 20u8 , 135u8 , 98u8 , 140u8 , 108u8 ,]) } # [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 :: core :: borrow :: Borrow < types :: conversion_rate_to_native :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: conversion_rate_to_native :: Param0 > , types :: conversion_rate_to_native :: ConversionRateToNative , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("AssetRate" , "ConversionRateToNative" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [230u8 , 127u8 , 110u8 , 126u8 , 79u8 , 168u8 , 134u8 , 97u8 , 195u8 , 105u8 , 16u8 , 57u8 , 197u8 , 104u8 , 87u8 , 144u8 , 83u8 , 188u8 , 85u8 , 253u8 , 230u8 , 194u8 , 183u8 , 235u8 , 152u8 , 222u8 , 40u8 , 20u8 , 135u8 , 98u8 , 140u8 , 108u8 ,]) } } } } pub mod beefy { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_beefy :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_beefy :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] pub struct ReportEquivocation { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation :: EquivocationProof > , pub key_owner_proof : report_equivocation :: KeyOwnerProof , } pub mod report_equivocation { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_beefy :: DoubleVotingProof < :: core :: primitive :: u32 , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Public , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Signature > ; pub type KeyOwnerProof = runtime_types :: sp_session :: MembershipProof ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocation { const PALLET : & 'static str = "Beefy" ; const CALL : & 'static str = "report_equivocation" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub struct ReportEquivocationUnsigned { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation_unsigned :: EquivocationProof > , pub key_owner_proof : report_equivocation_unsigned :: KeyOwnerProof , } pub mod report_equivocation_unsigned { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_beefy :: DoubleVotingProof < :: core :: primitive :: u32 , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Public , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Signature > ; pub type KeyOwnerProof = runtime_types :: sp_session :: MembershipProof ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocationUnsigned { const PALLET : & 'static str = "Beefy" ; const CALL : & 'static str = "report_equivocation_unsigned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the"] # [doc = "future."] # [doc = ""] # [doc = "Note: `delay_in_blocks` has to be at least 1."] pub struct SetNewGenesis { pub delay_in_blocks : set_new_genesis :: DelayInBlocks , } pub mod set_new_genesis { use super :: runtime_types ; pub type DelayInBlocks = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetNewGenesis { const PALLET : & 'static str = "Beefy" ; const CALL : & 'static str = "set_new_genesis" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] pub fn report_equivocation (& self , equivocation_proof : types :: report_equivocation :: EquivocationProof , key_owner_proof : types :: report_equivocation :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocation > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Beefy" , "report_equivocation" , types :: ReportEquivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [196u8 , 92u8 , 30u8 , 54u8 , 79u8 , 96u8 , 54u8 , 238u8 , 29u8 , 255u8 , 252u8 , 236u8 , 8u8 , 104u8 , 107u8 , 190u8 , 115u8 , 54u8 , 232u8 , 58u8 , 145u8 , 191u8 , 110u8 , 12u8 , 165u8 , 154u8 , 48u8 , 216u8 , 178u8 , 99u8 , 123u8 , 218u8 ,]) } # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub fn report_equivocation_unsigned (& self , equivocation_proof : types :: report_equivocation_unsigned :: EquivocationProof , key_owner_proof : types :: report_equivocation_unsigned :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocationUnsigned > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Beefy" , "report_equivocation_unsigned" , types :: ReportEquivocationUnsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [106u8 , 120u8 , 157u8 , 177u8 , 251u8 , 12u8 , 39u8 , 235u8 , 94u8 , 241u8 , 75u8 , 204u8 , 100u8 , 82u8 , 246u8 , 168u8 , 238u8 , 155u8 , 163u8 , 20u8 , 83u8 , 81u8 , 77u8 , 206u8 , 10u8 , 159u8 , 196u8 , 223u8 , 11u8 , 98u8 , 128u8 , 97u8 ,]) } # [doc = "Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the"] # [doc = "future."] # [doc = ""] # [doc = "Note: `delay_in_blocks` has to be at least 1."] pub fn set_new_genesis (& self , delay_in_blocks : types :: set_new_genesis :: DelayInBlocks ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetNewGenesis > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Beefy" , "set_new_genesis" , types :: SetNewGenesis { delay_in_blocks , } , [147u8 , 6u8 , 252u8 , 43u8 , 77u8 , 91u8 , 170u8 , 45u8 , 112u8 , 155u8 , 158u8 , 79u8 , 1u8 , 116u8 , 162u8 , 146u8 , 181u8 , 9u8 , 171u8 , 48u8 , 198u8 , 210u8 , 243u8 , 64u8 , 229u8 , 35u8 , 28u8 , 177u8 , 144u8 , 22u8 , 165u8 , 163u8 ,]) } } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod authorities { use super :: runtime_types ; pub type Authorities = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Public > ; } pub mod validator_set_id { use super :: runtime_types ; pub type ValidatorSetId = :: core :: primitive :: u64 ; } pub mod next_authorities { use super :: runtime_types ; pub type NextAuthorities = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Public > ; } pub mod set_id_session { use super :: runtime_types ; pub type SetIdSession = :: core :: primitive :: u32 ; pub type Param0 = :: core :: primitive :: u64 ; } pub mod genesis_block { use super :: runtime_types ; pub type GenesisBlock = :: core :: option :: Option < :: core :: primitive :: u32 > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The current authorities set"] pub fn authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorities :: Authorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Beefy" , "Authorities" , () , [135u8 , 146u8 , 24u8 , 144u8 , 245u8 , 251u8 , 253u8 , 63u8 , 44u8 , 46u8 , 72u8 , 115u8 , 190u8 , 93u8 , 201u8 , 244u8 , 80u8 , 80u8 , 156u8 , 171u8 , 69u8 , 126u8 , 67u8 , 51u8 , 196u8 , 136u8 , 93u8 , 176u8 , 111u8 , 247u8 , 19u8 , 161u8 ,]) } # [doc = " The current validator set id"] pub fn validator_set_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_set_id :: ValidatorSetId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Beefy" , "ValidatorSetId" , () , [168u8 , 84u8 , 23u8 , 134u8 , 153u8 , 30u8 , 183u8 , 176u8 , 206u8 , 100u8 , 109u8 , 86u8 , 109u8 , 126u8 , 146u8 , 175u8 , 173u8 , 1u8 , 253u8 , 42u8 , 122u8 , 207u8 , 71u8 , 4u8 , 145u8 , 83u8 , 148u8 , 29u8 , 243u8 , 52u8 , 29u8 , 78u8 ,]) } # [doc = " Authorities set scheduled to be used with the next session"] pub fn next_authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_authorities :: NextAuthorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Beefy" , "NextAuthorities" , () , [183u8 , 185u8 , 111u8 , 92u8 , 70u8 , 221u8 , 225u8 , 184u8 , 218u8 , 97u8 , 108u8 , 66u8 , 60u8 , 148u8 , 40u8 , 73u8 , 236u8 , 28u8 , 169u8 , 32u8 , 202u8 , 125u8 , 238u8 , 246u8 , 210u8 , 51u8 , 25u8 , 61u8 , 220u8 , 195u8 , 156u8 , 217u8 ,]) } # [doc = " A mapping from BEEFY set ID to the index of the *most recent* session for which its"] # [doc = " members were responsible."] # [doc = ""] # [doc = " This is only used for validating equivocation proofs. An equivocation proof must"] # [doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] # [doc = " together sessions and BEEFY set ids, i.e. we need to validate that a validator"] # [doc = " was the owner of a given key on a given session, and what the active set ID was"] # [doc = " during that session."] # [doc = ""] # [doc = " TWOX-NOTE: `ValidatorSetId` is not under user control."] pub fn set_id_session_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: set_id_session :: SetIdSession , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Beefy" , "SetIdSession" , () , [47u8 , 0u8 , 239u8 , 121u8 , 187u8 , 213u8 , 254u8 , 50u8 , 238u8 , 10u8 , 162u8 , 65u8 , 189u8 , 166u8 , 37u8 , 74u8 , 82u8 , 81u8 , 160u8 , 20u8 , 180u8 , 253u8 , 238u8 , 18u8 , 209u8 , 203u8 , 38u8 , 148u8 , 16u8 , 105u8 , 72u8 , 169u8 ,]) } # [doc = " A mapping from BEEFY set ID to the index of the *most recent* session for which its"] # [doc = " members were responsible."] # [doc = ""] # [doc = " This is only used for validating equivocation proofs. An equivocation proof must"] # [doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] # [doc = " together sessions and BEEFY set ids, i.e. we need to validate that a validator"] # [doc = " was the owner of a given key on a given session, and what the active set ID was"] # [doc = " during that session."] # [doc = ""] # [doc = " TWOX-NOTE: `ValidatorSetId` is not under user control."] pub fn set_id_session (& self , _0 : impl :: core :: borrow :: Borrow < types :: set_id_session :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: set_id_session :: Param0 > , types :: set_id_session :: SetIdSession , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Beefy" , "SetIdSession" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [47u8 , 0u8 , 239u8 , 121u8 , 187u8 , 213u8 , 254u8 , 50u8 , 238u8 , 10u8 , 162u8 , 65u8 , 189u8 , 166u8 , 37u8 , 74u8 , 82u8 , 81u8 , 160u8 , 20u8 , 180u8 , 253u8 , 238u8 , 18u8 , 209u8 , 203u8 , 38u8 , 148u8 , 16u8 , 105u8 , 72u8 , 169u8 ,]) } # [doc = " Block number where BEEFY consensus is enabled/started."] # [doc = " By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively"] # [doc = " restarted from the newly set block number."] pub fn genesis_block (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: genesis_block :: GenesisBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Beefy" , "GenesisBlock" , () , [198u8 , 155u8 , 11u8 , 240u8 , 189u8 , 245u8 , 159u8 , 127u8 , 55u8 , 33u8 , 48u8 , 29u8 , 209u8 , 119u8 , 163u8 , 24u8 , 28u8 , 22u8 , 163u8 , 163u8 , 124u8 , 88u8 , 126u8 , 4u8 , 193u8 , 158u8 , 29u8 , 243u8 , 212u8 , 4u8 , 41u8 , 22u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The maximum number of authorities that can be added."] pub fn max_authorities (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Beefy" , "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 number of nominators for each validator."] pub fn max_nominators (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Beefy" , "MaxNominators" , [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 entries to keep in the set id to session index mapping."] # [doc = ""] # [doc = " Since the `SetIdSession` map is only used for validating equivocations this"] # [doc = " value should relate to the bonding duration of whatever staking system is"] # [doc = " being used (if any). If equivocation handling is not enabled then this value"] # [doc = " can be zero."] pub fn max_set_id_session_entries (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Beefy" , "MaxSetIdSessionEntries" , [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 mmr { use super :: root_mod ; use super :: runtime_types ; pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod root_hash { use super :: runtime_types ; pub type RootHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod number_of_leaves { use super :: runtime_types ; pub type NumberOfLeaves = :: core :: primitive :: u64 ; } pub mod nodes { use super :: runtime_types ; pub type Nodes = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = :: core :: primitive :: u64 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Latest MMR Root hash."] pub fn root_hash (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_hash :: RootHash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Mmr" , "RootHash" , () , [111u8 , 206u8 , 173u8 , 92u8 , 67u8 , 49u8 , 150u8 , 113u8 , 90u8 , 245u8 , 38u8 , 254u8 , 76u8 , 250u8 , 167u8 , 66u8 , 130u8 , 129u8 , 251u8 , 220u8 , 172u8 , 229u8 , 162u8 , 251u8 , 36u8 , 227u8 , 43u8 , 189u8 , 7u8 , 106u8 , 23u8 , 13u8 ,]) } # [doc = " Current size of the MMR (number of leaves)."] pub fn number_of_leaves (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: number_of_leaves :: NumberOfLeaves , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Mmr" , "NumberOfLeaves" , () , [123u8 , 58u8 , 149u8 , 174u8 , 85u8 , 45u8 , 20u8 , 115u8 , 241u8 , 0u8 , 51u8 , 174u8 , 234u8 , 60u8 , 230u8 , 59u8 , 237u8 , 144u8 , 170u8 , 32u8 , 4u8 , 0u8 , 34u8 , 163u8 , 238u8 , 205u8 , 93u8 , 208u8 , 53u8 , 38u8 , 141u8 , 195u8 ,]) } # [doc = " Hashes of the nodes in the MMR."] # [doc = ""] # [doc = " Note this collection only contains MMR peaks, the inner nodes (and leaves)"] # [doc = " are pruned and only stored in the Offchain DB."] pub fn nodes_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: nodes :: Nodes , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Mmr" , "Nodes" , () , [27u8 , 84u8 , 41u8 , 195u8 , 146u8 , 81u8 , 211u8 , 189u8 , 63u8 , 125u8 , 173u8 , 206u8 , 69u8 , 198u8 , 202u8 , 213u8 , 89u8 , 31u8 , 89u8 , 177u8 , 76u8 , 154u8 , 249u8 , 197u8 , 133u8 , 78u8 , 142u8 , 71u8 , 183u8 , 3u8 , 132u8 , 25u8 ,]) } # [doc = " Hashes of the nodes in the MMR."] # [doc = ""] # [doc = " Note this collection only contains MMR peaks, the inner nodes (and leaves)"] # [doc = " are pruned and only stored in the Offchain DB."] pub fn nodes (& self , _0 : impl :: core :: borrow :: Borrow < types :: nodes :: Param0 > ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: nodes :: Param0 > , types :: nodes :: Nodes , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Mmr" , "Nodes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0 . borrow ()) , [27u8 , 84u8 , 41u8 , 195u8 , 146u8 , 81u8 , 211u8 , 189u8 , 63u8 , 125u8 , 173u8 , 206u8 , 69u8 , 198u8 , 202u8 , 213u8 , 89u8 , 31u8 , 89u8 , 177u8 , 76u8 , 154u8 , 249u8 , 197u8 , 133u8 , 78u8 , 142u8 , 71u8 , 183u8 , 3u8 , 132u8 , 25u8 ,]) } } } } pub mod beefy_mmr_leaf { use super :: root_mod ; use super :: runtime_types ; pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod beefy_authorities { use super :: runtime_types ; pub type BeefyAuthorities = runtime_types :: sp_consensus_beefy :: mmr :: BeefyAuthoritySet < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } pub mod beefy_next_authorities { use super :: runtime_types ; pub type BeefyNextAuthorities = runtime_types :: sp_consensus_beefy :: mmr :: BeefyAuthoritySet < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Details of current BEEFY authority set."] pub fn beefy_authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: beefy_authorities :: BeefyAuthorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("BeefyMmrLeaf" , "BeefyAuthorities" , () , [128u8 , 35u8 , 176u8 , 79u8 , 224u8 , 58u8 , 214u8 , 234u8 , 231u8 , 71u8 , 227u8 , 153u8 , 180u8 , 189u8 , 66u8 , 44u8 , 47u8 , 174u8 , 0u8 , 83u8 , 121u8 , 182u8 , 226u8 , 44u8 , 224u8 , 173u8 , 237u8 , 102u8 , 231u8 , 146u8 , 110u8 , 7u8 ,]) } # [doc = " Details of next BEEFY authority set."] # [doc = ""] # [doc = " This storage entry is used as cache for calls to `update_beefy_next_authority_set`."] pub fn beefy_next_authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: beefy_next_authorities :: BeefyNextAuthorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("BeefyMmrLeaf" , "BeefyNextAuthorities" , () , [97u8 , 71u8 , 52u8 , 111u8 , 120u8 , 251u8 , 183u8 , 155u8 , 177u8 , 100u8 , 236u8 , 142u8 , 204u8 , 117u8 , 95u8 , 40u8 , 201u8 , 36u8 , 32u8 , 82u8 , 38u8 , 234u8 , 135u8 , 39u8 , 224u8 , 69u8 , 94u8 , 85u8 , 12u8 , 89u8 , 97u8 , 218u8 ,]) } } } } pub mod para_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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a para to be initialized at the start of the next session."] # [doc = ""] # [doc = "This should only be used for TESTING and not on PRODUCTION chains. It automatically"] # [doc = "assigns Coretime to the chain and increases the number of cores. Thus, there is no"] # [doc = "running coretime chain required."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoScheduleParaInitialize { const PALLET : & 'static str = "ParaSudoWrapper" ; const CALL : & 'static str = "sudo_schedule_para_initialize" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a para to be cleaned up at the start of the next session."] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoScheduleParaCleanup { const PALLET : & 'static str = "ParaSudoWrapper" ; const CALL : & 'static str = "sudo_schedule_para_cleanup" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Upgrade a parathread (on-demand parachain) to a lease holding parachain"] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoScheduleParathreadUpgrade { const PALLET : & 'static str = "ParaSudoWrapper" ; const CALL : & 'static str = "sudo_schedule_parathread_upgrade" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Downgrade a lease holding parachain to an on-demand parachain"] 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoScheduleParachainDowngrade { const PALLET : & 'static str = "ParaSudoWrapper" ; const CALL : & 'static str = "sudo_schedule_parachain_downgrade" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a downward XCM to the given para."] # [doc = ""] # [doc = "The given parachain should exist and the payload should not exceed the preconfigured"] # [doc = "size `config.max_downward_message_size`."] pub struct SudoQueueDownwardXcm { pub id : sudo_queue_downward_xcm :: Id , pub xcm : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo_queue_downward_xcm :: Xcm > , } 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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoQueueDownwardXcm { const PALLET : & 'static str = "ParaSudoWrapper" ; const CALL : & 'static str = "sudo_queue_downward_xcm" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Forcefully establish a channel from the sender to the recipient."] # [doc = ""] # [doc = "This is equivalent to sending an `Hrmp::hrmp_init_open_channel` extrinsic followed by"] # [doc = "`Hrmp::hrmp_accept_open_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 :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoEstablishHrmpChannel { const PALLET : & 'static str = "ParaSudoWrapper" ; const CALL : & 'static str = "sudo_establish_hrmp_channel" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Schedule a para to be initialized at the start of the next session."] # [doc = ""] # [doc = "This should only be used for TESTING and not on PRODUCTION chains. It automatically"] # [doc = "assigns Coretime to the chain and increases the number of cores. Thus, there is no"] # [doc = "running coretime chain required."] pub fn sudo_schedule_para_initialize (& self , id : types :: sudo_schedule_para_initialize :: Id , genesis : types :: sudo_schedule_para_initialize :: Genesis ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoScheduleParaInitialize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ParaSudoWrapper" , "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 = "Schedule a para to be cleaned up at the start of the next session."] pub fn sudo_schedule_para_cleanup (& self , id : types :: sudo_schedule_para_cleanup :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoScheduleParaCleanup > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ParaSudoWrapper" , "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 = "Upgrade a parathread (on-demand parachain) to a lease holding parachain"] pub fn sudo_schedule_parathread_upgrade (& self , id : types :: sudo_schedule_parathread_upgrade :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoScheduleParathreadUpgrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ParaSudoWrapper" , "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 = "Downgrade a lease holding parachain to an on-demand parachain"] pub fn sudo_schedule_parachain_downgrade (& self , id : types :: sudo_schedule_parachain_downgrade :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoScheduleParachainDowngrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ParaSudoWrapper" , "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 = "Send a downward XCM to the given para."] # [doc = ""] # [doc = "The given parachain should exist and the payload should not exceed the preconfigured"] # [doc = "size `config.max_downward_message_size`."] pub fn sudo_queue_downward_xcm (& self , id : types :: sudo_queue_downward_xcm :: Id , xcm : types :: sudo_queue_downward_xcm :: Xcm ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoQueueDownwardXcm > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ParaSudoWrapper" , "sudo_queue_downward_xcm" , types :: SudoQueueDownwardXcm { id , xcm : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (xcm) , } , [35u8 , 59u8 , 126u8 , 248u8 , 211u8 , 246u8 , 239u8 , 67u8 , 252u8 , 100u8 , 231u8 , 46u8 , 197u8 , 83u8 , 150u8 , 54u8 , 215u8 , 188u8 , 76u8 , 193u8 , 60u8 , 38u8 , 251u8 , 162u8 , 19u8 , 15u8 , 214u8 , 51u8 , 24u8 , 2u8 , 9u8 , 116u8 ,]) } # [doc = "Forcefully establish a channel from the sender to the recipient."] # [doc = ""] # [doc = "This is equivalent to sending an `Hrmp::hrmp_init_open_channel` extrinsic followed by"] # [doc = "`Hrmp::hrmp_accept_open_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 :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoEstablishHrmpChannel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("ParaSudoWrapper" , "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 sudo { use super :: root_mod ; use super :: runtime_types ; # [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_sudo :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] pub struct Sudo { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo :: Call > , } pub mod sudo { use super :: runtime_types ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Sudo { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "sudo" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Sudo user to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub struct SudoUncheckedWeight { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo_unchecked_weight :: Call > , pub weight : sudo_unchecked_weight :: Weight , } pub mod sudo_unchecked_weight { use super :: runtime_types ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoUncheckedWeight { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "sudo_unchecked_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] # [doc = "key."] pub struct SetKey { pub new : set_key :: New , } pub mod set_key { use super :: runtime_types ; pub type New = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetKey { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "set_key" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] # [doc = "a given account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub struct SudoAs { pub who : sudo_as :: Who , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo_as :: Call > , } pub mod sudo_as { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Call = runtime_types :: paseo_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoAs { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "sudo_as" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Permanently removes the sudo key."] # [doc = ""] # [doc = "**This cannot be un-done.**"] pub struct RemoveKey ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveKey { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "remove_key" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] pub fn sudo (& self , call : types :: sudo :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Sudo > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "sudo" , types :: Sudo { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [218u8 , 113u8 , 164u8 , 209u8 , 41u8 , 113u8 , 125u8 , 234u8 , 231u8 , 17u8 , 212u8 , 190u8 , 65u8 , 182u8 , 183u8 , 220u8 , 159u8 , 18u8 , 163u8 , 136u8 , 233u8 , 157u8 , 137u8 , 118u8 , 34u8 , 62u8 , 194u8 , 29u8 , 101u8 , 209u8 , 195u8 , 130u8 ,]) } # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Sudo user to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub fn sudo_unchecked_weight (& self , call : types :: sudo_unchecked_weight :: Call , weight : types :: sudo_unchecked_weight :: Weight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoUncheckedWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "sudo_unchecked_weight" , types :: SudoUncheckedWeight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , weight , } , [62u8 , 90u8 , 224u8 , 247u8 , 151u8 , 40u8 , 10u8 , 121u8 , 27u8 , 176u8 , 16u8 , 188u8 , 159u8 , 184u8 , 191u8 , 16u8 , 206u8 , 201u8 , 52u8 , 62u8 , 187u8 , 129u8 , 178u8 , 51u8 , 228u8 , 215u8 , 218u8 , 123u8 , 209u8 , 173u8 , 255u8 , 18u8 ,]) } # [doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] # [doc = "key."] pub fn set_key (& self , new : types :: set_key :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "set_key" , types :: SetKey { new , } , [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 ,]) } # [doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] # [doc = "a given account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub fn sudo_as (& self , who : types :: sudo_as :: Who , call : types :: sudo_as :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoAs > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "sudo_as" , types :: SudoAs { who , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [240u8 , 214u8 , 31u8 , 38u8 , 166u8 , 217u8 , 41u8 , 187u8 , 164u8 , 169u8 , 218u8 , 17u8 , 240u8 , 182u8 , 83u8 , 118u8 , 195u8 , 19u8 , 102u8 , 214u8 , 110u8 , 129u8 , 249u8 , 108u8 , 113u8 , 52u8 , 5u8 , 92u8 , 131u8 , 6u8 , 18u8 , 254u8 ,]) } # [doc = "Permanently removes the sudo key."] # [doc = ""] # [doc = "**This cannot be un-done.**"] pub fn remove_key (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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_sudo :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A sudo call just took place."] pub struct Sudid { pub sudo_result : sudid :: SudoResult , } pub mod sudid { use super :: runtime_types ; pub type SudoResult = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Sudid { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "Sudid" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 > ; pub type New = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KeyChanged { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "KeyChanged" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The key was permanently removed."] pub struct KeyRemoved ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KeyRemoved { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "KeyRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The `AccountId` of the sudo key."] pub fn key (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: key :: Key , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Sudo" , "Key" , () , [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 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BoundedBTreeMap < _0 , _1 > (pub :: subxt :: ext :: subxt_core :: utils :: KeyedVec < _0 , _1 > ,) ; } pub mod bounded_vec { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BoundedVec < _0 > (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > ,) ; } pub mod weak_bounded_vec { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct WeakBoundedVec < _0 > (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > ,) ; } } pub mod finality_grandpa { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Equivocation < _0 , _1 , _2 > { pub round_number : :: core :: primitive :: u64 , pub identity : _0 , pub first : (_1 , _2 ,) , pub second : (_1 , _2 ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Precommit < _0 , _1 > { pub target_hash : _0 , pub target_number : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Prevote < _0 , _1 > { pub target_hash : _0 , pub target_number : _1 , } } pub mod frame_metadata_hash_extension { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckMetadataHash { pub mode : runtime_types :: frame_metadata_hash_extension :: Mode , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Mode { # [codec (index = 0)] Disabled , # [codec (index = 1)] Enabled , } } pub mod frame_support { use super :: runtime_types ; pub mod dispatch { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DispatchClass { # [codec (index = 0)] Normal , # [codec (index = 1)] Operational , # [codec (index = 2)] Mandatory , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DispatchInfo { pub weight : runtime_types :: sp_weights :: weight_v2 :: Weight , pub class : runtime_types :: frame_support :: dispatch :: DispatchClass , pub pays_fee : runtime_types :: frame_support :: dispatch :: Pays , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Pays { # [codec (index = 0)] Yes , # [codec (index = 1)] No , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PerDispatchClass < _0 > { pub normal : _0 , pub operational : _0 , pub mandatory : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PostDispatchInfo { pub actual_weight : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , pub pays_fee : runtime_types :: frame_support :: dispatch :: Pays , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RawOrigin < _0 > { # [codec (index = 0)] Root , # [codec (index = 1)] Signed (_0 ,) , # [codec (index = 2)] None , } } pub mod traits { use super :: runtime_types ; pub mod messages { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ProcessMessageError { # [codec (index = 0)] BadFormat , # [codec (index = 1)] Corrupt , # [codec (index = 2)] Unsupported , # [codec (index = 3)] Overweight (runtime_types :: sp_weights :: weight_v2 :: Weight ,) , # [codec (index = 4)] Yield , # [codec (index = 5)] StackLimitReached , } } pub mod preimages { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Bounded < _0 , _1 > { # [codec (index = 0)] Legacy { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 1)] Inline (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 2)] Lookup { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , len : :: core :: primitive :: u32 , } , __Ignore (:: core :: marker :: PhantomData < (_0 , _1) >) , } } pub mod schedule { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DispatchTime < _0 > { # [codec (index = 0)] At (_0 ,) , # [codec (index = 1)] After (_0 ,) , } } pub mod tokens { use super :: runtime_types ; pub mod fungible { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct HoldConsideration (pub :: core :: primitive :: u128 ,) ; } pub mod misc { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum BalanceStatus { # [codec (index = 0)] Free , # [codec (index = 1)] Reserved , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct IdAmount < _0 , _1 > { pub id : _0 , pub amount : _1 , } } } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PalletId (pub [:: core :: primitive :: u8 ; 8usize] ,) ; } pub mod frame_system { use super :: runtime_types ; pub mod extensions { use super :: runtime_types ; pub mod check_genesis { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckGenesis ; } pub mod check_mortality { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckMortality (pub runtime_types :: sp_runtime :: generic :: era :: Era ,) ; } pub mod check_non_zero_sender { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckNonZeroSender ; } pub mod check_nonce { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckNonce (# [codec (compact)] pub :: core :: primitive :: u32 ,) ; } pub mod check_spec_version { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckSpecVersion ; } pub mod check_tx_version { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckTxVersion ; } pub mod check_weight { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckWeight ; } } pub mod limits { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BlockWeights { pub base_block : runtime_types :: sp_weights :: weight_v2 :: Weight , pub max_block : runtime_types :: sp_weights :: weight_v2 :: Weight , pub per_class : runtime_types :: frame_support :: dispatch :: PerDispatchClass < runtime_types :: frame_system :: limits :: WeightsPerClass > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct WeightsPerClass { pub base_extrinsic : runtime_types :: sp_weights :: weight_v2 :: Weight , pub max_extrinsic : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , pub max_total : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , pub reserved : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , } } pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Make some on-chain remark."] # [doc = ""] # [doc = "Can be executed by every `origin`."] remark { remark : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Set the number of pages in the WebAssembly environment's heap."] set_heap_pages { pages : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Set the new runtime code."] set_code { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 3)] # [doc = "Set the new runtime code without doing any checks of the given `code`."] # [doc = ""] # [doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"] # [doc = "version!"] set_code_without_checks { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] # [doc = "Set some items of storage."] set_storage { items : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) > , } , # [codec (index = 5)] # [doc = "Kill some items from storage."] kill_storage { keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , } , # [codec (index = 6)] # [doc = "Kill all storage items with a key that starts with the given prefix."] # [doc = ""] # [doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] # [doc = "the prefix we are removing to accurately calculate the weight of this function."] kill_prefix { prefix : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , subkeys : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Make some on-chain remark and emit event."] remark_with_event { remark : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 9)] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "This call requires Root origin."] authorize_upgrade { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 10)] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"] # [doc = "example that the spec name remains the same and that the version number increases. Not"] # [doc = "recommended for normal use. Use `authorize_upgrade` instead."] # [doc = ""] # [doc = "This call requires Root origin."] authorize_upgrade_without_checks { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 11)] # [doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."] # [doc = ""] # [doc = "If the authorization required a version check, this call will ensure the spec name"] # [doc = "remains unchanged and that the spec version has increased."] # [doc = ""] # [doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"] # [doc = "the new `code` in the same block or attempt to schedule the upgrade."] # [doc = ""] # [doc = "All origins are allowed."] apply_authorized_upgrade { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Error for the System pallet"] pub enum Error { # [codec (index = 0)] # [doc = "The name of specification does not match between the current runtime"] # [doc = "and the new runtime."] InvalidSpecName , # [codec (index = 1)] # [doc = "The specification version is not allowed to decrease between the current runtime"] # [doc = "and the new runtime."] SpecVersionNeedsToIncrease , # [codec (index = 2)] # [doc = "Failed to extract the runtime version from the new runtime."] # [doc = ""] # [doc = "Either calling `Core_version` or decoding `RuntimeVersion` failed."] FailedToExtractRuntimeVersion , # [codec (index = 3)] # [doc = "Suicide called when the account has non-default composite data."] NonDefaultComposite , # [codec (index = 4)] # [doc = "There is a non-zero reference count preventing the account from being purged."] NonZeroRefCount , # [codec (index = 5)] # [doc = "The origin filter prevent the call to be dispatched."] CallFiltered , # [codec (index = 6)] # [doc = "A multi-block migration is ongoing and prevents the current code from being replaced."] MultiBlockMigrationsOngoing , # [codec (index = 7)] # [doc = "No upgrade authorized."] NothingAuthorized , # [codec (index = 8)] # [doc = "The submitted code is not authorized."] Unauthorized , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event for the System pallet."] pub enum Event { # [codec (index = 0)] # [doc = "An extrinsic completed successfully."] ExtrinsicSuccess { dispatch_info : runtime_types :: frame_support :: dispatch :: DispatchInfo , } , # [codec (index = 1)] # [doc = "An extrinsic failed."] ExtrinsicFailed { dispatch_error : runtime_types :: sp_runtime :: DispatchError , dispatch_info : runtime_types :: frame_support :: dispatch :: DispatchInfo , } , # [codec (index = 2)] # [doc = "`:code` was updated."] CodeUpdated , # [codec (index = 3)] # [doc = "A new account was created."] NewAccount { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 6)] # [doc = "An upgrade was authorized."] UpgradeAuthorized { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , check_version : :: core :: primitive :: bool , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccountInfo < _0 , _1 > { pub nonce : _0 , pub consumers : :: core :: primitive :: u32 , pub providers : :: core :: primitive :: u32 , pub sufficients : :: core :: primitive :: u32 , pub data : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeUpgradeAuthorization { pub code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub check_version : :: core :: primitive :: bool , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EventRecord < _0 , _1 > { pub phase : runtime_types :: frame_system :: Phase , pub event : _0 , pub topics : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _1 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct LastRuntimeUpgradeInfo { # [codec (compact)] pub spec_version : :: core :: primitive :: u32 , pub spec_name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Phase { # [codec (index = 0)] ApplyExtrinsic (:: core :: primitive :: u32 ,) , # [codec (index = 1)] Finalization , # [codec (index = 2)] Initialization , } } pub mod pallet_asset_rate { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Initialize a conversion rate to native balance for the given asset."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] create { asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset > , rate : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , } , # [codec (index = 1)] # [doc = "Update the conversion rate to native balance for the given asset."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] update { asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset > , rate : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , } , # [codec (index = 2)] # [doc = "Remove an existing conversion rate to native balance for the given asset."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] remove { asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The given asset ID is unknown."] UnknownAssetKind , # [codec (index = 1)] # [doc = "The given asset ID already has an assigned conversion rate and cannot be re-created."] AlreadyExists , # [codec (index = 2)] # [doc = "Overflow ocurred when calculating the inverse rate."] Overflow , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] AssetRateCreated { asset_kind : runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset , rate : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , } , # [codec (index = 1)] AssetRateRemoved { asset_kind : runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset , } , # [codec (index = 2)] AssetRateUpdated { asset_kind : runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset , old : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , new : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , } , } } } pub mod pallet_babe { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Report authority equivocation/misbehavior. This method will verify"] # [doc = "the equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence will"] # [doc = "be reported."] report_equivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , runtime_types :: sp_consensus_babe :: app :: Public > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , # [codec (index = 1)] # [doc = "Report authority equivocation/misbehavior. This method will verify"] # [doc = "the equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence will"] # [doc = "be reported."] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] report_equivocation_unsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , runtime_types :: sp_consensus_babe :: app :: Public > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , # [codec (index = 2)] # [doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] # [doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] # [doc = "Multiple calls to this method will replace any existing planned config change that had"] # [doc = "not been enacted yet."] plan_config_change { config : runtime_types :: sp_consensus_babe :: digests :: NextConfigDescriptor , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "An equivocation proof provided as part of an equivocation report is invalid."] InvalidEquivocationProof , # [codec (index = 1)] # [doc = "A key ownership proof provided as part of an equivocation report is invalid."] InvalidKeyOwnershipProof , # [codec (index = 2)] # [doc = "A given equivocation report is valid but already previously reported."] DuplicateOffenceReport , # [codec (index = 3)] # [doc = "Submitted configuration is invalid."] InvalidConfiguration , } } } pub mod pallet_bags_list { use super :: runtime_types ; pub mod list { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Bag { pub head : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , pub tail : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Node { pub id : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , pub prev : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , pub next : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , pub bag_upper : :: core :: primitive :: u64 , pub score : :: core :: primitive :: u64 , } } pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] # [doc = "changed its score that it should properly fall into a different bag than its current"] # [doc = "one."] # [doc = ""] # [doc = "Anyone can call this function about any potentially dislocated account."] # [doc = ""] # [doc = "Will always update the stored score of `dislocated` to the correct score, based on"] # [doc = "`ScoreProvider`."] # [doc = ""] # [doc = "If `dislocated` does not exists, it returns an error."] rebag { dislocated : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 1)] # [doc = "Move the caller's Id directly in front of `lighter`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] # [doc = "the account going in front of `lighter`. Fee is payed by the origin under all"] # [doc = "circumstances."] # [doc = ""] # [doc = "Only works if:"] # [doc = ""] # [doc = "- both nodes are within the same bag,"] # [doc = "- and `origin` has a greater `Score` than `lighter`."] put_in_front_of { lighter : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 2)] # [doc = "Same as [`Pallet::put_in_front_of`], but it can be called by anyone."] # [doc = ""] # [doc = "Fee is paid by the origin under all circumstances."] put_in_front_of_other { heavier : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , lighter : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , new_score : :: core :: primitive :: u64 , } , } } } pub mod pallet_balances { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Transfer some liquid free balance to another account."] # [doc = ""] # [doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] # [doc = "If the sender's account is below the existential deposit as a result"] # [doc = "of the transfer, the account will be reaped."] # [doc = ""] # [doc = "The dispatch origin for this call must be `Signed` by the transactor."] transfer_allow_death { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] # [doc = "may be specified."] force_transfer { source : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] # [doc = "kill the origin account."] # [doc = ""] # [doc = "99% of the time you want [`transfer_allow_death`] instead."] # [doc = ""] # [doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] transfer_keep_alive { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Transfer the entire transferable balance from the caller account."] # [doc = ""] # [doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] # [doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] # [doc = "transferred by this function. To ensure that this function results in a killed account,"] # [doc = "you might need to prepare the account by removing any reference counters, storage"] # [doc = "deposits, etc..."] # [doc = ""] # [doc = "The dispatch origin of this call must be Signed."] # [doc = ""] # [doc = "- `dest`: The recipient of the transfer."] # [doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] # [doc = " of the funds the account has, causing the sender account to be killed (false), or"] # [doc = " transfer everything except at least the existential deposit, which will guarantee to"] # [doc = " keep the sender account alive (true)."] transfer_all { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , keep_alive : :: core :: primitive :: bool , } , # [codec (index = 5)] # [doc = "Unreserve some balance from a user by force."] # [doc = ""] # [doc = "Can only be called by ROOT."] force_unreserve { who : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , amount : :: core :: primitive :: u128 , } , # [codec (index = 6)] # [doc = "Upgrade a specified account."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `who`: The account to be upgraded."] # [doc = ""] # [doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] # [doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] # [doc = "possibility of churn)."] upgrade_accounts { who : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "Set the regular balance of a given account."] # [doc = ""] # [doc = "The dispatch origin for this call is `root`."] force_set_balance { who : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] new_free : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Adjust the total issuance in a saturating way."] # [doc = ""] # [doc = "Can only be called by root and always needs a positive `delta`."] # [doc = ""] # [doc = "# Example"] force_adjust_total_issuance { direction : runtime_types :: pallet_balances :: types :: AdjustmentDirection , # [codec (compact)] delta : :: core :: primitive :: u128 , } , # [codec (index = 10)] # [doc = "Burn the specified liquid free balance from the origin account."] # [doc = ""] # [doc = "If the origin's account ends up below the existential deposit as a result"] # [doc = "of the burn and `keep_alive` is false, the account will be reaped."] # [doc = ""] # [doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"] # [doc = "this `burn` operation will reduce total issuance by the amount _burned_."] burn { # [codec (compact)] value : :: core :: primitive :: u128 , keep_alive : :: core :: primitive :: bool , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [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 `VariantCountOf`."] TooManyHolds , # [codec (index = 9)] # [doc = "Number of freezes exceed `MaxFreezes`."] TooManyFreezes , # [codec (index = 10)] # [doc = "The issuance cannot be modified since it is already deactivated."] IssuanceDeactivated , # [codec (index = 11)] # [doc = "The delta cannot be zero."] DeltaZero , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , free : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 10)] # [doc = "Some amount was minted into an account."] Minted { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 11)] # [doc = "Some amount was burned from an account."] Burned { who : :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 13)] # [doc = "Some amount was restored into an account."] Restored { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 14)] # [doc = "An account was upgraded."] Upgraded { who : :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 18)] # [doc = "Some balance was unlocked."] Unlocked { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 19)] # [doc = "Some balance was frozen."] Frozen { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 20)] # [doc = "Some balance was thawed."] Thawed { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 21)] # [doc = "The `TotalIssuance` was forcefully changed."] TotalIssuanceForced { old : :: core :: primitive :: u128 , new : :: core :: primitive :: u128 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccountData < _0 > { pub free : _0 , pub reserved : _0 , pub frozen : _0 , pub flags : runtime_types :: pallet_balances :: types :: ExtraFlags , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AdjustmentDirection { # [codec (index = 0)] Increase , # [codec (index = 1)] Decrease , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BalanceLock < _0 > { pub id : [:: core :: primitive :: u8 ; 8usize] , pub amount : _0 , pub reasons : runtime_types :: pallet_balances :: types :: Reasons , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExtraFlags (pub :: core :: primitive :: u128 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Reasons { # [codec (index = 0)] Fee , # [codec (index = 1)] Misc , # [codec (index = 2)] All , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ReserveData < _0 , _1 > { pub id : _0 , pub amount : _1 , } } } pub mod pallet_beefy { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] report_equivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_beefy :: DoubleVotingProof < :: core :: primitive :: u32 , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Public , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Signature > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , # [codec (index = 1)] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] report_equivocation_unsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_beefy :: DoubleVotingProof < :: core :: primitive :: u32 , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Public , runtime_types :: sp_consensus_beefy :: ecdsa_crypto :: Signature > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , # [codec (index = 2)] # [doc = "Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the"] # [doc = "future."] # [doc = ""] # [doc = "Note: `delay_in_blocks` has to be at least 1."] set_new_genesis { delay_in_blocks : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "A key ownership proof provided as part of an equivocation report is invalid."] InvalidKeyOwnershipProof , # [codec (index = 1)] # [doc = "An equivocation proof provided as part of an equivocation report is invalid."] InvalidEquivocationProof , # [codec (index = 2)] # [doc = "A given equivocation report is valid but already previously reported."] DuplicateOffenceReport , # [codec (index = 3)] # [doc = "Submitted configuration is invalid."] InvalidConfiguration , } } } pub mod pallet_bounties { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Propose a new bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] # [doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] # [doc = "or slashed when rejected."] # [doc = ""] # [doc = "- `curator`: The curator account whom will manage this bounty."] # [doc = "- `fee`: The curator fee."] # [doc = "- `value`: The total payment amount of this bounty, curator fee included."] # [doc = "- `description`: The description of this bounty."] propose_bounty { # [codec (compact)] value : :: core :: primitive :: u128 , description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] # [doc = "and the original deposit will be returned."] # [doc = ""] # [doc = "May only be called from `T::SpendOrigin`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] approve_bounty { # [codec (compact)] bounty_id : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Propose a curator to a funded bounty."] # [doc = ""] # [doc = "May only be called from `T::SpendOrigin`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] propose_curator { # [codec (compact)] bounty_id : :: core :: primitive :: u32 , curator : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] fee : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "Unassign curator from a bounty."] # [doc = ""] # [doc = "This function can only be called by the `RejectOrigin` a signed origin."] # [doc = ""] # [doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] # [doc = "malicious or inactive. As a result, we will slash the curator when possible."] # [doc = ""] # [doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] # [doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] # [doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] # [doc = ""] # [doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] # [doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] # [doc = "we should pick a new curator. In this case the curator should also be slashed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] unassign_curator { # [codec (compact)] bounty_id : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Accept the curator role for a bounty."] # [doc = "A deposit will be reserved from curator and refund upon successful payout."] # [doc = ""] # [doc = "May only be called from the curator."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] accept_curator { # [codec (compact)] bounty_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] # [doc = "after a delay."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of this bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to award."] # [doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] award_bounty { # [codec (compact)] bounty_id : :: core :: primitive :: u32 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 6)] # [doc = "Claim the payout from an awarded bounty after payout delay."] # [doc = ""] # [doc = "The dispatch origin for this call must be the beneficiary of this bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to claim."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] claim_bounty { # [codec (compact)] bounty_id : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] # [doc = "the curator deposit will be unreserved if possible."] # [doc = ""] # [doc = "Only `T::RejectOrigin` is able to cancel a bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to cancel."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] close_bounty { # [codec (compact)] bounty_id : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Extend the expiry time of an active bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of this bounty."] # [doc = ""] # [doc = "- `bounty_id`: Bounty ID to extend."] # [doc = "- `remark`: additional information."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] extend_bounty_expiry { # [codec (compact)] bounty_id : :: core :: primitive :: u32 , remark : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Proposer's balance is too low."] InsufficientProposersBalance , # [codec (index = 1)] # [doc = "No proposal or bounty at that index."] InvalidIndex , # [codec (index = 2)] # [doc = "The reason given is just too big."] ReasonTooBig , # [codec (index = 3)] # [doc = "The bounty status is unexpected."] UnexpectedStatus , # [codec (index = 4)] # [doc = "Require bounty curator."] RequireCurator , # [codec (index = 5)] # [doc = "Invalid bounty value."] InvalidValue , # [codec (index = 6)] # [doc = "Invalid bounty fee."] InvalidFee , # [codec (index = 7)] # [doc = "A bounty payout is pending."] # [doc = "To cancel the bounty, you must unassign and slash the curator."] PendingPayout , # [codec (index = 8)] # [doc = "The bounties cannot be claimed/closed because it's still in the countdown period."] Premature , # [codec (index = 9)] # [doc = "The bounty cannot be closed because it has active child bounties."] HasActiveChildBounty , # [codec (index = 10)] # [doc = "Too many approvals are already queued."] TooManyQueued , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "New bounty proposal."] BountyProposed { index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "A bounty proposal was rejected; funds were slashed."] BountyRejected { index : :: core :: primitive :: u32 , bond : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "A bounty proposal is funded and became active."] BountyBecameActive { index : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "A bounty is awarded to a beneficiary."] BountyAwarded { index : :: core :: primitive :: u32 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "A bounty is claimed by beneficiary."] BountyClaimed { index : :: core :: primitive :: u32 , payout : :: core :: primitive :: u128 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "A bounty is cancelled."] BountyCanceled { index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A bounty expiry is extended."] BountyExtended { index : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "A bounty is approved."] BountyApproved { index : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "A bounty curator is proposed."] CuratorProposed { bounty_id : :: core :: primitive :: u32 , curator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 9)] # [doc = "A bounty curator is unassigned."] CuratorUnassigned { bounty_id : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "A bounty curator is accepted."] CuratorAccepted { bounty_id : :: core :: primitive :: u32 , curator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Bounty < _0 , _1 , _2 > { pub proposer : _0 , pub value : _1 , pub fee : _1 , pub curator_deposit : _1 , pub bond : _1 , pub status : runtime_types :: pallet_bounties :: BountyStatus < _0 , _2 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum BountyStatus < _0 , _1 > { # [codec (index = 0)] Proposed , # [codec (index = 1)] Approved , # [codec (index = 2)] Funded , # [codec (index = 3)] CuratorProposed { curator : _0 , } , # [codec (index = 4)] Active { curator : _0 , update_due : _1 , } , # [codec (index = 5)] PendingPayout { curator : _0 , beneficiary : _0 , unlock_at : _1 , } , } } pub mod pallet_broker { use super :: runtime_types ; pub mod coretime_interface { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum CoreAssignment { # [codec (index = 0)] Idle , # [codec (index = 1)] Pool , # [codec (index = 2)] Task (:: core :: primitive :: u32 ,) , } } } pub mod pallet_child_bounties { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Add a new child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of parent"] # [doc = "bounty and the parent bounty must be in \"active\" state."] # [doc = ""] # [doc = "Child-bounty gets added successfully & fund gets transferred from"] # [doc = "parent bounty to child-bounty account, if parent bounty has enough"] # [doc = "funds, else the call fails."] # [doc = ""] # [doc = "Upper bound to maximum number of active child bounties that can be"] # [doc = "added are managed via runtime trait config"] # [doc = "[`Config::MaxActiveChildBountyCount`]."] # [doc = ""] # [doc = "If the call is success, the status of child-bounty is updated to"] # [doc = "\"Added\"."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty for which child-bounty is being added."] # [doc = "- `value`: Value for executing the proposal."] # [doc = "- `description`: Text description for the child-bounty."] add_child_bounty { # [codec (compact)] parent_bounty_id : :: core :: primitive :: u32 , # [codec (compact)] value : :: core :: primitive :: u128 , description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Propose curator for funded child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be curator of parent bounty."] # [doc = ""] # [doc = "Parent bounty must be in active state, for this child-bounty call to"] # [doc = "work."] # [doc = ""] # [doc = "Child-bounty must be in \"Added\" state, for processing the call. And"] # [doc = "state of child-bounty is moved to \"CuratorProposed\" on successful"] # [doc = "call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] # [doc = "- `curator`: Address of child-bounty curator."] # [doc = "- `fee`: payment fee to child-bounty curator for execution."] propose_curator { # [codec (compact)] parent_bounty_id : :: core :: primitive :: u32 , # [codec (compact)] child_bounty_id : :: core :: primitive :: u32 , curator : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] fee : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Accept the curator role for the child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call must be the curator of this"] # [doc = "child-bounty."] # [doc = ""] # [doc = "A deposit will be reserved from the curator and refund upon"] # [doc = "successful payout or cancellation."] # [doc = ""] # [doc = "Fee for curator is deducted from curator fee of parent bounty."] # [doc = ""] # [doc = "Parent bounty must be in active state, for this child-bounty call to"] # [doc = "work."] # [doc = ""] # [doc = "Child-bounty must be in \"CuratorProposed\" state, for processing the"] # [doc = "call. And state of child-bounty is moved to \"Active\" on successful"] # [doc = "call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] accept_curator { # [codec (compact)] parent_bounty_id : :: core :: primitive :: u32 , # [codec (compact)] child_bounty_id : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Unassign curator from a child-bounty."] # [doc = ""] # [doc = "The dispatch origin for this call can be either `RejectOrigin`, or"] # [doc = "the curator of the parent bounty, or any signed origin."] # [doc = ""] # [doc = "For the origin other than T::RejectOrigin and the child-bounty"] # [doc = "curator, parent bounty must be in active state, for this call to"] # [doc = "work. We allow child-bounty curator and T::RejectOrigin to execute"] # [doc = "this call irrespective of the parent bounty state."] # [doc = ""] # [doc = "If this function is called by the `RejectOrigin` or the"] # [doc = "parent bounty curator, we assume that the child-bounty curator is"] # [doc = "malicious or inactive. As a result, child-bounty curator deposit is"] # [doc = "slashed."] # [doc = ""] # [doc = "If the origin is the child-bounty curator, we take this as a sign"] # [doc = "that they are unable to do their job, and are willingly giving up."] # [doc = "We could slash the deposit, but for now we allow them to unreserve"] # [doc = "their deposit and exit without issue. (We may want to change this if"] # [doc = "it is abused.)"] # [doc = ""] # [doc = "Finally, the origin can be anyone iff the child-bounty curator is"] # [doc = "\"inactive\". Expiry update due of parent bounty is used to estimate"] # [doc = "inactive state of child-bounty curator."] # [doc = ""] # [doc = "This allows anyone in the community to call out that a child-bounty"] # [doc = "curator is not doing their due diligence, and we should pick a new"] # [doc = "one. In this case the child-bounty curator deposit is slashed."] # [doc = ""] # [doc = "State of child-bounty is moved to Added state on successful call"] # [doc = "completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] unassign_curator { # [codec (compact)] parent_bounty_id : :: core :: primitive :: u32 , # [codec (compact)] child_bounty_id : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Award child-bounty to a beneficiary."] # [doc = ""] # [doc = "The beneficiary will be able to claim the funds after a delay."] # [doc = ""] # [doc = "The dispatch origin for this call must be the parent curator or"] # [doc = "curator of this child-bounty."] # [doc = ""] # [doc = "Parent bounty must be in active state, for this child-bounty call to"] # [doc = "work."] # [doc = ""] # [doc = "Child-bounty must be in active state, for processing the call. And"] # [doc = "state of child-bounty is moved to \"PendingPayout\" on successful call"] # [doc = "completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] # [doc = "- `beneficiary`: Beneficiary account."] award_child_bounty { # [codec (compact)] parent_bounty_id : :: core :: primitive :: u32 , # [codec (compact)] child_bounty_id : :: core :: primitive :: u32 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 5)] # [doc = "Claim the payout from an awarded child-bounty after payout delay."] # [doc = ""] # [doc = "The dispatch origin for this call may be any signed origin."] # [doc = ""] # [doc = "Call works independent of parent bounty state, No need for parent"] # [doc = "bounty to be in active state."] # [doc = ""] # [doc = "The Beneficiary is paid out with agreed bounty value. Curator fee is"] # [doc = "paid & curator deposit is unreserved."] # [doc = ""] # [doc = "Child-bounty must be in \"PendingPayout\" state, for processing the"] # [doc = "call. And instance of child-bounty is removed from the state on"] # [doc = "successful call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] claim_child_bounty { # [codec (compact)] parent_bounty_id : :: core :: primitive :: u32 , # [codec (compact)] child_bounty_id : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Cancel a proposed or active child-bounty. Child-bounty account funds"] # [doc = "are transferred to parent bounty account. The child-bounty curator"] # [doc = "deposit may be unreserved if possible."] # [doc = ""] # [doc = "The dispatch origin for this call must be either parent curator or"] # [doc = "`T::RejectOrigin`."] # [doc = ""] # [doc = "If the state of child-bounty is `Active`, curator deposit is"] # [doc = "unreserved."] # [doc = ""] # [doc = "If the state of child-bounty is `PendingPayout`, call fails &"] # [doc = "returns `PendingPayout` error."] # [doc = ""] # [doc = "For the origin other than T::RejectOrigin, parent bounty must be in"] # [doc = "active state, for this child-bounty call to work. For origin"] # [doc = "T::RejectOrigin execution is forced."] # [doc = ""] # [doc = "Instance of child-bounty is removed from the state on successful"] # [doc = "call completion."] # [doc = ""] # [doc = "- `parent_bounty_id`: Index of parent bounty."] # [doc = "- `child_bounty_id`: Index of child bounty."] close_child_bounty { # [codec (compact)] parent_bounty_id : :: core :: primitive :: u32 , # [codec (compact)] child_bounty_id : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The parent bounty is not in active state."] ParentBountyNotActive , # [codec (index = 1)] # [doc = "The bounty balance is not enough to add new child-bounty."] InsufficientBountyBalance , # [codec (index = 2)] # [doc = "Number of child bounties exceeds limit `MaxActiveChildBountyCount`."] TooManyChildBounties , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A child-bounty is added."] Added { index : :: core :: primitive :: u32 , child_index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "A child-bounty is awarded to a beneficiary."] Awarded { index : :: core :: primitive :: u32 , child_index : :: core :: primitive :: u32 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "A child-bounty is claimed by beneficiary."] Claimed { index : :: core :: primitive :: u32 , child_index : :: core :: primitive :: u32 , payout : :: core :: primitive :: u128 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 3)] # [doc = "A child-bounty is cancelled."] Canceled { index : :: core :: primitive :: u32 , child_index : :: core :: primitive :: u32 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChildBounty < _0 , _1 , _2 > { pub parent_bounty : :: core :: primitive :: u32 , pub value : _1 , pub fee : _1 , pub curator_deposit : _1 , pub status : runtime_types :: pallet_child_bounties :: ChildBountyStatus < _0 , _2 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ChildBountyStatus < _0 , _1 > { # [codec (index = 0)] Added , # [codec (index = 1)] CuratorProposed { curator : _0 , } , # [codec (index = 2)] Active { curator : _0 , } , # [codec (index = 3)] PendingPayout { curator : _0 , beneficiary : _0 , unlock_at : _1 , } , } } pub mod pallet_conviction_voting { use super :: runtime_types ; pub mod conviction { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;"] # [doc = "otherwise it is a vote to keep the status quo."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `poll_index`: The index of the poll to vote for."] # [doc = "- `vote`: The vote configuration."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of polls the voter has voted on."] vote { # [codec (compact)] poll_index : :: core :: primitive :: u32 , vote : runtime_types :: pallet_conviction_voting :: vote :: AccountVote < :: core :: primitive :: u128 > , } , # [codec (index = 1)] # [doc = "Delegate the voting power (with some given conviction) of the sending account for a"] # [doc = "particular class of polls."] # [doc = ""] # [doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] # [doc = "time appropriate for the conviction's lock period."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] # [doc = " - be delegating already; or"] # [doc = " - have no voting activity (if there is, then it will need to be removed through"] # [doc = " `remove_vote`)."] # [doc = ""] # [doc = "- `to`: The account whose voting the `target` account's voting power will follow."] # [doc = "- `class`: The class of polls to delegate. To delegate multiple classes, multiple calls"] # [doc = " to this function are required."] # [doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] # [doc = " account is undelegated, the funds will be locked for the corresponding period."] # [doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] # [doc = " be more than the account's current balance."] # [doc = ""] # [doc = "Emits `Delegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] # [doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] delegate { class : :: core :: primitive :: u16 , to : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , conviction : runtime_types :: pallet_conviction_voting :: conviction :: Conviction , balance : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Undelegate the voting power of the sending account for a particular class of polls."] # [doc = ""] # [doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] # [doc = "of the conviction with which the delegation was issued has passed."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] # [doc = "currently delegating."] # [doc = ""] # [doc = "- `class`: The class of polls to remove the delegation from."] # [doc = ""] # [doc = "Emits `Undelegated`."] # [doc = ""] # [doc = "Weight: `O(R)` where R is the number of polls the voter delegating to has"] # [doc = " voted on. Weight is initially charged as if maximum votes, but is refunded later."] undelegate { class : :: core :: primitive :: u16 , } , # [codec (index = 3)] # [doc = "Remove the lock caused by prior voting/delegating which has expired within a particular"] # [doc = "class."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `class`: The class of polls to unlock."] # [doc = "- `target`: The account to remove the lock on."] # [doc = ""] # [doc = "Weight: `O(R)` with R number of vote of target."] unlock { class : :: core :: primitive :: u16 , target : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 4)] # [doc = "Remove a vote for a poll."] # [doc = ""] # [doc = "If:"] # [doc = "- the poll was cancelled, or"] # [doc = "- the poll is ongoing, or"] # [doc = "- the poll has ended such that"] # [doc = " - the vote of the account was in opposition to the result; or"] # [doc = " - there was no conviction to the account's vote; or"] # [doc = " - the account made a split vote"] # [doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] # [doc = "funds being available."] # [doc = ""] # [doc = "If, however, the poll has ended and:"] # [doc = "- it finished corresponding to the vote of the account, and"] # [doc = "- the account made a standard vote with conviction, and"] # [doc = "- the lock period of the conviction is not over"] # [doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] # [doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] # [doc = "of both the amount locked and the time is it locked for)."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] # [doc = "registered for poll `index`."] # [doc = ""] # [doc = "- `index`: The index of poll of the vote to be removed."] # [doc = "- `class`: Optional parameter, if given it indicates the class of the poll. For polls"] # [doc = " which have finished or are cancelled, this must be `Some`."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_vote { class : :: core :: option :: Option < :: core :: primitive :: u16 > , index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Remove a vote for a poll."] # [doc = ""] # [doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] # [doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] # [doc = "either because the poll was cancelled, because the voter lost the poll or"] # [doc = "because the conviction period is over."] # [doc = ""] # [doc = "The dispatch origin of this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account of the vote to be removed; this account must have voted for poll"] # [doc = " `index`."] # [doc = "- `index`: The index of poll of the vote to be removed."] # [doc = "- `class`: The class of the poll."] # [doc = ""] # [doc = "Weight: `O(R + log R)` where R is the number of polls that `target` has voted on."] # [doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { target : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , class : :: core :: primitive :: u16 , index : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Poll is not ongoing."] NotOngoing , # [codec (index = 1)] # [doc = "The given account did not vote on the poll."] NotVoter , # [codec (index = 2)] # [doc = "The actor has no permission to conduct the action."] NoPermission , # [codec (index = 3)] # [doc = "The actor has no permission to conduct the action right now but will do in the future."] NoPermissionYet , # [codec (index = 4)] # [doc = "The account is already delegating."] AlreadyDelegating , # [codec (index = 5)] # [doc = "The account currently has votes attached to it and the operation cannot succeed until"] # [doc = "these are removed through `remove_vote`."] AlreadyVoting , # [codec (index = 6)] # [doc = "Too high a balance was provided that the account cannot afford."] InsufficientFunds , # [codec (index = 7)] # [doc = "The account is not currently delegating."] NotDelegating , # [codec (index = 8)] # [doc = "Delegation to oneself makes no sense."] Nonsense , # [codec (index = 9)] # [doc = "Maximum number of votes reached."] MaxVotesReached , # [codec (index = 10)] # [doc = "The class must be supplied since it is not easily determinable from the state."] ClassNeeded , # [codec (index = 11)] # [doc = "The class ID supplied is invalid."] BadClass , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "An account has delegated their vote to another account. \\[who, target\\]"] Delegated (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 1)] # [doc = "An \\[account\\] has cancelled a previous delegation operation."] Undelegated (:: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Delegations < _0 > { pub votes : _0 , pub capital : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Tally < _0 > { pub ayes : _0 , pub nays : _0 , pub support : _0 , } } pub mod vote { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AccountVote < _0 > { # [codec (index = 0)] Standard { vote : runtime_types :: pallet_conviction_voting :: vote :: Vote , balance : _0 , } , # [codec (index = 1)] Split { aye : _0 , nay : _0 , } , # [codec (index = 2)] SplitAbstain { aye : _0 , nay : _0 , abstain : _0 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Casting < _0 , _1 , _2 > { pub votes : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (_1 , runtime_types :: pallet_conviction_voting :: vote :: AccountVote < _0 > ,) > , pub delegations : runtime_types :: pallet_conviction_voting :: types :: Delegations < _0 > , pub prior : runtime_types :: pallet_conviction_voting :: vote :: PriorLock < _1 , _0 > , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _2 > } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Delegating < _0 , _1 , _2 > { pub balance : _0 , pub target : _1 , pub conviction : runtime_types :: pallet_conviction_voting :: conviction :: Conviction , pub delegations : runtime_types :: pallet_conviction_voting :: types :: Delegations < _0 > , pub prior : runtime_types :: pallet_conviction_voting :: vote :: PriorLock < _2 , _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PriorLock < _0 , _1 > (pub _0 , pub _1 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Vote (pub :: core :: primitive :: u8 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Voting < _0 , _1 , _2 , _3 > { # [codec (index = 0)] Casting (runtime_types :: pallet_conviction_voting :: vote :: Casting < _0 , _2 , _2 > ,) , # [codec (index = 1)] Delegating (runtime_types :: pallet_conviction_voting :: vote :: Delegating < _0 , _1 , _2 > ,) , __Ignore (:: core :: marker :: PhantomData < _3 >) , } } } pub mod pallet_election_provider_multi_phase { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] submit_unsigned { raw_solution : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: paseo_runtime :: NposCompactSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] set_emergency_election_result { supports : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] submit { raw_solution : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: paseo_runtime :: NposCompactSolution16 > > , } , # [codec (index = 4)] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = "Submission was prepared for a different round."] PreDispatchDifferentRound , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 submitted 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , value : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account : :: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ReadySolution { pub supports : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ,) > , pub score : runtime_types :: sp_npos_elections :: ElectionScore , pub compute : runtime_types :: pallet_election_provider_multi_phase :: ElectionCompute , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RoundSnapshot < _0 , _1 > { pub voters : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _1 > , pub targets : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SolutionOrSnapshotSize { # [codec (compact)] pub voters : :: core :: primitive :: u32 , # [codec (compact)] pub targets : :: core :: primitive :: u32 , } } pub mod pallet_fast_unstake { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Register oneself for fast-unstake."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "The dispatch origin of this call must be *signed* by whoever is permitted to call"] # [doc = "unbond funds by the staking system. See [`Config::Staking`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "The stash associated with the origin must have no ongoing unlocking chunks. If"] # [doc = "successful, this will fully unbond and chill the stash. Then, it will enqueue the stash"] # [doc = "to be checked in further blocks."] # [doc = ""] # [doc = "If by the time this is called, the stash is actually eligible for fast-unstake, then"] # [doc = "they are guaranteed to remain eligible, because the call will chill them as well."] # [doc = ""] # [doc = "If the check works, the entire staking data is removed, i.e. the stash is fully"] # [doc = "unstaked."] # [doc = ""] # [doc = "If the check fails, the stash remains chilled and waiting for being unbonded as in with"] # [doc = "the normal staking system, but they lose part of their unbonding chunks due to consuming"] # [doc = "the chain's resources."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Some events from the staking and currency system might be emitted."] register_fast_unstake , # [codec (index = 1)] # [doc = "Deregister oneself from the fast-unstake."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "The dispatch origin of this call must be *signed* by whoever is permitted to call"] # [doc = "unbond funds by the staking system. See [`Config::Staking`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "This is useful if one is registered, they are still waiting, and they change their mind."] # [doc = ""] # [doc = "Note that the associated stash is still fully unbonded and chilled as a consequence of"] # [doc = "calling [`Pallet::register_fast_unstake`]. Therefore, this should probably be followed"] # [doc = "by a call to `rebond` in the staking system."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Some events from the staking and currency system might be emitted."] deregister , # [codec (index = 2)] # [doc = "Control the operation of this pallet."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "The dispatch origin of this call must be [`Config::ControlOrigin`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "Can set the number of eras to check per block, and potentially other admin work."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "No events are emitted from this dispatch."] control { eras_to_check : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A staker was unstaked."] Unstaked { stash : :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UnstakeRequest { pub stashes : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u128 ,) > , pub checked : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u32 > , } } } pub mod pallet_grandpa { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] report_equivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , # [codec (index = 1)] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] report_equivocation_unsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , # [codec (index = 2)] # [doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] # [doc = ""] # [doc = "This will trigger a forced authority set change at the beginning of the next session, to"] # [doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] # [doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] # [doc = "The block production rate (which may be slowed down because of finality lagging) should"] # [doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] # [doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] # [doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] # [doc = "block of all validators of the new authority set."] # [doc = ""] # [doc = "Only callable by root."] note_stalled { delay : :: core :: primitive :: u32 , best_finalized_block_number : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Attempt to signal GRANDPA pause when the authority set isn't live"] # [doc = "(either paused or already pending pause)."] PauseFailed , # [codec (index = 1)] # [doc = "Attempt to signal GRANDPA resume when the authority set isn't paused"] # [doc = "(either live or already pending resume)."] ResumeFailed , # [codec (index = 2)] # [doc = "Attempt to signal GRANDPA change with one already pending."] ChangePending , # [codec (index = 3)] # [doc = "Cannot signal forced change so soon after last."] TooSoon , # [codec (index = 4)] # [doc = "A key ownership proof provided as part of an equivocation report is invalid."] InvalidKeyOwnershipProof , # [codec (index = 5)] # [doc = "An equivocation proof provided as part of an equivocation report is invalid."] InvalidEquivocationProof , # [codec (index = 6)] # [doc = "A given equivocation report is valid but already previously reported."] DuplicateOffenceReport , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "New authority set has been applied."] NewAuthorities { authority_set : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , } , # [codec (index = 1)] # [doc = "Current authority set has been paused."] Paused , # [codec (index = 2)] # [doc = "Current authority set has been resumed."] Resumed , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct StoredPendingChange < _0 > { pub scheduled_at : _0 , pub delay : _0 , pub next_authorities : runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum StoredState < _0 > { # [codec (index = 0)] Live , # [codec (index = 1)] PendingPause { scheduled_at : _0 , delay : _0 , } , # [codec (index = 2)] Paused , # [codec (index = 3)] PendingResume { scheduled_at : _0 , delay : _0 , } , } } pub mod pallet_indices { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Assign an previously unassigned index."] # [doc = ""] # [doc = "Payment: `Deposit` is reserved from the sender account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `index`: the index to be claimed. This must not be in use."] # [doc = ""] # [doc = "Emits `IndexAssigned` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] claim { index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Assign an index already owned by the sender to another account. The balance reservation"] # [doc = "is effectively transferred to the new account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] # [doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] # [doc = ""] # [doc = "Emits `IndexAssigned` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] transfer { new : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , index : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Free up an index owned by the sender."] # [doc = ""] # [doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] # [doc = ""] # [doc = "- `index`: the index to be freed. This must be owned by the sender."] # [doc = ""] # [doc = "Emits `IndexFreed` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] free { index : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] # [doc = "held, then any deposit is reimbursed to its current owner."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "- `index`: the index to be (re-)assigned."] # [doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] # [doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] # [doc = ""] # [doc = "Emits `IndexAssigned` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] force_transfer { new : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , index : :: core :: primitive :: u32 , freeze : :: core :: primitive :: bool , } , # [codec (index = 4)] # [doc = "Freeze an index so it will always point to the sender account. This consumes the"] # [doc = "deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] # [doc = "non-frozen account `index`."] # [doc = ""] # [doc = "- `index`: the index to be frozen in place."] # [doc = ""] # [doc = "Emits `IndexFrozen` if successful."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] freeze { index : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The index was not already assigned."] NotAssigned , # [codec (index = 1)] # [doc = "The index is assigned to another account."] NotOwner , # [codec (index = 2)] # [doc = "The index was not available."] InUse , # [codec (index = 3)] # [doc = "The source and destination accounts are identical."] NotTransfer , # [codec (index = 4)] # [doc = "The index is permanent and may not be freed/changed."] Permanent , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A account index was assigned."] IndexAssigned { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "A account index has been freed up (unassigned)."] IndexFreed { index : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "A account index has been frozen to its current account ID."] IndexFrozen { index : :: core :: primitive :: u32 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , } } } pub mod pallet_message_queue { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Remove a page which has no more messages remaining to be processed or is stale."] reap_page { message_origin : runtime_types :: polkadot_runtime_parachains :: inclusion :: AggregateMessageOrigin , page_index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Execute an overweight message."] # [doc = ""] # [doc = "Temporary processing errors will be propagated whereas permanent errors are treated"] # [doc = "as success condition."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `message_origin`: The origin from which the message to be executed arrived."] # [doc = "- `page`: The page in the queue in which the message to be executed is sitting."] # [doc = "- `index`: The index into the queue of the message to be executed."] # [doc = "- `weight_limit`: The maximum amount of weight allowed to be consumed in the execution"] # [doc = " of the message."] # [doc = ""] # [doc = "Benchmark complexity considerations: O(index + weight_limit)."] 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 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Page is not reapable because it has items remaining to be processed and is not old"] # [doc = "enough."] NotReapable , # [codec (index = 1)] # [doc = "Page to be reaped does not exist."] NoPage , # [codec (index = 2)] # [doc = "The referenced message could not be found."] NoMessage , # [codec (index = 3)] # [doc = "The message was already processed and cannot be processed again."] AlreadyProcessed , # [codec (index = 4)] # [doc = "The message is queued for future execution."] Queued , # [codec (index = 5)] # [doc = "There is temporarily not enough weight to continue servicing messages."] InsufficientWeight , # [codec (index = 6)] # [doc = "This message is temporarily unprocessable."] # [doc = ""] # [doc = "Such errors are expected, but not guaranteed, to resolve themselves eventually through"] # [doc = "retrying."] TemporarilyUnprocessable , # [codec (index = 7)] # [doc = "The queue is paused and no message can be executed from it."] # [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: utils :: H256 , 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 : :: subxt :: ext :: subxt_core :: utils :: H256 , 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 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BookState < _0 > { pub begin : :: core :: primitive :: u32 , pub end : :: core :: primitive :: u32 , pub count : :: core :: primitive :: u32 , pub ready_neighbours : :: core :: option :: Option < runtime_types :: pallet_message_queue :: Neighbours < _0 > > , pub message_count : :: core :: primitive :: u64 , pub size : :: core :: primitive :: u64 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Neighbours < _0 > { pub prev : _0 , pub next : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Page < _0 > { pub remaining : _0 , pub remaining_size : _0 , pub first_index : _0 , pub first : _0 , pub last : _0 , pub heap : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } } pub mod pallet_multisig { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "multi-signature, but do not participate in the approval process."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(Z + C) where Z is the length of the call and C its execution weight."] as_multi_threshold_1 { other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "If there are enough, then dispatch the call."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "NOTE: Unless this is the final approval, you will generally want to use"] # [doc = "`approve_as_multi` instead, since it only requires a hash of the call."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] # [doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] # [doc = "may be found in the deposited `MultisigExecuted` event."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S + Z + Call)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- The weight of the `call`."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] as_multi { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , maybe_timepoint : :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , max_weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 2)] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] approve_as_multi { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , maybe_timepoint : :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > , call_hash : [:: core :: primitive :: u8 ; 32usize] , max_weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 3)] # [doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] # [doc = "for this operation will be unreserved on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] # [doc = "transaction for this dispatch."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- One event."] # [doc = "- I/O: 1 read `O(S)`, one remove."] # [doc = "- Storage: removes one item."] cancel_as_multi { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Threshold must be 2 or greater."] MinimumThreshold , # [codec (index = 1)] # [doc = "Call is already approved by this signatory."] AlreadyApproved , # [codec (index = 2)] # [doc = "Call doesn't need any (more) approvals."] NoApprovalsNeeded , # [codec (index = 3)] # [doc = "There are too few signatories in the list."] TooFewSignatories , # [codec (index = 4)] # [doc = "There are too many signatories in the list."] TooManySignatories , # [codec (index = 5)] # [doc = "The signatories were provided out of order; they should be ordered."] SignatoriesOutOfOrder , # [codec (index = 6)] # [doc = "The sender was contained in the other signatories; it shouldn't be."] SenderInSignatories , # [codec (index = 7)] # [doc = "Multisig operation not found when attempting to cancel."] NotFound , # [codec (index = 8)] # [doc = "Only the account that originally created the multisig is able to cancel it."] NotOwner , # [codec (index = 9)] # [doc = "No timepoint was given, yet the multisig operation is already underway."] NoTimepoint , # [codec (index = 10)] # [doc = "A different timepoint was given to the multisig operation that is underway."] WrongTimepoint , # [codec (index = 11)] # [doc = "A timepoint was given, yet no multisig operation is underway."] UnexpectedTimepoint , # [codec (index = 12)] # [doc = "The maximum weight information provided was too low."] MaxWeightTooLow , # [codec (index = 13)] # [doc = "The data to be stored is already stored."] AlreadyStored , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A new multisig operation has begun."] NewMultisig { approving : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 1)] # [doc = "A multisig operation has been approved by someone."] MultisigApproval { approving : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 2)] # [doc = "A multisig operation has been executed."] MultisigExecuted { approving : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 3)] # [doc = "A multisig operation has been cancelled."] MultisigCancelled { cancelling : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Multisig < _0 , _1 , _2 > { pub when : runtime_types :: pallet_multisig :: Timepoint < _0 > , pub deposit : _1 , pub depositor : _2 , pub approvals : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _2 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Timepoint < _0 > { pub height : _0 , pub index : :: core :: primitive :: u32 , } } pub mod pallet_nomination_pools { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] # [doc = "pools account and immediately increases the pools bond."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "* An account can only be a member of a single pool."] # [doc = "* An account cannot join the same pool multiple times."] # [doc = "* This call will *not* dust the member account, so the member must have at least"] # [doc = " `existential deposit + amount` in their account."] # [doc = "* Only a pool with [`PoolState::Open`] can be joined"] join { # [codec (compact)] amount : :: core :: primitive :: u128 , pool_id : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] # [doc = ""] # [doc = "Additional funds can come from either the free balance of the account, of from the"] # [doc = "accumulated rewards, see [`BondExtra`]."] # [doc = ""] # [doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] # [doc = "See `bond_extra_other` to bond pending rewards of `other` members."] bond_extra { extra : runtime_types :: pallet_nomination_pools :: BondExtra < :: core :: primitive :: u128 > , } , # [codec (index = 2)] # [doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] # [doc = "has accumulated since their last claimed payout (OR since joining if this is their first"] # [doc = "time claiming rewards). The payout will be transferred to the member's account."] # [doc = ""] # [doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] # [doc = "members in the pools stake. Rewards do not \"expire\"."] # [doc = ""] # [doc = "See `claim_payout_other` to claim rewards on behalf of some `other` pool member."] claim_payout , # [codec (index = 3)] # [doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] # [doc = "implicitly collects the rewards one last time, since not doing so would mean some"] # [doc = "rewards would be forfeited."] # [doc = ""] # [doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] # [doc = "account)."] # [doc = ""] # [doc = "# Conditions for a permissionless dispatch."] # [doc = ""] # [doc = "* The pool is blocked and the caller is either the root or bouncer. This is refereed to"] # [doc = " as a kick."] # [doc = "* The pool is destroying and the member is not the depositor."] # [doc = "* The pool is destroying, the member is the depositor and no other members are in the"] # [doc = " pool."] # [doc = ""] # [doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] # [doc = "`member_account`):"] # [doc = ""] # [doc = "* The caller is not the depositor."] # [doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] # [doc = " pool."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "If there are too many unlocking chunks to unbond with the pool account,"] # [doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] # [doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] # [doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] # [doc = "are available). However, it may not be possible to release the current unlocking chunks,"] # [doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] # [doc = "staking system."] unbond { member_account : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] unbonding_points : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] # [doc = ""] # [doc = "This is useful if there are too many unlocking chunks to call `unbond`, and some"] # [doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] # [doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] # [doc = "they attempt to unbond."] pool_withdraw_unbonded { pool_id : :: core :: primitive :: u32 , num_slashing_spans : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] # [doc = "error is returned."] # [doc = ""] # [doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] # [doc = "account)."] # [doc = ""] # [doc = "# Conditions for a permissionless dispatch"] # [doc = ""] # [doc = "* The pool is in destroy mode and the target is not the depositor."] # [doc = "* The target is the depositor and they are the only member in the sub pools."] # [doc = "* The pool is blocked and the caller is either the root or bouncer."] # [doc = ""] # [doc = "# Conditions for permissioned dispatch"] # [doc = ""] # [doc = "* The caller is the target and they are not the depositor."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "- If the target is the depositor, the pool will be destroyed."] # [doc = "- If the pool has any pending slash, we also try to slash the member before letting them"] # [doc = "withdraw. This calculation adds some weight overhead and is only defensive. In reality,"] # [doc = "pool slashes must have been already applied via permissionless [`Call::apply_slash`]."] withdraw_unbonded { member_account : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , num_slashing_spans : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Create a new delegation pool."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] # [doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] # [doc = " destroyed."] # [doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] # [doc = " creating multiple pools in the same extrinsic."] # [doc = "* `root` - The account to set as [`PoolRoles::root`]."] # [doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] # [doc = "* `bouncer` - The account to set as the [`PoolRoles::bouncer`]."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] # [doc = "needs at have at least `amount + existential_deposit` transferable."] create { # [codec (compact)] amount : :: core :: primitive :: u128 , root : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , nominator : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , bouncer : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 7)] # [doc = "Create a new delegation pool with a previously used pool id"] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "same as `create` with the inclusion of"] # [doc = "* `pool_id` - `A valid PoolId."] create_with_pool_id { # [codec (compact)] amount : :: core :: primitive :: u128 , root : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , nominator : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , bouncer : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , pool_id : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Nominate on behalf of the pool."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] # [doc = "root role."] # [doc = ""] # [doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] # [doc = "account."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to have"] # [doc = "at least `depositor_min_bond` in the pool to start nominating."] nominate { pool_id : :: core :: primitive :: u32 , validators : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 9)] # [doc = "Set a new state for the pool."] # [doc = ""] # [doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] # [doc = "change again."] # [doc = ""] # [doc = "The dispatch origin of this call must be either:"] # [doc = ""] # [doc = "1. signed by the bouncer, or the root role of the pool,"] # [doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] # [doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] set_state { pool_id : :: core :: primitive :: u32 , state : runtime_types :: pallet_nomination_pools :: PoolState , } , # [codec (index = 10)] # [doc = "Set a new metadata for the pool."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the bouncer, or the root role of the"] # [doc = "pool."] set_metadata { pool_id : :: core :: primitive :: u32 , metadata : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 11)] # [doc = "Update configurations for the nomination pools. The origin for this call must be"] # [doc = "[`Config::AdminOrigin`]."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `min_join_bond` - Set [`MinJoinBond`]."] # [doc = "* `min_create_bond` - Set [`MinCreateBond`]."] # [doc = "* `max_pools` - Set [`MaxPools`]."] # [doc = "* `max_members` - Set [`MaxPoolMembers`]."] # [doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] # [doc = "* `global_max_commission` - Set [`GlobalMaxCommission`]."] 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 = "Update the roles of the pool."] # [doc = ""] # [doc = "The root is the only entity that can change any of the roles, including itself,"] # [doc = "excluding the depositor, who can never change."] # [doc = ""] # [doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] # [doc = "most pool members and they should be informed of changes to pool roles."] update_roles { pool_id : :: core :: primitive :: u32 , new_root : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , new_nominator : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , new_bouncer : runtime_types :: pallet_nomination_pools :: ConfigOp < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 13)] # [doc = "Chill on behalf of the pool."] # [doc = ""] # [doc = "The dispatch origin of this call can be signed by the pool nominator or the pool"] # [doc = "root role, same as [`Pallet::nominate`]."] # [doc = ""] # [doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] # [doc = "account)."] # [doc = ""] # [doc = "# Conditions for a permissionless dispatch:"] # [doc = "* When pool depositor has less than `MinNominatorBond` staked, otherwise pool members"] # [doc = " are unable to unbond."] # [doc = ""] # [doc = "# Conditions for permissioned dispatch:"] # [doc = "* The caller has a nominator or root role of the pool."] # [doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] # [doc = "account."] chill { pool_id : :: core :: primitive :: u32 , } , # [codec (index = 14)] # [doc = "`origin` bonds funds from `extra` for some pool member `member` into their respective"] # [doc = "pools."] # [doc = ""] # [doc = "`origin` can bond extra funds from free balance or pending rewards when `origin =="] # [doc = "other`."] # [doc = ""] # [doc = "In the case of `origin != other`, `origin` can only bond extra pending rewards of"] # [doc = "`other` members assuming set_claim_permission for the given member is"] # [doc = "`PermissionlessCompound` or `PermissionlessAll`."] bond_extra_other { member : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , extra : runtime_types :: pallet_nomination_pools :: BondExtra < :: core :: primitive :: u128 > , } , # [codec (index = 15)] # [doc = "Allows a pool member to set a claim permission to allow or disallow permissionless"] # [doc = "bonding and withdrawing."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - Member of a pool."] # [doc = "* `permission` - The permission to be applied."] set_claim_permission { permission : runtime_types :: pallet_nomination_pools :: ClaimPermission , } , # [codec (index = 16)] # [doc = "`origin` can claim payouts on some pool member `other`'s behalf."] # [doc = ""] # [doc = "Pool member `other` must have a `PermissionlessWithdraw` or `PermissionlessAll` claim"] # [doc = "permission for this call to be successful."] claim_payout_other { other : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 17)] # [doc = "Set the commission of a pool."] # [doc = "Both a commission percentage and a commission payee must be provided in the `current`"] # [doc = "tuple. Where a `current` of `None` is provided, any current commission will be removed."] # [doc = ""] # [doc = "- If a `None` is supplied to `new_commission`, existing commission will be removed."] set_commission { pool_id : :: core :: primitive :: u32 , new_commission : :: core :: option :: Option < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > , } , # [codec (index = 18)] # [doc = "Set the maximum commission of a pool."] # [doc = ""] # [doc = "- Initial max can be set to any `Perbill`, and only smaller values thereafter."] # [doc = "- Current commission will be lowered in the event it is higher than a new max"] # [doc = " commission."] set_commission_max { pool_id : :: core :: primitive :: u32 , max_commission : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 19)] # [doc = "Set the commission change rate for a pool."] # [doc = ""] # [doc = "Initial change rate is not bounded, whereas subsequent updates can only be more"] # [doc = "restrictive than the current."] set_commission_change_rate { pool_id : :: core :: primitive :: u32 , change_rate : runtime_types :: pallet_nomination_pools :: CommissionChangeRate < :: core :: primitive :: u32 > , } , # [codec (index = 20)] # [doc = "Claim pending commission."] # [doc = ""] # [doc = "The dispatch origin of this call must be signed by the `root` role of the pool. Pending"] # [doc = "commission is paid out and added to total claimed commission`. Total pending commission"] # [doc = "is reset to zero. the current."] claim_commission { pool_id : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "Top up the deficit or withdraw the excess ED from the pool."] # [doc = ""] # [doc = "When a pool is created, the pool depositor transfers ED to the reward account of the"] # [doc = "pool. ED is subject to change and over time, the deposit in the reward account may be"] # [doc = "insufficient to cover the ED deficit of the pool or vice-versa where there is excess"] # [doc = "deposit to the pool. This call allows anyone to adjust the ED deposit of the"] # [doc = "pool by either topping up the deficit or claiming the excess."] adjust_pool_deposit { pool_id : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "Set or remove a pool's commission claim permission."] # [doc = ""] # [doc = "Determines who can claim the pool's pending commission. Only the `Root` role of the pool"] # [doc = "is able to configure commission claim permissions."] set_commission_claim_permission { pool_id : :: core :: primitive :: u32 , permission : :: core :: option :: Option < runtime_types :: pallet_nomination_pools :: CommissionClaimPermission < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > , } , # [codec (index = 23)] # [doc = "Apply a pending slash on a member."] # [doc = ""] # [doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "This call can be dispatched permissionlessly (i.e. by any account). If the member has"] # [doc = "slash to be applied, caller may be rewarded with the part of the slash."] apply_slash { member_account : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 24)] # [doc = "Migrates delegated funds from the pool account to the `member_account`."] # [doc = ""] # [doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "This is a permission-less call and refunds any fee if claim is successful."] # [doc = ""] # [doc = "If the pool has migrated to delegation based staking, the staked tokens of pool members"] # [doc = "can be moved and held in their own account. See [`adapter::DelegateStake`]"] migrate_delegation { member_account : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 25)] # [doc = "Migrate pool from [`adapter::StakeStrategyType::Transfer`] to"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:"] # [doc = "[`adapter::StakeStrategyType::Delegate`]."] # [doc = ""] # [doc = "This call can be dispatched permissionlessly, and refunds any fee if successful."] # [doc = ""] # [doc = "If the pool has already migrated to delegation based staking, this call will fail."] migrate_pool_to_delegate_stake { pool_id : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 5)] DelegationUnsupported , # [codec (index = 6)] SlashNotApplied , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 32)] # [doc = "No slash pending that can be applied to the member."] NothingToSlash , # [codec (index = 33)] # [doc = "The pool or member delegation has already migrated to delegate stake."] AlreadyMigrated , # [codec (index = 34)] # [doc = "The pool or member delegation has not migrated yet to delegate stake."] NotMigrated , # [codec (index = 35)] # [doc = "This call is not allowed in the current state of the pallet."] NotSupported , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Events of this pallet."] pub enum Event { # [codec (index = 0)] # [doc = "A pool has been created."] Created { depositor : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , pool_id : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "A member has became bonded in a pool."] Bonded { member : :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 > , bouncer : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , nominator : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum FreezeReason { # [codec (index = 0)] PoolMinBalance , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum BondExtra < _0 > { # [codec (index = 0)] FreeBalance (_0 ,) , # [codec (index = 1)] Rewards , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 > , pub state : runtime_types :: pallet_nomination_pools :: PoolState , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Commission { pub current : :: core :: option :: Option < (runtime_types :: sp_arithmetic :: per_things :: Perbill , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > , pub max : :: core :: option :: Option < runtime_types :: sp_arithmetic :: per_things :: Perbill > , 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 :: ext :: subxt_core :: utils :: AccountId32 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CommissionChangeRate < _0 > { pub max_increase : runtime_types :: sp_arithmetic :: per_things :: Perbill , pub min_delay : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum CommissionClaimPermission < _0 > { # [codec (index = 0)] Permissionless , # [codec (index = 1)] Account (_0 ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ConfigOp < _0 > { # [codec (index = 0)] Noop , # [codec (index = 1)] Set (_0 ,) , # [codec (index = 2)] Remove , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum PoolState { # [codec (index = 0)] Open , # [codec (index = 1)] Blocked , # [codec (index = 2)] Destroying , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Events type."] pub enum Event { # [codec (index = 0)] # [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\\]."] Offence { kind : [:: core :: primitive :: u8 ; 16usize] , timeslot : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , } } } pub mod pallet_preimage { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Register a preimage on-chain."] # [doc = ""] # [doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] # [doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] note_preimage { bytes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Clear an unrequested preimage from the runtime storage."] # [doc = ""] # [doc = "If `len` is provided, then it will be a much cheaper operation."] # [doc = ""] # [doc = "- `hash`: The hash of the preimage to be removed from the store."] # [doc = "- `len`: The length of the preimage of `hash`."] unnote_preimage { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 2)] # [doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] # [doc = ""] # [doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] # [doc = "a user may have paid, and take the control of the preimage out of their hands."] request_preimage { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 3)] # [doc = "Clear a previously made request for a preimage."] # [doc = ""] # [doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] unrequest_preimage { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 4)] # [doc = "Ensure that the a bulk of pre-images is upgraded."] # [doc = ""] # [doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."] ensure_updated { hashes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Preimage is too large to store on-chain."] TooBig , # [codec (index = 1)] # [doc = "Preimage has already been noted on-chain."] AlreadyNoted , # [codec (index = 2)] # [doc = "The user is not authorized to perform this action."] NotAuthorized , # [codec (index = 3)] # [doc = "The preimage cannot be removed since it has not yet been noted."] NotNoted , # [codec (index = 4)] # [doc = "A preimage may not be removed when there are outstanding requests."] Requested , # [codec (index = 5)] # [doc = "The preimage request cannot be removed since no outstanding requests exist."] NotRequested , # [codec (index = 6)] # [doc = "More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once."] TooMany , # [codec (index = 7)] # [doc = "Too few hashes were requested to be upgraded (i.e. zero)."] TooFew , # [codec (index = 8)] # [doc = "No ticket with a cost was returned by [`Config::Consideration`] to store the preimage."] NoCost , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A preimage has been noted."] Noted { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 1)] # [doc = "A preimage has been requested."] Requested { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 2)] # [doc = "A preimage has ben cleared."] Cleared { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] Preimage , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum OldRequestStatus < _0 , _1 > { # [codec (index = 0)] Unrequested { deposit : (_0 , _1 ,) , len : :: core :: primitive :: u32 , } , # [codec (index = 1)] Requested { deposit : :: core :: option :: Option < (_0 , _1 ,) > , count : :: core :: primitive :: u32 , len : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RequestStatus < _0 , _1 > { # [codec (index = 0)] Unrequested { ticket : (_0 , _1 ,) , len : :: core :: primitive :: u32 , } , # [codec (index = 1)] Requested { maybe_ticket : :: core :: option :: Option < (_0 , _1 ,) > , count : :: core :: primitive :: u32 , maybe_len : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } } pub mod pallet_proxy { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Dispatch the given `call` from an account that the sender is authorised for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] proxy { real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , force_proxy_type : :: core :: option :: Option < runtime_types :: paseo_runtime :: ProxyType > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Register a proxy account for the sender that is able to make calls on its behalf."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to make a proxy."] # [doc = "- `proxy_type`: The permissions allowed for this proxy account."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] add_proxy { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , proxy_type : runtime_types :: paseo_runtime :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Unregister a proxy account for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] # [doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] remove_proxy { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , proxy_type : runtime_types :: paseo_runtime :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Unregister all proxy accounts for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "WARNING: This may be called on accounts created by `pure`, however if done, then"] # [doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] remove_proxies , # [codec (index = 4)] # [doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] # [doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] # [doc = ""] # [doc = "Requires a `Signed` origin."] # [doc = ""] # [doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] # [doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] # [doc = "allow for maximum flexibility."] # [doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] # [doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] # [doc = "want to use `0`."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] # [doc = ""] # [doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] # [doc = "same sender, with the same parameters."] # [doc = ""] # [doc = "Fails if there are insufficient funds to pay for deposit."] create_pure { proxy_type : runtime_types :: paseo_runtime :: ProxyType , delay : :: core :: primitive :: u32 , index : :: core :: primitive :: u16 , } , # [codec (index = 5)] # [doc = "Removes a previously spawned pure proxy."] # [doc = ""] # [doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] # [doc = "inaccessible."] # [doc = ""] # [doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] # [doc = "`pure` with corresponding parameters."] # [doc = ""] # [doc = "- `spawner`: The account that originally called `pure` to create this account."] # [doc = "- `index`: The disambiguation index originally passed to `pure`. Probably `0`."] # [doc = "- `proxy_type`: The proxy type originally passed to `pure`."] # [doc = "- `height`: The height of the chain when the call to `pure` was processed."] # [doc = "- `ext_index`: The extrinsic index in which the call to `pure` was processed."] # [doc = ""] # [doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] # [doc = "account whose `pure` call has corresponding parameters."] kill_pure { spawner : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , proxy_type : runtime_types :: paseo_runtime :: ProxyType , index : :: core :: primitive :: u16 , # [codec (compact)] height : :: core :: primitive :: u32 , # [codec (compact)] ext_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Publish the hash of a proxy-call that will be made in the future."] # [doc = ""] # [doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] # [doc = "if the delay associated with the proxy relationship is greater than zero."] # [doc = ""] # [doc = "No more than `MaxPending` announcements may be made at any one time."] # [doc = ""] # [doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] # [doc = "`AnnouncementDepositBase` if there are no other pending announcements."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] announce { real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 7)] # [doc = "Remove a given announcement."] # [doc = ""] # [doc = "May be called by a proxy account to remove a call they previously announced and return"] # [doc = "the deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] remove_announcement { real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 8)] # [doc = "Remove the given announcement of a delegate."] # [doc = ""] # [doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] # [doc = "(`delegate`) has announced they want to execute. The deposit is returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `delegate`: The account that previously announced the call."] # [doc = "- `call_hash`: The hash of the call to be made."] reject_announcement { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 9)] # [doc = "Dispatch the given `call` from an account that the sender is authorized for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "Removes any corresponding announcement(s)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] proxy_announced { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , force_proxy_type : :: core :: option :: Option < runtime_types :: paseo_runtime :: ProxyType > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "There are too many proxies registered or too many announcements pending."] TooMany , # [codec (index = 1)] # [doc = "Proxy registration not found."] NotFound , # [codec (index = 2)] # [doc = "Sender is not a proxy of the account to be proxied."] NotProxy , # [codec (index = 3)] # [doc = "A call which is incompatible with the proxy type's filter was attempted."] Unproxyable , # [codec (index = 4)] # [doc = "Account is already a proxy."] Duplicate , # [codec (index = 5)] # [doc = "Call may not be made by proxy because it may escalate its privileges."] NoPermission , # [codec (index = 6)] # [doc = "Announcement, if made at all, was made too recently."] Unannounced , # [codec (index = 7)] # [doc = "Cannot add self as proxy."] NoSelfProxy , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A proxy was executed correctly, with the given."] ProxyExecuted { result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 1)] # [doc = "A pure account has been created by new proxy with given"] # [doc = "disambiguation index and proxy type."] PureCreated { pure : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: paseo_runtime :: ProxyType , disambiguation_index : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "An announcement was placed to make a call in the future."] Announced { real : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 3)] # [doc = "A proxy was added."] ProxyAdded { delegator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , delegatee : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: paseo_runtime :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "A proxy was removed."] ProxyRemoved { delegator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , delegatee : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: paseo_runtime :: ProxyType , delay : :: core :: primitive :: u32 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Announcement < _0 , _1 , _2 > { pub real : _0 , pub call_hash : _1 , pub height : _2 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ProxyDefinition < _0 , _1 , _2 > { pub delegate : _0 , pub proxy_type : _1 , pub delay : _2 , } } pub mod pallet_referenda { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Propose a referendum on a privileged action."] # [doc = ""] # [doc = "- `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds"] # [doc = " available."] # [doc = "- `proposal_origin`: The origin from which the proposal should be executed."] # [doc = "- `proposal`: The proposal."] # [doc = "- `enactment_moment`: The moment that the proposal should be enacted."] # [doc = ""] # [doc = "Emits `Submitted`."] submit { proposal_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: OriginCaller > , proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: paseo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , enactment_moment : runtime_types :: frame_support :: traits :: schedule :: DispatchTime < :: core :: primitive :: u32 > , } , # [codec (index = 1)] # [doc = "Post the Decision Deposit for a referendum."] # [doc = ""] # [doc = "- `origin`: must be `Signed` and the account must have funds available for the"] # [doc = " referendum's track's Decision Deposit."] # [doc = "- `index`: The index of the submitted referendum whose Decision Deposit is yet to be"] # [doc = " posted."] # [doc = ""] # [doc = "Emits `DecisionDepositPlaced`."] place_decision_deposit { index : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Refund the Decision Deposit for a closed referendum back to the depositor."] # [doc = ""] # [doc = "- `origin`: must be `Signed` or `Root`."] # [doc = "- `index`: The index of a closed referendum whose Decision Deposit has not yet been"] # [doc = " refunded."] # [doc = ""] # [doc = "Emits `DecisionDepositRefunded`."] refund_decision_deposit { index : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Cancel an ongoing referendum."] # [doc = ""] # [doc = "- `origin`: must be the `CancelOrigin`."] # [doc = "- `index`: The index of the referendum to be cancelled."] # [doc = ""] # [doc = "Emits `Cancelled`."] cancel { index : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Cancel an ongoing referendum and slash the deposits."] # [doc = ""] # [doc = "- `origin`: must be the `KillOrigin`."] # [doc = "- `index`: The index of the referendum to be cancelled."] # [doc = ""] # [doc = "Emits `Killed` and `DepositSlashed`."] kill { index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Advance a referendum onto its next logical state. Only used internally."] # [doc = ""] # [doc = "- `origin`: must be `Root`."] # [doc = "- `index`: the referendum to be advanced."] nudge_referendum { index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Advance a track onto its next logical state. Only used internally."] # [doc = ""] # [doc = "- `origin`: must be `Root`."] # [doc = "- `track`: the track to be advanced."] # [doc = ""] # [doc = "Action item for when there is now one fewer referendum in the deciding phase and the"] # [doc = "`DecidingCount` is not yet updated. This means that we should either:"] # [doc = "- begin deciding another referendum (and leave `DecidingCount` alone); or"] # [doc = "- decrement `DecidingCount`."] one_fewer_deciding { track : :: core :: primitive :: u16 , } , # [codec (index = 7)] # [doc = "Refund the Submission Deposit for a closed referendum back to the depositor."] # [doc = ""] # [doc = "- `origin`: must be `Signed` or `Root`."] # [doc = "- `index`: The index of a closed referendum whose Submission Deposit has not yet been"] # [doc = " refunded."] # [doc = ""] # [doc = "Emits `SubmissionDepositRefunded`."] refund_submission_deposit { index : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Set or clear metadata of a referendum."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: Must be `Signed` by a creator of a referendum or by anyone to clear a"] # [doc = " metadata of a finished referendum."] # [doc = "- `index`: The index of a referendum to set or clear metadata for."] # [doc = "- `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata."] set_metadata { index : :: core :: primitive :: u32 , maybe_hash : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: H256 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Referendum is not ongoing."] NotOngoing , # [codec (index = 1)] # [doc = "Referendum's decision deposit is already paid."] HasDeposit , # [codec (index = 2)] # [doc = "The track identifier given was invalid."] BadTrack , # [codec (index = 3)] # [doc = "There are already a full complement of referenda in progress for this track."] Full , # [codec (index = 4)] # [doc = "The queue of the track is empty."] QueueEmpty , # [codec (index = 5)] # [doc = "The referendum index provided is invalid in this context."] BadReferendum , # [codec (index = 6)] # [doc = "There was nothing to do in the advancement."] NothingToDo , # [codec (index = 7)] # [doc = "No track exists for the proposal origin."] NoTrack , # [codec (index = 8)] # [doc = "Any deposit cannot be refunded until after the decision is over."] Unfinished , # [codec (index = 9)] # [doc = "The deposit refunder is not the depositor."] NoPermission , # [codec (index = 10)] # [doc = "The deposit cannot be refunded since none was made."] NoDeposit , # [codec (index = 11)] # [doc = "The referendum status is invalid for this operation."] BadStatus , # [codec (index = 12)] # [doc = "The preimage does not exist."] PreimageNotExist , # [codec (index = 13)] # [doc = "The preimage is stored with a different length than the one provided."] PreimageStoredWithDifferentLength , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A referendum has been submitted."] Submitted { index : :: core :: primitive :: u32 , track : :: core :: primitive :: u16 , proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: paseo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , } , # [codec (index = 1)] # [doc = "The decision deposit has been placed."] DecisionDepositPlaced { index : :: core :: primitive :: u32 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "The decision deposit has been refunded."] DecisionDepositRefunded { index : :: core :: primitive :: u32 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "A deposit has been slashed."] DepositSlashed { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "A referendum has moved into the deciding phase."] DecisionStarted { index : :: core :: primitive :: u32 , track : :: core :: primitive :: u16 , proposal : runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: paseo_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , tally : runtime_types :: pallet_conviction_voting :: types :: Tally < :: core :: primitive :: u128 > , } , # [codec (index = 5)] ConfirmStarted { index : :: core :: primitive :: u32 , } , # [codec (index = 6)] ConfirmAborted { index : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "A referendum has ended its confirmation phase and is ready for approval."] Confirmed { index : :: core :: primitive :: u32 , tally : runtime_types :: pallet_conviction_voting :: types :: Tally < :: core :: primitive :: u128 > , } , # [codec (index = 8)] # [doc = "A referendum has been approved and its proposal has been scheduled."] Approved { index : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "A proposal has been rejected by referendum."] Rejected { index : :: core :: primitive :: u32 , tally : runtime_types :: pallet_conviction_voting :: types :: Tally < :: core :: primitive :: u128 > , } , # [codec (index = 10)] # [doc = "A referendum has been timed out without being decided."] TimedOut { index : :: core :: primitive :: u32 , tally : runtime_types :: pallet_conviction_voting :: types :: Tally < :: core :: primitive :: u128 > , } , # [codec (index = 11)] # [doc = "A referendum has been cancelled."] Cancelled { index : :: core :: primitive :: u32 , tally : runtime_types :: pallet_conviction_voting :: types :: Tally < :: core :: primitive :: u128 > , } , # [codec (index = 12)] # [doc = "A referendum has been killed."] Killed { index : :: core :: primitive :: u32 , tally : runtime_types :: pallet_conviction_voting :: types :: Tally < :: core :: primitive :: u128 > , } , # [codec (index = 13)] # [doc = "The submission deposit has been refunded."] SubmissionDepositRefunded { index : :: core :: primitive :: u32 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 14)] # [doc = "Metadata for a referendum has been set."] MetadataSet { index : :: core :: primitive :: u32 , hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 15)] # [doc = "Metadata for a referendum has been cleared."] MetadataCleared { index : :: core :: primitive :: u32 , hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Curve { # [codec (index = 0)] LinearDecreasing { length : runtime_types :: sp_arithmetic :: per_things :: Perbill , floor : runtime_types :: sp_arithmetic :: per_things :: Perbill , ceil : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 1)] SteppedDecreasing { begin : runtime_types :: sp_arithmetic :: per_things :: Perbill , end : runtime_types :: sp_arithmetic :: per_things :: Perbill , step : runtime_types :: sp_arithmetic :: per_things :: Perbill , period : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 2)] Reciprocal { factor : runtime_types :: sp_arithmetic :: fixed_point :: FixedI64 , x_offset : runtime_types :: sp_arithmetic :: fixed_point :: FixedI64 , y_offset : runtime_types :: sp_arithmetic :: fixed_point :: FixedI64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DecidingStatus < _0 > { pub since : _0 , pub confirming : :: core :: option :: Option < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Deposit < _0 , _1 > { pub who : _0 , pub amount : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ReferendumInfo < _0 , _1 , _2 , _3 , _4 , _5 , _6 , _7 > { # [codec (index = 0)] Ongoing (runtime_types :: pallet_referenda :: types :: ReferendumStatus < _0 , _1 , _2 , _3 , _4 , _5 , _6 , _7 > ,) , # [codec (index = 1)] Approved (_2 , :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > > , :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > > ,) , # [codec (index = 2)] Rejected (_2 , :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > > , :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > > ,) , # [codec (index = 3)] Cancelled (_2 , :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > > , :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > > ,) , # [codec (index = 4)] TimedOut (_2 , :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > > , :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > > ,) , # [codec (index = 5)] Killed (_2 ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ReferendumStatus < _0 , _1 , _2 , _3 , _4 , _5 , _6 , _7 > { pub track : _0 , pub origin : _1 , pub proposal : _3 , pub enactment : runtime_types :: frame_support :: traits :: schedule :: DispatchTime < _2 > , pub submitted : _2 , pub submission_deposit : runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > , pub decision_deposit : :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: Deposit < _6 , _4 > > , pub deciding : :: core :: option :: Option < runtime_types :: pallet_referenda :: types :: DecidingStatus < _2 > > , pub tally : _5 , pub in_queue : :: core :: primitive :: bool , pub alarm : :: core :: option :: Option < (_2 , _7 ,) > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TrackInfo < _0 , _1 > { pub name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , pub max_deciding : :: core :: primitive :: u32 , pub decision_deposit : _0 , pub prepare_period : _1 , pub decision_period : _1 , pub confirm_period : _1 , pub min_enactment_period : _1 , pub min_approval : runtime_types :: pallet_referenda :: types :: Curve , pub min_support : runtime_types :: pallet_referenda :: types :: Curve , } } } pub mod pallet_scheduler { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Anonymously schedule a task."] schedule { when : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Cancel an anonymously scheduled task."] cancel { when : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Schedule a named task."] schedule_named { id : [:: core :: primitive :: u8 ; 32usize] , when : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 3)] # [doc = "Cancel a named scheduled task."] cancel_named { id : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 4)] # [doc = "Anonymously schedule a task after a delay."] schedule_after { after : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Schedule a named task after a delay."] schedule_named_after { id : [:: core :: primitive :: u8 ; 32usize] , after : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 6)] # [doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] # [doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] # [doc = "succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] set_retry { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , retries : :: core :: primitive :: u8 , period : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] # [doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] # [doc = "it succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] set_retry_named { id : [:: core :: primitive :: u8 ; 32usize] , retries : :: core :: primitive :: u8 , period : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Removes the retry configuration of a task."] cancel_retry { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , } , # [codec (index = 9)] # [doc = "Cancel the retry configuration of a named task."] cancel_retry_named { id : [:: core :: primitive :: u8 ; 32usize] , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Failed to schedule a call"] FailedToSchedule , # [codec (index = 1)] # [doc = "Cannot find the scheduled call."] NotFound , # [codec (index = 2)] # [doc = "Given target block number is in the past."] TargetBlockNumberInPast , # [codec (index = 3)] # [doc = "Reschedule failed because it does not change scheduled time."] RescheduleNoChange , # [codec (index = 4)] # [doc = "Attempt to use a non-named function on a named task."] Named , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Events type."] pub enum Event { # [codec (index = 0)] # [doc = "Scheduled some task."] Scheduled { when : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Canceled some task."] Canceled { when : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Dispatched some task."] Dispatched { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 3)] # [doc = "Set a retry configuration for some task."] RetrySet { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , period : :: core :: primitive :: u32 , retries : :: core :: primitive :: u8 , } , # [codec (index = 4)] # [doc = "Cancel a retry configuration for some task."] RetryCancelled { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 5)] # [doc = "The call for the provided hash was not found so the task has been aborted."] CallUnavailable { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 6)] # [doc = "The given task was unable to be renewed since the agenda is full at that block."] PeriodicFailed { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 7)] # [doc = "The given task was unable to be retried since the agenda is full at that block or there"] # [doc = "was not enough weight to reschedule it."] RetryFailed { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 8)] # [doc = "The given task can never be executed since it is overweight."] PermanentlyOverweight { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RetryConfig < _0 > { pub total_retries : :: core :: primitive :: u8 , pub remaining : :: core :: primitive :: u8 , pub period : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Scheduled < _0 , _1 , _2 , _3 , _4 > { pub maybe_id : :: core :: option :: Option < _0 > , pub priority : :: core :: primitive :: u8 , pub call : _1 , pub maybe_periodic : :: core :: option :: Option < (_2 , _2 ,) > , pub origin : _3 , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _4 > } } pub mod pallet_session { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Sets the session key(s) of the function caller to `keys`."] # [doc = "Allows an account to set its session key prior to becoming a validator."] # [doc = "This doesn't take effect until the next session."] # [doc = ""] # [doc = "The dispatch origin of this function must be signed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is"] # [doc = " fixed."] set_keys { keys : runtime_types :: paseo_runtime :: SessionKeys , proof : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Removes any session key(s) of the function caller."] # [doc = ""] # [doc = "This doesn't take effect until the next session."] # [doc = ""] # [doc = "The dispatch origin of this function must be Signed and the account must be either be"] # [doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] # [doc = "means being a controller account) or directly convertible into a validator ID (which"] # [doc = "usually means being a stash account)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` in number of key types. Actual cost depends on the number of length of"] # [doc = " `T::Keys::key_ids()` which is fixed."] purge_keys , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Error for the session pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Invalid ownership proof."] InvalidProof , # [codec (index = 1)] # [doc = "No associated validator ID for account."] NoAssociatedValidatorId , # [codec (index = 2)] # [doc = "Registered duplicate key."] DuplicatedKey , # [codec (index = 3)] # [doc = "No keys are associated with this account."] NoKeys , # [codec (index = 4)] # [doc = "Key setting account is not live, so it's impossible to associate keys."] NoAccount , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "New session has happened. Note that the argument is the session index, not the"] # [doc = "block number as the type might suggest."] NewSession { session_index : :: core :: primitive :: u32 , } , } } } 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] # [doc = "be the account that controls it."] # [doc = ""] # [doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the stash account."] # [doc = ""] # [doc = "Emits `Bonded`."] # [doc = "## Complexity"] # [doc = "- Independent of the arguments. Moderate complexity."] # [doc = "- O(1)."] # [doc = "- Three extra DB entries."] # [doc = ""] # [doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] # [doc = "unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed"] # [doc = "as dust."] bond { # [codec (compact)] value : :: core :: primitive :: u128 , payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 1)] # [doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] # [doc = "for staking."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] # [doc = ""] # [doc = "Use this if there are additional funds in your stash account that you wish to bond."] # [doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] # [doc = "any limitation on the amount that can be added."] # [doc = ""] # [doc = "Emits `Bonded`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- O(1)."] bond_extra { # [codec (compact)] max_additional : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] # [doc = "period ends. If this leaves an amount actively bonded less than"] # [doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] # [doc = "the funds out of management ready for transfer."] # [doc = ""] # [doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] # [doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] # [doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] # [doc = ""] # [doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] # [doc = "they should call `chill` first in order to free up their bonded funds."] # [doc = ""] # [doc = "Emits `Unbonded`."] # [doc = ""] # [doc = "See also [`Call::withdraw_unbonded`]."] unbond { # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] # [doc = ""] # [doc = "This essentially frees up that balance to be used by the stash account to do whatever"] # [doc = "it wants."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller."] # [doc = ""] # [doc = "Emits `Withdrawn`."] # [doc = ""] # [doc = "See also [`Call::unbond`]."] # [doc = ""] # [doc = "## Parameters"] # [doc = ""] # [doc = "- `num_slashing_spans` indicates the number of metadata slashing spans to clear when"] # [doc = "this call results in a complete removal of all the data related to the stash account."] # [doc = "In this case, the `num_slashing_spans` must be larger or equal to the number of"] # [doc = "slashing spans associated with the stash account in the [`SlashingSpans`] storage type,"] # [doc = "otherwise the call will fail. The call weight is directly proportional to"] # [doc = "`num_slashing_spans`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(S) where S is the number of slashing spans to remove"] # [doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] withdraw_unbonded { num_slashing_spans : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Declare the desire to validate for the origin controller."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] validate { prefs : runtime_types :: pallet_staking :: ValidatorPrefs , } , # [codec (index = 5)] # [doc = "Declare the desire to nominate `targets` for the origin controller."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] # [doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] # [doc = "- Both the reads and writes follow a similar pattern."] nominate { targets : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > > , } , # [codec (index = 6)] # [doc = "Declare no desire to either validate or nominate."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains one read."] # [doc = "- Writes are limited to the `origin` account key."] chill , # [codec (index = 7)] # [doc = "(Re-)set the payment target for a controller."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] # [doc = "---------"] set_payee { payee : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "(Re-)sets the controller of a stash to the stash itself. This function previously"] # [doc = "accepted a `controller` argument to set the controller to an account other than the"] # [doc = "stash itself. This functionality has now been removed, now only setting the controller"] # [doc = "to the stash, if it is not already."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(1)"] # [doc = "- Independent of the arguments. Insignificant complexity."] # [doc = "- Contains a limited number of reads."] # [doc = "- Writes are limited to the `origin` account key."] set_controller , # [codec (index = 9)] # [doc = "Sets the ideal number of validators."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(1)"] set_validator_count { # [codec (compact)] new : :: core :: primitive :: u32 , } , # [codec (index = 10)] # [doc = "Increments the ideal number of validators up to maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "Same as [`Self::set_validator_count`]."] increase_validator_count { # [codec (compact)] additional : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Scale up the ideal number of validators by a factor up to maximum of"] # [doc = "`ElectionProviderBase::MaxWinners`."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Complexity"] # [doc = "Same as [`Self::set_validator_count`]."] scale_validator_count { factor : runtime_types :: sp_arithmetic :: per_things :: Percent , } , # [codec (index = 12)] # [doc = "Force there to be no new eras indefinitely."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# Warning"] # [doc = ""] # [doc = "The election process starts multiple blocks before the end of the era."] # [doc = "Thus the election process may be ongoing when this is called. In this case the"] # [doc = "election will continue until the next era is triggered."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] force_no_eras , # [codec (index = 13)] # [doc = "Force there to be a new era at the end of the next session. After this, it will be"] # [doc = "reset to normal (non-forced) behaviour."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# Warning"] # [doc = ""] # [doc = "The election process starts multiple blocks before the end of the era."] # [doc = "If this is called just before a new era is triggered, the election process may not"] # [doc = "have enough blocks to get a result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- No arguments."] # [doc = "- Weight: O(1)"] force_new_era , # [codec (index = 14)] # [doc = "Set the validators who cannot be slashed (if any)."] # [doc = ""] # [doc = "The dispatch origin must be Root."] set_invulnerables { invulnerables : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 15)] # [doc = "Force a current staker to become completely unstaked, immediately."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "## Parameters"] # [doc = ""] # [doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] # [doc = "details."] force_unstake { stash : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , num_slashing_spans : :: core :: primitive :: u32 , } , # [codec (index = 16)] # [doc = "Force there to be a new era at the end of sessions indefinitely."] # [doc = ""] # [doc = "The dispatch origin must be Root."] # [doc = ""] # [doc = "# Warning"] # [doc = ""] # [doc = "The election process starts multiple blocks before the end of the era."] # [doc = "If this is called just before a new era is triggered, the election process may not"] # [doc = "have enough blocks to get a result."] force_new_era_always , # [codec (index = 17)] # [doc = "Cancel enactment of a deferred slash."] # [doc = ""] # [doc = "Can be called by the `T::AdminOrigin`."] # [doc = ""] # [doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era : :: core :: primitive :: u32 , slash_indices : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > , } , # [codec (index = 18)] # [doc = "Pay out next page of the stakers behind a validator for the given era."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator."] # [doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] # [doc = ""] # [doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] # [doc = "it is not one of the stakers."] # [doc = ""] # [doc = "The reward payout could be paged in case there are too many nominators backing the"] # [doc = "`validator_stash`. This call will payout unpaid pages in an ascending order. To claim a"] # [doc = "specific page, use `payout_stakers_by_page`.`"] # [doc = ""] # [doc = "If all pages are claimed, it returns an error `InvalidPage`."] payout_stakers { validator_stash : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , era : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "Rebond a portion of the stash scheduled to be unlocked."] # [doc = ""] # [doc = "The dispatch origin must be signed by the controller."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- Time complexity: O(L), where L is unlocking chunks"] # [doc = "- Bounded by `MaxUnlockingChunks`."] rebond { # [codec (compact)] value : :: core :: primitive :: u128 , } , # [codec (index = 20)] # [doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] # [doc = "be considered `dust` in the staking system. The requirements are:"] # [doc = ""] # [doc = "1. the `total_balance` of the stash is below existential deposit."] # [doc = "2. or, the `ledger.total` of the stash is below existential deposit."] # [doc = "3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero."] # [doc = ""] # [doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] # [doc = "is still receiving staking rewards in `RewardDestination::Staked`."] # [doc = ""] # [doc = "It can be called by anyone, as long as `stash` meets the above requirements."] # [doc = ""] # [doc = "Refunds the transaction fees upon successful execution."] # [doc = ""] # [doc = "## Parameters"] # [doc = ""] # [doc = "- `num_slashing_spans`: Refer to comments on [`Call::withdraw_unbonded`] for more"] # [doc = "details."] reap_stash { stash : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , num_slashing_spans : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "Remove the given nominations from the calling validator."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] # [doc = ""] # [doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] # [doc = " should no longer be nominating this validator."] # [doc = ""] # [doc = "Note: Making this call only makes sense if you first set the validator preferences to"] # [doc = "block any further nominations."] kick { who : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > > , } , # [codec (index = 22)] # [doc = "Update the various staking configurations ."] # [doc = ""] # [doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] # [doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] # [doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] # [doc = " set to `None`, no limit is enforced."] # [doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] # [doc = " set to `None`, no limit is enforced."] # [doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] # [doc = " should be filled in order for the `chill_other` transaction to work."] # [doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] # [doc = " This is checked only upon calling `validate`. Existing validators are not affected."] # [doc = ""] # [doc = "RuntimeOrigin must be Root to call this function."] # [doc = ""] # [doc = "NOTE: Existing nominators and validators will not be affected by this update."] # [doc = "to kick people under the new limits, `chill_other` should be called."] 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 > , max_staked_rewards : runtime_types :: pallet_staking :: pallet :: pallet :: ConfigOp < runtime_types :: sp_arithmetic :: per_things :: Percent > , } , # [codec (index = 23)] # [doc = "Declare a `controller` to stop participating as either a validator or nominator."] # [doc = ""] # [doc = "Effects will be felt at the beginning of the next era."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] # [doc = ""] # [doc = "If the caller is the same as the controller being targeted, then no further checks are"] # [doc = "enforced, and this function behaves just like `chill`."] # [doc = ""] # [doc = "If the caller is different than the controller being targeted, the following conditions"] # [doc = "must be met:"] # [doc = ""] # [doc = "* `controller` must belong to a nominator who has become non-decodable,"] # [doc = ""] # [doc = "Or:"] # [doc = ""] # [doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] # [doc = " nominators or validators we must reach before users can start chilling one-another."] # [doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] # [doc = " how close we are to the threshold."] # [doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] # [doc = " if this is a person that should be chilled because they have not met the threshold"] # [doc = " bond required."] # [doc = ""] # [doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] # [doc = "who do not satisfy these requirements."] chill_other { stash : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 24)] # [doc = "Force a validator to have at least the minimum commission. This will not affect a"] # [doc = "validator who already has a commission greater than or equal to the minimum. Any account"] # [doc = "can call this."] force_apply_min_commission { validator_stash : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 25)] # [doc = "Sets the minimum amount of commission that each validators must maintain."] # [doc = ""] # [doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] # [doc = "by the `T::AdminOrigin`. Root can always call this."] set_min_commission { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 26)] # [doc = "Pay out a page of the stakers behind a validator for the given era and page."] # [doc = ""] # [doc = "- `validator_stash` is the stash account of the validator."] # [doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] # [doc = "- `page` is the page index of nominators to pay out with value between 0 and"] # [doc = " `num_nominators / T::MaxExposurePageSize`."] # [doc = ""] # [doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] # [doc = "it is not one of the stakers."] # [doc = ""] # [doc = "If a validator has more than [`Config::MaxExposurePageSize`] nominators backing"] # [doc = "them, then the list of nominators is paged, with each page being capped at"] # [doc = "[`Config::MaxExposurePageSize`.] If a validator has more than one page of nominators,"] # [doc = "the call needs to be made for each page separately in order for all the nominators"] # [doc = "backing a validator to receive the reward. The nominators are not sorted across pages"] # [doc = "and so it should not be assumed the highest staker would be on the topmost page and vice"] # [doc = "versa. If rewards are not claimed in [`Config::HistoryDepth`] eras, they are lost."] payout_stakers_by_page { validator_stash : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , era : :: core :: primitive :: u32 , page : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "Migrates an account's `RewardDestination::Controller` to"] # [doc = "`RewardDestination::Account(controller)`."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "This will waive the transaction fee if the `payee` is successfully migrated."] update_payee { controller : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 28)] # [doc = "Updates a batch of controller accounts to their corresponding stash account if they are"] # [doc = "not the same. Ignores any controller accounts that do not exist, and does not operate if"] # [doc = "the stash and controller are already the same."] # [doc = ""] # [doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] # [doc = ""] # [doc = "The dispatch origin must be `T::AdminOrigin`."] deprecate_controller_batch { controllers : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 29)] # [doc = "Restores the state of a ledger which is in an inconsistent state."] # [doc = ""] # [doc = "The requirements to restore a ledger are the following:"] # [doc = "* The stash is bonded; or"] # [doc = "* The stash is not bonded but it has a staking lock left behind; or"] # [doc = "* If the stash has an associated ledger and its state is inconsistent; or"] # [doc = "* If the ledger is not corrupted *but* its staking lock is out of sync."] # [doc = ""] # [doc = "The `maybe_*` input parameters will overwrite the corresponding data and metadata of the"] # [doc = "ledger associated with the stash. If the input parameters are not set, the ledger will"] # [doc = "be reset values from on-chain state."] restore_ledger { stash : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , maybe_controller : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , maybe_total : :: core :: option :: Option < :: core :: primitive :: u128 > , maybe_unlocking : :: core :: option :: Option < runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_staking :: UnlockChunk < :: core :: primitive :: u128 > > > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ConfigOp < _0 > { # [codec (index = 0)] Noop , # [codec (index = 1)] Set (_0 ,) , # [codec (index = 2)] Remove , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 27)] # [doc = "Cannot reset a ledger."] CannotRestoreLedger , # [codec (index = 28)] # [doc = "Provided reward destination is not allowed."] RewardDestinationRestricted , # [codec (index = 29)] # [doc = "Not enough funds available to withdraw."] NotEnoughFunds , # [codec (index = 30)] # [doc = "Operation not allowed for virtual stakers."] VirtualStakerNotAllowed , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , dest : runtime_types :: pallet_staking :: RewardDestination < :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "An account has unbonded this amount."] Unbonded { stash : :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 9)] # [doc = "A nominator has been kicked from a validator."] Kicked { nominator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , stash : :: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 12)] # [doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index : :: core :: primitive :: u32 , validator_stash : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 13)] # [doc = "A validator has set their preferences."] ValidatorPrefsSet { stash : :: subxt :: ext :: subxt_core :: 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 , } , # [codec (index = 17)] # [doc = "Report of a controller batch deprecation."] ControllerBatchDeprecated { failures : :: core :: primitive :: u32 , } , } } } pub mod slashing { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SpanRecord < _0 > { pub slashed : _0 , pub paid_out : _0 , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ActiveEraInfo { pub index : :: core :: primitive :: u32 , pub start : :: core :: option :: Option < :: core :: primitive :: u64 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EraRewardPoints < _0 > { pub total : :: core :: primitive :: u32 , pub individual : :: subxt :: ext :: subxt_core :: utils :: KeyedVec < _0 , :: core :: primitive :: u32 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Nominations { pub targets : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , pub submitted_in : :: core :: primitive :: u32 , pub suppressed : :: core :: primitive :: bool , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct StakingLedger { pub stash : :: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UnappliedSlash < _0 , _1 > { pub validator : _0 , pub own : _1 , pub others : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , _1 ,) > , pub reporters : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub payout : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UnlockChunk < _0 > { # [codec (compact)] pub value : _0 , # [codec (compact)] pub era : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Control the automatic migration."] # [doc = ""] # [doc = "The dispatch origin of this call must be [`Config::ControlOrigin`]."] control_auto_migration { maybe_config : :: core :: option :: Option < runtime_types :: pallet_state_trie_migration :: pallet :: MigrationLimits > , } , # [codec (index = 1)] # [doc = "Continue the migration for the given `limits`."] # [doc = ""] # [doc = "The dispatch origin of this call can be any signed account."] # [doc = ""] # [doc = "This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,"] # [doc = "Upon successful execution, the transaction fee is returned."] # [doc = ""] # [doc = "The (potentially over-estimated) of the byte length of all the data read must be"] # [doc = "provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing"] # [doc = "that executing the current `MigrationTask` with the given `limits` will not exceed"] # [doc = "`real_size_upper` bytes of read data."] # [doc = ""] # [doc = "The `witness_task` is merely a helper to prevent the caller from being slashed or"] # [doc = "generally trigger a migration that they do not intend. This parameter is just a message"] # [doc = "from caller, saying that they believed `witness_task` was the last state of the"] # [doc = "migration, and they only wish for their transaction to do anything, if this assumption"] # [doc = "holds. In case `witness_task` does not match, the transaction fails."] # [doc = ""] # [doc = "Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the"] # [doc = "recommended way of doing this is to pass a `limit` that only bounds `count`, as the"] # [doc = "`size` limit can always be overwritten."] continue_migrate { limits : runtime_types :: pallet_state_trie_migration :: pallet :: MigrationLimits , real_size_upper : :: core :: primitive :: u32 , witness_task : runtime_types :: pallet_state_trie_migration :: pallet :: MigrationTask , } , # [codec (index = 2)] # [doc = "Migrate the list of top keys by iterating each of them one by one."] # [doc = ""] # [doc = "This does not affect the global migration process tracker ([`MigrationProcess`]), and"] # [doc = "should only be used in case any keys are leftover due to a bug."] migrate_custom_top { keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , witness_size : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Migrate the list of child keys by iterating each of them one by one."] # [doc = ""] # [doc = "All of the given child keys must be present under one `child_root`."] # [doc = ""] # [doc = "This does not affect the global migration process tracker ([`MigrationProcess`]), and"] # [doc = "should only be used in case any keys are leftover due to a bug."] migrate_custom_child { root : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , child_keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , total_size : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Set the maximum limit of the signed migration."] set_signed_max_limits { limits : runtime_types :: pallet_state_trie_migration :: pallet :: MigrationLimits , } , # [codec (index = 5)] # [doc = "Forcefully set the progress the running migration."] # [doc = ""] # [doc = "This is only useful in one case: the next key to migrate is too big to be migrated with"] # [doc = "a signed account, in a parachain context, and we simply want to skip it. A reasonable"] # [doc = "example of this would be `:code:`, which is both very expensive to migrate, and commonly"] # [doc = "used, so probably it is already migrated."] # [doc = ""] # [doc = "In case you mess things up, you can also, in principle, use this to reset the migration"] # [doc = "process."] force_set_progress { progress_top : runtime_types :: pallet_state_trie_migration :: pallet :: Progress , progress_child : runtime_types :: pallet_state_trie_migration :: pallet :: Progress , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Max signed limits not respected."] MaxSignedLimits , # [codec (index = 1)] # [doc = "A key was longer than the configured maximum."] # [doc = ""] # [doc = "This means that the migration halted at the current [`Progress`] and"] # [doc = "can be resumed with a larger [`crate::Config::MaxKeyLen`] value."] # [doc = "Retrying with the same [`crate::Config::MaxKeyLen`] value will not work."] # [doc = "The value should only be increased to avoid a storage migration for the currently"] # [doc = "stored [`crate::Progress::LastKey`]."] KeyTooLong , # [codec (index = 2)] # [doc = "submitter does not have enough funds."] NotEnoughFunds , # [codec (index = 3)] # [doc = "Bad witness data provided."] BadWitness , # [codec (index = 4)] # [doc = "Signed migration is not allowed because the maximum limit is not set yet."] SignedMigrationNotAllowed , # [codec (index = 5)] # [doc = "Bad child root provided."] BadChildRoot , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Inner events of this pallet."] pub enum Event { # [codec (index = 0)] # [doc = "Given number of `(top, child)` keys were migrated respectively, with the given"] # [doc = "`compute`."] Migrated { top : :: core :: primitive :: u32 , child : :: core :: primitive :: u32 , compute : runtime_types :: pallet_state_trie_migration :: pallet :: MigrationCompute , } , # [codec (index = 1)] # [doc = "Some account got slashed by the given amount."] Slashed { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 2)] # [doc = "The auto migration task finished."] AutoMigrationFinished , # [codec (index = 3)] # [doc = "Migration got halted due to an error or miss-configuration."] Halted { error : runtime_types :: pallet_state_trie_migration :: pallet :: Error , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] SlashForMigrate , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum MigrationCompute { # [codec (index = 0)] Signed , # [codec (index = 1)] Auto , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MigrationLimits { pub size : :: core :: primitive :: u32 , pub item : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MigrationTask { pub progress_top : runtime_types :: pallet_state_trie_migration :: pallet :: Progress , pub progress_child : runtime_types :: pallet_state_trie_migration :: pallet :: Progress , pub size : :: core :: primitive :: u32 , pub top_items : :: core :: primitive :: u32 , pub child_items : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Progress { # [codec (index = 0)] ToStart , # [codec (index = 1)] LastKey (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 2)] Complete , } } } pub mod pallet_sudo { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] sudo { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Sudo user to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] sudo_unchecked_weight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 2)] # [doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] # [doc = "key."] set_key { new : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 3)] # [doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] # [doc = "a given account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] sudo_as { who : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 4)] # [doc = "Permanently removes the sudo key."] # [doc = ""] # [doc = "**This cannot be un-done.**"] remove_key , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Error for the Sudo pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Sender must be the Sudo account."] RequireSudo , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A sudo call just took place."] Sudid { sudo_result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 1)] # [doc = "The sudo key has been updated."] KeyChanged { old : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , new : :: subxt :: ext :: subxt_core :: 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 : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , } } } pub mod pallet_timestamp { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Set the current time."] # [doc = ""] # [doc = "This call should be invoked exactly once per block. It will panic at the finalization"] # [doc = "phase, if this call hasn't been invoked by that time."] # [doc = ""] # [doc = "The timestamp should be greater than the previous one by the amount specified by"] # [doc = "[`Config::MinimumPeriod`]."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] # [doc = "that changing the complexity of this call could result exhausting the resources in a"] # [doc = "block to execute any other calls."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] # [doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] # [doc = " `on_finalize`)"] # [doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] set { # [codec (compact)] now : :: core :: primitive :: u64 , } , } } } pub mod pallet_transaction_payment { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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`."] TransactionFeePaid { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , actual_fee : :: core :: primitive :: u128 , tip : :: core :: primitive :: u128 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FeeDetails < _0 > { pub inclusion_fee : :: core :: option :: Option < runtime_types :: pallet_transaction_payment :: types :: InclusionFee < _0 > > , pub tip : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InclusionFee < _0 > { pub base_fee : _0 , pub len_fee : _0 , pub adjusted_weight_fee : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RuntimeDispatchInfo < _0 , _1 > { pub weight : _1 , pub class : runtime_types :: frame_support :: dispatch :: DispatchClass , pub partial_fee : _0 , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChargeTransactionPayment (# [codec (compact)] pub :: core :: primitive :: u128 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Releases { # [codec (index = 0)] V1Ancient , # [codec (index = 1)] V2 , } } pub mod pallet_treasury { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 3)] # [doc = "Propose and approve a spend of treasury funds."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`."] # [doc = ""] # [doc = "### Details"] # [doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] # [doc = "beneficiary."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] # [doc = "- `beneficiary`: The destination account for the transfer."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::SpendApproved`] if successful."] spend_local { # [codec (compact)] amount : :: core :: primitive :: u128 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 4)] # [doc = "Force a previously approved proposal to be removed from the approval queue."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::RejectOrigin`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "The original deposit will no longer be returned."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `proposal_id`: The index of a proposal"] # [doc = ""] # [doc = "### Complexity"] # [doc = "- O(A) where `A` is the number of approvals"] # [doc = ""] # [doc = "### Errors"] # [doc = "- [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the"] # [doc = " approval queue, i.e., the proposal has not been approved. This could also mean the"] # [doc = " proposal does not exist altogether, thus there is no way it would have been approved"] # [doc = " in the first place."] remove_approval { # [codec (compact)] proposal_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Propose and approve a spend of treasury funds."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::SpendOrigin`] with the `Success` value being at least"] # [doc = "`amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted"] # [doc = "for assertion using the [`Config::BalanceConverter`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "Create an approved spend for transferring a specific `amount` of `asset_kind` to a"] # [doc = "designated beneficiary. The spend must be claimed using the `payout` dispatchable within"] # [doc = "the [`Config::PayoutPeriod`]."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `asset_kind`: An indicator of the specific asset class to be spent."] # [doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] # [doc = "- `beneficiary`: The beneficiary of the spend."] # [doc = "- `valid_from`: The block number from which the spend can be claimed. It can refer to"] # [doc = " the past if the resulting spend has not yet expired according to the"] # [doc = " [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after"] # [doc = " approval."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::AssetSpendApproved`] if successful."] spend { asset_kind : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset > , # [codec (compact)] amount : :: core :: primitive :: u128 , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , valid_from : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 6)] # [doc = "Claim a spend."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be signed"] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "Spends must be claimed within some temporal bounds. A spend may be claimed within one"] # [doc = "[`Config::PayoutPeriod`] from the `valid_from` block."] # [doc = "In case of a payout failure, the spend status must be updated with the `check_status`"] # [doc = "dispatchable before retrying with the current function."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `index`: The spend index."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::Paid`] if successful."] payout { index : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Check the status of the spend and remove it from the storage if processed."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be signed."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "The status check is a prerequisite for retrying a failed payout."] # [doc = "If a spend has either succeeded or expired, it is removed from the storage by this"] # [doc = "function. In such instances, transaction fees are refunded."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `index`: The spend index."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::PaymentFailed`] if the spend payout has failed."] # [doc = "Emits [`Event::SpendProcessed`] if the spend payout has succeed."] check_status { index : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Void previously approved spend."] # [doc = ""] # [doc = "## Dispatch Origin"] # [doc = ""] # [doc = "Must be [`Config::RejectOrigin`]."] # [doc = ""] # [doc = "## Details"] # [doc = ""] # [doc = "A spend void is only possible if the payout has not been attempted yet."] # [doc = ""] # [doc = "### Parameters"] # [doc = "- `index`: The spend index."] # [doc = ""] # [doc = "## Events"] # [doc = ""] # [doc = "Emits [`Event::AssetSpendVoided`] if successful."] void_spend { index : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Error for the treasury pallet."] pub enum Error { # [codec (index = 0)] # [doc = "No proposal, bounty or spend at that index."] InvalidIndex , # [codec (index = 1)] # [doc = "Too many approvals in the queue."] TooManyApprovals , # [codec (index = 2)] # [doc = "The spend origin is valid but the amount it is allowed to spend is lower than the"] # [doc = "amount to be spent."] InsufficientPermission , # [codec (index = 3)] # [doc = "Proposal has not been approved."] ProposalNotApproved , # [codec (index = 4)] # [doc = "The balance of the asset kind is not convertible to the balance of the native asset."] FailedToConvertBalance , # [codec (index = 5)] # [doc = "The spend has expired and cannot be claimed."] SpendExpired , # [codec (index = 6)] # [doc = "The spend is not yet eligible for payout."] EarlyPayout , # [codec (index = 7)] # [doc = "The payment has already been attempted."] AlreadyAttempted , # [codec (index = 8)] # [doc = "There was some issue with the mechanism of payment."] PayoutError , # [codec (index = 9)] # [doc = "The payout was not yet attempted/claimed."] NotAttempted , # [codec (index = 10)] # [doc = "The payment has neither failed nor succeeded yet."] Inconclusive , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "We have ended a spend period and will now allocate funds."] Spending { budget_remaining : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "Some funds have been allocated."] Awarded { proposal_index : :: core :: primitive :: u32 , award : :: core :: primitive :: u128 , account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "Some of our funds have been burnt."] Burnt { burnt_funds : :: core :: primitive :: u128 , } , # [codec (index = 3)] # [doc = "Spending has finished; this is the amount that rolls over until next spend."] Rollover { rollover_balance : :: core :: primitive :: u128 , } , # [codec (index = 4)] # [doc = "Some funds have been deposited."] Deposit { value : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "A new spend proposal has been approved."] SpendApproved { proposal_index : :: core :: primitive :: u32 , amount : :: core :: primitive :: u128 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 6)] # [doc = "The inactive funds of the pallet have been updated."] UpdatedInactive { reactivated : :: core :: primitive :: u128 , deactivated : :: core :: primitive :: u128 , } , # [codec (index = 7)] # [doc = "A new asset spend proposal has been approved."] AssetSpendApproved { index : :: core :: primitive :: u32 , asset_kind : runtime_types :: polkadot_runtime_common :: impls :: VersionedLocatableAsset , amount : :: core :: primitive :: u128 , beneficiary : runtime_types :: xcm :: VersionedLocation , valid_from : :: core :: primitive :: u32 , expire_at : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "An approved spend was voided."] AssetSpendVoided { index : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "A payment happened."] Paid { index : :: core :: primitive :: u32 , payment_id : :: core :: primitive :: u64 , } , # [codec (index = 10)] # [doc = "A payment failed and can be retried."] PaymentFailed { index : :: core :: primitive :: u32 , payment_id : :: core :: primitive :: u64 , } , # [codec (index = 11)] # [doc = "A spend was processed and removed from the storage. It might have been successfully"] # [doc = "paid or it may have expired."] SpendProcessed { index : :: core :: primitive :: u32 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum PaymentState < _0 > { # [codec (index = 0)] Pending , # [codec (index = 1)] Attempted { id : _0 , } , # [codec (index = 2)] Failed , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Proposal < _0 , _1 > { pub proposer : _0 , pub value : _1 , pub beneficiary : _0 , pub bond : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SpendStatus < _0 , _1 , _2 , _3 , _4 > { pub asset_kind : _0 , pub amount : _1 , pub beneficiary : _2 , pub valid_from : _3 , pub expire_at : _3 , pub status : runtime_types :: pallet_treasury :: PaymentState < _4 > , } } pub mod pallet_utility { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Send a batch of dispatch calls."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] # [doc = ""] # [doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] # [doc = "event is deposited. If a call failed and the batch was interrupted, then the"] # [doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] # [doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] # [doc = "event is deposited."] batch { calls : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Send a call through an indexed pseudonym of the sender."] # [doc = ""] # [doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] # [doc = "use the same filter as the origin of this call."] # [doc = ""] # [doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] # [doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] # [doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] # [doc = "in the Multisig pallet instead."] # [doc = ""] # [doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] as_derivative { index : :: core :: primitive :: u16 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 2)] # [doc = "Send a batch of dispatch calls and atomically execute them."] # [doc = "The whole transaction will rollback and fail if any of the calls failed."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] batch_all { calls : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 3)] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] dispatch_as { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: OriginCaller > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 4)] # [doc = "Send a batch of dispatch calls."] # [doc = "Unlike `batch`, it allows errors and won't interrupt."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] force_batch { calls : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: paseo_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Dispatch a function call with a specified weight."] # [doc = ""] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Root origin to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] with_weight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Too many calls batched."] TooManyCalls , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] # [doc = "well as the error."] BatchInterrupted { index : :: core :: primitive :: u32 , error : runtime_types :: sp_runtime :: DispatchError , } , # [codec (index = 1)] # [doc = "Batch of dispatches completed fully with no error."] BatchCompleted , # [codec (index = 2)] # [doc = "Batch of dispatches completed but has errors."] BatchCompletedWithErrors , # [codec (index = 3)] # [doc = "A single item within a Batch of dispatches has completed with no error."] ItemCompleted , # [codec (index = 4)] # [doc = "A single item within a Batch of dispatches has completed with error."] ItemFailed { error : runtime_types :: sp_runtime :: DispatchError , } , # [codec (index = 5)] # [doc = "A call was dispatched."] DispatchedAs { result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , } } } pub mod pallet_vesting { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Unlock any vested funds of the sender account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and the sender must have funds still"] # [doc = "locked under this pallet."] # [doc = ""] # [doc = "Emits either `VestingCompleted` or `VestingUpdated`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] vest , # [codec (index = 1)] # [doc = "Unlock any vested funds of a `target` account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account whose vested funds should be unlocked. Must have funds still"] # [doc = "locked under this pallet."] # [doc = ""] # [doc = "Emits either `VestingCompleted` or `VestingUpdated`."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] vest_other { target : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 2)] # [doc = "Create a vested transfer."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `target`: The account receiving the vested funds."] # [doc = "- `schedule`: The vesting schedule attached to the transfer."] # [doc = ""] # [doc = "Emits `VestingCreated`."] # [doc = ""] # [doc = "NOTE: This will unlock all schedules through the current block."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] vested_transfer { target : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 3)] # [doc = "Force a vested transfer."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "- `source`: The account whose funds should be transferred."] # [doc = "- `target`: The account that should be transferred the vested funds."] # [doc = "- `schedule`: The vesting schedule attached to the transfer."] # [doc = ""] # [doc = "Emits `VestingCreated`."] # [doc = ""] # [doc = "NOTE: This will unlock all schedules through the current block."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)`."] force_vested_transfer { source : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , target : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , schedule : runtime_types :: pallet_vesting :: vesting_info :: VestingInfo < :: core :: primitive :: u128 , :: core :: primitive :: u32 > , } , # [codec (index = 4)] # [doc = "Merge two vesting schedules together, creating a new vesting schedule that unlocks over"] # [doc = "the highest possible start and end blocks. If both schedules have already started the"] # [doc = "current block will be used as the schedule start; with the caveat that if one schedule"] # [doc = "is finished by the current block, the other will be treated as the new merged schedule,"] # [doc = "unmodified."] # [doc = ""] # [doc = "NOTE: If `schedule1_index == schedule2_index` this is a no-op."] # [doc = "NOTE: This will unlock all schedules through the current block prior to merging."] # [doc = "NOTE: If both schedules have ended by the current block, no new schedule will be created"] # [doc = "and both will be removed."] # [doc = ""] # [doc = "Merged schedule attributes:"] # [doc = "- `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block,"] # [doc = " current_block)`."] # [doc = "- `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`."] # [doc = "- `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `schedule1_index`: index of the first schedule to merge."] # [doc = "- `schedule2_index`: index of the second schedule to merge."] merge_schedules { schedule1_index : :: core :: primitive :: u32 , schedule2_index : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Force remove a vesting schedule"] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "- `target`: An account that has a vesting schedule"] # [doc = "- `schedule_index`: The vesting schedule index that should be removed"] force_remove_vesting_schedule { target : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , schedule_index : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Error for the vesting pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The account given is not vesting."] NotVesting , # [codec (index = 1)] # [doc = "The account already has `MaxVestingSchedules` count of schedules and thus"] # [doc = "cannot add another one. Consider merging existing schedules in order to add another."] AtMaxVestingSchedules , # [codec (index = 2)] # [doc = "Amount being transferred is too low to create a vesting schedule."] AmountLow , # [codec (index = 3)] # [doc = "An index was out of bounds of the vesting schedules."] ScheduleIndexOutOfBounds , # [codec (index = 4)] # [doc = "Failed to create a new schedule because some parameter was invalid."] InvalidScheduleParams , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "The amount vested has been updated. This could indicate a change in funds available."] # [doc = "The balance given is the amount which is left unvested (and thus locked)."] VestingUpdated { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , unvested : :: core :: primitive :: u128 , } , # [codec (index = 1)] # [doc = "An \\[account\\] has become fully vested."] VestingCompleted { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , } } pub mod vesting_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct VestingInfo < _0 , _1 > { pub locked : _0 , pub per_block : _0 , pub starting_block : _1 , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Releases { # [codec (index = 0)] V0 , # [codec (index = 1)] V1 , } } pub mod pallet_whitelist { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] whitelist_call { call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 1)] remove_whitelisted_call { call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 2)] dispatch_whitelisted_call { call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , call_encoded_len : :: core :: primitive :: u32 , call_weight_witness : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 3)] dispatch_whitelisted_call_with_preimage { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: paseo_runtime :: RuntimeCall > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The preimage of the call hash could not be loaded."] UnavailablePreImage , # [codec (index = 1)] # [doc = "The call could not be decoded."] UndecodableCall , # [codec (index = 2)] # [doc = "The weight of the decoded call was higher than the witness."] InvalidCallWeightWitness , # [codec (index = 3)] # [doc = "The call was not whitelisted."] CallIsNotWhitelisted , # [codec (index = 4)] # [doc = "The call was already whitelisted; No-Op."] CallAlreadyWhitelisted , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] CallWhitelisted { call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 1)] WhitelistedCallRemoved { call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 2)] WhitelistedCallDispatched { call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , result : :: core :: result :: Result < runtime_types :: frame_support :: dispatch :: PostDispatchInfo , runtime_types :: sp_runtime :: DispatchErrorWithPostInfo < runtime_types :: frame_support :: dispatch :: PostDispatchInfo > > , } , } } } pub mod pallet_xcm { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] send { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , message : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedXcm > , } , # [codec (index = 1)] # [doc = "Teleport some assets from the local chain to some destination chain."] # [doc = ""] # [doc = "**This function is deprecated: Use `limited_teleport_assets` instead.**"] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] # [doc = "with all fees taken as needed from the asset."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` chain."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] teleport_assets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedAssets > , fee_asset_item : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Transfer some assets from the local chain to the destination chain through their local,"] # [doc = "destination or remote reserve."] # [doc = ""] # [doc = "`assets` must have same reserve location and may not be teleportable to `dest`."] # [doc = " - `assets` have local reserve: transfer assets to sovereign account of destination"] # [doc = " chain and forward a notification XCM to `dest` to mint and deposit reserve-based"] # [doc = " assets to `beneficiary`."] # [doc = " - `assets` have destination reserve: burn local assets and forward a notification to"] # [doc = " `dest` chain to withdraw the reserve assets from this chain's sovereign account and"] # [doc = " deposit them to `beneficiary`."] # [doc = " - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move"] # [doc = " reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`"] # [doc = " to mint and deposit reserve-based assets to `beneficiary`."] # [doc = ""] # [doc = "**This function is deprecated: Use `limited_reserve_transfer_assets` instead.**"] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,"] # [doc = "with all fees taken as needed from the asset."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] reserve_transfer_assets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedAssets > , fee_asset_item : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Execute an XCM message from a local, signed, origin."] # [doc = ""] # [doc = "An event is deposited indicating whether `msg` could be executed completely or only"] # [doc = "partially."] # [doc = ""] # [doc = "No more than `max_weight` will be used in its attempted execution. If this is less than"] # [doc = "the maximum amount of weight that the message could take to be executed, then no"] # [doc = "execution attempt will be made."] execute { message : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedXcm > , max_weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 4)] # [doc = "Extoll that a particular destination can be communicated with through a particular"] # [doc = "version of XCM."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `location`: The destination that is being described."] # [doc = "- `xcm_version`: The latest version of XCM that `location` supports."] force_xcm_version { location : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: staging_xcm :: v4 :: location :: Location > , version : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Set a safe XCM version (the version that XCM should be encoded with if the most recent"] # [doc = "version a destination can accept is unknown)."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `maybe_xcm_version`: The default XCM encoding version, or `None` to disable."] force_default_xcm_version { maybe_xcm_version : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 6)] # [doc = "Ask a location to notify us regarding their XCM version and any changes to it."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `location`: The location to which we should subscribe for XCM version notifications."] force_subscribe_version_notify { location : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , } , # [codec (index = 7)] # [doc = "Require that a particular destination should no longer notify us regarding any XCM"] # [doc = "version changes."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `location`: The location to which we are currently subscribed for XCM version"] # [doc = " notifications which we no longer desire."] force_unsubscribe_version_notify { location : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , } , # [codec (index = 8)] # [doc = "Transfer some assets from the local chain to the destination chain through their local,"] # [doc = "destination or remote reserve."] # [doc = ""] # [doc = "`assets` must have same reserve location and may not be teleportable to `dest`."] # [doc = " - `assets` have local reserve: transfer assets to sovereign account of destination"] # [doc = " chain and forward a notification XCM to `dest` to mint and deposit reserve-based"] # [doc = " assets to `beneficiary`."] # [doc = " - `assets` have destination reserve: burn local assets and forward a notification to"] # [doc = " `dest` chain to withdraw the reserve assets from this chain's sovereign account and"] # [doc = " deposit them to `beneficiary`."] # [doc = " - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move"] # [doc = " reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`"] # [doc = " to mint and deposit reserve-based assets to `beneficiary`."] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] # [doc = "is needed than `weight_limit`, then the operation will fail and the sent assets may be"] # [doc = "at risk."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] limited_reserve_transfer_assets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedAssets > , fee_asset_item : :: core :: primitive :: u32 , weight_limit : runtime_types :: xcm :: v3 :: WeightLimit , } , # [codec (index = 9)] # [doc = "Teleport some assets from the local chain to some destination chain."] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight"] # [doc = "is needed than `weight_limit`, then the operation will fail and the sent assets may be"] # [doc = "at risk."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` chain."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] limited_teleport_assets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedAssets > , fee_asset_item : :: core :: primitive :: u32 , weight_limit : runtime_types :: xcm :: v3 :: WeightLimit , } , # [codec (index = 10)] # [doc = "Set or unset the global suspension state of the XCM executor."] # [doc = ""] # [doc = "- `origin`: Must be an origin specified by AdminOrigin."] # [doc = "- `suspended`: `true` to suspend, `false` to resume."] force_suspension { suspended : :: core :: primitive :: bool , } , # [codec (index = 11)] # [doc = "Transfer some assets from the local chain to the destination chain through their local,"] # [doc = "destination or remote reserve, or through teleports."] # [doc = ""] # [doc = "Fee payment on the destination side is made from the asset in the `assets` vector of"] # [doc = "index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for"] # [doc = "`weight_limit` of weight. If more weight is needed than `weight_limit`, then the"] # [doc = "operation will fail and the sent assets may be at risk."] # [doc = ""] # [doc = "`assets` (excluding `fees`) must have same reserve location or otherwise be teleportable"] # [doc = "to `dest`, no limitations imposed on `fees`."] # [doc = " - for local reserve: transfer assets to sovereign account of destination chain and"] # [doc = " forward a notification XCM to `dest` to mint and deposit reserve-based assets to"] # [doc = " `beneficiary`."] # [doc = " - for destination reserve: burn local assets and forward a notification to `dest` chain"] # [doc = " to withdraw the reserve assets from this chain's sovereign account and deposit them"] # [doc = " to `beneficiary`."] # [doc = " - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves"] # [doc = " from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint"] # [doc = " and deposit reserve-based assets to `beneficiary`."] # [doc = " - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport"] # [doc = " assets and deposit them to `beneficiary`."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `X2(Parent,"] # [doc = " Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send"] # [doc = " from relay to parachain."] # [doc = "- `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will"] # [doc = " generally be an `AccountId32` value."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `fee_asset_item`: The index into `assets` of the item which should be used to pay"] # [doc = " fees."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] transfer_assets { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedAssets > , fee_asset_item : :: core :: primitive :: u32 , weight_limit : runtime_types :: xcm :: v3 :: WeightLimit , } , # [codec (index = 12)] # [doc = "Claims assets trapped on this pallet because of leftover assets during XCM execution."] # [doc = ""] # [doc = "- `origin`: Anyone can call this extrinsic."] # [doc = "- `assets`: The exact assets that were trapped. Use the version to specify what version"] # [doc = "was the latest when they were trapped."] # [doc = "- `beneficiary`: The location/account where the claimed assets will be deposited."] claim_assets { assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedAssets > , beneficiary : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , } , # [codec (index = 13)] # [doc = "Transfer assets from the local chain to the destination chain using explicit transfer"] # [doc = "types for assets and fees."] # [doc = ""] # [doc = "`assets` must have same reserve location or may be teleportable to `dest`. Caller must"] # [doc = "provide the `assets_transfer_type` to be used for `assets`:"] # [doc = " - `TransferType::LocalReserve`: transfer assets to sovereign account of destination"] # [doc = " chain and forward a notification XCM to `dest` to mint and deposit reserve-based"] # [doc = " assets to `beneficiary`."] # [doc = " - `TransferType::DestinationReserve`: burn local assets and forward a notification to"] # [doc = " `dest` chain to withdraw the reserve assets from this chain's sovereign account and"] # [doc = " deposit them to `beneficiary`."] # [doc = " - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`"] # [doc = " chain to move reserves from this chain's SA to `dest` chain's SA, and forward another"] # [doc = " XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically"] # [doc = " the remote `reserve` is Asset Hub."] # [doc = " - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to"] # [doc = " mint/teleport assets and deposit them to `beneficiary`."] # [doc = ""] # [doc = "On the destination chain, as well as any intermediary hops, `BuyExecution` is used to"] # [doc = "buy execution using transferred `assets` identified by `remote_fees_id`."] # [doc = "Make sure enough of the specified `remote_fees_id` asset is included in the given list"] # [doc = "of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight"] # [doc = "is needed than `weight_limit`, then the operation will fail and the sent assets may be"] # [doc = "at risk."] # [doc = ""] # [doc = "`remote_fees_id` may use different transfer type than rest of `assets` and can be"] # [doc = "specified through `fees_transfer_type`."] # [doc = ""] # [doc = "The caller needs to specify what should happen to the transferred assets once they reach"] # [doc = "the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which"] # [doc = "contains the instructions to execute on `dest` as a final step."] # [doc = " This is usually as simple as:"] # [doc = " `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,"] # [doc = " but could be something more exotic like sending the `assets` even further."] # [doc = ""] # [doc = "- `origin`: Must be capable of withdrawing the `assets` and executing XCM."] # [doc = "- `dest`: Destination context for the assets. Will typically be `[Parent,"] # [doc = " Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from"] # [doc = " relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from"] # [doc = " parachain across a bridge to another ecosystem destination."] # [doc = "- `assets`: The assets to be withdrawn. This should include the assets used to pay the"] # [doc = " fee on the `dest` (and possibly reserve) chains."] # [doc = "- `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`."] # [doc = "- `remote_fees_id`: One of the included `assets` to be used to pay fees."] # [doc = "- `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets."] # [doc = "- `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the"] # [doc = " transfer, which also determines what happens to the assets on the destination chain."] # [doc = "- `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase."] transfer_assets_using_type_and_then { dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedLocation > , assets : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedAssets > , assets_transfer_type : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: staging_xcm_executor :: traits :: asset_transfer :: TransferType > , remote_fees_id : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedAssetId > , fees_transfer_type : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: staging_xcm_executor :: traits :: asset_transfer :: TransferType > , custom_xcm_on_dest : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedXcm > , weight_limit : runtime_types :: xcm :: v3 :: WeightLimit , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 `Location` 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 = "Could not check-out the assets for teleportation to the destination chain."] CannotCheckOutTeleport , # [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 , # [codec (index = 21)] # [doc = "Invalid asset, reserve chain could not be determined for it."] InvalidAssetUnknownReserve , # [codec (index = 22)] # [doc = "Invalid asset, do not support remote asset reserves with different fees reserves."] InvalidAssetUnsupportedReserve , # [codec (index = 23)] # [doc = "Too many assets with different reserve locations have been attempted for transfer."] TooManyReserves , # [codec (index = 24)] # [doc = "Local XCM execution incomplete."] LocalExecutionIncomplete , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: staging_xcm :: v4 :: traits :: Outcome , } , # [codec (index = 1)] # [doc = "A XCM message was sent."] Sent { origin : runtime_types :: staging_xcm :: v4 :: location :: Location , destination : runtime_types :: staging_xcm :: v4 :: location :: Location , message : runtime_types :: staging_xcm :: v4 :: 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 :: v4 :: location :: Location , 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 :: staging_xcm :: v4 :: 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 :: v4 :: location :: Location , query_id : :: core :: primitive :: u64 , expected_location : :: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: location :: Location > , } , # [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 :: v4 :: location :: Location , 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 :: ext :: subxt_core :: utils :: H256 , origin : runtime_types :: staging_xcm :: v4 :: location :: Location , assets : runtime_types :: xcm :: VersionedAssets , } , # [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 :: v4 :: location :: Location , result : :: core :: primitive :: u32 , cost : runtime_types :: staging_xcm :: v4 :: asset :: Assets , 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 :: v4 :: location :: Location , 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 :: v4 :: location :: Location , 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 :: VersionedLocation , 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 :: v4 :: location :: Location , 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 :: v4 :: location :: Location , query_id : :: core :: primitive :: u64 , expected_querier : runtime_types :: staging_xcm :: v4 :: location :: Location , maybe_actual_querier : :: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: location :: Location > , } , # [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 :: v4 :: location :: Location , cost : runtime_types :: staging_xcm :: v4 :: asset :: Assets , 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 :: v4 :: location :: Location , cost : runtime_types :: staging_xcm :: v4 :: asset :: Assets , 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 :: v4 :: location :: Location , cost : runtime_types :: staging_xcm :: v4 :: asset :: Assets , 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 :: v4 :: location :: Location , fees : runtime_types :: staging_xcm :: v4 :: asset :: Assets , } , # [codec (index = 22)] # [doc = "Some assets have been claimed from an asset trap"] AssetsClaimed { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , origin : runtime_types :: staging_xcm :: v4 :: location :: Location , assets : runtime_types :: xcm :: VersionedAssets , } , # [codec (index = 23)] # [doc = "A XCM version migration finished."] VersionMigrationFinished { version : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Origin { # [codec (index = 0)] Xcm (runtime_types :: staging_xcm :: v4 :: location :: Location ,) , # [codec (index = 1)] Response (runtime_types :: staging_xcm :: v4 :: location :: Location ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum QueryStatus < _0 > { # [codec (index = 0)] Pending { responder : runtime_types :: xcm :: VersionedLocation , maybe_match_querier : :: core :: option :: Option < runtime_types :: xcm :: VersionedLocation > , maybe_notify : :: core :: option :: Option < (:: core :: primitive :: u8 , :: core :: primitive :: u8 ,) > , timeout : _0 , } , # [codec (index = 1)] VersionNotifier { origin : runtime_types :: xcm :: VersionedLocation , is_active : :: core :: primitive :: bool , } , # [codec (index = 2)] Ready { response : runtime_types :: xcm :: VersionedResponse , at : _0 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RemoteLockedFungibleRecord < _0 > { pub amount : :: core :: primitive :: u128 , pub owner : runtime_types :: xcm :: VersionedLocation , pub locker : runtime_types :: xcm :: VersionedLocation , pub consumers : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (_0 , :: core :: primitive :: u128 ,) > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum VersionMigrationStage { # [codec (index = 0)] MigrateSupportedVersion , # [codec (index = 1)] MigrateVersionNotifiers , # [codec (index = 2)] NotifyCurrentTargets (:: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ,) , # [codec (index = 3)] MigrateAndNotifyOldTargets , } } } pub mod paseo_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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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)] WishForChange , } } } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NposCompactSolution16 { pub votes1 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes2 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes3 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 2usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes4 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 3usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes5 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 4usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes6 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 5usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes7 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 6usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes8 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 7usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes9 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 8usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes10 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 9usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes11 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 10usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes12 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 11usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes13 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 12usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes14 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 13usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes15 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 14usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub votes16 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u32 > , [(:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < runtime_types :: sp_arithmetic :: per_things :: PerU16 > ,) ; 15usize] , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum OriginCaller { # [codec (index = 0)] system (runtime_types :: frame_support :: dispatch :: RawOrigin < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ,) , # [codec (index = 22)] Origins (runtime_types :: paseo_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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ProxyType { # [codec (index = 0)] Any , # [codec (index = 1)] NonTransfer , # [codec (index = 2)] Governance , # [codec (index = 3)] Staking , # [codec (index = 6)] CancelProxy , # [codec (index = 7)] Auction , # [codec (index = 8)] NominationPools , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Runtime ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeCall { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 1)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , # [codec (index = 10)] Preimage (runtime_types :: pallet_preimage :: pallet :: Call ,) , # [codec (index = 2)] Babe (runtime_types :: pallet_babe :: pallet :: Call ,) , # [codec (index = 3)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 4)] Indices (runtime_types :: pallet_indices :: pallet :: Call ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 7)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Call ,) , # [codec (index = 9)] Session (runtime_types :: pallet_session :: pallet :: Call ,) , # [codec (index = 11)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 19)] 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 = 23)] Whitelist (runtime_types :: pallet_whitelist :: pallet :: Call ,) , # [codec (index = 24)] Claims (runtime_types :: polkadot_runtime_common :: claims :: pallet :: Call ,) , # [codec (index = 25)] Vesting (runtime_types :: pallet_vesting :: pallet :: Call ,) , # [codec (index = 26)] Utility (runtime_types :: pallet_utility :: pallet :: Call ,) , # [codec (index = 29)] Proxy (runtime_types :: pallet_proxy :: pallet :: Call ,) , # [codec (index = 30)] Multisig (runtime_types :: pallet_multisig :: pallet :: Call ,) , # [codec (index = 34)] Bounties (runtime_types :: pallet_bounties :: pallet :: Call ,) , # [codec (index = 38)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Call ,) , # [codec (index = 36)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Call ,) , # [codec (index = 37)] VoterList (runtime_types :: pallet_bags_list :: pallet :: Call ,) , # [codec (index = 39)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Call ,) , # [codec (index = 40)] FastUnstake (runtime_types :: pallet_fast_unstake :: pallet :: Call ,) , # [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)] OnDemand (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 = 74)] Coretime (runtime_types :: polkadot_runtime_parachains :: coretime :: pallet :: Call ,) , # [codec (index = 98)] StateTrieMigration (runtime_types :: pallet_state_trie_migration :: pallet :: Call ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Call ,) , # [codec (index = 100)] MessageQueue (runtime_types :: pallet_message_queue :: pallet :: Call ,) , # [codec (index = 101)] AssetRate (runtime_types :: pallet_asset_rate :: pallet :: Call ,) , # [codec (index = 200)] Beefy (runtime_types :: pallet_beefy :: pallet :: Call ,) , # [codec (index = 250)] ParaSudoWrapper (runtime_types :: polkadot_runtime_common :: paras_sudo_wrapper :: pallet :: Call ,) , # [codec (index = 255)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeError { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Error ,) , # [codec (index = 1)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Error ,) , # [codec (index = 10)] Preimage (runtime_types :: pallet_preimage :: pallet :: Error ,) , # [codec (index = 2)] Babe (runtime_types :: pallet_babe :: pallet :: Error ,) , # [codec (index = 4)] Indices (runtime_types :: pallet_indices :: pallet :: Error ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Error ,) , # [codec (index = 7)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Error ,) , # [codec (index = 9)] Session (runtime_types :: pallet_session :: pallet :: Error ,) , # [codec (index = 11)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Error ,) , # [codec (index = 19)] 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 = 23)] Whitelist (runtime_types :: pallet_whitelist :: pallet :: Error ,) , # [codec (index = 24)] Claims (runtime_types :: polkadot_runtime_common :: claims :: pallet :: Error ,) , # [codec (index = 25)] Vesting (runtime_types :: pallet_vesting :: pallet :: Error ,) , # [codec (index = 26)] Utility (runtime_types :: pallet_utility :: pallet :: Error ,) , # [codec (index = 29)] Proxy (runtime_types :: pallet_proxy :: pallet :: Error ,) , # [codec (index = 30)] Multisig (runtime_types :: pallet_multisig :: pallet :: Error ,) , # [codec (index = 34)] Bounties (runtime_types :: pallet_bounties :: pallet :: Error ,) , # [codec (index = 38)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Error ,) , # [codec (index = 36)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Error ,) , # [codec (index = 37)] VoterList (runtime_types :: pallet_bags_list :: pallet :: Error ,) , # [codec (index = 39)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Error ,) , # [codec (index = 40)] FastUnstake (runtime_types :: pallet_fast_unstake :: pallet :: Error ,) , # [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)] OnDemand (runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: pallet :: Error ,) , # [codec (index = 65)] CoretimeAssignmentProvider (runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: 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 = 74)] Coretime (runtime_types :: polkadot_runtime_parachains :: coretime :: pallet :: Error ,) , # [codec (index = 98)] StateTrieMigration (runtime_types :: pallet_state_trie_migration :: pallet :: Error ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Error ,) , # [codec (index = 100)] MessageQueue (runtime_types :: pallet_message_queue :: pallet :: Error ,) , # [codec (index = 101)] AssetRate (runtime_types :: pallet_asset_rate :: pallet :: Error ,) , # [codec (index = 200)] Beefy (runtime_types :: pallet_beefy :: pallet :: Error ,) , # [codec (index = 250)] ParaSudoWrapper (runtime_types :: polkadot_runtime_common :: paras_sudo_wrapper :: pallet :: Error ,) , # [codec (index = 255)] Sudo (runtime_types :: pallet_sudo :: pallet :: Error ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeEvent { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 1)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , # [codec (index = 10)] Preimage (runtime_types :: pallet_preimage :: pallet :: Event ,) , # [codec (index = 4)] Indices (runtime_types :: pallet_indices :: pallet :: Event ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 32)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 7)] Staking (runtime_types :: pallet_staking :: pallet :: pallet :: Event ,) , # [codec (index = 8)] Offences (runtime_types :: pallet_offences :: pallet :: Event ,) , # [codec (index = 9)] Session (runtime_types :: pallet_session :: pallet :: Event ,) , # [codec (index = 11)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 19)] 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 = 23)] Whitelist (runtime_types :: pallet_whitelist :: pallet :: Event ,) , # [codec (index = 24)] Claims (runtime_types :: polkadot_runtime_common :: claims :: pallet :: Event ,) , # [codec (index = 25)] Vesting (runtime_types :: pallet_vesting :: pallet :: Event ,) , # [codec (index = 26)] Utility (runtime_types :: pallet_utility :: pallet :: Event ,) , # [codec (index = 29)] Proxy (runtime_types :: pallet_proxy :: pallet :: Event ,) , # [codec (index = 30)] Multisig (runtime_types :: pallet_multisig :: pallet :: Event ,) , # [codec (index = 34)] Bounties (runtime_types :: pallet_bounties :: pallet :: Event ,) , # [codec (index = 38)] ChildBounties (runtime_types :: pallet_child_bounties :: pallet :: Event ,) , # [codec (index = 36)] ElectionProviderMultiPhase (runtime_types :: pallet_election_provider_multi_phase :: pallet :: Event ,) , # [codec (index = 37)] VoterList (runtime_types :: pallet_bags_list :: pallet :: Event ,) , # [codec (index = 39)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: Event ,) , # [codec (index = 40)] FastUnstake (runtime_types :: pallet_fast_unstake :: pallet :: Event ,) , # [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)] OnDemand (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 = 74)] Coretime (runtime_types :: polkadot_runtime_parachains :: coretime :: pallet :: Event ,) , # [codec (index = 98)] StateTrieMigration (runtime_types :: pallet_state_trie_migration :: pallet :: Event ,) , # [codec (index = 99)] XcmPallet (runtime_types :: pallet_xcm :: pallet :: Event ,) , # [codec (index = 100)] MessageQueue (runtime_types :: pallet_message_queue :: pallet :: Event ,) , # [codec (index = 101)] AssetRate (runtime_types :: pallet_asset_rate :: pallet :: Event ,) , # [codec (index = 255)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeFreezeReason { # [codec (index = 39)] NominationPools (runtime_types :: pallet_nomination_pools :: pallet :: FreezeReason ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeHoldReason { # [codec (index = 10)] Preimage (runtime_types :: pallet_preimage :: pallet :: HoldReason ,) , # [codec (index = 98)] StateTrieMigration (runtime_types :: pallet_state_trie_migration :: pallet :: HoldReason ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 para_validator : runtime_types :: polkadot_primitives :: v7 :: validator_app :: Public , pub para_assignment : runtime_types :: polkadot_primitives :: v7 :: 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 polkadot_core_primitives { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CandidateHash (pub :: subxt :: ext :: subxt_core :: utils :: H256 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InboundDownwardMessage < _0 > { pub sent_at : _0 , pub msg : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InboundHrmpMessage < _0 > { pub sent_at : _0 , pub data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OutboundHrmpMessage < _0 > { pub recipient : _0 , pub data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } } pub mod polkadot_parachain_primitives { use super :: runtime_types ; pub mod primitives { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct HeadData (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Id (pub :: core :: primitive :: u32 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidationCode (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidationCodeHash (pub :: subxt :: ext :: subxt_core :: utils :: H256 ,) ; } } pub mod polkadot_primitives { use super :: runtime_types ; pub mod v7 { use super :: runtime_types ; pub mod assignment_app { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; } pub mod async_backing { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AsyncBackingParams { pub max_candidate_depth : :: core :: primitive :: u32 , pub allowed_ancestry_len : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BackingState < _0 , _1 > { pub constraints : runtime_types :: polkadot_primitives :: v7 :: async_backing :: Constraints < _1 > , pub pending_availability : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: async_backing :: CandidatePendingAvailability < _0 , _1 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CandidatePendingAvailability < _0 , _1 > { pub candidate_hash : runtime_types :: polkadot_core_primitives :: CandidateHash , pub descriptor : runtime_types :: polkadot_primitives :: v7 :: CandidateDescriptor < _0 > , pub commitments : runtime_types :: polkadot_primitives :: v7 :: CandidateCommitments < _1 > , pub relay_parent_number : _1 , pub max_pov_size : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub hrmp_inbound : runtime_types :: polkadot_primitives :: v7 :: async_backing :: InboundHrmpLimitations < _0 > , pub hrmp_channels_out : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: polkadot_parachain_primitives :: primitives :: Id , runtime_types :: polkadot_primitives :: v7 :: 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 :: v7 :: UpgradeRestriction > , pub future_validation_code : :: core :: option :: Option < (_0 , runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash ,) > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InboundHrmpLimitations < _0 > { pub valid_watermarks : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Signature (pub [:: core :: primitive :: u8 ; 64usize] ,) ; } pub mod executor_params { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: PvfPrepKind , :: core :: primitive :: u64 ,) , # [codec (index = 6)] PvfExecTimeout (runtime_types :: polkadot_primitives :: v7 :: PvfExecKind , :: core :: primitive :: u64 ,) , # [codec (index = 7)] WasmExtBulkMemory , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExecutorParams (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: executor_params :: ExecutorParam > ,) ; } pub mod signed { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UncheckedSigned < _0 , _1 > { pub payload : _0 , pub validator_index : runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex , pub signature : runtime_types :: polkadot_primitives :: v7 :: validator_app :: Signature , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _1 > } } pub mod slashing { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DisputeProof { pub time_slot : runtime_types :: polkadot_primitives :: v7 :: slashing :: DisputesTimeSlot , pub kind : runtime_types :: polkadot_primitives :: v7 :: slashing :: SlashingOffenceKind , pub validator_index : runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex , pub validator_id : runtime_types :: polkadot_primitives :: v7 :: validator_app :: Public , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DisputesTimeSlot { pub session_index : :: core :: primitive :: u32 , pub candidate_hash : runtime_types :: polkadot_core_primitives :: CandidateHash , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PendingSlashes { pub keys : :: subxt :: ext :: subxt_core :: utils :: KeyedVec < runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex , runtime_types :: polkadot_primitives :: v7 :: validator_app :: Public > , pub kind : runtime_types :: polkadot_primitives :: v7 :: slashing :: SlashingOffenceKind , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Signature (pub [:: core :: primitive :: u8 ; 64usize] ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ApprovalVotingParams { pub max_approval_coalesce_count : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AvailabilityBitfield (pub :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BackedCandidate < _0 > { pub candidate : runtime_types :: polkadot_primitives :: v7 :: CommittedCandidateReceipt < _0 > , pub validity_votes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: ValidityAttestation > , pub validator_indices : :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CandidateCommitments < _0 > { pub upward_messages : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: ext :: subxt_core :: alloc :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: collator_app :: Public , pub persisted_validation_data_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub pov_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub erasure_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub signature : runtime_types :: polkadot_primitives :: v7 :: collator_app :: Signature , pub para_head : :: subxt :: ext :: subxt_core :: utils :: H256 , pub validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum CandidateEvent < _0 > { # [codec (index = 0)] CandidateBacked (runtime_types :: polkadot_primitives :: v7 :: CandidateReceipt < _0 > , runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , runtime_types :: polkadot_primitives :: v7 :: CoreIndex , runtime_types :: polkadot_primitives :: v7 :: GroupIndex ,) , # [codec (index = 1)] CandidateIncluded (runtime_types :: polkadot_primitives :: v7 :: CandidateReceipt < _0 > , runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , runtime_types :: polkadot_primitives :: v7 :: CoreIndex , runtime_types :: polkadot_primitives :: v7 :: GroupIndex ,) , # [codec (index = 2)] CandidateTimedOut (runtime_types :: polkadot_primitives :: v7 :: CandidateReceipt < _0 > , runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , runtime_types :: polkadot_primitives :: v7 :: CoreIndex ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CandidateReceipt < _0 > { pub descriptor : runtime_types :: polkadot_primitives :: v7 :: CandidateDescriptor < _0 > , pub commitments_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CommittedCandidateReceipt < _0 > { pub descriptor : runtime_types :: polkadot_primitives :: v7 :: CandidateDescriptor < _0 > , pub commitments : runtime_types :: polkadot_primitives :: v7 :: CandidateCommitments < :: core :: primitive :: u32 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CoreIndex (pub :: core :: primitive :: u32 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum CoreState < _0 , _1 > { # [codec (index = 0)] Occupied (runtime_types :: polkadot_primitives :: v7 :: OccupiedCore < _0 , _1 > ,) , # [codec (index = 1)] Scheduled (runtime_types :: polkadot_primitives :: v7 :: ScheduledCore ,) , # [codec (index = 2)] Free , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DisputeState < _0 > { pub validators_for : :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > , pub validators_against : :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > , pub start : _0 , pub concluded_at : :: core :: option :: Option < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DisputeStatement { # [codec (index = 0)] Valid (runtime_types :: polkadot_primitives :: v7 :: ValidDisputeStatementKind ,) , # [codec (index = 1)] Invalid (runtime_types :: polkadot_primitives :: v7 :: InvalidDisputeStatementKind ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DisputeStatementSet { pub candidate_hash : runtime_types :: polkadot_core_primitives :: CandidateHash , pub session : :: core :: primitive :: u32 , pub statements : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: polkadot_primitives :: v7 :: DisputeStatement , runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex , runtime_types :: polkadot_primitives :: v7 :: validator_app :: Signature ,) > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GroupIndex (pub :: core :: primitive :: u32 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GroupRotationInfo < _0 > { pub session_start_block : _0 , pub group_rotation_frequency : _0 , pub now : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct IndexedVec < _0 , _1 > (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _1 > , # [codec (skip)] pub :: core :: marker :: PhantomData < _0 >) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InherentData < _0 > { pub bitfields : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: signed :: UncheckedSigned < runtime_types :: polkadot_primitives :: v7 :: AvailabilityBitfield , runtime_types :: polkadot_primitives :: v7 :: AvailabilityBitfield > > , pub backed_candidates : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: BackedCandidate < :: subxt :: ext :: subxt_core :: utils :: H256 > > , pub disputes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: DisputeStatementSet > , pub parent_header : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum InvalidDisputeStatementKind { # [codec (index = 0)] Explicit , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OccupiedCore < _0 , _1 > { pub next_up_on_available : :: core :: option :: Option < runtime_types :: polkadot_primitives :: v7 :: ScheduledCore > , pub occupied_since : _1 , pub time_out_at : _1 , pub next_up_on_time_out : :: core :: option :: Option < runtime_types :: polkadot_primitives :: v7 :: ScheduledCore > , pub availability : :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > , pub group_responsible : runtime_types :: polkadot_primitives :: v7 :: GroupIndex , pub candidate_hash : runtime_types :: polkadot_core_primitives :: CandidateHash , pub candidate_descriptor : runtime_types :: polkadot_primitives :: v7 :: CandidateDescriptor < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum OccupiedCoreAssumption { # [codec (index = 0)] Included , # [codec (index = 1)] TimedOut , # [codec (index = 2)] Free , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: ValidatorIndex , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum PvfExecKind { # [codec (index = 0)] Backing , # [codec (index = 1)] Approval , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum PvfPrepKind { # [codec (index = 0)] Precheck , # [codec (index = 1)] Prepare , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: collator_app :: Public > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ScrapedOnChainVotes < _0 > { pub session : :: core :: primitive :: u32 , pub backing_validators_per_candidate : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: polkadot_primitives :: v7 :: CandidateReceipt < _0 > , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex , runtime_types :: polkadot_primitives :: v7 :: ValidityAttestation ,) > ,) > , pub disputes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: DisputeStatementSet > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SessionInfo { pub active_validator_indices : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex > , pub random_seed : [:: core :: primitive :: u8 ; 32usize] , pub dispute_period : :: core :: primitive :: u32 , pub validators : runtime_types :: polkadot_primitives :: v7 :: IndexedVec < runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex , runtime_types :: polkadot_primitives :: v7 :: validator_app :: Public > , pub discovery_keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_authority_discovery :: app :: Public > , pub assignment_keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: assignment_app :: Public > , pub validator_groups : runtime_types :: polkadot_primitives :: v7 :: IndexedVec < runtime_types :: polkadot_primitives :: v7 :: GroupIndex , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: ValidatorIndex > > , 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum UpgradeGoAhead { # [codec (index = 0)] Abort , # [codec (index = 1)] GoAhead , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum UpgradeRestriction { # [codec (index = 0)] Present , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ValidDisputeStatementKind { # [codec (index = 0)] Explicit , # [codec (index = 1)] BackingSeconded (:: subxt :: ext :: subxt_core :: utils :: H256 ,) , # [codec (index = 2)] BackingValid (:: subxt :: ext :: subxt_core :: utils :: H256 ,) , # [codec (index = 3)] ApprovalChecking , # [codec (index = 4)] ApprovalCheckingMultipleCandidates (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_core_primitives :: CandidateHash > ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidatorIndex (pub :: core :: primitive :: u32 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ValidityAttestation { # [codec (index = 1)] Implicit (runtime_types :: polkadot_primitives :: v7 :: validator_app :: Signature ,) , # [codec (index = 2)] Explicit (runtime_types :: polkadot_primitives :: v7 :: validator_app :: Signature ,) , } } pub mod vstaging { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SchedulerParams < _0 > { pub group_rotation_frequency : _0 , pub paras_availability_period : _0 , pub max_validators_per_core : :: core :: option :: Option < _0 > , pub lookahead : :: core :: primitive :: u32 , pub num_cores : :: core :: primitive :: u32 , pub max_availability_timeouts : :: 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 ttl : _0 , } } } pub mod polkadot_runtime_common { use super :: runtime_types ; pub mod auctions { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Create a new auction."] # [doc = ""] # [doc = "This can only happen when there isn't already an auction in progress and may only be"] # [doc = "called by the root origin. Accepts the `duration` of this auction and the"] # [doc = "`lease_period_index` of the initial lease period of the four that are to be auctioned."] new_auction { # [codec (compact)] duration : :: core :: primitive :: u32 , # [codec (compact)] lease_period_index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Make a new bid from an account (including a parachain account) for deploying a new"] # [doc = "parachain."] # [doc = ""] # [doc = "Multiple simultaneous bids from the same bidder are allowed only as long as all active"] # [doc = "bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted."] # [doc = ""] # [doc = "- `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and"] # [doc = "funded by) the same account."] # [doc = "- `auction_index` is the index of the auction to bid on. Should just be the present"] # [doc = "value of `AuctionCounter`."] # [doc = "- `first_slot` is the first lease period index of the range to bid on. This is the"] # [doc = "absolute lease period index value, not an auction-specific offset."] # [doc = "- `last_slot` is the last lease period index of the range to bid on. This is the"] # [doc = "absolute lease period index value, not an auction-specific offset."] # [doc = "- `amount` is the amount to bid to be held as deposit for the parachain should the"] # [doc = "bid win. This amount is held throughout the range."] 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 = "Cancel an in-progress auction."] # [doc = ""] # [doc = "Can only be called by Root origin."] cancel_auction , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , } , # [codec (index = 5)] # [doc = "A new bid has been accepted as the current winner."] BidAccepted { bidder : :: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Make a claim to collect your DOTs."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to claim is deemed valid if the signature provided matches"] # [doc = "the expected signed message of:"] # [doc = ""] # [doc = "> Ethereum Signed Message:"] # [doc = "> (configured prefix string)(address)"] # [doc = ""] # [doc = "and `address` matches the `dest` account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `dest`: The destination account to payout the claim."] # [doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] # [doc = " described above."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to validate unsigned `claim` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] claim { dest : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature , } , # [codec (index = 1)] # [doc = "Mint a new claim to collect DOTs."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `who`: The Ethereum address allowed to collect this claim."] # [doc = "- `value`: The number of DOTs that will be claimed."] # [doc = "- `vesting_schedule`: An optional vesting schedule for these DOTs."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "We assume worst case that both vesting and statement is being inserted."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] 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 = "Make a claim to collect your DOTs by signing a statement."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to `claim_attest` is deemed valid if the signature provided matches"] # [doc = "the expected signed message of:"] # [doc = ""] # [doc = "> Ethereum Signed Message:"] # [doc = "> (configured prefix string)(address)(statement)"] # [doc = ""] # [doc = "and `address` matches the `dest` account; the `statement` must match that which is"] # [doc = "expected according to your purchase arrangement."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `dest`: The destination account to payout the claim."] # [doc = "- `ethereum_signature`: The signature of an ethereum signed message matching the format"] # [doc = " described above."] # [doc = "- `statement`: The identity of the statement which is being attested to in the"] # [doc = " signature."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to validate unsigned `claim_attest` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] claim_attest { dest : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , ethereum_signature : runtime_types :: polkadot_runtime_common :: claims :: EcdsaSignature , statement : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 3)] # [doc = "Attest to a statement, needed to finalize the claims process."] # [doc = ""] # [doc = "WARNING: Insecure unless your chain includes `PrevalidateAttests` as a"] # [doc = "`SignedExtension`."] # [doc = ""] # [doc = "Unsigned Validation:"] # [doc = "A call to attest is deemed valid if the sender has a `Preclaim` registered"] # [doc = "and provides a `statement` which is expected for the account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `statement`: The identity of the statement which is being attested to in the"] # [doc = " signature."] # [doc = ""] # [doc = ""] # [doc = "The weight of this call is invariant over the input parameters."] # [doc = "Weight includes logic to do pre-validation on `attest` call."] # [doc = ""] # [doc = "Total Complexity: O(1)"] # [doc = ""] attest { statement : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] move_claim { old : runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , new : runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , maybe_preclaim : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Someone claimed some DOTs."] Claimed { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , ethereum_address : runtime_types :: polkadot_runtime_common :: claims :: EthereumAddress , amount : :: core :: primitive :: u128 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EcdsaSignature (pub [:: core :: primitive :: u8 ; 65usize] ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EthereumAddress (pub [:: core :: primitive :: u8 ; 20usize] ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PrevalidateAttests ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Create a new crowdloaning campaign for a parachain slot with the given lease period"] # [doc = "range."] # [doc = ""] # [doc = "This applies a lock to your parachain configuration, ensuring that it cannot be changed"] # [doc = "by the parachain manager."] 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 < runtime_types :: sp_runtime :: MultiSigner > , } , # [codec (index = 1)] # [doc = "Contribute to a crowd sale. This will transfer some balance over to fund a parachain"] # [doc = "slot. It will be withdrawable when the crowdloan has ended and the funds are unused."] contribute { # [codec (compact)] index : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , # [codec (compact)] value : :: core :: primitive :: u128 , signature : :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > , } , # [codec (index = 2)] # [doc = "Withdraw full balance of a specific contributor."] # [doc = ""] # [doc = "Origin must be signed, but can come from anyone."] # [doc = ""] # [doc = "The fund must be either in, or ready for, retirement. For a fund to be *in* retirement,"] # [doc = "then the retirement flag must be set. For a fund to be ready for retirement, then:"] # [doc = "- it must not already be in retirement;"] # [doc = "- the amount of raised funds must be bigger than the _free_ balance of the account;"] # [doc = "- and either:"] # [doc = " - the block number must be at least `end`; or"] # [doc = " - the current lease period must be greater than the fund's `last_period`."] # [doc = ""] # [doc = "In this case, the fund's retirement flag is set and its `end` is reset to the current"] # [doc = "block number."] # [doc = ""] # [doc = "- `who`: The account whose contribution should be withdrawn."] # [doc = "- `index`: The parachain to whose crowdloan the contribution was made."] withdraw { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , # [codec (compact)] index : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "Automatically refund contributors of an ended crowdloan."] # [doc = "Due to weight restrictions, this function may need to be called multiple"] # [doc = "times to fully refund all users. We will refund `RemoveKeysLimit` users at a time."] # [doc = ""] # [doc = "Origin must be signed, but can come from anyone."] refund { # [codec (compact)] index : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 4)] # [doc = "Remove a fund after the retirement period has ended and all funds have been returned."] dissolve { # [codec (compact)] index : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "Edit the configuration for an in-progress crowdloan."] # [doc = ""] # [doc = "Can only be called by Root origin."] 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 < runtime_types :: sp_runtime :: MultiSigner > , } , # [codec (index = 6)] # [doc = "Add an optional memo to an existing crowdloan contribution."] # [doc = ""] # [doc = "Origin must be Signed, and the user must have contributed to the crowdloan."] add_memo { index : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , memo : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 7)] # [doc = "Poke the fund into `NewRaise`"] # [doc = ""] # [doc = "Origin must be Signed, and the fund has non-zero raise."] poke { index : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 8)] # [doc = "Contribute your entire balance to a crowd sale. This will transfer the entire balance of"] # [doc = "a user over to fund a parachain slot. It will be withdrawable when the crowdloan has"] # [doc = "ended and the funds are unused."] contribute_all { # [codec (compact)] index : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , signature : :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: AccountId32 , para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , memo : :: subxt :: ext :: subxt_core :: alloc :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FundInfo < _0 , _1 , _2 , _3 > { pub depositor : _0 , pub verifier : :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSigner > , 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , } , # [codec (index = 4)] V4 { location : runtime_types :: staging_xcm :: v4 :: location :: Location , asset_id : runtime_types :: staging_xcm :: v4 :: asset :: AssetId , } , } } pub mod paras_registrar { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Register head data and validation code for a reserved Para Id."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin."] # [doc = "- `id`: The para ID. Must be owned/managed by the `origin` signing account."] # [doc = "- `genesis_head`: The genesis head data of the parachain/thread."] # [doc = "- `validation_code`: The initial validation code of the parachain/thread."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The account with the originating signature must reserve a deposit."] # [doc = ""] # [doc = "The deposit is required to cover the costs associated with storing the genesis head"] # [doc = "data and the validation code."] # [doc = "This accounts for the potential to store validation code of a size up to the"] # [doc = "`max_code_size`, as defined in the configuration pallet"] # [doc = ""] # [doc = "Anything already reserved previously for this para ID is accounted for."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Registered` event is emitted in case of success."] 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 = "Force the registration of a Para Id on the relay chain."] # [doc = ""] # [doc = "This function must be called by a Root origin."] # [doc = ""] # [doc = "The deposit taken can be specified for this registration. Any `ParaId`"] # [doc = "can be registered, including sub-1000 IDs which are System Parachains."] force_register { who : :: subxt :: ext :: subxt_core :: 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 = "Deregister a Para Id, freeing all data and returning any deposit."] # [doc = ""] # [doc = "The caller must be Root, the `para` owner, or the `para` itself. The para must be an"] # [doc = "on-demand parachain."] deregister { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "Swap a lease holding parachain with another parachain, either on-demand or lease"] # [doc = "holding."] # [doc = ""] # [doc = "The origin must be Root, the `para` owner, or the `para` itself."] # [doc = ""] # [doc = "The swap will happen only if there is already an opposite swap pending. If there is not,"] # [doc = "the swap will be stored in the pending swaps map, ready for a later confirmatory swap."] # [doc = ""] # [doc = "The `ParaId`s remain mapped to the same head data and code so external code can rely on"] # [doc = "`ParaId` to be a long-term identifier of a notional \"parachain\". However, their"] # [doc = "scheduling info (i.e. whether they're an on-demand parachain or lease holding"] # [doc = "parachain), auction information and the auction deposit are switched."] swap { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , other : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 4)] # [doc = "Remove a manager lock from a para. This will allow the manager of a"] # [doc = "previously locked para to deregister or swap a para without using governance."] # [doc = ""] # [doc = "Can only be called by the Root origin or the parachain."] remove_lock { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "Reserve a Para Id on the relay chain."] # [doc = ""] # [doc = "This function will reserve a new Para Id to be owned/managed by the origin account."] # [doc = "The origin account is able to register head data and validation code using `register` to"] # [doc = "create an on-demand parachain. Using the Slots pallet, an on-demand parachain can then"] # [doc = "be upgraded to a lease holding parachain."] # [doc = ""] # [doc = "## Arguments"] # [doc = "- `origin`: Must be called by a `Signed` origin. Becomes the manager/owner of the new"] # [doc = " para ID."] # [doc = ""] # [doc = "## Deposits/Fees"] # [doc = "The origin must reserve a deposit of `ParaDeposit` for the registration."] # [doc = ""] # [doc = "## Events"] # [doc = "The `Reserved` event is emitted in case of success, which provides the ID reserved for"] # [doc = "use."] reserve , # [codec (index = 6)] # [doc = "Add a manager lock from a para. This will prevent the manager of a"] # [doc = "para to deregister or swap a para."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] add_lock { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 7)] # [doc = "Schedule a parachain upgrade."] # [doc = ""] # [doc = "This will kick off a check of `new_code` by all validators. After the majority of the"] # [doc = "validators have reported on the validity of the code, the code will either be enacted"] # [doc = "or the upgrade will be rejected. If the code will be enacted, the current code of the"] # [doc = "parachain will be overwritten directly. This means that any PoV will be checked by this"] # [doc = "new code. The parachain itself will not be informed explicitly that the validation code"] # [doc = "has changed."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] schedule_code_upgrade { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 8)] # [doc = "Set the parachain's current head."] # [doc = ""] # [doc = "Can be called by Root, the parachain, or the parachain manager if the parachain is"] # [doc = "unlocked."] set_current_head { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , new_head : runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = "The validation code is invalid."] InvalidCode , # [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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Schedule a para to be initialized at the start of the next session."] # [doc = ""] # [doc = "This should only be used for TESTING and not on PRODUCTION chains. It automatically"] # [doc = "assigns Coretime to the chain and increases the number of cores. Thus, there is no"] # [doc = "running coretime chain required."] sudo_schedule_para_initialize { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , genesis : runtime_types :: polkadot_runtime_parachains :: paras :: ParaGenesisArgs , } , # [codec (index = 1)] # [doc = "Schedule a para to be cleaned up at the start of the next session."] sudo_schedule_para_cleanup { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 2)] # [doc = "Upgrade a parathread (on-demand parachain) to a lease holding parachain"] sudo_schedule_parathread_upgrade { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 3)] # [doc = "Downgrade a lease holding parachain to an on-demand parachain"] sudo_schedule_parachain_downgrade { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 4)] # [doc = "Send a downward XCM to the given para."] # [doc = ""] # [doc = "The given parachain should exist and the payload should not exceed the preconfigured"] # [doc = "size `config.max_downward_message_size`."] sudo_queue_downward_xcm { id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , xcm : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: xcm :: VersionedXcm > , } , # [codec (index = 5)] # [doc = "Forcefully establish a channel from the sender to the recipient."] # [doc = ""] # [doc = "This is equivalent to sending an `Hrmp::hrmp_init_open_channel` extrinsic followed by"] # [doc = "`Hrmp::hrmp_accept_open_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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 8)] # [doc = "There are more cores than supported by the runtime."] TooManyCores , } } } pub mod slots { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Just a connect into the `lease_out` call, in case Root wants to force some lease to"] # [doc = "happen independently of any other on-chain mechanism to use it."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] force_lease { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , leaser : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u128 , period_begin : :: core :: primitive :: u32 , period_count : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Clear all leases for a Para Id, refunding any deposits back to the original owners."] # [doc = ""] # [doc = "The dispatch origin for this call must match `T::ForceOrigin`."] clear_all_leases { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 2)] # [doc = "Try to onboard a parachain that has a lease for the current lease period."] # [doc = ""] # [doc = "This function can be useful if there was some state issue with a para that should"] # [doc = "have onboarded, but was unable to. As long as they have a lease period, we can"] # [doc = "let them onboard from here."] # [doc = ""] # [doc = "Origin must be signed, but can be called by anyone."] trigger_onboard { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: 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_coretime { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] AssignmentsEmpty , # [codec (index = 1)] # [doc = "Assignments together exceeded 57600."] OverScheduled , # [codec (index = 2)] # [doc = "Assignments together less than 57600"] UnderScheduled , # [codec (index = 3)] # [doc = "assign_core is only allowed to append new assignments at the end of already existing"] # [doc = "ones."] DisallowedInsert , # [codec (index = 4)] # [doc = "Tried to insert a schedule for the same core and block number as an existing schedule"] DuplicateInsert , # [codec (index = 5)] # [doc = "Tried to add an unsorted set of assignments"] AssignmentsNotSorted , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AssignmentState { pub ratio : runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: PartsOf57600 , pub remaining : runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: PartsOf57600 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CoreDescriptor < _0 > { pub queue : :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: QueueDescriptor < _0 > > , pub current_work : :: core :: option :: Option < runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: WorkState < _0 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PartsOf57600 (pub :: core :: primitive :: u16 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueueDescriptor < _0 > { pub first : _0 , pub last : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Schedule < _0 > { pub assignments : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_broker :: coretime_interface :: CoreAssignment , runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: PartsOf57600 ,) > , pub end_hint : :: core :: option :: Option < _0 > , pub next_schedule : :: core :: option :: Option < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct WorkState < _0 > { pub assignments : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_broker :: coretime_interface :: CoreAssignment , runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: AssignmentState ,) > , pub end_hint : :: core :: option :: Option < _0 > , pub pos : :: core :: primitive :: u16 , pub step : runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: PartsOf57600 , } } pub mod assigner_on_demand { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Create a single on demand core order."] # [doc = "Will use the spot price for the current block and will reap the account if needed."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: The sender of the call, funds will be withdrawn from this account."] # [doc = "- `max_amount`: The maximum balance to withdraw from the origin to place an order."] # [doc = "- `para_id`: A `ParaId` the origin wants to provide blockspace for."] # [doc = ""] # [doc = "Errors:"] # [doc = "- `InsufficientBalance`: from the Currency implementation"] # [doc = "- `QueueFull`"] # [doc = "- `SpotPriceHigherThanMaxAmount`"] # [doc = ""] # [doc = "Events:"] # [doc = "- `OnDemandOrderPlaced`"] place_order_allow_death { max_amount : :: core :: primitive :: u128 , para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 1)] # [doc = "Same as the [`place_order_allow_death`](Self::place_order_allow_death) call , but with a"] # [doc = "check that placing the order will not reap the account."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `origin`: The sender of the call, funds will be withdrawn from this account."] # [doc = "- `max_amount`: The maximum balance to withdraw from the origin to place an order."] # [doc = "- `para_id`: A `ParaId` the origin wants to provide blockspace for."] # [doc = ""] # [doc = "Errors:"] # [doc = "- `InsufficientBalance`: from the Currency implementation"] # [doc = "- `QueueFull`"] # [doc = "- `SpotPriceHigherThanMaxAmount`"] # [doc = ""] # [doc = "Events:"] # [doc = "- `OnDemandOrderPlaced`"] place_order_keep_alive { max_amount : :: core :: primitive :: u128 , para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The order queue is full, `place_order` will not continue."] QueueFull , # [codec (index = 1)] # [doc = "The current spot price is higher than the max amount specified in the `place_order`"] # [doc = "call, making it invalid."] SpotPriceHigherThanMaxAmount , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 by orderer ordered_by"] OnDemandOrderPlaced { para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , spot_price : :: core :: primitive :: u128 , ordered_by : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "The value of the spot price has likely changed"] SpotPriceSet { spot_price : :: core :: primitive :: u128 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CoreAffinityCount { pub core_index : runtime_types :: polkadot_primitives :: v7 :: CoreIndex , pub count : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EnqueuedOrder { pub para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , pub idx : runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: types :: QueueIndex , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueueIndex (pub :: core :: primitive :: u32 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueueStatusType { pub traffic : runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 , pub next_index : runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: types :: QueueIndex , pub smallest_index : runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: types :: QueueIndex , pub freed_indices : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: assigner_on_demand :: types :: ReverseQueueIndex > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ReverseQueueIndex (pub :: core :: primitive :: u32 ,) ; } } pub mod configuration { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Set the validation upgrade cooldown."] set_validation_upgrade_cooldown { new : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Set the validation upgrade delay."] set_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Set the acceptance period for an included candidate."] set_code_retention_period { new : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Set the max validation code size for incoming upgrades."] set_max_code_size { new : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Set the max POV block size for incoming upgrades."] set_max_pov_size { new : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Set the max head data size for paras."] set_max_head_data_size { new : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Set the number of coretime execution cores."] # [doc = ""] # [doc = "NOTE: that this configuration is managed by the coretime chain. Only manually change"] # [doc = "this, if you really know what you are doing!"] set_coretime_cores { new : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Set the max number of times a claim may timeout on a core before it is abandoned"] set_max_availability_timeouts { new : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Set the parachain validator-group rotation frequency"] set_group_rotation_frequency { new : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "Set the availability period for paras."] set_paras_availability_period { new : :: core :: primitive :: u32 , } , # [codec (index = 11)] # [doc = "Set the scheduling lookahead, in expected number of blocks at peak throughput."] set_scheduling_lookahead { new : :: core :: primitive :: u32 , } , # [codec (index = 12)] # [doc = "Set the maximum number of validators to assign to any core."] set_max_validators_per_core { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 13)] # [doc = "Set the maximum number of validators to use in parachain consensus."] set_max_validators { new : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 14)] # [doc = "Set the dispute period, in number of sessions to keep for disputes."] set_dispute_period { new : :: core :: primitive :: u32 , } , # [codec (index = 15)] # [doc = "Set the dispute post conclusion acceptance period."] set_dispute_post_conclusion_acceptance_period { new : :: core :: primitive :: u32 , } , # [codec (index = 18)] # [doc = "Set the no show slots, in number of number of consensus slots."] # [doc = "Must be at least 1."] set_no_show_slots { new : :: core :: primitive :: u32 , } , # [codec (index = 19)] # [doc = "Set the total number of delay tranches."] set_n_delay_tranches { new : :: core :: primitive :: u32 , } , # [codec (index = 20)] # [doc = "Set the zeroth delay tranche width."] set_zeroth_delay_tranche_width { new : :: core :: primitive :: u32 , } , # [codec (index = 21)] # [doc = "Set the number of validators needed to approve a block."] set_needed_approvals { new : :: core :: primitive :: u32 , } , # [codec (index = 22)] # [doc = "Set the number of samples to do of the `RelayVRFModulo` approval assignment criterion."] set_relay_vrf_modulo_samples { new : :: core :: primitive :: u32 , } , # [codec (index = 23)] # [doc = "Sets the maximum items that can present in a upward dispatch queue at once."] set_max_upward_queue_count { new : :: core :: primitive :: u32 , } , # [codec (index = 24)] # [doc = "Sets the maximum total size of items that can present in a upward dispatch queue at"] # [doc = "once."] set_max_upward_queue_size { new : :: core :: primitive :: u32 , } , # [codec (index = 25)] # [doc = "Set the critical downward message size."] set_max_downward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 27)] # [doc = "Sets the maximum size of an upward message that can be sent by a candidate."] set_max_upward_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 28)] # [doc = "Sets the maximum number of messages that a candidate can contain."] set_max_upward_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 29)] # [doc = "Sets the number of sessions after which an HRMP open channel request expires."] set_hrmp_open_request_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 30)] # [doc = "Sets the amount of funds that the sender should provide for opening an HRMP channel."] set_hrmp_sender_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 31)] # [doc = "Sets the amount of funds that the recipient should provide for accepting opening an HRMP"] # [doc = "channel."] set_hrmp_recipient_deposit { new : :: core :: primitive :: u128 , } , # [codec (index = 32)] # [doc = "Sets the maximum number of messages allowed in an HRMP channel at once."] set_hrmp_channel_max_capacity { new : :: core :: primitive :: u32 , } , # [codec (index = 33)] # [doc = "Sets the maximum total size of messages in bytes allowed in an HRMP channel at once."] set_hrmp_channel_max_total_size { new : :: core :: primitive :: u32 , } , # [codec (index = 34)] # [doc = "Sets the maximum number of inbound HRMP channels a parachain is allowed to accept."] set_hrmp_max_parachain_inbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 36)] # [doc = "Sets the maximum size of a message that could ever be put into an HRMP channel."] set_hrmp_channel_max_message_size { new : :: core :: primitive :: u32 , } , # [codec (index = 37)] # [doc = "Sets the maximum number of outbound HRMP channels a parachain is allowed to open."] set_hrmp_max_parachain_outbound_channels { new : :: core :: primitive :: u32 , } , # [codec (index = 39)] # [doc = "Sets the maximum number of outbound HRMP messages can be sent by a candidate."] set_hrmp_max_message_num_per_candidate { new : :: core :: primitive :: u32 , } , # [codec (index = 42)] # [doc = "Set the number of session changes after which a PVF pre-checking voting is rejected."] set_pvf_voting_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 43)] # [doc = "Sets the minimum delay between announcing the upgrade block for a parachain until the"] # [doc = "upgrade taking place."] # [doc = ""] # [doc = "See the field documentation for information and constraints for the new value."] set_minimum_validation_upgrade_delay { new : :: core :: primitive :: u32 , } , # [codec (index = 44)] # [doc = "Setting this to true will disable consistency checks for the configuration setters."] # [doc = "Use with caution."] set_bypass_consistency_check { new : :: core :: primitive :: bool , } , # [codec (index = 45)] # [doc = "Set the asynchronous backing parameters."] set_async_backing_params { new : runtime_types :: polkadot_primitives :: v7 :: async_backing :: AsyncBackingParams , } , # [codec (index = 46)] # [doc = "Set PVF executor parameters."] set_executor_params { new : runtime_types :: polkadot_primitives :: v7 :: executor_params :: ExecutorParams , } , # [codec (index = 47)] # [doc = "Set the on demand (parathreads) base fee."] set_on_demand_base_fee { new : :: core :: primitive :: u128 , } , # [codec (index = 48)] # [doc = "Set the on demand (parathreads) fee variability."] set_on_demand_fee_variability { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 49)] # [doc = "Set the on demand (parathreads) queue max size."] set_on_demand_queue_max_size { new : :: core :: primitive :: u32 , } , # [codec (index = 50)] # [doc = "Set the on demand (parathreads) fee variability."] set_on_demand_target_queue_utilization { new : runtime_types :: sp_arithmetic :: per_things :: Perbill , } , # [codec (index = 51)] # [doc = "Set the on demand (parathreads) ttl in the claimqueue."] set_on_demand_ttl { new : :: core :: primitive :: u32 , } , # [codec (index = 52)] # [doc = "Set the minimum backing votes threshold."] set_minimum_backing_votes { new : :: core :: primitive :: u32 , } , # [codec (index = 53)] # [doc = "Set/Unset a node feature."] set_node_feature { index : :: core :: primitive :: u8 , value : :: core :: primitive :: bool , } , # [codec (index = 54)] # [doc = "Set approval-voting-params."] set_approval_voting_params { new : runtime_types :: polkadot_primitives :: v7 :: ApprovalVotingParams , } , # [codec (index = 55)] # [doc = "Set scheduler-params."] set_scheduler_params { new : runtime_types :: polkadot_primitives :: vstaging :: SchedulerParams < :: core :: primitive :: u32 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: 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 :: v7 :: executor_params :: ExecutorParams , pub code_retention_period : _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 node_features : :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > , pub approval_voting_params : runtime_types :: polkadot_primitives :: v7 :: ApprovalVotingParams , pub scheduler_params : runtime_types :: polkadot_primitives :: vstaging :: SchedulerParams < _0 > , } } pub mod coretime { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 1)] # [doc = "Request the configuration to be updated with the specified number of cores. Warning:"] # [doc = "Since this only schedules a configuration update, it takes two sessions to come into"] # [doc = "effect."] # [doc = ""] # [doc = "- `origin`: Root or the Coretime Chain"] # [doc = "- `count`: total number of cores"] request_core_count { count : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "Request to claim the instantaneous coretime sales revenue starting from the block it was"] # [doc = "last claimed until and up to the block specified. The claimed amount value is sent back"] # [doc = "to the Coretime chain in a `notify_revenue` message. At the same time, the amount is"] # [doc = "teleported to the Coretime chain."] request_revenue_at { when : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is"] # [doc = "to be used."] # [doc = ""] # [doc = "Parameters:"] # [doc = "-`origin`: The `ExternalBrokerOrigin`, assumed to be the coretime chain."] # [doc = "-`core`: The core that should be scheduled."] # [doc = "-`begin`: The starting blockheight of the instruction."] # [doc = "-`assignment`: How the blockspace should be utilised."] # [doc = "-`end_hint`: An optional hint as to when this particular set of instructions will end."] assign_core { core : :: core :: primitive :: u16 , begin : :: core :: primitive :: u32 , assignment : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_broker :: coretime_interface :: CoreAssignment , runtime_types :: polkadot_runtime_parachains :: assigner_coretime :: PartsOf57600 ,) > , end_hint : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The paraid making the call is not the coretime brokerage system parachain."] NotBroker , # [codec (index = 1)] # [doc = "Requested revenue information `when` parameter was in the future from the current"] # [doc = "block height."] RequestedFutureRevenue , # [codec (index = 2)] # [doc = "Failed to transfer assets to the coretime chain"] AssetTransferFailed , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "The broker chain has asked for revenue information for a specific block."] RevenueInfoRequested { when : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "A core has received a new assignment from the broker chain."] CoreAssigned { core : runtime_types :: polkadot_primitives :: v7 :: CoreIndex , } , } } } pub mod disputes { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] force_unfreeze , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] report_dispute_lost_unsigned { dispute_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: polkadot_primitives :: v7 :: slashing :: DisputeProof > , key_owner_proof : runtime_types :: sp_session :: MembershipProof , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DisputeLocation { # [codec (index = 0)] Local , # [codec (index = 1)] Remote , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Initiate opening a channel from a parachain to a given recipient with given channel"] # [doc = "parameters."] # [doc = ""] # [doc = "- `proposed_max_capacity` - specifies how many messages can be in the channel at once."] # [doc = "- `proposed_max_message_size` - specifies the maximum size of the messages."] # [doc = ""] # [doc = "These numbers are a subject to the relay-chain configuration limits."] # [doc = ""] # [doc = "The channel can be opened only after the recipient confirms it and only on a session"] # [doc = "change."] 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 = "Accept a pending open channel request from the given sender."] # [doc = ""] # [doc = "The channel will be opened only on the next session boundary."] hrmp_accept_open_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 2)] # [doc = "Initiate unilateral closing of a channel. The origin must be either the sender or the"] # [doc = "recipient in the channel being closed."] # [doc = ""] # [doc = "The closure can only happen on a session change."] hrmp_close_channel { channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , } , # [codec (index = 3)] # [doc = "This extrinsic triggers the cleanup of all the HRMP storage items that a para may have."] # [doc = "Normally this happens once per session, but this allows you to trigger the cleanup"] # [doc = "immediately for a specific parachain."] # [doc = ""] # [doc = "Number of inbound and outbound channels for `para` must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] 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 = "Force process HRMP open channel requests."] # [doc = ""] # [doc = "If there are pending HRMP open channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of opening channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_process_hrmp_open { channels : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Force process HRMP close channel requests."] # [doc = ""] # [doc = "If there are pending HRMP close channel requests, you can use this function to process"] # [doc = "all of those requests immediately."] # [doc = ""] # [doc = "Total number of closing channels must be provided as witness data."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] force_process_hrmp_close { channels : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "This cancels a pending open channel request. It can be canceled by either of the sender"] # [doc = "or the recipient for that request. The origin must be either of those."] # [doc = ""] # [doc = "The cancellation happens immediately. It is not possible to cancel the request if it is"] # [doc = "already accepted."] # [doc = ""] # [doc = "Total number of open requests (i.e. `HrmpOpenChannelRequestsList`) must be provided as"] # [doc = "witness data."] hrmp_cancel_open_request { channel_id : runtime_types :: polkadot_parachain_primitives :: primitives :: HrmpChannelId , open_requests : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Open a channel from a `sender` to a `recipient` `ParaId`. Although opened by governance,"] # [doc = "the `max_capacity` and `max_message_size` are still subject to the Relay Chain's"] # [doc = "configured limits."] # [doc = ""] # [doc = "Expected use is when one (and only one) of the `ParaId`s involved in the channel is"] # [doc = "governed by the system, e.g. a system parachain."] # [doc = ""] # [doc = "Origin must be the `ChannelManager`."] 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 = "Establish an HRMP channel between two system chains. If the channel does not already"] # [doc = "exist, the transaction fees will be refunded to the caller. The system does not take"] # [doc = "deposits for channels between system chains, and automatically sets the message number"] # [doc = "and size limits to the maximum allowed by the network's configuration."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A system chain, `ParaId`."] # [doc = "- `recipient`: A system chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function, but _both_ inputs MUST be system chains. If"] # [doc = "the channel does not exist yet, there is no fee."] establish_system_channel { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 9)] # [doc = "Update the deposits held for an HRMP channel to the latest `Configuration`. Channels"] # [doc = "with system chains do not require a deposit."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `sender`: A chain, `ParaId`."] # [doc = "- `recipient`: A chain, `ParaId`."] # [doc = ""] # [doc = "Any signed origin can call this function."] poke_channel_deposits { sender : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , recipient : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 10)] # [doc = "Establish a bidirectional HRMP channel between a parachain and a system chain."] # [doc = ""] # [doc = "Arguments:"] # [doc = ""] # [doc = "- `target_system_chain`: A system chain, `ParaId`."] # [doc = ""] # [doc = "The origin needs to be the parachain origin."] establish_channel_with_system { target_system_chain : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 with a system chain."] 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: ext :: subxt_core :: utils :: H256 > , pub sender_deposit : :: core :: primitive :: u128 , pub recipient_deposit : :: core :: primitive :: u128 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Validator index out of bounds."] ValidatorIndexOutOfBounds , # [codec (index = 1)] # [doc = "Candidate submitted but para not scheduled."] UnscheduledCandidate , # [codec (index = 2)] # [doc = "Head data exceeds the configured maximum."] HeadDataTooLarge , # [codec (index = 3)] # [doc = "Code upgrade prematurely."] PrematureCodeUpgrade , # [codec (index = 4)] # [doc = "Output code is too large"] NewCodeTooLarge , # [codec (index = 5)] # [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 = 6)] # [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 = 7)] # [doc = "Invalid group index in core assignment."] InvalidGroupIndex , # [codec (index = 8)] # [doc = "Insufficient (non-majority) backing."] InsufficientBacking , # [codec (index = 9)] # [doc = "Invalid (bad signature, unknown validator, etc.) backing."] InvalidBacking , # [codec (index = 10)] # [doc = "Collator did not sign PoV."] NotCollatorSigned , # [codec (index = 11)] # [doc = "The validation data hash does not match expected."] ValidationDataHashMismatch , # [codec (index = 12)] # [doc = "The downward message queue is not processed correctly."] IncorrectDownwardMessageHandling , # [codec (index = 13)] # [doc = "At least one upward message sent does not pass the acceptance criteria."] InvalidUpwardMessages , # [codec (index = 14)] # [doc = "The candidate didn't follow the rules of HRMP watermark advancement."] HrmpWatermarkMishandling , # [codec (index = 15)] # [doc = "The HRMP messages sent by the candidate is not valid."] InvalidOutboundHrmp , # [codec (index = 16)] # [doc = "The validation code hash of the candidate is not valid."] InvalidValidationCodeHash , # [codec (index = 17)] # [doc = "The `para_head` hash in the candidate descriptor doesn't match the hash of the actual"] # [doc = "para head in the commitments."] ParaHeadMismatch , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v7 :: CandidateReceipt < :: subxt :: ext :: subxt_core :: utils :: H256 > , runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , runtime_types :: polkadot_primitives :: v7 :: CoreIndex , runtime_types :: polkadot_primitives :: v7 :: GroupIndex ,) , # [codec (index = 1)] # [doc = "A candidate was included. `[candidate, head_data]`"] CandidateIncluded (runtime_types :: polkadot_primitives :: v7 :: CandidateReceipt < :: subxt :: ext :: subxt_core :: utils :: H256 > , runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , runtime_types :: polkadot_primitives :: v7 :: CoreIndex , runtime_types :: polkadot_primitives :: v7 :: GroupIndex ,) , # [codec (index = 2)] # [doc = "A candidate timed out. `[candidate, head_data]`"] CandidateTimedOut (runtime_types :: polkadot_primitives :: v7 :: CandidateReceipt < :: subxt :: ext :: subxt_core :: utils :: H256 > , runtime_types :: polkadot_parachain_primitives :: primitives :: HeadData , runtime_types :: polkadot_primitives :: v7 :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AggregateMessageOrigin { # [codec (index = 0)] Ump (runtime_types :: polkadot_runtime_parachains :: inclusion :: UmpQueueId ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CandidatePendingAvailability < _0 , _1 > { pub core : runtime_types :: polkadot_primitives :: v7 :: CoreIndex , pub hash : runtime_types :: polkadot_core_primitives :: CandidateHash , pub descriptor : runtime_types :: polkadot_primitives :: v7 :: CandidateDescriptor < _0 > , pub commitments : runtime_types :: polkadot_primitives :: v7 :: CandidateCommitments < _1 > , pub availability_votes : :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > , pub backers : :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > , pub relay_parent_number : _1 , pub backed_in_number : _1 , pub backing_group : runtime_types :: polkadot_primitives :: v7 :: GroupIndex , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Issue a signal to the consensus engine to forcibly act as though all parachain"] # [doc = "blocks in all relay chain blocks up to and including the given number in the current"] # [doc = "chain are valid and should be finalized."] force_approve { up_to : :: core :: primitive :: u32 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BufferedSessionChange { pub validators : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: validator_app :: Public > , pub queued : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_primitives :: v7 :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Set the storage for the parachain validation code immediately."] 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 = "Set the storage for the current parachain head data immediately."] 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 = "Schedule an upgrade as if it was scheduled in the given relay parent block."] 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 = "Note a new block head for para within the context of the current block."] 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 = "Put a parachain directly into the next session's action queue."] # [doc = "We can't queue it any sooner than this without going into the"] # [doc = "initializer..."] force_queue_action { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , } , # [codec (index = 5)] # [doc = "Adds the validation code to the storage."] # [doc = ""] # [doc = "The code will not be added if it is already present. Additionally, if PVF pre-checking"] # [doc = "is running for that code, it will be instantly accepted."] # [doc = ""] # [doc = "Otherwise, the code will be added into the storage. Note that the code will be added"] # [doc = "into storage with reference count 0. This is to account the fact that there are no users"] # [doc = "for this code yet. The caller will have to make sure that this code eventually gets"] # [doc = "used by some parachain or removed from the storage to avoid storage leaks. For the"] # [doc = "latter prefer to use the `poke_unused_validation_code` dispatchable to raw storage"] # [doc = "manipulation."] # [doc = ""] # [doc = "This function is mainly meant to be used for upgrading parachains that do not follow"] # [doc = "the go-ahead signal while the PVF pre-checking feature is enabled."] add_trusted_validation_code { validation_code : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCode , } , # [codec (index = 6)] # [doc = "Remove the validation code from the storage iff the reference count is 0."] # [doc = ""] # [doc = "This is better than removing the storage directly, because it will not remove the code"] # [doc = "that was suddenly got used by some parachain while this dispatchable was pending"] # [doc = "dispatching."] poke_unused_validation_code { validation_code_hash : runtime_types :: polkadot_parachain_primitives :: primitives :: ValidationCodeHash , } , # [codec (index = 7)] # [doc = "Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and"] # [doc = "enacts the results if that was the last vote before achieving the supermajority."] include_pvf_check_statement { stmt : runtime_types :: polkadot_primitives :: v7 :: PvfCheckStatement , signature : runtime_types :: polkadot_primitives :: v7 :: validator_app :: Signature , } , # [codec (index = 8)] # [doc = "Set the storage for the current parachain head data immediately."] force_set_most_recent_context { para : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , context : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 12)] # [doc = "Invalid validation code size."] InvalidCode , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ParaPastCodeMeta < _0 > { pub upgrade_times : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: paras :: ReplacementTimes < _0 > > , pub last_pruned : :: core :: option :: Option < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PvfCheckActiveVoteState < _0 > { pub votes_accept : :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > , pub votes_reject : :: subxt :: ext :: subxt_core :: utils :: bits :: DecodedBits < :: core :: primitive :: u8 , :: subxt :: ext :: subxt_core :: utils :: bits :: Lsb0 > , pub age : :: core :: primitive :: u32 , pub created_at : _0 , pub causes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: polkadot_runtime_parachains :: paras :: PvfCheckCause < _0 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , upgrade_strategy : runtime_types :: polkadot_runtime_parachains :: paras :: UpgradeStrategy , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ReplacementTimes < _0 > { pub expected_at : _0 , pub activated_at : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum UpgradeStrategy { # [codec (index = 0)] SetGoAheadSignal , # [codec (index = 1)] ApplyAtExpectedBlock , } } pub mod paras_inherent { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Enter the paras inherent. This will process bitfields and backed candidates."] enter { data : runtime_types :: polkadot_primitives :: v7 :: InherentData < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 = "The data given to the inherent will result in an overweight block."] InherentOverweight , # [codec (index = 3)] # [doc = "A candidate was filtered during inherent execution. This should have only been done"] # [doc = "during creation."] CandidatesFilteredDuringExecution , # [codec (index = 4)] # [doc = "Too many candidates supplied."] UnscheduledCandidate , } } } pub mod scheduler { use super :: runtime_types ; pub mod common { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Assignment { # [codec (index = 0)] Pool { para_id : runtime_types :: polkadot_parachain_primitives :: primitives :: Id , core_index : runtime_types :: polkadot_primitives :: v7 :: CoreIndex , } , # [codec (index = 1)] Bulk (runtime_types :: polkadot_parachain_primitives :: primitives :: Id ,) , } } pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AllowedRelayParentsTracker < _0 , _1 > { pub buffer : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , _0 ,) > , pub latest_number : _1 , } } } pub mod sp_arithmetic { use super :: runtime_types ; pub mod fixed_point { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedI64 (pub :: core :: primitive :: i64 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedU128 (pub :: core :: primitive :: u128 ,) ; } pub mod per_things { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PerU16 (pub :: core :: primitive :: u16 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Perbill (pub :: core :: primitive :: u32 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Percent (pub :: core :: primitive :: u8 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Permill (pub :: core :: primitive :: u32 ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ArithmeticError { # [codec (index = 0)] Underflow , # [codec (index = 1)] Overflow , # [codec (index = 2)] DivisionByZero , } } pub mod sp_authority_discovery { use super :: runtime_types ; pub mod app { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; } } pub mod sp_consensus_babe { use super :: runtime_types ; pub mod app { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; } pub mod digests { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum NextConfigDescriptor { # [codec (index = 1)] V1 { c : (:: core :: primitive :: u64 , :: core :: primitive :: u64 ,) , allowed_slots : runtime_types :: sp_consensus_babe :: AllowedSlots , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum PreDigest { # [codec (index = 1)] Primary (runtime_types :: sp_consensus_babe :: digests :: PrimaryPreDigest ,) , # [codec (index = 2)] SecondaryPlain (runtime_types :: sp_consensus_babe :: digests :: SecondaryPlainPreDigest ,) , # [codec (index = 3)] SecondaryVRF (runtime_types :: sp_consensus_babe :: digests :: SecondaryVRFPreDigest ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PrimaryPreDigest { pub authority_index : :: core :: primitive :: u32 , pub slot : runtime_types :: sp_consensus_slots :: Slot , pub vrf_signature : runtime_types :: sp_core :: sr25519 :: vrf :: VrfSignature , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SecondaryPlainPreDigest { pub authority_index : :: core :: primitive :: u32 , pub slot : runtime_types :: sp_consensus_slots :: Slot , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SecondaryVRFPreDigest { pub authority_index : :: core :: primitive :: u32 , pub slot : runtime_types :: sp_consensus_slots :: Slot , pub vrf_signature : runtime_types :: sp_core :: sr25519 :: vrf :: VrfSignature , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AllowedSlots { # [codec (index = 0)] PrimarySlots , # [codec (index = 1)] PrimaryAndSecondaryPlainSlots , # [codec (index = 2)] PrimaryAndSecondaryVRFSlots , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BabeConfiguration { pub slot_duration : :: core :: primitive :: u64 , pub epoch_length : :: core :: primitive :: u64 , pub c : (:: core :: primitive :: u64 , :: core :: primitive :: u64 ,) , pub authorities : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , pub randomness : [:: core :: primitive :: u8 ; 32usize] , pub allowed_slots : runtime_types :: sp_consensus_babe :: AllowedSlots , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BabeEpochConfiguration { pub c : (:: core :: primitive :: u64 , :: core :: primitive :: u64 ,) , pub allowed_slots : runtime_types :: sp_consensus_babe :: AllowedSlots , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Epoch { pub epoch_index : :: core :: primitive :: u64 , pub start_slot : runtime_types :: sp_consensus_slots :: Slot , pub duration : :: core :: primitive :: u64 , pub authorities : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_babe :: app :: Public , :: core :: primitive :: u64 ,) > , pub randomness : [:: core :: primitive :: u8 ; 32usize] , pub config : runtime_types :: sp_consensus_babe :: BabeEpochConfiguration , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; } pub mod sp_consensus_beefy { use super :: runtime_types ; pub mod commitment { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Commitment < _0 > { pub payload : runtime_types :: sp_consensus_beefy :: payload :: Payload , pub block_number : _0 , pub validator_set_id : :: core :: primitive :: u64 , } } pub mod ecdsa_crypto { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 33usize] ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Signature (pub [:: core :: primitive :: u8 ; 65usize] ,) ; } pub mod mmr { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BeefyAuthoritySet < _0 > { pub id : :: core :: primitive :: u64 , pub len : :: core :: primitive :: u32 , pub keyset_commitment : _0 , } } pub mod payload { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Payload (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < ([:: core :: primitive :: u8 ; 2usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) > ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DoubleVotingProof < _0 , _1 , _2 > { pub first : runtime_types :: sp_consensus_beefy :: VoteMessage < _0 , _1 , _2 > , pub second : runtime_types :: sp_consensus_beefy :: VoteMessage < _0 , _1 , _2 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidatorSet < _0 > { pub validators : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub id : :: core :: primitive :: u64 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct VoteMessage < _0 , _1 , _2 > { pub commitment : runtime_types :: sp_consensus_beefy :: commitment :: Commitment < _0 > , pub id : _1 , pub signature : _2 , } } pub mod sp_consensus_grandpa { use super :: runtime_types ; pub mod app { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Signature (pub [:: core :: primitive :: u8 ; 64usize] ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Equivocation < _0 , _1 > { # [codec (index = 0)] Prevote (runtime_types :: finality_grandpa :: Equivocation < runtime_types :: sp_consensus_grandpa :: app :: Public , runtime_types :: finality_grandpa :: Prevote < _0 , _1 > , runtime_types :: sp_consensus_grandpa :: app :: Signature > ,) , # [codec (index = 1)] Precommit (runtime_types :: finality_grandpa :: Equivocation < runtime_types :: sp_consensus_grandpa :: app :: Public , runtime_types :: finality_grandpa :: Precommit < _0 , _1 > , runtime_types :: sp_consensus_grandpa :: app :: Signature > ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EquivocationProof < _0 , _1 > { pub set_id : :: core :: primitive :: u64 , pub equivocation : runtime_types :: sp_consensus_grandpa :: Equivocation < _0 , _1 > , } } pub mod sp_consensus_slots { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EquivocationProof < _0 , _1 > { pub offender : _1 , pub slot : runtime_types :: sp_consensus_slots :: Slot , pub first_header : _0 , pub second_header : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: CompactAs , :: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Slot (pub :: core :: primitive :: u64 ,) ; } pub mod sp_core { use super :: runtime_types ; pub mod crypto { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct KeyTypeId (pub [:: core :: primitive :: u8 ; 4usize] ,) ; } pub mod sr25519 { use super :: runtime_types ; pub mod vrf { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct VrfSignature { pub pre_output : [:: core :: primitive :: u8 ; 32usize] , pub proof : [:: core :: primitive :: u8 ; 64usize] , } } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueMetadata (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Void { } } pub mod sp_inherents { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckInherentsResult { pub okay : :: core :: primitive :: bool , pub fatal_error : :: core :: primitive :: bool , pub errors : runtime_types :: sp_inherents :: InherentData , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InherentData { pub data : :: subxt :: ext :: subxt_core :: utils :: KeyedVec < [:: core :: primitive :: u8 ; 8usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , } } pub mod sp_mmr_primitives { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EncodableOpaqueLeaf (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Error { # [codec (index = 0)] InvalidNumericOp , # [codec (index = 1)] Push , # [codec (index = 2)] GetRoot , # [codec (index = 3)] Commit , # [codec (index = 4)] GenerateProof , # [codec (index = 5)] Verify , # [codec (index = 6)] LeafNotFound , # [codec (index = 7)] PalletNotIncluded , # [codec (index = 8)] InvalidLeafIndex , # [codec (index = 9)] InvalidBestKnownBlock , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct LeafProof < _0 > { pub leaf_indices : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > , pub leaf_count : :: core :: primitive :: u64 , pub items : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , } } pub mod sp_npos_elections { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Support < _0 > { pub total : :: core :: primitive :: u128 , pub voters : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: core :: primitive :: u128 ,) > , } } pub mod sp_runtime { use super :: runtime_types ; pub mod generic { use super :: runtime_types ; pub mod block { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Block < _0 , _1 > { pub header : _0 , pub extrinsics : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _1 > , } } pub mod digest { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Digest { pub logs : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DigestItem { # [codec (index = 6)] PreRuntime ([:: core :: primitive :: u8 ; 4usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 4)] Consensus ([:: core :: primitive :: u8 ; 4usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 5)] Seal ([:: core :: primitive :: u8 ; 4usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 0)] Other (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 8)] RuntimeEnvironmentUpdated , } } pub mod era { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Era { # [codec (index = 0)] Immortal , # [codec (index = 1)] Mortal1 (:: core :: primitive :: u8 ,) , # [codec (index = 2)] Mortal2 (:: core :: primitive :: u8 ,) , # [codec (index = 3)] Mortal3 (:: core :: primitive :: u8 ,) , # [codec (index = 4)] Mortal4 (:: core :: primitive :: u8 ,) , # [codec (index = 5)] Mortal5 (:: core :: primitive :: u8 ,) , # [codec (index = 6)] Mortal6 (:: core :: primitive :: u8 ,) , # [codec (index = 7)] Mortal7 (:: core :: primitive :: u8 ,) , # [codec (index = 8)] Mortal8 (:: core :: primitive :: u8 ,) , # [codec (index = 9)] Mortal9 (:: core :: primitive :: u8 ,) , # [codec (index = 10)] Mortal10 (:: core :: primitive :: u8 ,) , # [codec (index = 11)] Mortal11 (:: core :: primitive :: u8 ,) , # [codec (index = 12)] Mortal12 (:: core :: primitive :: u8 ,) , # [codec (index = 13)] Mortal13 (:: core :: primitive :: u8 ,) , # [codec (index = 14)] Mortal14 (:: core :: primitive :: u8 ,) , # [codec (index = 15)] Mortal15 (:: core :: primitive :: u8 ,) , # [codec (index = 16)] Mortal16 (:: core :: primitive :: u8 ,) , # [codec (index = 17)] Mortal17 (:: core :: primitive :: u8 ,) , # [codec (index = 18)] Mortal18 (:: core :: primitive :: u8 ,) , # [codec (index = 19)] Mortal19 (:: core :: primitive :: u8 ,) , # [codec (index = 20)] Mortal20 (:: core :: primitive :: u8 ,) , # [codec (index = 21)] Mortal21 (:: core :: primitive :: u8 ,) , # [codec (index = 22)] Mortal22 (:: core :: primitive :: u8 ,) , # [codec (index = 23)] Mortal23 (:: core :: primitive :: u8 ,) , # [codec (index = 24)] Mortal24 (:: core :: primitive :: u8 ,) , # [codec (index = 25)] Mortal25 (:: core :: primitive :: u8 ,) , # [codec (index = 26)] Mortal26 (:: core :: primitive :: u8 ,) , # [codec (index = 27)] Mortal27 (:: core :: primitive :: u8 ,) , # [codec (index = 28)] Mortal28 (:: core :: primitive :: u8 ,) , # [codec (index = 29)] Mortal29 (:: core :: primitive :: u8 ,) , # [codec (index = 30)] Mortal30 (:: core :: primitive :: u8 ,) , # [codec (index = 31)] Mortal31 (:: core :: primitive :: u8 ,) , # [codec (index = 32)] Mortal32 (:: core :: primitive :: u8 ,) , # [codec (index = 33)] Mortal33 (:: core :: primitive :: u8 ,) , # [codec (index = 34)] Mortal34 (:: core :: primitive :: u8 ,) , # [codec (index = 35)] Mortal35 (:: core :: primitive :: u8 ,) , # [codec (index = 36)] Mortal36 (:: core :: primitive :: u8 ,) , # [codec (index = 37)] Mortal37 (:: core :: primitive :: u8 ,) , # [codec (index = 38)] Mortal38 (:: core :: primitive :: u8 ,) , # [codec (index = 39)] Mortal39 (:: core :: primitive :: u8 ,) , # [codec (index = 40)] Mortal40 (:: core :: primitive :: u8 ,) , # [codec (index = 41)] Mortal41 (:: core :: primitive :: u8 ,) , # [codec (index = 42)] Mortal42 (:: core :: primitive :: u8 ,) , # [codec (index = 43)] Mortal43 (:: core :: primitive :: u8 ,) , # [codec (index = 44)] Mortal44 (:: core :: primitive :: u8 ,) , # [codec (index = 45)] Mortal45 (:: core :: primitive :: u8 ,) , # [codec (index = 46)] Mortal46 (:: core :: primitive :: u8 ,) , # [codec (index = 47)] Mortal47 (:: core :: primitive :: u8 ,) , # [codec (index = 48)] Mortal48 (:: core :: primitive :: u8 ,) , # [codec (index = 49)] Mortal49 (:: core :: primitive :: u8 ,) , # [codec (index = 50)] Mortal50 (:: core :: primitive :: u8 ,) , # [codec (index = 51)] Mortal51 (:: core :: primitive :: u8 ,) , # [codec (index = 52)] Mortal52 (:: core :: primitive :: u8 ,) , # [codec (index = 53)] Mortal53 (:: core :: primitive :: u8 ,) , # [codec (index = 54)] Mortal54 (:: core :: primitive :: u8 ,) , # [codec (index = 55)] Mortal55 (:: core :: primitive :: u8 ,) , # [codec (index = 56)] Mortal56 (:: core :: primitive :: u8 ,) , # [codec (index = 57)] Mortal57 (:: core :: primitive :: u8 ,) , # [codec (index = 58)] Mortal58 (:: core :: primitive :: u8 ,) , # [codec (index = 59)] Mortal59 (:: core :: primitive :: u8 ,) , # [codec (index = 60)] Mortal60 (:: core :: primitive :: u8 ,) , # [codec (index = 61)] Mortal61 (:: core :: primitive :: u8 ,) , # [codec (index = 62)] Mortal62 (:: core :: primitive :: u8 ,) , # [codec (index = 63)] Mortal63 (:: core :: primitive :: u8 ,) , # [codec (index = 64)] Mortal64 (:: core :: primitive :: u8 ,) , # [codec (index = 65)] Mortal65 (:: core :: primitive :: u8 ,) , # [codec (index = 66)] Mortal66 (:: core :: primitive :: u8 ,) , # [codec (index = 67)] Mortal67 (:: core :: primitive :: u8 ,) , # [codec (index = 68)] Mortal68 (:: core :: primitive :: u8 ,) , # [codec (index = 69)] Mortal69 (:: core :: primitive :: u8 ,) , # [codec (index = 70)] Mortal70 (:: core :: primitive :: u8 ,) , # [codec (index = 71)] Mortal71 (:: core :: primitive :: u8 ,) , # [codec (index = 72)] Mortal72 (:: core :: primitive :: u8 ,) , # [codec (index = 73)] Mortal73 (:: core :: primitive :: u8 ,) , # [codec (index = 74)] Mortal74 (:: core :: primitive :: u8 ,) , # [codec (index = 75)] Mortal75 (:: core :: primitive :: u8 ,) , # [codec (index = 76)] Mortal76 (:: core :: primitive :: u8 ,) , # [codec (index = 77)] Mortal77 (:: core :: primitive :: u8 ,) , # [codec (index = 78)] Mortal78 (:: core :: primitive :: u8 ,) , # [codec (index = 79)] Mortal79 (:: core :: primitive :: u8 ,) , # [codec (index = 80)] Mortal80 (:: core :: primitive :: u8 ,) , # [codec (index = 81)] Mortal81 (:: core :: primitive :: u8 ,) , # [codec (index = 82)] Mortal82 (:: core :: primitive :: u8 ,) , # [codec (index = 83)] Mortal83 (:: core :: primitive :: u8 ,) , # [codec (index = 84)] Mortal84 (:: core :: primitive :: u8 ,) , # [codec (index = 85)] Mortal85 (:: core :: primitive :: u8 ,) , # [codec (index = 86)] Mortal86 (:: core :: primitive :: u8 ,) , # [codec (index = 87)] Mortal87 (:: core :: primitive :: u8 ,) , # [codec (index = 88)] Mortal88 (:: core :: primitive :: u8 ,) , # [codec (index = 89)] Mortal89 (:: core :: primitive :: u8 ,) , # [codec (index = 90)] Mortal90 (:: core :: primitive :: u8 ,) , # [codec (index = 91)] Mortal91 (:: core :: primitive :: u8 ,) , # [codec (index = 92)] Mortal92 (:: core :: primitive :: u8 ,) , # [codec (index = 93)] Mortal93 (:: core :: primitive :: u8 ,) , # [codec (index = 94)] Mortal94 (:: core :: primitive :: u8 ,) , # [codec (index = 95)] Mortal95 (:: core :: primitive :: u8 ,) , # [codec (index = 96)] Mortal96 (:: core :: primitive :: u8 ,) , # [codec (index = 97)] Mortal97 (:: core :: primitive :: u8 ,) , # [codec (index = 98)] Mortal98 (:: core :: primitive :: u8 ,) , # [codec (index = 99)] Mortal99 (:: core :: primitive :: u8 ,) , # [codec (index = 100)] Mortal100 (:: core :: primitive :: u8 ,) , # [codec (index = 101)] Mortal101 (:: core :: primitive :: u8 ,) , # [codec (index = 102)] Mortal102 (:: core :: primitive :: u8 ,) , # [codec (index = 103)] Mortal103 (:: core :: primitive :: u8 ,) , # [codec (index = 104)] Mortal104 (:: core :: primitive :: u8 ,) , # [codec (index = 105)] Mortal105 (:: core :: primitive :: u8 ,) , # [codec (index = 106)] Mortal106 (:: core :: primitive :: u8 ,) , # [codec (index = 107)] Mortal107 (:: core :: primitive :: u8 ,) , # [codec (index = 108)] Mortal108 (:: core :: primitive :: u8 ,) , # [codec (index = 109)] Mortal109 (:: core :: primitive :: u8 ,) , # [codec (index = 110)] Mortal110 (:: core :: primitive :: u8 ,) , # [codec (index = 111)] Mortal111 (:: core :: primitive :: u8 ,) , # [codec (index = 112)] Mortal112 (:: core :: primitive :: u8 ,) , # [codec (index = 113)] Mortal113 (:: core :: primitive :: u8 ,) , # [codec (index = 114)] Mortal114 (:: core :: primitive :: u8 ,) , # [codec (index = 115)] Mortal115 (:: core :: primitive :: u8 ,) , # [codec (index = 116)] Mortal116 (:: core :: primitive :: u8 ,) , # [codec (index = 117)] Mortal117 (:: core :: primitive :: u8 ,) , # [codec (index = 118)] Mortal118 (:: core :: primitive :: u8 ,) , # [codec (index = 119)] Mortal119 (:: core :: primitive :: u8 ,) , # [codec (index = 120)] Mortal120 (:: core :: primitive :: u8 ,) , # [codec (index = 121)] Mortal121 (:: core :: primitive :: u8 ,) , # [codec (index = 122)] Mortal122 (:: core :: primitive :: u8 ,) , # [codec (index = 123)] Mortal123 (:: core :: primitive :: u8 ,) , # [codec (index = 124)] Mortal124 (:: core :: primitive :: u8 ,) , # [codec (index = 125)] Mortal125 (:: core :: primitive :: u8 ,) , # [codec (index = 126)] Mortal126 (:: core :: primitive :: u8 ,) , # [codec (index = 127)] Mortal127 (:: core :: primitive :: u8 ,) , # [codec (index = 128)] Mortal128 (:: core :: primitive :: u8 ,) , # [codec (index = 129)] Mortal129 (:: core :: primitive :: u8 ,) , # [codec (index = 130)] Mortal130 (:: core :: primitive :: u8 ,) , # [codec (index = 131)] Mortal131 (:: core :: primitive :: u8 ,) , # [codec (index = 132)] Mortal132 (:: core :: primitive :: u8 ,) , # [codec (index = 133)] Mortal133 (:: core :: primitive :: u8 ,) , # [codec (index = 134)] Mortal134 (:: core :: primitive :: u8 ,) , # [codec (index = 135)] Mortal135 (:: core :: primitive :: u8 ,) , # [codec (index = 136)] Mortal136 (:: core :: primitive :: u8 ,) , # [codec (index = 137)] Mortal137 (:: core :: primitive :: u8 ,) , # [codec (index = 138)] Mortal138 (:: core :: primitive :: u8 ,) , # [codec (index = 139)] Mortal139 (:: core :: primitive :: u8 ,) , # [codec (index = 140)] Mortal140 (:: core :: primitive :: u8 ,) , # [codec (index = 141)] Mortal141 (:: core :: primitive :: u8 ,) , # [codec (index = 142)] Mortal142 (:: core :: primitive :: u8 ,) , # [codec (index = 143)] Mortal143 (:: core :: primitive :: u8 ,) , # [codec (index = 144)] Mortal144 (:: core :: primitive :: u8 ,) , # [codec (index = 145)] Mortal145 (:: core :: primitive :: u8 ,) , # [codec (index = 146)] Mortal146 (:: core :: primitive :: u8 ,) , # [codec (index = 147)] Mortal147 (:: core :: primitive :: u8 ,) , # [codec (index = 148)] Mortal148 (:: core :: primitive :: u8 ,) , # [codec (index = 149)] Mortal149 (:: core :: primitive :: u8 ,) , # [codec (index = 150)] Mortal150 (:: core :: primitive :: u8 ,) , # [codec (index = 151)] Mortal151 (:: core :: primitive :: u8 ,) , # [codec (index = 152)] Mortal152 (:: core :: primitive :: u8 ,) , # [codec (index = 153)] Mortal153 (:: core :: primitive :: u8 ,) , # [codec (index = 154)] Mortal154 (:: core :: primitive :: u8 ,) , # [codec (index = 155)] Mortal155 (:: core :: primitive :: u8 ,) , # [codec (index = 156)] Mortal156 (:: core :: primitive :: u8 ,) , # [codec (index = 157)] Mortal157 (:: core :: primitive :: u8 ,) , # [codec (index = 158)] Mortal158 (:: core :: primitive :: u8 ,) , # [codec (index = 159)] Mortal159 (:: core :: primitive :: u8 ,) , # [codec (index = 160)] Mortal160 (:: core :: primitive :: u8 ,) , # [codec (index = 161)] Mortal161 (:: core :: primitive :: u8 ,) , # [codec (index = 162)] Mortal162 (:: core :: primitive :: u8 ,) , # [codec (index = 163)] Mortal163 (:: core :: primitive :: u8 ,) , # [codec (index = 164)] Mortal164 (:: core :: primitive :: u8 ,) , # [codec (index = 165)] Mortal165 (:: core :: primitive :: u8 ,) , # [codec (index = 166)] Mortal166 (:: core :: primitive :: u8 ,) , # [codec (index = 167)] Mortal167 (:: core :: primitive :: u8 ,) , # [codec (index = 168)] Mortal168 (:: core :: primitive :: u8 ,) , # [codec (index = 169)] Mortal169 (:: core :: primitive :: u8 ,) , # [codec (index = 170)] Mortal170 (:: core :: primitive :: u8 ,) , # [codec (index = 171)] Mortal171 (:: core :: primitive :: u8 ,) , # [codec (index = 172)] Mortal172 (:: core :: primitive :: u8 ,) , # [codec (index = 173)] Mortal173 (:: core :: primitive :: u8 ,) , # [codec (index = 174)] Mortal174 (:: core :: primitive :: u8 ,) , # [codec (index = 175)] Mortal175 (:: core :: primitive :: u8 ,) , # [codec (index = 176)] Mortal176 (:: core :: primitive :: u8 ,) , # [codec (index = 177)] Mortal177 (:: core :: primitive :: u8 ,) , # [codec (index = 178)] Mortal178 (:: core :: primitive :: u8 ,) , # [codec (index = 179)] Mortal179 (:: core :: primitive :: u8 ,) , # [codec (index = 180)] Mortal180 (:: core :: primitive :: u8 ,) , # [codec (index = 181)] Mortal181 (:: core :: primitive :: u8 ,) , # [codec (index = 182)] Mortal182 (:: core :: primitive :: u8 ,) , # [codec (index = 183)] Mortal183 (:: core :: primitive :: u8 ,) , # [codec (index = 184)] Mortal184 (:: core :: primitive :: u8 ,) , # [codec (index = 185)] Mortal185 (:: core :: primitive :: u8 ,) , # [codec (index = 186)] Mortal186 (:: core :: primitive :: u8 ,) , # [codec (index = 187)] Mortal187 (:: core :: primitive :: u8 ,) , # [codec (index = 188)] Mortal188 (:: core :: primitive :: u8 ,) , # [codec (index = 189)] Mortal189 (:: core :: primitive :: u8 ,) , # [codec (index = 190)] Mortal190 (:: core :: primitive :: u8 ,) , # [codec (index = 191)] Mortal191 (:: core :: primitive :: u8 ,) , # [codec (index = 192)] Mortal192 (:: core :: primitive :: u8 ,) , # [codec (index = 193)] Mortal193 (:: core :: primitive :: u8 ,) , # [codec (index = 194)] Mortal194 (:: core :: primitive :: u8 ,) , # [codec (index = 195)] Mortal195 (:: core :: primitive :: u8 ,) , # [codec (index = 196)] Mortal196 (:: core :: primitive :: u8 ,) , # [codec (index = 197)] Mortal197 (:: core :: primitive :: u8 ,) , # [codec (index = 198)] Mortal198 (:: core :: primitive :: u8 ,) , # [codec (index = 199)] Mortal199 (:: core :: primitive :: u8 ,) , # [codec (index = 200)] Mortal200 (:: core :: primitive :: u8 ,) , # [codec (index = 201)] Mortal201 (:: core :: primitive :: u8 ,) , # [codec (index = 202)] Mortal202 (:: core :: primitive :: u8 ,) , # [codec (index = 203)] Mortal203 (:: core :: primitive :: u8 ,) , # [codec (index = 204)] Mortal204 (:: core :: primitive :: u8 ,) , # [codec (index = 205)] Mortal205 (:: core :: primitive :: u8 ,) , # [codec (index = 206)] Mortal206 (:: core :: primitive :: u8 ,) , # [codec (index = 207)] Mortal207 (:: core :: primitive :: u8 ,) , # [codec (index = 208)] Mortal208 (:: core :: primitive :: u8 ,) , # [codec (index = 209)] Mortal209 (:: core :: primitive :: u8 ,) , # [codec (index = 210)] Mortal210 (:: core :: primitive :: u8 ,) , # [codec (index = 211)] Mortal211 (:: core :: primitive :: u8 ,) , # [codec (index = 212)] Mortal212 (:: core :: primitive :: u8 ,) , # [codec (index = 213)] Mortal213 (:: core :: primitive :: u8 ,) , # [codec (index = 214)] Mortal214 (:: core :: primitive :: u8 ,) , # [codec (index = 215)] Mortal215 (:: core :: primitive :: u8 ,) , # [codec (index = 216)] Mortal216 (:: core :: primitive :: u8 ,) , # [codec (index = 217)] Mortal217 (:: core :: primitive :: u8 ,) , # [codec (index = 218)] Mortal218 (:: core :: primitive :: u8 ,) , # [codec (index = 219)] Mortal219 (:: core :: primitive :: u8 ,) , # [codec (index = 220)] Mortal220 (:: core :: primitive :: u8 ,) , # [codec (index = 221)] Mortal221 (:: core :: primitive :: u8 ,) , # [codec (index = 222)] Mortal222 (:: core :: primitive :: u8 ,) , # [codec (index = 223)] Mortal223 (:: core :: primitive :: u8 ,) , # [codec (index = 224)] Mortal224 (:: core :: primitive :: u8 ,) , # [codec (index = 225)] Mortal225 (:: core :: primitive :: u8 ,) , # [codec (index = 226)] Mortal226 (:: core :: primitive :: u8 ,) , # [codec (index = 227)] Mortal227 (:: core :: primitive :: u8 ,) , # [codec (index = 228)] Mortal228 (:: core :: primitive :: u8 ,) , # [codec (index = 229)] Mortal229 (:: core :: primitive :: u8 ,) , # [codec (index = 230)] Mortal230 (:: core :: primitive :: u8 ,) , # [codec (index = 231)] Mortal231 (:: core :: primitive :: u8 ,) , # [codec (index = 232)] Mortal232 (:: core :: primitive :: u8 ,) , # [codec (index = 233)] Mortal233 (:: core :: primitive :: u8 ,) , # [codec (index = 234)] Mortal234 (:: core :: primitive :: u8 ,) , # [codec (index = 235)] Mortal235 (:: core :: primitive :: u8 ,) , # [codec (index = 236)] Mortal236 (:: core :: primitive :: u8 ,) , # [codec (index = 237)] Mortal237 (:: core :: primitive :: u8 ,) , # [codec (index = 238)] Mortal238 (:: core :: primitive :: u8 ,) , # [codec (index = 239)] Mortal239 (:: core :: primitive :: u8 ,) , # [codec (index = 240)] Mortal240 (:: core :: primitive :: u8 ,) , # [codec (index = 241)] Mortal241 (:: core :: primitive :: u8 ,) , # [codec (index = 242)] Mortal242 (:: core :: primitive :: u8 ,) , # [codec (index = 243)] Mortal243 (:: core :: primitive :: u8 ,) , # [codec (index = 244)] Mortal244 (:: core :: primitive :: u8 ,) , # [codec (index = 245)] Mortal245 (:: core :: primitive :: u8 ,) , # [codec (index = 246)] Mortal246 (:: core :: primitive :: u8 ,) , # [codec (index = 247)] Mortal247 (:: core :: primitive :: u8 ,) , # [codec (index = 248)] Mortal248 (:: core :: primitive :: u8 ,) , # [codec (index = 249)] Mortal249 (:: core :: primitive :: u8 ,) , # [codec (index = 250)] Mortal250 (:: core :: primitive :: u8 ,) , # [codec (index = 251)] Mortal251 (:: core :: primitive :: u8 ,) , # [codec (index = 252)] Mortal252 (:: core :: primitive :: u8 ,) , # [codec (index = 253)] Mortal253 (:: core :: primitive :: u8 ,) , # [codec (index = 254)] Mortal254 (:: core :: primitive :: u8 ,) , # [codec (index = 255)] Mortal255 (:: core :: primitive :: u8 ,) , } } pub mod header { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Header < _0 > { pub parent_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , # [codec (compact)] pub number : _0 , pub state_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub extrinsics_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub digest : runtime_types :: sp_runtime :: generic :: digest :: Digest , } } } pub mod traits { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BlakeTwo256 ; } pub mod transaction_validity { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum InvalidTransaction { # [codec (index = 0)] Call , # [codec (index = 1)] Payment , # [codec (index = 2)] Future , # [codec (index = 3)] Stale , # [codec (index = 4)] BadProof , # [codec (index = 5)] AncientBirthBlock , # [codec (index = 6)] ExhaustsResources , # [codec (index = 7)] Custom (:: core :: primitive :: u8 ,) , # [codec (index = 8)] BadMandatory , # [codec (index = 9)] MandatoryValidation , # [codec (index = 10)] BadSigner , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionSource { # [codec (index = 0)] InBlock , # [codec (index = 1)] Local , # [codec (index = 2)] External , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionValidityError { # [codec (index = 0)] Invalid (runtime_types :: sp_runtime :: transaction_validity :: InvalidTransaction ,) , # [codec (index = 1)] Unknown (runtime_types :: sp_runtime :: transaction_validity :: UnknownTransaction ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum UnknownTransaction { # [codec (index = 0)] CannotLookup , # [codec (index = 1)] NoUnsignedValidator , # [codec (index = 2)] Custom (:: core :: primitive :: u8 ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidTransaction { pub priority : :: core :: primitive :: u64 , pub requires : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , pub provides : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , pub longevity : :: core :: primitive :: u64 , pub propagate : :: core :: primitive :: bool , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DispatchError { # [codec (index = 0)] Other , # [codec (index = 1)] CannotLookup , # [codec (index = 2)] BadOrigin , # [codec (index = 3)] Module (runtime_types :: sp_runtime :: ModuleError ,) , # [codec (index = 4)] ConsumerRemaining , # [codec (index = 5)] NoProviders , # [codec (index = 6)] TooManyConsumers , # [codec (index = 7)] Token (runtime_types :: sp_runtime :: TokenError ,) , # [codec (index = 8)] Arithmetic (runtime_types :: sp_arithmetic :: ArithmeticError ,) , # [codec (index = 9)] Transactional (runtime_types :: sp_runtime :: TransactionalError ,) , # [codec (index = 10)] Exhausted , # [codec (index = 11)] Corruption , # [codec (index = 12)] Unavailable , # [codec (index = 13)] RootNotAllowed , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DispatchErrorWithPostInfo < _0 > { pub post_info : _0 , pub error : runtime_types :: sp_runtime :: DispatchError , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ExtrinsicInclusionMode { # [codec (index = 0)] AllExtrinsics , # [codec (index = 1)] OnlyInherents , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ModuleError { pub index : :: core :: primitive :: u8 , pub error : [:: core :: primitive :: u8 ; 4usize] , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum MultiSignature { # [codec (index = 0)] Ed25519 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 1)] Sr25519 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 2)] Ecdsa ([:: core :: primitive :: u8 ; 65usize] ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum MultiSigner { # [codec (index = 0)] Ed25519 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 1)] Sr25519 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 2)] Ecdsa ([:: core :: primitive :: u8 ; 33usize] ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueValue (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TokenError { # [codec (index = 0)] FundsUnavailable , # [codec (index = 1)] OnlyProvider , # [codec (index = 2)] BelowMinimum , # [codec (index = 3)] CannotCreate , # [codec (index = 4)] UnknownAsset , # [codec (index = 5)] Frozen , # [codec (index = 6)] Unsupported , # [codec (index = 7)] CannotCreateHold , # [codec (index = 8)] NotExpendable , # [codec (index = 9)] Blocked , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionalError { # [codec (index = 0)] LimitReached , # [codec (index = 1)] NoLayer , } } pub mod sp_session { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MembershipProof { pub session : :: core :: primitive :: u32 , pub trie_nodes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , pub validator_count : :: core :: primitive :: u32 , } } pub mod sp_staking { use super :: runtime_types ; pub mod offence { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OffenceDetails < _0 , _1 > { pub offender : _1 , pub reporters : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Exposure < _0 , _1 > { # [codec (compact)] pub total : _1 , # [codec (compact)] pub own : _1 , pub others : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_staking :: IndividualExposure < _0 , _1 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExposurePage < _0 , _1 > { # [codec (compact)] pub page_total : _1 , pub others : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_staking :: IndividualExposure < _0 , _1 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct IndividualExposure < _0 , _1 > { pub who : _0 , # [codec (compact)] pub value : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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_version { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RuntimeVersion { pub spec_name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , pub impl_name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , pub authoring_version : :: core :: primitive :: u32 , pub spec_version : :: core :: primitive :: u32 , pub impl_version : :: core :: primitive :: u32 , pub apis : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < ([:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u32 ,) > , pub transaction_version : :: core :: primitive :: u32 , pub state_version : :: core :: primitive :: u8 , } } pub mod sp_weights { use super :: runtime_types ; pub mod weight_v2 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Weight { # [codec (compact)] pub ref_time : :: core :: primitive :: u64 , # [codec (compact)] pub proof_size : :: core :: primitive :: u64 , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RuntimeDbWeight { pub read : :: core :: primitive :: u64 , 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MultiLocation { pub parents : :: core :: primitive :: u8 , pub interior : runtime_types :: xcm :: v3 :: junctions :: Junctions , } } } pub mod v4 { use super :: runtime_types ; pub mod asset { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Asset { pub id : runtime_types :: staging_xcm :: v4 :: asset :: AssetId , pub fun : runtime_types :: staging_xcm :: v4 :: asset :: Fungibility , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AssetFilter { # [codec (index = 0)] Definite (runtime_types :: staging_xcm :: v4 :: asset :: Assets ,) , # [codec (index = 1)] Wild (runtime_types :: staging_xcm :: v4 :: asset :: WildAsset ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AssetId (pub runtime_types :: staging_xcm :: v4 :: location :: Location ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Assets (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: staging_xcm :: v4 :: asset :: Asset > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Fungibility { # [codec (index = 0)] Fungible (# [codec (compact)] :: core :: primitive :: u128 ,) , # [codec (index = 1)] NonFungible (runtime_types :: staging_xcm :: v4 :: asset :: AssetInstance ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum WildAsset { # [codec (index = 0)] All , # [codec (index = 1)] AllOf { id : runtime_types :: staging_xcm :: v4 :: asset :: AssetId , fun : runtime_types :: staging_xcm :: v4 :: asset :: WildFungibility , } , # [codec (index = 2)] AllCounted (# [codec (compact)] :: core :: primitive :: u32 ,) , # [codec (index = 3)] AllOfCounted { id : runtime_types :: staging_xcm :: v4 :: asset :: AssetId , fun : runtime_types :: staging_xcm :: v4 :: asset :: WildFungibility , # [codec (compact)] count : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum WildFungibility { # [codec (index = 0)] Fungible , # [codec (index = 1)] NonFungible , } } pub mod junction { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Junction { # [codec (index = 0)] Parachain (# [codec (compact)] :: core :: primitive :: u32 ,) , # [codec (index = 1)] AccountId32 { network : :: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: junction :: NetworkId > , id : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 2)] AccountIndex64 { network : :: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: junction :: NetworkId > , # [codec (compact)] index : :: core :: primitive :: u64 , } , # [codec (index = 3)] AccountKey20 { network : :: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: junction :: 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 { 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 :: staging_xcm :: v4 :: junction :: NetworkId ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 10)] PolkadotBulletin , } } pub mod junctions { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Junctions { # [codec (index = 0)] Here , # [codec (index = 1)] X1 ([runtime_types :: staging_xcm :: v4 :: junction :: Junction ; 1usize] ,) , # [codec (index = 2)] X2 ([runtime_types :: staging_xcm :: v4 :: junction :: Junction ; 2usize] ,) , # [codec (index = 3)] X3 ([runtime_types :: staging_xcm :: v4 :: junction :: Junction ; 3usize] ,) , # [codec (index = 4)] X4 ([runtime_types :: staging_xcm :: v4 :: junction :: Junction ; 4usize] ,) , # [codec (index = 5)] X5 ([runtime_types :: staging_xcm :: v4 :: junction :: Junction ; 5usize] ,) , # [codec (index = 6)] X6 ([runtime_types :: staging_xcm :: v4 :: junction :: Junction ; 6usize] ,) , # [codec (index = 7)] X7 ([runtime_types :: staging_xcm :: v4 :: junction :: Junction ; 7usize] ,) , # [codec (index = 8)] X8 ([runtime_types :: staging_xcm :: v4 :: junction :: Junction ; 8usize] ,) , } } pub mod location { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Location { pub parents : :: core :: primitive :: u8 , pub interior : runtime_types :: staging_xcm :: v4 :: junctions :: Junctions , } } pub mod traits { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Outcome { # [codec (index = 0)] Complete { used : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 1)] Incomplete { used : runtime_types :: sp_weights :: weight_v2 :: Weight , error : runtime_types :: xcm :: v3 :: traits :: Error , } , # [codec (index = 2)] Error { error : runtime_types :: xcm :: v3 :: traits :: Error , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Instruction { # [codec (index = 0)] WithdrawAsset (runtime_types :: staging_xcm :: v4 :: asset :: Assets ,) , # [codec (index = 1)] ReserveAssetDeposited (runtime_types :: staging_xcm :: v4 :: asset :: Assets ,) , # [codec (index = 2)] ReceiveTeleportedAsset (runtime_types :: staging_xcm :: v4 :: asset :: Assets ,) , # [codec (index = 3)] QueryResponse { # [codec (compact)] query_id : :: core :: primitive :: u64 , response : runtime_types :: staging_xcm :: v4 :: Response , max_weight : runtime_types :: sp_weights :: weight_v2 :: Weight , querier : :: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: location :: Location > , } , # [codec (index = 4)] TransferAsset { assets : runtime_types :: staging_xcm :: v4 :: asset :: Assets , beneficiary : runtime_types :: staging_xcm :: v4 :: location :: Location , } , # [codec (index = 5)] TransferReserveAsset { assets : runtime_types :: staging_xcm :: v4 :: asset :: Assets , dest : runtime_types :: staging_xcm :: v4 :: location :: Location , xcm : runtime_types :: staging_xcm :: v4 :: Xcm , } , # [codec (index = 6)] Transact { origin_kind : runtime_types :: xcm :: v3 :: 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 :: staging_xcm :: v4 :: junctions :: Junctions ,) , # [codec (index = 12)] ReportError (runtime_types :: staging_xcm :: v4 :: QueryResponseInfo ,) , # [codec (index = 13)] DepositAsset { assets : runtime_types :: staging_xcm :: v4 :: asset :: AssetFilter , beneficiary : runtime_types :: staging_xcm :: v4 :: location :: Location , } , # [codec (index = 14)] DepositReserveAsset { assets : runtime_types :: staging_xcm :: v4 :: asset :: AssetFilter , dest : runtime_types :: staging_xcm :: v4 :: location :: Location , xcm : runtime_types :: staging_xcm :: v4 :: Xcm , } , # [codec (index = 15)] ExchangeAsset { give : runtime_types :: staging_xcm :: v4 :: asset :: AssetFilter , want : runtime_types :: staging_xcm :: v4 :: asset :: Assets , maximal : :: core :: primitive :: bool , } , # [codec (index = 16)] InitiateReserveWithdraw { assets : runtime_types :: staging_xcm :: v4 :: asset :: AssetFilter , reserve : runtime_types :: staging_xcm :: v4 :: location :: Location , xcm : runtime_types :: staging_xcm :: v4 :: Xcm , } , # [codec (index = 17)] InitiateTeleport { assets : runtime_types :: staging_xcm :: v4 :: asset :: AssetFilter , dest : runtime_types :: staging_xcm :: v4 :: location :: Location , xcm : runtime_types :: staging_xcm :: v4 :: Xcm , } , # [codec (index = 18)] ReportHolding { response_info : runtime_types :: staging_xcm :: v4 :: QueryResponseInfo , assets : runtime_types :: staging_xcm :: v4 :: asset :: AssetFilter , } , # [codec (index = 19)] BuyExecution { fees : runtime_types :: staging_xcm :: v4 :: asset :: Asset , weight_limit : runtime_types :: xcm :: v3 :: WeightLimit , } , # [codec (index = 20)] RefundSurplus , # [codec (index = 21)] SetErrorHandler (runtime_types :: staging_xcm :: v4 :: Xcm ,) , # [codec (index = 22)] SetAppendix (runtime_types :: staging_xcm :: v4 :: Xcm ,) , # [codec (index = 23)] ClearError , # [codec (index = 24)] ClaimAsset { assets : runtime_types :: staging_xcm :: v4 :: asset :: Assets , ticket : runtime_types :: staging_xcm :: v4 :: location :: Location , } , # [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 :: staging_xcm :: v4 :: asset :: Assets ,) , # [codec (index = 29)] ExpectAsset (runtime_types :: staging_xcm :: v4 :: asset :: Assets ,) , # [codec (index = 30)] ExpectOrigin (:: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: location :: Location > ,) , # [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 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , response_info : runtime_types :: staging_xcm :: v4 :: QueryResponseInfo , } , # [codec (index = 34)] ExpectPallet { # [codec (compact)] index : :: core :: primitive :: u32 , name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , module_name : :: subxt :: ext :: subxt_core :: alloc :: 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 :: staging_xcm :: v4 :: QueryResponseInfo ,) , # [codec (index = 36)] ClearTransactStatus , # [codec (index = 37)] UniversalOrigin (runtime_types :: staging_xcm :: v4 :: junction :: Junction ,) , # [codec (index = 38)] ExportMessage { network : runtime_types :: staging_xcm :: v4 :: junction :: NetworkId , destination : runtime_types :: staging_xcm :: v4 :: junctions :: Junctions , xcm : runtime_types :: staging_xcm :: v4 :: Xcm , } , # [codec (index = 39)] LockAsset { asset : runtime_types :: staging_xcm :: v4 :: asset :: Asset , unlocker : runtime_types :: staging_xcm :: v4 :: location :: Location , } , # [codec (index = 40)] UnlockAsset { asset : runtime_types :: staging_xcm :: v4 :: asset :: Asset , target : runtime_types :: staging_xcm :: v4 :: location :: Location , } , # [codec (index = 41)] NoteUnlockable { asset : runtime_types :: staging_xcm :: v4 :: asset :: Asset , owner : runtime_types :: staging_xcm :: v4 :: location :: Location , } , # [codec (index = 42)] RequestUnlock { asset : runtime_types :: staging_xcm :: v4 :: asset :: Asset , locker : runtime_types :: staging_xcm :: v4 :: location :: Location , } , # [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 :: v4 :: location :: Location ,) , # [codec (index = 47)] UnpaidExecution { weight_limit : runtime_types :: xcm :: v3 :: WeightLimit , check_origin : :: core :: option :: Option < runtime_types :: staging_xcm :: v4 :: location :: Location > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryResponseInfo { pub destination : runtime_types :: staging_xcm :: v4 :: location :: Location , # [codec (compact)] pub query_id : :: core :: primitive :: u64 , pub max_weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Response { # [codec (index = 0)] Null , # [codec (index = 1)] Assets (runtime_types :: staging_xcm :: v4 :: asset :: Assets ,) , # [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 :: staging_xcm :: v4 :: PalletInfo > ,) , # [codec (index = 5)] DispatchResult (runtime_types :: xcm :: v3 :: MaybeErrorCode ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Xcm (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: staging_xcm :: v4 :: Instruction > ,) ; } } pub mod staging_xcm_executor { use super :: runtime_types ; pub mod traits { use super :: runtime_types ; pub mod asset_transfer { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransferType { # [codec (index = 0)] Teleport , # [codec (index = 1)] LocalReserve , # [codec (index = 2)] DestinationReserve , # [codec (index = 3)] RemoteReserve (runtime_types :: xcm :: VersionedLocation ,) , } } } } pub mod xcm { use super :: runtime_types ; pub mod double_encoded { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DoubleEncoded { pub encoded : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } } pub mod v2 { use super :: runtime_types ; pub mod junction { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AssetId { # [codec (index = 0)] Concrete (runtime_types :: xcm :: v2 :: multilocation :: MultiLocation ,) , # [codec (index = 1)] Abstract (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MultiAssets (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: xcm :: v2 :: multiasset :: MultiAsset > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum WildFungibility { # [codec (index = 0)] Fungible , # [codec (index = 1)] NonFungible , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum WeightLimit { # [codec (index = 0)] Unlimited , # [codec (index = 1)] Limited (# [codec (compact)] :: core :: primitive :: u64 ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Xcm (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: xcm :: v2 :: Instruction > ,) ; } pub mod v3 { use super :: runtime_types ; pub mod junction { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Junction { # [codec (index = 0)] Parachain (# [codec (compact)] :: core :: primitive :: u32 ,) , # [codec (index = 1)] AccountId32 { network : :: core :: option :: Option < runtime_types :: xcm :: v3 :: junction :: NetworkId > , id : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 2)] AccountIndex64 { network : :: core :: option :: Option < runtime_types :: xcm :: v3 :: junction :: NetworkId > , # [codec (compact)] index : :: core :: primitive :: u64 , } , # [codec (index = 3)] AccountKey20 { network : :: core :: option :: Option < runtime_types :: xcm :: v3 :: junction :: 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 { 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 10)] PolkadotBulletin , } } pub mod junctions { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MultiAssets (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: xcm :: v3 :: multiasset :: MultiAsset > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum WildFungibility { # [codec (index = 0)] Fungible , # [codec (index = 1)] NonFungible , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: v3 :: 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 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , response_info : runtime_types :: xcm :: v3 :: QueryResponseInfo , } , # [codec (index = 34)] ExpectPallet { # [codec (compact)] index : :: core :: primitive :: u32 , name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , module_name : :: subxt :: ext :: subxt_core :: alloc :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum WeightLimit { # [codec (index = 0)] Unlimited , # [codec (index = 1)] Limited (runtime_types :: sp_weights :: weight_v2 :: Weight ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Xcm (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: xcm :: v3 :: Instruction > ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum VersionedAssetId { # [codec (index = 3)] V3 (runtime_types :: xcm :: v3 :: multiasset :: AssetId ,) , # [codec (index = 4)] V4 (runtime_types :: staging_xcm :: v4 :: asset :: AssetId ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum VersionedAssets { # [codec (index = 1)] V2 (runtime_types :: xcm :: v2 :: multiasset :: MultiAssets ,) , # [codec (index = 3)] V3 (runtime_types :: xcm :: v3 :: multiasset :: MultiAssets ,) , # [codec (index = 4)] V4 (runtime_types :: staging_xcm :: v4 :: asset :: Assets ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum VersionedLocation { # [codec (index = 1)] V2 (runtime_types :: xcm :: v2 :: multilocation :: MultiLocation ,) , # [codec (index = 3)] V3 (runtime_types :: staging_xcm :: v3 :: multilocation :: MultiLocation ,) , # [codec (index = 4)] V4 (runtime_types :: staging_xcm :: v4 :: location :: Location ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum VersionedResponse { # [codec (index = 2)] V2 (runtime_types :: xcm :: v2 :: Response ,) , # [codec (index = 3)] V3 (runtime_types :: xcm :: v3 :: Response ,) , # [codec (index = 4)] V4 (runtime_types :: staging_xcm :: v4 :: Response ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum VersionedXcm { # [codec (index = 2)] V2 (runtime_types :: xcm :: v2 :: Xcm ,) , # [codec (index = 3)] V3 (runtime_types :: xcm :: v3 :: Xcm ,) , # [codec (index = 4)] V4 (runtime_types :: staging_xcm :: v4 :: Xcm ,) , } } pub mod xcm_runtime_apis { use super :: runtime_types ; pub mod conversions { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Error { # [codec (index = 0)] Unsupported , # [codec (index = 1)] VersionedConversionFailed , } } pub mod dry_run { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CallDryRunEffects < _0 > { pub execution_result : :: core :: result :: Result < runtime_types :: frame_support :: dispatch :: PostDispatchInfo , runtime_types :: sp_runtime :: DispatchErrorWithPostInfo < runtime_types :: frame_support :: dispatch :: PostDispatchInfo > > , pub emitted_events : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub local_xcm : :: core :: option :: Option < runtime_types :: xcm :: VersionedXcm > , pub forwarded_xcms : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: xcm :: VersionedLocation , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: xcm :: VersionedXcm > ,) > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Error { # [codec (index = 0)] Unimplemented , # [codec (index = 1)] VersionedConversionFailed , } # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct XcmDryRunEffects < _0 > { pub execution_result : runtime_types :: staging_xcm :: v4 :: traits :: Outcome , pub emitted_events : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub forwarded_xcms : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: xcm :: VersionedLocation , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: xcm :: VersionedXcm > ,) > , } } pub mod fees { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: codec :: Decode , :: subxt :: ext :: subxt_core :: ext :: codec :: Encode , :: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [codec (crate = :: subxt :: ext :: subxt_core :: ext :: codec)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Error { # [codec (index = 0)] Unimplemented , # [codec (index = 1)] VersionedConversionFailed , # [codec (index = 2)] WeightNotComputable , # [codec (index = 3)] UnhandledXcmVersion , # [codec (index = 4)] AssetNotFound , # [codec (index = 5)] Unroutable , } } } } }